Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drastically increases formatting time upon saving a file #594

Closed
karans765 opened this issue May 16, 2024 · 4 comments
Closed

Drastically increases formatting time upon saving a file #594

karans765 opened this issue May 16, 2024 · 4 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate

Comments

@karans765
Copy link

Type: Bug

Drastically increases formatting time upon saving

Extension version: 0.9.10
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:14:32.757Z)
OS version: Darwin arm64 23.4.0
Modes:

System Info
Item Value
CPUs Apple M2 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 3, 4
Memory (System) 16.00GB (0.85GB free)
Process Argv --crash-reporter-id 66b97fca-25e1-4892-ad19-893ae6481d3b
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
showvideoc:31016891
chatpanelc:31048052
dsvsc021:30996838
01bff139:31013167
pythoncenvptcf:31049071
a69g1124:31046351
pythonprt:31047983
dwnewjupytercf:31046870
fa862199:31048878

@Yingzi1234
Copy link
Collaborator

@karans765 We are trying to reproduce your problem, could you provide some information below in order to better solve the problem??

  1. Could you provide us with the detailed steps for reproduction?
  2. In addition to the VS Code version and OS version you have provided, you may also need to know your extension configuration. In particular, regarding any custom configuration of the Makefile Tools extension.
  3. If possible, provide the sample code snippet or file that is causing the problem. This will give a clearer picture of the nature of the problem
  4. If you are experiencing this problem in a specific project, additional information about the project's environment, such as project structure, dependencies, etc., can also be provided

By providing this information, developers can better understand the problem and try to reproduce it in their environment, making it easier to diagnose and resolve your issue, thank you!

@Yingzi1234 Yingzi1234 added more info needed More info is needed from the community for us to properly triage and investigate and removed triage labels May 22, 2024
@gcampbell-msft
Copy link
Collaborator

@sean-mcmanus @Colengms I seem to recall that there have been issues related to this in the past and we ended up finding out that it was with the c/c++ extension, could you weigh in here? Or correct me if I'm remembering incorrectly

@sean-mcmanus
Copy link
Contributor

@gcampbell-msft Yeah, it certainly could be caused by cpptools. We have microsoft/vscode-cpptools#12082 (if "editor.formatOnSaveMode": "modificationsIfAvailable is used) and microsoft/vscode-cpptools#6156 (if IntelliSense is blocking the formatting, you can verify this by checking if formatting is fast if there's no pending IntelliSense operation). We probably need more info from the user to confirm which issue/extension is the cause.

@gcampbell-msft
Copy link
Collaborator

@karans765 Could you provide more info and maybe test different settings for the ones that @sean-mcmanus pointed out? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate
Projects
None yet
Development

No branches or pull requests

4 participants