-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Allow to set files.autoSave as language specific or folder setting #42170
Comments
Similar to #39051. Currently |
I was just going to open the same issue. In my case, I'm finding it hard to configure VSCode for both JavaScript and Go development. For Go, |
Can anyone provide guidance on how someone might fix this? Is there a commit or merge request that implements something similar that could be used as a starting point? |
I see where Then it looks like overrides would need to be provided when getting the configuration: https://github.com/Microsoft/vscode/blob/7e7961895c6c940365bfc4bbf2287a8b8c851195/src/vs/workbench/services/textfile/common/textFileService.ts#L96 Maybe this override would look like {overrideIdentifier: model.getLanguageIdentifier().language, resource} But I'm uncertain what Any suggestions from vscode contributors on whether this is the right direction? I imagine there are complications, but would be happy to get something started unless this is something that is not easily achievable with the way this configuration is handled. |
@tschaub I came to the same conclusion as you. Setting I was testing this with a workspace, so that might be yet another variable here. I really want to have control over what files are auto saved. I have a workspace that has 2 project folders, one for api and one for front end. I suspect that many others do as well, this would be a great enhancement to Code. Any guidance or insights you can offer us @bpasero? |
It can be usefull for some sort of virtual FileSystemProviders when writeFile operation is very expensive. |
Adding a reference to #82101 (allowing |
This problem also bothers me. Expect to be resolved. |
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! |
🙂 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! |
Missing Feature autosave just for current open directory file. |
vote vote vote! |
Yeah, I feel this feature could be really helpful to me! Autosaving for source code is nice, but when editing latex file with 'compile upon save', frequent save can keep on invoking the compiler and let error messages flood in... I deal with it by toggling autosave or set up a workspace config, neither of which is really neat. So I would really love it if we can config autosave for different file types! |
Bump. |
Such improvements may be waited for years. Probably some custom extension is needed. |
This feature would be great! |
Are there any extensions that do this? Or any hope of bringing this back in scope? Our use case: declaration files that are auto-generated by TypeScript aren't recognized by VSCode eslint plugin until they're saved, requiring a tedious workaround or turning on auto-save which can cause problems with watch scripts. |
@willium |
@wclr Can you add an OSI license to your autosave extension? (e.g. MIT, Apache-2.0, or MPL)? |
@thehale yes. |
why was this closed? |
It's also been superseded by #181942, which is currently in the Insiders build: #181942 (comment) |
(1 theme extensions excluded)
Steps to Reproduce:
"files.autoSave": "afterDelay"
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: