Skip to content

Hot Exit: restoring file model issues #14132

@bpasero

Description

@bpasero

Feedback for b23229f

The textFileEditorModel is now restoring the backup in its load method as suggested. However you are passing in the etag and the encoding of the file model into the resolveContent method of the backup. This is problematic for two reasons:

  • the etag is used to find out if the file has been modified since but you take the wrong etag (from the file, not the backup)
  • the encoding of the file model can be UTF-16 but I think all backups are stored as UTF-8?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterverifiedVerification succeededworkbench-hot-exitPreservation of unsaved changes across restarts

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions