Skip to content

Commit

Permalink
perf - avoid one event on model creation (isInOrphanMode)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Oct 30, 2017
1 parent 63bfb44 commit 40b58af
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
this.toDispose.push(this._onDidContentChange);
this.toDispose.push(this._onDidStateChange);
this.preferredEncoding = preferredEncoding;
this.inOrphanMode = false;
this.dirty = false;
this.versionId = 0;
this.lastSaveAttemptTime = 0;
Expand Down

0 comments on commit 40b58af

Please sign in to comment.