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

VSCode forgets the file that was open after restarting it when uninstalling an extension. #264

Closed
hashhar opened this issue Nov 19, 2015 · 6 comments · Fixed by javifelices/vscode#4 · May be fixed by chjkw/vscode#4
Closed
Assignees
Labels
verified Verification succeeded
Milestone

Comments

@hashhar
Copy link
Contributor

hashhar commented Nov 19, 2015

Clicking on the Restart Now button after uninstalling an extension loads an empty VSCode instance with an empty new file and forgets the file that I was working on.

Only happens with files, not if I have a folder open.

I couldn't seem to trace it.

@bpasero
Copy link
Member

bpasero commented Nov 19, 2015

@hashhar we currently do not persist any UI state when you dont open a folder. So you should be able to easily reproduce this by opening Code empty, open a file in it, close and reopen and it will be empty again.

@hashhar
Copy link
Contributor Author

hashhar commented Nov 19, 2015

I was able to reproduce it. And you are right, opening a workspace didn't face this issue. So, is there going to be a fix for this? Because I find this a normal scenario.

I would like to try to and work on it too (but don't expect my work to be merge worthy). So could you guide me about the related files?

@bpasero
Copy link
Member

bpasero commented Nov 19, 2015

If you open a folder in VS Code, we associate all UI state with the folder you opened (you could call this a "session"). When you open no folder, but just files, we do not store any UI state at all.

Basically in the no-workspace case we need to come up with meaningful identifiers to associate the UI state to. You can have more than one window opened, each without workspace and each with different set of files opened, so it is not as trivial as just picking one random identifier :)

@bpasero bpasero self-assigned this Nov 19, 2015
@bpasero
Copy link
Member

bpasero commented Nov 22, 2015

Dupe of #207

@bpasero bpasero closed this as completed Nov 22, 2015
@bpasero bpasero modified the milestone: Dec 2015 Nov 24, 2015
@bpasero bpasero added the verified Verification succeeded label Apr 29, 2016
@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
verified Verification succeeded
Projects
None yet
2 participants