microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.73k stars 29.09k forks source link

Not able to save #231951

Open sreepanati-eaton opened 3 days ago

sreepanati-eaton commented 3 days ago

Type: Bug

make changes to any code file try to save it

VS Code version: Code 1.94.2 (Universal) (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Darwin arm64 23.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M2 Max (12 x 2400)| |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
webnn: disabled_off| |Load (avg)|4, 3, 3| |Memory (System)|32.00GB (1.74GB free)| |Process Argv|--crash-reporter-id 019d6c62-94ba-4227-b158-678f98771d60| |Screen Reader|no| |VM|0%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- vscode-openapi|42C|4.29.2 swagger-viewer|Arj|3.1.2 mermaid-markdown-syntax-highlighting|bpr|1.6.6 vscode-eslint|dba|3.0.10 prettier-vscode|esb|11.0.0 vscode-jest-runner|fir|0.4.74 copilot|Git|1.241.0 copilot-chat|Git|0.21.2 vscode-github-actions|git|0.27.0 rest-client|hum|0.25.1 vscode-azurefunctions|ms-|1.15.4 vscode-azureresourcegroups|ms-|0.9.7 vsliveshare|ms-|1.0.5941 vscode-jest|Ort|6.2.5 vscode-yaml|red|1.15.0 code-spell-checker|str|3.0.1 vscode-mermaid-preview|vst|1.6.3
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 945dj816:31013170 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 defaultse:31146405 iacca1:31156133 notype1:31157159 5fd0e150:31155592 dwcopilot:31164048 icondisabled:31158250 ```
jeremymeng commented 3 days ago

VS Code was acting weird recently until I disable copilot extensions. Seems that a lot of the extensions was able to activate. I also found that another extension GitLess is causing serious performance issue.

bpasero commented 3 days ago

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

sreepanati-eaton commented 3 days ago

I did a little more testing.

We have a setting in our project to organize imports on save and vs code would just hangs while organizing imports.

Then, I got a pop up saying something like Typescript and Javascript crashes 5 times in the last 5 minutes. From the settings on the pop-up, I disabled the Typescript and Javascript extension. And then, I was able to save the code.

Now, I downgraded VS code to 1.92.2(silicon) and enabled all the extensions and everything seems to be working.

bpasero commented 3 days ago

If I understand you correctly, disabling TS/JS extension has unblocked you to save again, so it seems to be caused by save participants of this extension?

sreepanati-eaton commented 3 days ago

Yes.

mjbvz commented 3 days ago

What's save actions do you have enabled? For example, format on save or code actions on save?

fisforfaheem commented 3 days ago

having same issues, it takes so much time,have to close VScode and then reopen :(

sreepanati-eaton commented 2 days ago

What's save actions do you have enabled? For example, format on save or code actions on save?

  1. fix eslint issues
  2. organize imports
  3. format on save
mjbvz commented 2 days ago

What if you try disabling the eslint extension? If there's still an issue after that you can also try disabling each of those individual setting too to see which one causes the problem

fisforfaheem commented 2 days ago

Image Image

mjbvz commented 2 days ago

Please try the steps I suggested