'Configure Tools' button not showing after start (#278761)

This commit is contained in:
Martin Aeschlimann
2025-11-21 13:43:35 +01:00
committed by GitHub
parent 6f5215adcb
commit 0d1433a1bb

View File

@@ -529,6 +529,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode())); this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode()));
this._register(autorun(r => { this._register(autorun(r => {
const mode = this._currentModeObservable.read(r); const mode = this._currentModeObservable.read(r);
this.chatModeKindKey.set(mode.kind);
const model = mode.model?.read(r); const model = mode.model?.read(r);
if (model) { if (model) {
this.switchModelByQualifiedName(model); this.switchModelByQualifiedName(model);
@@ -837,7 +838,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
} }
this._currentModeObservable.set(mode, undefined); this._currentModeObservable.set(mode, undefined);
this.chatModeKindKey.set(mode.kind);
this._onDidChangeCurrentChatMode.fire(); this._onDidChangeCurrentChatMode.fire();
// Sync to model (mode is now persisted in the model's input state) // Sync to model (mode is now persisted in the model's input state)