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

Save on focus lost #353

Closed
b12k opened this issue Nov 20, 2015 · 7 comments
Closed

Save on focus lost #353

b12k opened this issue Nov 20, 2015 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues verified Verification succeeded
Milestone

Comments

@b12k
Copy link

b12k commented Nov 20, 2015

Greetings!

VS Code is an awesome editor. Thank you for that.
But is it possible to set-up "save on focus lost"?
When you are developing a web app using automated build-systems (gulp, webpack, etc...) its very annoying when is auto saves not completed code.
All editors auto save feature works with "focus" (Sublime, Atom, Webstorm...).

Thank you in advance!

@bpasero bpasero added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities labels Nov 20, 2015
@mikeal
Copy link

mikeal commented Nov 25, 2015

I also need this, there's a slight delay during auto-save that I keep tripping on :(

Should be enough to just trigger auto-save on focus loss.

@b12k
Copy link
Author

b12k commented Dec 7, 2015

Are there any updates regarding this feature?

@bpasero
Copy link
Member

bpasero commented Dec 7, 2015

Status: It is on the backlog and we do not plan to provide this feature for the next milestone (December).

@egamma egamma modified the milestone: Backlog Dec 10, 2015
@bpasero bpasero added the file-explorer Explorer widget issues label Dec 18, 2015
@bpasero bpasero mentioned this issue Dec 23, 2015
6 tasks
@bpasero
Copy link
Member

bpasero commented Dec 23, 2015

I am making progress on this feature request. I would like to avoid showing the dirty indication in the workbench at all cost because imho that is distracting. However this means, if you have configured auto save on focus change, the file will not be saved until one of these conditions without indication to the user:

  • you switch to another file or close the file
  • you quit the app
  • you move to another app so that code looses focus

Any feedback on this is appreciated.

@bpasero bpasero modified the milestones: Jan 2016, Backlog Dec 23, 2015
@bpasero bpasero self-assigned this Dec 23, 2015
@bpasero bpasero removed the help wanted Issues identified as good community contribution opportunities label Dec 23, 2015
@bpasero
Copy link
Member

bpasero commented Dec 24, 2015

This can now be configured with the new "files.autoSave": "onFocusChange" setting.

@egamma egamma mentioned this issue Jan 6, 2016
59 tasks
@egamma egamma mentioned this issue Feb 1, 2016
97 tasks
@bpasero bpasero added the verified Verification succeeded label Apr 29, 2016
@saada
Copy link

saada commented Jul 23, 2016

FYI, for those who stumble upon this thread, this confugration has changed to

"files.autoSave": "onFocusChange"

@Valeronlol
Copy link

"files.autoSave": "onWindowChange" should be better.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
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-explorer Explorer widget issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants
@mikeal @egamma @bpasero @saada @b12k @Valeronlol and others