Skip to content

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

Closed

Description

@hashhar

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.

Activity

  1. bpasero commented on Nov 19, 2015

    @bpasero
    Contributor

    Ashhar Hasan (@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.

  2. hashhar commented on Nov 19, 2015

    @hashhar
    ContributorAuthor

    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?

  3. bpasero commented on Nov 19, 2015

    @bpasero
    Contributor

    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 :)

  4. bpasero commented on Nov 22, 2015

    @bpasero
    Contributor

    Dupe of #207

  5. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

verified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions