Skip to content

Commit

Permalink
Cannot save file "deleted from disk" (fixes #23349)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Mar 29, 2017
1 parent 543f956 commit 5f2dd90
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,6 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
}

private doTouch(): TPromise<void> {
if (this.inOrphanMode) {
return TPromise.as(void 0); // do not create the file if this model is orphaned
}

return this.fileService.touchFile(this.resource).then(stat => {

// Updated resolved stat with updated stat since touching it might have changed mtime
Expand Down

0 comments on commit 5f2dd90

Please sign in to comment.