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

AutoSave no longer works #21948

Closed
jwitoszkin opened this issue Mar 3, 2017 · 5 comments
Closed

AutoSave no longer works #21948

jwitoszkin opened this issue Mar 3, 2017 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@jwitoszkin
Copy link

  • VSCode Version: Code 1.10.1 (653f873, 2017-03-02T00:33:15.706Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
code-gnu-global austin 0.2.1
theme-desertex casualjim 0.0.5
githistory donjayamanne 0.1.5
python donjayamanne 0.5.6
Theme-tonic gerane 0.0.2
Theme-Zenburn gerane 0.0.3
Python-autopep8 himanoa 1.0.2
cpptools ms-vscode 0.10.0
java redhat 0.0.9
comment-snippets Tobiah 0.2.0
change-case wmaurer 1.0.0

Steps to Reproduce:

  1. Set "files.autoSave": "onWindowChange" in settings.json
  2. Make a change to a file and change the window.
  3. The changes are not saved.

The same happens when set to onFocusChange

@bpasero bpasero self-assigned this Mar 4, 2017
@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Mar 4, 2017
@bpasero bpasero added this to the March 2017 milestone Mar 4, 2017
@bpasero
Copy link
Member

bpasero commented Mar 4, 2017

@objectuser @jwitoszkin do you have editor.formatOnSave enabled? Does it reproduce with extensions disabled? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces.

@jwitoszkin can you reproduce this all the time?

@bpasero bpasero added the candidate Issue identified as probable candidate for fixing in the next release label Mar 4, 2017
@objectuser
Copy link

I have "editor.formatOnSave": false.

Unfortunately, this seems intermittent for me. I closed Code, ran code --disable-extensions and autosave works for both onWindowChange and onFocusChange. Then closed it out and just ran code and all is still well. (I'm verifying just by looking for the circle icon over the editor tab close icon. However, previously it's been easy to verify because my code didn't work, which never happens. 😜)

I experienced the same thing the last time I resolved the issue: after restarting Code, the problem went away for a while. Then the problem returned in the same session (i.e., without exiting Code). Next time it happened, I restarted and still had the problem, next time I didn't.

Summary: currently, I'm not able to reproduce the problem, though it happened multiple times yesterday.

@bpasero bpasero removed the candidate Issue identified as probable candidate for fixing in the next release label Mar 5, 2017
bpasero added a commit that referenced this issue Mar 6, 2017
@bpasero
Copy link
Member

bpasero commented Mar 6, 2017

@objectuser @jwitoszkin I pushed what I hope would fix this issue, can you give it a try from our insiders (nightly) builds and report back if you can still reproduce?

You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

@willkan
Copy link

willkan commented Mar 6, 2017

@bpasero I have try the insider version and autoSave is ok now. I think your code fix the autoSave bug which I met too. Hope this insider version to be pro soon, thanks for your time.

@bpasero
Copy link
Member

bpasero commented Mar 6, 2017

@willkan awesome, please let me know if this changes and you get it again even in insiders.

@bpasero bpasero closed this as completed Mar 6, 2017
@ramya-rao-a ramya-rao-a added the verified Verification succeeded label Mar 29, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants