Skip to content

Commit a1ea546

Browse files
authored
Revert "Update convo feature to properly follow comments (#1835)" (#1847)
This reverts commit 99ea9d6.
1 parent 1e652ab commit a1ea546

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/extension/conversation/vscode-node/conversationFeature.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class ConversationFeature implements IExtensionContribution {
8585
// Register Copilot token listener
8686
this.registerCopilotTokenListener();
8787

88+
this.activated = true;
8889
}
8990

9091
get enabled() {
@@ -303,13 +304,11 @@ export class ConversationFeature implements IExtensionContribution {
303304
}
304305

305306
private registerCopilotTokenListener() {
306-
const tokenListener = () => {
307+
this._disposables.add(this.authenticationService.onDidAuthenticationChange(() => {
307308
const chatEnabled = this.authenticationService.copilotToken?.isChatEnabled();
308309
this.logService.info(`copilot token chat_enabled: ${chatEnabled}, sku: ${this.authenticationService.copilotToken?.sku ?? ''}`);
309310
this.enabled = chatEnabled ?? false;
310-
};
311-
this._disposables.add(this.authenticationService.onDidAuthenticationChange(tokenListener));
312-
tokenListener();
311+
}));
313312
}
314313

315314
private registerTerminalQuickFixProviders() {

0 commit comments

Comments
 (0)