Skip to content

Commit 4bc1b8e

Browse files
authored
Calling _onEnablementOrModelChangedinside of the constructor (microsoft#196560)
calling on enablement or model changed in the constructor fo the decorations contribution
1 parent 6bb118a commit 4bc1b8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatDecorations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class InlineChatDecorationsContribution extends Disposable implements IEd
6060
}));
6161
this._register(this._inlineChatService.onDidChangeProviders(() => this._onEnablementOrModelChanged()));
6262
this._register(this._editor.onDidChangeModel(() => this._onEnablementOrModelChanged()));
63+
this._onEnablementOrModelChanged();
6364
}
6465

6566
private _onEnablementOrModelChanged(): void {

0 commit comments

Comments
 (0)