Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Feb 16, 2023
1 parent b4db415 commit d4b1011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/format/browser/formatActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class FormatOnType implements IEditorContribution {
@ILanguageFeaturesService private readonly _languageFeaturesService: ILanguageFeaturesService,
@IEditorWorkerService private readonly _workerService: IEditorWorkerService
) {

this._disposables.add(_languageFeaturesService.onTypeFormattingEditProvider.onDidChange(this._update, this));
this._disposables.add(_editor.onDidChangeModel(() => this._update()));
this._disposables.add(_editor.onDidChangeModelLanguage(() => this._update()));
Expand All @@ -49,6 +48,7 @@ class FormatOnType implements IEditorContribution {
this._update();
}
}));
this._update();
}

dispose(): void {
Expand Down

0 comments on commit d4b1011

Please sign in to comment.