Skip to content

Commit 3406147

Browse files
authored
forward chatConfirmationContentPart location (microsoft#263344)
* forward chat widgets location * remove unused
1 parent a3be91a commit 3406147

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class ChatConfirmationContentPart extends Disposable implements IChatCont
5656
const widget = chatWidgetService.getWidgetBySessionId(element.sessionId);
5757
options.userSelectedModelId = widget?.input.currentLanguageModel;
5858
options.modeInfo = widget?.input.currentModeInfo;
59+
options.location = widget?.location;
5960
Object.assign(options, widget?.getModeRequestOptions());
6061

6162
if (await this.chatService.sendRequest(element.sessionId, prompt, options)) {

src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ export class ChatSessionsService extends Disposable implements IChatSessionsServ
347347
isDefault: false,
348348
isCore: false,
349349
isDynamic: true,
350-
isCodingAgent: true, // TODO: Influences chat UI (eg: locks chat to participant, hides UX elements, etc...)
351350
slashCommands: [],
352351
locations: [ChatAgentLocation.Panel],
353352
modes: [ChatModeKind.Agent, ChatModeKind.Ask], // TODO: These are no longer respected

src/vs/workbench/contrib/chat/common/chatAgents.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export interface IChatAgentData {
5757
isDynamic?: boolean;
5858
/** This agent is contributed from core and not from an extension */
5959
isCore?: boolean;
60-
isCodingAgent?: boolean;
6160
metadata: IChatAgentMetadata;
6261
slashCommands: IChatAgentCommand[];
6362
locations: ChatAgentLocation[];

0 commit comments

Comments
 (0)