@codingame/monaco-vscode-chat-service-override 23.1.0 → 23.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +41 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +48 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +101 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +52 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +65 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +8 -8
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js
CHANGED
|
@@ -239,7 +239,7 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
|
|
|
239
239
|
if (session.timing?.startTime) {
|
|
240
240
|
const fullDateTime = getLocalHistoryDateFormatter().format(session.timing.startTime);
|
|
241
241
|
templateData.elementDisposable.add(this.hoverService.setupDelayedHover(templateData.timestamp, () => ({
|
|
242
|
-
content: ( localize(
|
|
242
|
+
content: ( localize(5426, 'Last Activity: {0}', fullDateTime)),
|
|
243
243
|
style: HoverStyle.Pointer,
|
|
244
244
|
position: { hoverPosition: this.getHoverPosition() }
|
|
245
245
|
}), { groupId: 'chat.sessions' }));
|
|
@@ -300,7 +300,7 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
|
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
|
-
ariaLabel: ( localize(
|
|
303
|
+
ariaLabel: ( localize(5427, "Type session name. Press Enter to confirm or Escape to cancel.")),
|
|
304
304
|
inputBoxStyles: defaultInputBoxStyles,
|
|
305
305
|
}));
|
|
306
306
|
inputBox.value = session.label;
|
|
@@ -9,7 +9,7 @@ import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
9
9
|
import { truncate } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
10
10
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
11
11
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
|
-
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-
|
|
12
|
+
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-2c64d2c2-fdf7-5675-a2fe-f6f65fbdedbf-common/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem';
|
|
13
13
|
import { getActionBarActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
14
14
|
import { MenuItemAction, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
15
15
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
@@ -50,7 +50,7 @@ class SessionsIdentityProvider {
|
|
|
50
50
|
}
|
|
51
51
|
class SessionsAccessibilityProvider {
|
|
52
52
|
getWidgetAriaLabel() {
|
|
53
|
-
return localize(
|
|
53
|
+
return localize(5428, 'Chat Sessions');
|
|
54
54
|
}
|
|
55
55
|
getAriaLabel(element) {
|
|
56
56
|
return element.label;
|
|
@@ -129,7 +129,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
129
129
|
}
|
|
130
130
|
const dropdownAction = toAction({
|
|
131
131
|
id: 'selectNewChatSessionOption',
|
|
132
|
-
label: ( localize(
|
|
132
|
+
label: ( localize(5429, 'More...')),
|
|
133
133
|
class: 'codicon-chevron-down',
|
|
134
134
|
run: () => { }
|
|
135
135
|
});
|
|
@@ -166,7 +166,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
166
166
|
try {
|
|
167
167
|
await this.progressService.withProgress({
|
|
168
168
|
location: this.id,
|
|
169
|
-
title: ( localize(
|
|
169
|
+
title: ( localize(5430, 'Refreshing chat sessions...')),
|
|
170
170
|
}, async () => {
|
|
171
171
|
await this.tree.updateChildren(this.provider);
|
|
172
172
|
});
|
|
@@ -183,7 +183,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
183
183
|
try {
|
|
184
184
|
await this.progressService.withProgress({
|
|
185
185
|
location: this.id,
|
|
186
|
-
title: ( localize(
|
|
186
|
+
title: ( localize(5431, 'Loading chat sessions...')),
|
|
187
187
|
}, async () => {
|
|
188
188
|
await this.tree.setInput(this.provider);
|
|
189
189
|
});
|
|
@@ -236,7 +236,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
236
236
|
if (elements.length === 1) {
|
|
237
237
|
return elements[0].label;
|
|
238
238
|
}
|
|
239
|
-
return localize(
|
|
239
|
+
return localize(5432, "{0} agent sessions", elements.length);
|
|
240
240
|
},
|
|
241
241
|
drop: () => { },
|
|
242
242
|
onDragOver: () => false,
|
|
@@ -297,13 +297,13 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
297
297
|
const items = [
|
|
298
298
|
{
|
|
299
299
|
id: 'install-extensions',
|
|
300
|
-
label: ( localize(
|
|
300
|
+
label: ( localize(5433, "Install Chat Extensions")),
|
|
301
301
|
icon: Codicon.extensions,
|
|
302
302
|
commandId: 'chat.sessions.gettingStarted'
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
305
|
id: 'learn-more',
|
|
306
|
-
label: ( localize(
|
|
306
|
+
label: ( localize(5434, "Learn More About GitHub Copilot coding agent")),
|
|
307
307
|
commandId: 'vscode.open',
|
|
308
308
|
icon: Codicon.book,
|
|
309
309
|
args: [( URI.parse('https://aka.ms/coding-agent-docs'))]
|
|
@@ -38,39 +38,39 @@ import { NEW_CHAT_SESSION_ACTION_ID } from '@codingame/monaco-vscode-2339d6ac-d6
|
|
|
38
38
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
39
39
|
extensionPoint: 'chatSessions',
|
|
40
40
|
jsonSchema: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(5386, 'Contributes chat session integrations to the chat widget.')),
|
|
42
42
|
type: 'array',
|
|
43
43
|
items: {
|
|
44
44
|
type: 'object',
|
|
45
45
|
additionalProperties: false,
|
|
46
46
|
properties: {
|
|
47
47
|
type: {
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(5387, 'Unique identifier for the type of chat session.')),
|
|
49
49
|
type: 'string',
|
|
50
50
|
},
|
|
51
51
|
name: {
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
5388,
|
|
54
54
|
'Name of the dynamically registered chat participant (eg: @agent). Must not contain whitespace.'
|
|
55
55
|
)),
|
|
56
56
|
type: 'string',
|
|
57
57
|
pattern: '^[\\w-]+$'
|
|
58
58
|
},
|
|
59
59
|
displayName: {
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(5389, 'A longer name for this item which is used for display in menus.')),
|
|
61
61
|
type: 'string',
|
|
62
62
|
},
|
|
63
63
|
description: {
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(5390, 'Description of the chat session for use in menus and tooltips.')),
|
|
65
65
|
type: 'string'
|
|
66
66
|
},
|
|
67
67
|
when: {
|
|
68
|
-
description: ( localize(
|
|
68
|
+
description: ( localize(5391, 'Condition which must be true to show this item.')),
|
|
69
69
|
type: 'string'
|
|
70
70
|
},
|
|
71
71
|
icon: {
|
|
72
72
|
description: ( localize(
|
|
73
|
-
|
|
73
|
+
5392,
|
|
74
74
|
'Icon identifier (codicon ID) for the chat session editor tab. For example, "$(github)" or "$(cloud)".'
|
|
75
75
|
)),
|
|
76
76
|
anyOf: [{
|
|
@@ -80,22 +80,22 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
80
80
|
type: 'object',
|
|
81
81
|
properties: {
|
|
82
82
|
light: {
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(5393, 'Icon path when a light theme is used')),
|
|
84
84
|
type: 'string'
|
|
85
85
|
},
|
|
86
86
|
dark: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(5394, 'Icon path when a dark theme is used')),
|
|
88
88
|
type: 'string'
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}]
|
|
92
92
|
},
|
|
93
93
|
order: {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(5395, 'Order in which this item should be displayed.')),
|
|
95
95
|
type: 'integer'
|
|
96
96
|
},
|
|
97
97
|
alternativeIds: {
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(5396, 'Alternative identifiers for backward compatibility.')),
|
|
99
99
|
type: 'array',
|
|
100
100
|
items: {
|
|
101
101
|
type: 'string'
|
|
@@ -103,87 +103,87 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
103
103
|
},
|
|
104
104
|
welcomeTitle: {
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
5397,
|
|
107
107
|
'Title text to display in the chat welcome view for this session type.'
|
|
108
108
|
)),
|
|
109
109
|
type: 'string'
|
|
110
110
|
},
|
|
111
111
|
welcomeMessage: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
5398,
|
|
114
114
|
'Message text (supports markdown) to display in the chat welcome view for this session type.'
|
|
115
115
|
)),
|
|
116
116
|
type: 'string'
|
|
117
117
|
},
|
|
118
118
|
welcomeTips: {
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
5399,
|
|
121
121
|
'Tips text (supports markdown and theme icons) to display in the chat welcome view for this session type.'
|
|
122
122
|
)),
|
|
123
123
|
type: 'string'
|
|
124
124
|
},
|
|
125
125
|
inputPlaceholder: {
|
|
126
126
|
description: ( localize(
|
|
127
|
-
|
|
127
|
+
5400,
|
|
128
128
|
'Placeholder text to display in the chat input box for this session type.'
|
|
129
129
|
)),
|
|
130
130
|
type: 'string'
|
|
131
131
|
},
|
|
132
132
|
capabilities: {
|
|
133
|
-
description: ( localize(
|
|
133
|
+
description: ( localize(5401, 'Optional capabilities for this chat session.')),
|
|
134
134
|
type: 'object',
|
|
135
135
|
additionalProperties: false,
|
|
136
136
|
properties: {
|
|
137
137
|
supportsFileAttachments: {
|
|
138
138
|
description: ( localize(
|
|
139
|
-
|
|
139
|
+
5402,
|
|
140
140
|
'Whether this chat session supports attaching files or file references.'
|
|
141
141
|
)),
|
|
142
142
|
type: 'boolean'
|
|
143
143
|
},
|
|
144
144
|
supportsToolAttachments: {
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
5403,
|
|
147
147
|
'Whether this chat session supports attaching tools or tool references.'
|
|
148
148
|
)),
|
|
149
149
|
type: 'boolean'
|
|
150
150
|
},
|
|
151
151
|
supportsMCPAttachments: {
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(5404, 'Whether this chat session supports attaching MCP resources.')),
|
|
153
153
|
type: 'boolean'
|
|
154
154
|
},
|
|
155
155
|
supportsImageAttachments: {
|
|
156
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(5405, 'Whether this chat session supports attaching images.')),
|
|
157
157
|
type: 'boolean'
|
|
158
158
|
},
|
|
159
159
|
supportsSearchResultAttachments: {
|
|
160
|
-
description: ( localize(
|
|
160
|
+
description: ( localize(5406, 'Whether this chat session supports attaching search results.')),
|
|
161
161
|
type: 'boolean'
|
|
162
162
|
},
|
|
163
163
|
supportsInstructionAttachments: {
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(5407, 'Whether this chat session supports attaching instructions.')),
|
|
165
165
|
type: 'boolean'
|
|
166
166
|
},
|
|
167
167
|
supportsSourceControlAttachments: {
|
|
168
168
|
description: ( localize(
|
|
169
|
-
|
|
169
|
+
5408,
|
|
170
170
|
'Whether this chat session supports attaching source control changes.'
|
|
171
171
|
)),
|
|
172
172
|
type: 'boolean'
|
|
173
173
|
},
|
|
174
174
|
supportsProblemAttachments: {
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(5409, 'Whether this chat session supports attaching problems.')),
|
|
176
176
|
type: 'boolean'
|
|
177
177
|
},
|
|
178
178
|
supportsSymbolAttachments: {
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(5410, 'Whether this chat session supports attaching symbols.')),
|
|
180
180
|
type: 'boolean'
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
commands: {
|
|
185
185
|
markdownDescription: ( localize(
|
|
186
|
-
|
|
186
|
+
5411,
|
|
187
187
|
"Commands available for this chat session, which the user can invoke with a `/`."
|
|
188
188
|
)),
|
|
189
189
|
type: 'array',
|
|
@@ -195,17 +195,17 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
195
195
|
properties: {
|
|
196
196
|
name: {
|
|
197
197
|
description: ( localize(
|
|
198
|
-
|
|
198
|
+
5412,
|
|
199
199
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
200
200
|
)),
|
|
201
201
|
type: 'string'
|
|
202
202
|
},
|
|
203
203
|
description: {
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(5413, "A description of this command.")),
|
|
205
205
|
type: 'string'
|
|
206
206
|
},
|
|
207
207
|
when: {
|
|
208
|
-
description: ( localize(
|
|
208
|
+
description: ( localize(5414, "A condition which must be true to enable this command.")),
|
|
209
209
|
type: 'string'
|
|
210
210
|
},
|
|
211
211
|
}
|
|
@@ -455,7 +455,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
455
455
|
if (menuActions.length) {
|
|
456
456
|
return MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
457
457
|
group: 'navigation',
|
|
458
|
-
title: ( localize(
|
|
458
|
+
title: ( localize(5415, "Create chat session")),
|
|
459
459
|
icon: Codicon.plus,
|
|
460
460
|
order: 1,
|
|
461
461
|
when: whenClause,
|
|
@@ -467,7 +467,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
467
467
|
return MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
468
468
|
command: {
|
|
469
469
|
id: `${NEW_CHAT_SESSION_ACTION_ID}.${contribution.type}`,
|
|
470
|
-
title: ( localize(
|
|
470
|
+
title: ( localize(5416, "New {0}", contribution.displayName)),
|
|
471
471
|
icon: Codicon.plus,
|
|
472
472
|
source: {
|
|
473
473
|
id: extensionDescription.identifier.value,
|
|
@@ -485,7 +485,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
485
485
|
constructor() {
|
|
486
486
|
super({
|
|
487
487
|
id: `workbench.action.chat.openNewSessionEditor.${contribution.type}`,
|
|
488
|
-
title: ( localize2(
|
|
488
|
+
title: ( localize2(5416, "New {0}", contribution.displayName)),
|
|
489
489
|
category: CHAT_CATEGORY,
|
|
490
490
|
icon: Codicon.plus,
|
|
491
491
|
f1: true,
|
|
@@ -501,7 +501,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
501
501
|
override: ChatEditorInput.EditorID,
|
|
502
502
|
pinned: true,
|
|
503
503
|
title: {
|
|
504
|
-
fallback: ( localize(
|
|
504
|
+
fallback: ( localize(5417, "{0}", contribution.displayName)),
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
const resource = ( URI.from({
|