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

Dirty indicator shows after some delay when restoring from backup #16584

Closed
jrieken opened this issue Dec 6, 2016 · 7 comments
Closed

Dirty indicator shows after some delay when restoring from backup #16584

jrieken opened this issue Dec 6, 2016 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug perf workbench-hot-exit Preservation of unsaved changes across restarts

Comments

@jrieken
Copy link
Member

jrieken commented Dec 6, 2016

re #16544

  • exit VS Code with an untitled (large) file
  • restart VS Code
  • 🐛 the untitled is retired and only after a large delay it is marked as dirty

dec-06-2016 10-44-47

@bpasero
Copy link
Member

bpasero commented Dec 6, 2016

@jrieken in that animation, was large.txt actually dirty? or are you saying the dirty decoration for Untitled-1 kicks in late?

@jrieken
Copy link
Member Author

jrieken commented Dec 6, 2016

Yes - Untitled-1 is late by ~1sec

@bpasero
Copy link
Member

bpasero commented Dec 6, 2016

I wonder if we could just store the dirty decoration as some view state and bring it back even before we look at the backups.

@Tyriar
Copy link
Member

Tyriar commented Dec 6, 2016

@bpasero at what point would the dirty indicator be invalidated if the backup no longer exists?

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug workbench-hot-exit Preservation of unsaved changes across restarts labels Dec 6, 2016
@bpasero
Copy link
Member

bpasero commented Dec 7, 2016

Yeah it is tricky, needs more thought. The code that currently revives a backup could also act when a tab thinks it has a backup when in fact it does not.

@bpasero bpasero changed the title dirty indicator comes late Dirty indicator shows after some delay when restoring from backup Dec 7, 2016
@bpasero bpasero added the perf label Dec 8, 2016
@bpasero
Copy link
Member

bpasero commented Dec 8, 2016

Also when you have many dirty files, it takes a long time until all backups are restored. This can easily be seen when doing a large find & replace operation without saving and then restarting.

@Tyriar
Copy link
Member

Tyriar commented Sep 12, 2018

The delay appears to be quite small for me now.

@Tyriar Tyriar closed this as completed Sep 12, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 27, 2018
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 perf workbench-hot-exit Preservation of unsaved changes across restarts
Projects
None yet
Development

No branches or pull requests

3 participants