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

Code Folding won't be remembered after latest update. #26157

Closed
Shaker-Hamdi opened this issue May 7, 2017 · 11 comments
Closed

Code Folding won't be remembered after latest update. #26157

Shaker-Hamdi opened this issue May 7, 2017 · 11 comments
Assignees
Labels
editor-folding Editor code folding issues important Issue identified as high-priority verified Verification succeeded

Comments

@Shaker-Hamdi
Copy link

Code Folding won't be remembered after latest update.

  • VSCode Version: 1.12.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Fold some Code in any file.
  2. Close that file.
  3. Re-open the file and the code folding is gone.

That was by far the nicest feature in VSCode, now it's gone after I updated the app today.

@egamma egamma added editor-folding Editor code folding issues editor labels May 7, 2017
@aeschli
Copy link
Contributor

aeschli commented May 8, 2017

I can reproduce:

  • Open an editor on a file, fold some regions
  • close the editor by clicking the x on the editor tab
  • open the same editor again. Folding no longer applied

@bpasero @alexandrudima
saveViewState seems to be broken: Neither the cursor position nor folding regions are stored.
CodeEditorWidget.saveViewState does no work as this.cursor is null.
Any idea what changed?

@aeschli aeschli assigned bpasero and unassigned aeschli May 8, 2017
@bpasero bpasero added important Issue identified as high-priority candidate Issue identified as probable candidate for fixing in the next release labels May 9, 2017
@bpasero bpasero added this to the May 2017 milestone May 9, 2017
@bpasero
Copy link
Member

bpasero commented May 9, 2017

This is a regression from disposing the editor when it is being closed and thus the view state is lost. Up for debate if this should be included.

@Shaker-Hamdi
Copy link
Author

@bpasero Remembering code folding after file and/or editor closes was for me the deciding factor for using VSCode, losing this feature is huge for me and I guess for many others.

@Shaker-Hamdi
Copy link
Author

Shaker-Hamdi commented May 9, 2017

@bpasero Is there's a way to roll back to the previous version? (as a user I mean)

@bpasero
Copy link
Member

bpasero commented May 9, 2017

@Shaker-Hamdi yes, here is 1.11 for Windows as standalone zip: https://az764295.vo.msecnd.net/stable/6eaebe3b9c70406d67c97779468c324a7a95db0e/VSCode-win32-1.11.2.zip

@bpasero
Copy link
Member

bpasero commented May 9, 2017

We are working on a fix for our next recovery release.

@bpasero
Copy link
Member

bpasero commented May 10, 2017

Pushed to release/1.12

@bpasero bpasero closed this as completed May 10, 2017
@bpasero
Copy link
Member

bpasero commented May 10, 2017

@isidorn can you please verify once stable builds are through?

@isidorn
Copy link
Contributor

isidorn commented May 10, 2017

@bpasero yes, sure

@bpasero
Copy link
Member

bpasero commented May 10, 2017

@isidorn
Copy link
Contributor

isidorn commented May 10, 2017

@bpasero thanks. Verified that it works fine -> adding verified tag

@isidorn isidorn added the verified Verification succeeded label May 10, 2017
@egamma egamma removed the candidate Issue identified as probable candidate for fixing in the next release label May 12, 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
editor-folding Editor code folding issues important Issue identified as high-priority verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants