Skip to content

Commit

Permalink
Fix microsoft#205818. Fix race condition. (microsoft#205921)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix authored Feb 22, 2024
1 parent 5ca03d6 commit a0b90ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export class CodeCell extends Disposable {
this._register(Event.runAndSubscribe(viewCell.onDidChangeLayout, this.updateForLayout.bind(this)));

this._cellEditorOptions.setLineNumbers(this.viewCell.lineNumbers);
this._register(this._cellEditorOptions.onDidChange(() => this.updateCodeCellOptions(templateData)));
templateData.editor.updateOptions(this._cellEditorOptions.getUpdatedValue(this.viewCell.internalMetadata, this.viewCell.uri));
}

Expand Down Expand Up @@ -231,6 +230,8 @@ export class CodeCell extends Disposable {

focusEditorIfNeeded();
}

this._register(this._cellEditorOptions.onDidChange(() => this.updateCodeCellOptions(this.templateData)));
});
}

Expand Down

0 comments on commit a0b90ac

Please sign in to comment.