Skip to content

Commit a38d9f9

Browse files
authored
chat - enable chat execute toolbar to send telemetry (#260550)
1 parent 5ce780c commit a38d9f9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatInputPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ interface IChatInputPartOptions {
120120
renderStyle?: 'compact';
121121
menus: {
122122
executeToolbar: MenuId;
123+
telemetrySource: string;
123124
inputSideToolbar?: MenuId;
124-
telemetrySource?: string;
125125
};
126126
editorOverflowWidgetsDomNode?: HTMLElement;
127127
renderWorkingSet?: boolean;

src/vs/workbench/contrib/chat/browser/chatQuick.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class QuickChat extends Disposable {
221221
ChatWidget,
222222
ChatAgentLocation.Panel,
223223
{ isQuickChat: true },
224-
{ autoScroll: true, renderInputOnTop: true, renderStyle: 'compact', menus: { inputSideToolbar: MenuId.ChatInputSide }, enableImplicitContext: true },
224+
{ autoScroll: true, renderInputOnTop: true, renderStyle: 'compact', menus: { inputSideToolbar: MenuId.ChatInputSide, telemetrySource: 'chatQuick' }, enableImplicitContext: true },
225225
{
226226
listForeground: quickInputForeground,
227227
listBackground: quickInputBackground,

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
13371337
renderStyle: options?.renderStyle === 'minimal' ? 'compact' : options?.renderStyle,
13381338
menus: {
13391339
executeToolbar: MenuId.ChatExecute,
1340+
telemetrySource: 'chatWidget',
13401341
...this.viewOptions.menus
13411342
},
13421343
editorOverflowWidgetsDomNode: this.viewOptions.editorOverflowWidgetsDomNode,

0 commit comments

Comments
 (0)