-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Cannot disable file auto save if configured in workspace #108932
Comments
(Experimental duplicate detection) |
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
Hi @bpasero, I've just tried and it behaves exactly the same. In VS Code Insiders I couldn't untick the "auto save" under file menu. This time it was fresh installation I did from the link you provided. I didn't have VS Code Insiders installed before. This is really annoying and should should be investigated from your side. Thanks. |
@thiemeljiri what OS is this? |
@bpasero Windows 10 Enterprise 64bit |
Does it reproduce when you configure |
@bpasero Yes. And now I can see that clicking on "Auto Save" under "File" menu actually does some changes in settings.json - "files.autoSave" chnages its value between "off" and "afterDelay". But the tick remains and even when it's set to "off" the files are still save automatically. |
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: |
As I mentioned in the original comment, I have already tried that. And as for VSC Insiders - I have no extensions there. As for |
I cannot explain this, unless maybe your settings file is not valid. Does it show errors when you open it as JSON file? |
No, it doesn't. It is valid. And it happens even if it's completely empty. |
Please see if you can find any logged output that could help us find the source of the issue:
Thanks! |
Hi @bpasero. Ok, I've found out what was the issue. And it was very puzzling to me. I tried both scenarios on the same project. And now I've found out that there is also a I don't have any experience with this kind of settings, but I don't like the current behavior. Settings in this file is forced to the editor and you cannot change it unless you modify this file. But it seems to me a bit puzzling. I'd expect probably some of these scenarios as a user:
Please, let UX designers or other responsible people in your team know about this. Encountering something like this for the first time is extremely frustrating. Thanks! BR, |
@thiemeljiri great catch, we should be able to handle that case better. |
Opening up for a PR, the code that needs to be looked at is: vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.ts Lines 186 to 201 in cadabab
|
I'll take a look at this |
Verification: verify auto save can be turned on and off via File > Auto Save toggle in main menu. Verify this also works if |
This bug has been fixed in to the latest release of VS Code Insiders! @thiemeljiri, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
I cannot disable file auto save.
I cannot uncheck "Auto Save" under "File" menu. I disabled it in User settings but this option is still checked in file menu.
Restarting VS Code has no effect. I tried running VS Code without extensions and it behaves exactly the same. So it's very likely not related to any extension.
The text was updated successfully, but these errors were encountered: