-
Notifications
You must be signed in to change notification settings - Fork 39.3k
Hot Exit: restoring file model issues #14132
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from posterverifiedVerification succeededVerification succeededworkbench-hot-exitPreservation of unsaved changes across restartsPreservation of unsaved changes across restarts
Milestone
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from posterverifiedVerification succeededVerification succeededworkbench-hot-exitPreservation of unsaved changes across restartsPreservation of unsaved changes across restarts
Feedback for b23229f
The
textFileEditorModelis now restoring the backup in itsloadmethod as suggested. However you are passing in theetagand the encoding of the file model into theresolveContentmethod of the backup. This is problematic for two reasons:etagis used to find out if the file has been modified since but you take the wrongetag(from the file, not the backup)