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

Register files.autoSave and files.autoSaveDelay as a language override setting. #181942

Closed
thehale opened this issue May 9, 2023 · 6 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality file-io File I/O keep Issues we should not close as out of scope on-testplan

Comments

@thehale
Copy link

thehale commented May 9, 2023

I would like to configure auto-saving per language, which is not currently available for the settings files.autoSave and files.autoSaveDelay as shown in the following screenshots.
image
image

Here's that snippet from settings.json as text.

    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 1000,
    "[javascript]": {
        "files.autoSave": "off",
    },

For example, when writing a README or a backend server in Python, I appreciate the auto-save so that I can restart the server without pressing CTRL + S in each file I've modified. In contrast, when working on a JavaScript front-end with hot-reloading, I want the auto-save disabled so that my in-progress changes (e.g. a half-written JSX props list) don't break the site until I manually save the file(s).

Currently, I have to switch the auto-save setting each time I switch projects. When I'm working on a full-stack application, however, this quickly becomes tedious, and I typically give up the auto-save benefits for the backend.

VS Code Version Details
image

@bpasero
Copy link
Member

bpasero commented May 9, 2023

Previously at #42170

@bpasero bpasero added feature-request Request for new features or functionality file-io File I/O labels May 9, 2023
@vscodenpa vscodenpa added this to the Backlog Candidates milestone May 9, 2023
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@el-leonya
Copy link

I would like to be able to disable autoSave for shell scripts, because if a script is running and waiting for something and auto save is triggered at that moment, it will execute the already saved version of the script. It is very inconvenient to constantly turn autoSave on and off.

@vscodenpa
Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa modified the milestones: Backlog Candidates, Backlog Jun 13, 2023
@bpasero bpasero added the keep Issues we should not close as out of scope label Dec 6, 2023
@bpasero bpasero self-assigned this Dec 9, 2023
@bpasero bpasero modified the milestones: Backlog, December / January 2024 Dec 9, 2023
@bpasero
Copy link
Member

bpasero commented Dec 9, 2023

#200326 enables all auto save related settings to be per-workspace and per-language.

@bpasero
Copy link
Member

bpasero commented Dec 11, 2023

This can now be tested in our insiders build: You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-io File I/O keep Issues we should not close as out of scope on-testplan
Projects
None yet
Development

No branches or pull requests

5 participants