microsoft / vscode

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

Save using Cmd + S not working #212744

Closed nmalancea closed 2 weeks ago

nmalancea commented 2 weeks ago

Type: Bug

I have to click File then Save. Cmd + S is not working even though the keyboard shortcut mapping is there.

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 (12 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)|2, 3, 3| |Memory (System)|32.00GB (0.32GB free)| |Process Argv|--crash-reporter-id 65c9fd81-2796-4139-93f8-8ad1dacdfbfd| |Screen Reader|no| |VM|0%|
Extensions (18) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.5.0 vscode-eslint|dba|2.4.4 gitlens|eam|15.0.2 prettier-vscode|esb|10.4.0 copilot|Git|1.192.0 copilot-chat|Git|0.15.1 vscode-github-actions|git|0.26.2 ionic|Ion|1.86.1 vscode-env|Iro|0.1.0 vscode-todo-highlight|jgc|2.0.8 camelcasenavigation|map|1.1.5 vscode-docker|ms-|1.29.1 remote-containers|ms-|0.362.0 sublime-keybindings|ms-|4.1.10 vscode-graphql|ors|0.3.18 text-power-tools|qcz|1.47.1 explorer|vit|0.10.3 change-case|wma|1.0.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 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 chatpanelt:31048053 dsvsc021:30996838 0ee40948:31013168 pythoncenvptcf:31043158 a69g1124:31046351 dvdeprecation:31040881 pythonprt:31047983 dwnewjupytercf:31046870 ```
brianfitzgerald commented 2 weeks ago

Getting this too

CPUs Apple M1 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) 7, 5, 4
Memory (System) 16.00GB (0.06GB free)
Process Argv --crash-reporter-id 3f81f24b-dfd0-40a3-9601-638cd9852cbd
Screen Reader no
VM 0%
tristanz commented 2 weeks ago

Getting this as well with latest VSCode. Persists with extensions disabled.

okdas commented 2 weeks ago

Can confirm. Save w/o formatting works though.

wemmyo commented 2 weeks ago

If you have ChatGPT desktop app installed try quitting the app and then check if cmd + s works on vscode.

nmalancea commented 2 weeks ago

Thanks, @wemmyo! You're right, the issue started happening for me after installing the ChatGPT app.

Upgrading to latest - 1.2024.132 - fixed the problem for me.

E1NSER commented 2 weeks ago

If you have ChatGPT desktop app installed try quitting the app and then check if cmd + s works on vscode.

"Solved" the problem! Thank you!!!

wjthompso commented 2 weeks ago

I'm noticing that the issue persists for me even after quitting the ChatGPT desktop app and even deleting the ChatGPT desktop app. MacOS M1 chip for me.

maltoseslope commented 2 weeks ago

1.2024.134 still the same issue. Is there a way to prohibit chatgpt app from listening to the command+s command in macos configuration?

golam-morshed commented 2 weeks ago

If you have ChatGPT desktop app installed try quitting the app and then check if cmd + s works on vscode.

Worked like a charm. thanks dude.

alibek-galiyev commented 2 weeks ago

For me it worked after quitting ChatGPT

Yuri-Lima commented 2 weeks ago

yeah For me it worked after quitting ChatGPT. Quit then re open

JaviSoto commented 2 weeks ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

jimniels commented 2 weeks ago

Not sure what version I was on previously, but after finding this thread and realizing it was the ChatGPT client, I updated to the latest version of ChatGPT for Mac and now CMD + S in vscode works as expected.

wjthompso commented 2 weeks ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

I've just now downloaded the 1.2024.132 version of the ChatGPT desktop app for my macOS with an M1 chip. Not sure why, but even with this version (and also before when I had already uninstalled the ChatGPT app), "Cmd+S" was not and is not working in VSCode. It's strange, as when I press "Cmd+S" when attempting to save a file in VSCode I can see the "Save" option in the "File" drop down highlighting, but the file does not save.

sireskay commented 2 weeks ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

Thanks!! Yeah, the new update has this resolved. thank guys for working on this, I was going crazy, but every works as it is supposed to with the new version of ChatGPT installed!

alt-jero commented 2 weeks ago

@JaviSoto I'm having the same issue using ChatGPT version 1.2024.134 (1715807927), same as @maltoseslope ... I don't know about the bit between the parentheses, but the same version number at least.

Can confirm that closing the ChatGPT app, the command-s works again.

I did a quick test to try to reproduce the issue. The following things had no effect on whether my command-s hotkey worked in VsCode after:

I actually have no idea what else to try, nor what caused the original bug, but I'm happy that restarting the ChatGPT app seems to have solved my issue.

aravasio commented 2 weeks ago

Same issue on Version 1.2024.134 (1715807927).

My vscode version is:

Version: 1.88.1 (Universal)
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:42:52.765Z (1 mo ago)
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0

However, unlike what others seem to experience, force-quitting (cmd+q) ChatGPT app fixes the issue, and it's not coming back after restarting it.

Some of the test-cases I used, but unable to reproduce after initial cmd+q:

On my end, it seems to have been a one-off thing, so I'm inclined to believe there might be a first-run kind of issue that's breaking stuff.

    System Software Overview:
      System Version: macOS 14.4.1 (23E224)
      Kernel Version: Darwin 23.4.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Unchained M1 Max
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 17 days, 11 hours, 44 minutes
pk8189 commented 1 week ago

I downloaded today from ChatGPT.com and experienced this issue 😭

mustafaensar commented 1 week ago

Oh guys, I got the same err and confused. Solved 👌🏼 Thanks 🥳

idw111 commented 1 week ago

Same issue Quitting the chatGPT desktop app solved the issue, too.

troehrkasse commented 1 week ago

I also downloaded and installed today, which broke cmd+s to save in VSCode. I have version Version 1.2024.134 (1715807927).

Quitting + restarting ChatGPT fixed the issue. Since then I've used it extensively, and VSCode save is still working as it should.

gsi-chao commented 1 week ago

Same issue here. I closed ChatGPT and tada..

starball5 commented 1 week ago

Related on Stack Overflow: In VSCode - Saving with CMD + S doesn't work

hyochan commented 1 week ago

Is it time to remove ChatGPT desktop app then?

annizhengnz commented 1 week ago

Close Chatgpt desktop works for me

kleviss commented 1 week ago

I hit Option + Space and it prompted the ChatGPT MAc app, where it said I had an important update to install. Installed it, the app is still running in the background, and Cmd + S started working again. Here is a help article: https://help.openai.com/en/articles/9275200-using-the-chatgpt-macos-app

afloury commented 1 week ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

Hi @JaviSoto, just got ChatGPT 1.2024.137 for the first time this morning, got the cmd + s issue (on every apps, not only VSCode btw), quit and reopen ChatGPT app fixed it for now.

razaadeel commented 1 week ago

@wemmyo thanks for the solution. Quiting chatgpt app works for me in MAC.

MitchTalmadge commented 1 week ago

I just installed ChatGPT about an hour ago and this problem popped up.

Quitting ChatGPT solved the issue immediately.

sebszocinski commented 1 week ago

wowee, ChatGPT taking over our jobs in weird way

wojciech-lasota commented 1 week ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

Version 1.2024.138 (1716432765) MacOS Sonoma 14.1.1 Apple M2 Max VS Code 1.88.1 (Universal)

jakguru commented 1 week ago

Hey! 👋 OpenAI engineer here. Sorry about this! Can you confirm which version of the ChatGPT mac app you have? We believe the issue should've been fixed on version 1.2024.132

Version 1.2024.138 (1716432765) MacOS 14.4.1 (23E224) Apple M2 Max Version: 1.89.1 (Universal)

Once ChatGPT Desktop app was closed and re-opened i was able to use the CMD + S keyboard shortcut again, but i had to find this issue to realize that ChatGPT was the cause of my issues with VSCode.

brandonstubbs commented 1 week ago

Version 1.2024.138 (1716432765) MacOS 14.5 (23F79) Apple M1 Max Version: 1.89.0 (Universal)

Closing and re-opening ChatGPT also resolved the issue for me

7hacker commented 1 week ago

Still seeing this issue with Vscode unable to save while Chatgpt Desktop app is open

ChatGPT version 1.2024.138 (1716432765) MacOS Sonoma 14.3.1 Apple M1 VS Code 1.89.1 (Universal)

klpontz commented 1 week ago

I can confirm that I was having the same issues. I quit the ChatGPT App and it resolved the issue.

I reopened ChatGPT, had a short conversation, and jumped back to VS code to find that Cmd + S was working again. :D

ChatGPT Version 1.2024.138 (1716432765) MacOS Sonoma 14.5 Apple M1 Pro Version: 1.89.1 (Universal)