Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Apr 26, 2024
1 parent 17ec8f3 commit f5d6ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ export class TextFileEditorModelManager extends Disposable implements ITextFileE
await Promises.settled(modelsToRestore.map(async modelToRestore => {

// From this moment on, only operate on the canonical resource
// to ensure we reduce the chance of opening the same resource
// with different resource forms (e.g. path casing on Windows)
// to fix a potential data loss issue:
// https://github.com/microsoft/vscode/issues/211374
const target = this.uriIdentityService.asCanonicalUri(modelToRestore.target);

// restore the model at the target. if we have previous dirty content, we pass it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ export class StoredFileWorkingCopyManager<M extends IStoredFileWorkingCopyModel>
await Promises.settled(workingCopiesToRestore.map(async workingCopyToRestore => {

// From this moment on, only operate on the canonical resource
// to ensure we reduce the chance of opening the same resource
// with different resource forms (e.g. path casing on Windows)
// to fix a potential data loss issue:
// https://github.com/microsoft/vscode/issues/211374
const target = this.uriIdentityService.asCanonicalUri(workingCopyToRestore.target);

// Restore the working copy at the target. if we have previous dirty content, we pass it
Expand Down

0 comments on commit f5d6ea1

Please sign in to comment.