@codingame/monaco-vscode-chat-service-override 20.0.1 → 20.1.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/package.json +36 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +11 -11
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +47 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +12 -12
- 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/saveToPromptAction.js +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkDiagnosticsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/headerBase.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/applyTo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/string.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/tools.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/promptHeader.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/topError.js +9 -9
- 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 +24 -24
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalTool.js +4 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/createAndRunTaskTool.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +1 -1
|
@@ -30,7 +30,7 @@ import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane } from './chatViewPane.js';
|
|
|
30
30
|
|
|
31
31
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
32
32
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
33
|
-
title: ( localize2(
|
|
33
|
+
title: ( localize2(5039, "Chat")),
|
|
34
34
|
icon: Codicon.commentDiscussion,
|
|
35
35
|
ctorDescriptor: ( new SyncDescriptor(
|
|
36
36
|
ViewPaneContainer,
|
|
@@ -45,13 +45,13 @@ const chatViewDescriptor = [{
|
|
|
45
45
|
containerIcon: chatViewContainer.icon,
|
|
46
46
|
containerTitle: chatViewContainer.title.value,
|
|
47
47
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
48
|
-
name: ( localize2(
|
|
48
|
+
name: ( localize2(5039, "Chat")),
|
|
49
49
|
canToggleVisibility: false,
|
|
50
50
|
canMoveView: true,
|
|
51
51
|
openCommandActionDescriptor: {
|
|
52
52
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
53
53
|
title: chatViewContainer.title,
|
|
54
|
-
mnemonicTitle: ( localize(
|
|
54
|
+
mnemonicTitle: ( localize(5040, "&&Chat")),
|
|
55
55
|
keybindings: {
|
|
56
56
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
57
57
|
mac: {
|
|
@@ -69,7 +69,7 @@ const chatViewDescriptor = [{
|
|
|
69
69
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
70
70
|
extensionPoint: 'chatParticipants',
|
|
71
71
|
jsonSchema: {
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(5041, 'Contributes a chat participant')),
|
|
73
73
|
type: 'array',
|
|
74
74
|
items: {
|
|
75
75
|
additionalProperties: false,
|
|
@@ -78,12 +78,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
78
78
|
required: ['name', 'id'],
|
|
79
79
|
properties: {
|
|
80
80
|
id: {
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(5042, "A unique id for this chat participant.")),
|
|
82
82
|
type: 'string'
|
|
83
83
|
},
|
|
84
84
|
name: {
|
|
85
85
|
description: ( localize(
|
|
86
|
-
|
|
86
|
+
5043,
|
|
87
87
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
88
88
|
)),
|
|
89
89
|
type: 'string',
|
|
@@ -91,37 +91,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
91
91
|
},
|
|
92
92
|
fullName: {
|
|
93
93
|
markdownDescription: ( localize(
|
|
94
|
-
|
|
94
|
+
5044,
|
|
95
95
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
96
96
|
'`name`'
|
|
97
97
|
)),
|
|
98
98
|
type: 'string'
|
|
99
99
|
},
|
|
100
100
|
description: {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(5045, "A description of this chat participant, shown in the UI.")),
|
|
102
102
|
type: 'string'
|
|
103
103
|
},
|
|
104
104
|
isSticky: {
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
5046,
|
|
107
107
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
108
108
|
)),
|
|
109
109
|
type: 'boolean'
|
|
110
110
|
},
|
|
111
111
|
sampleRequest: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
5047,
|
|
114
114
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
115
115
|
)),
|
|
116
116
|
type: 'string'
|
|
117
117
|
},
|
|
118
118
|
when: {
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(5048, "A condition which must be true to enable this participant.")),
|
|
120
120
|
type: 'string'
|
|
121
121
|
},
|
|
122
122
|
disambiguation: {
|
|
123
123
|
description: ( localize(
|
|
124
|
-
|
|
124
|
+
5049,
|
|
125
125
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
126
126
|
)),
|
|
127
127
|
type: 'array',
|
|
@@ -133,21 +133,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
133
133
|
properties: {
|
|
134
134
|
category: {
|
|
135
135
|
markdownDescription: ( localize(
|
|
136
|
-
|
|
136
|
+
5050,
|
|
137
137
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
138
138
|
)),
|
|
139
139
|
type: 'string'
|
|
140
140
|
},
|
|
141
141
|
description: {
|
|
142
142
|
description: ( localize(
|
|
143
|
-
|
|
143
|
+
5051,
|
|
144
144
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
145
145
|
)),
|
|
146
146
|
type: 'string'
|
|
147
147
|
},
|
|
148
148
|
examples: {
|
|
149
149
|
description: ( localize(
|
|
150
|
-
|
|
150
|
+
5052,
|
|
151
151
|
"A list of representative example questions that are suitable for this chat participant."
|
|
152
152
|
)),
|
|
153
153
|
type: 'array'
|
|
@@ -157,7 +157,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
157
157
|
},
|
|
158
158
|
commands: {
|
|
159
159
|
markdownDescription: ( localize(
|
|
160
|
-
|
|
160
|
+
5053,
|
|
161
161
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
162
162
|
)),
|
|
163
163
|
type: 'array',
|
|
@@ -169,36 +169,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
169
169
|
properties: {
|
|
170
170
|
name: {
|
|
171
171
|
description: ( localize(
|
|
172
|
-
|
|
172
|
+
5054,
|
|
173
173
|
"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."
|
|
174
174
|
)),
|
|
175
175
|
type: 'string'
|
|
176
176
|
},
|
|
177
177
|
description: {
|
|
178
|
-
description: ( localize(
|
|
178
|
+
description: ( localize(5055, "A description of this command.")),
|
|
179
179
|
type: 'string'
|
|
180
180
|
},
|
|
181
181
|
when: {
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(5056, "A condition which must be true to enable this command.")),
|
|
183
183
|
type: 'string'
|
|
184
184
|
},
|
|
185
185
|
sampleRequest: {
|
|
186
186
|
description: ( localize(
|
|
187
|
-
|
|
187
|
+
5057,
|
|
188
188
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
189
189
|
)),
|
|
190
190
|
type: 'string'
|
|
191
191
|
},
|
|
192
192
|
isSticky: {
|
|
193
193
|
description: ( localize(
|
|
194
|
-
|
|
194
|
+
5046,
|
|
195
195
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
196
196
|
)),
|
|
197
197
|
type: 'boolean'
|
|
198
198
|
},
|
|
199
199
|
disambiguation: {
|
|
200
200
|
description: ( localize(
|
|
201
|
-
|
|
201
|
+
5058,
|
|
202
202
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
203
203
|
)),
|
|
204
204
|
type: 'array',
|
|
@@ -210,21 +210,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
210
210
|
properties: {
|
|
211
211
|
category: {
|
|
212
212
|
markdownDescription: ( localize(
|
|
213
|
-
|
|
213
|
+
5059,
|
|
214
214
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
215
215
|
)),
|
|
216
216
|
type: 'string'
|
|
217
217
|
},
|
|
218
218
|
description: {
|
|
219
219
|
description: ( localize(
|
|
220
|
-
|
|
220
|
+
5060,
|
|
221
221
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
222
222
|
)),
|
|
223
223
|
type: 'string'
|
|
224
224
|
},
|
|
225
225
|
examples: {
|
|
226
226
|
description: ( localize(
|
|
227
|
-
|
|
227
|
+
5061,
|
|
228
228
|
"A list of representative example questions that are suitable for this chat command."
|
|
229
229
|
)),
|
|
230
230
|
type: 'array'
|
|
@@ -354,9 +354,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
356
|
this.registeredWelcomeView = true;
|
|
357
|
-
const showExtensionLabel = ( localize(
|
|
357
|
+
const showExtensionLabel = ( localize(5062, "Show Extension"));
|
|
358
358
|
const mainMessage = ( localize(
|
|
359
|
-
|
|
359
|
+
5063,
|
|
360
360
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
361
361
|
this.productService.nameLong
|
|
362
362
|
));
|
|
@@ -388,10 +388,10 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
388
388
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
389
389
|
}
|
|
390
390
|
const headers = [
|
|
391
|
-
( localize(
|
|
392
|
-
( localize(
|
|
393
|
-
( localize(
|
|
394
|
-
( localize(
|
|
391
|
+
( localize(5064, "Name")),
|
|
392
|
+
( localize(5065, "Full Name")),
|
|
393
|
+
( localize(5066, "Description")),
|
|
394
|
+
( localize(5067, "Commands")),
|
|
395
395
|
];
|
|
396
396
|
const rows = ( nonDefaultContributions.map(d => {
|
|
397
397
|
return [
|
|
@@ -412,7 +412,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
412
412
|
}
|
|
413
413
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
414
414
|
id: 'chatParticipants',
|
|
415
|
-
label: ( localize(
|
|
415
|
+
label: ( localize(5068, "Chat Participants")),
|
|
416
416
|
access: {
|
|
417
417
|
canToggle: false
|
|
418
418
|
},
|
|
@@ -72,7 +72,7 @@ let PasteImageProvider = class PasteImageProvider {
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
const attachedVariables = widget.attachmentModel.attachments;
|
|
75
|
-
const displayName = ( localize(
|
|
75
|
+
const displayName = ( localize(5069, 'Pasted Image'));
|
|
76
76
|
let tempDisplayName = displayName;
|
|
77
77
|
for (let appendValue = 2; ( attachedVariables.some(attachment => attachment.name === tempDisplayName)); appendValue++) {
|
|
78
78
|
tempDisplayName = `${displayName} ${appendValue}`;
|
|
@@ -94,7 +94,7 @@ let PasteImageProvider = class PasteImageProvider {
|
|
|
94
94
|
if (( currentContextIds.has(scaledImageContext.id))) {
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const edit = createCustomPasteEdit(model, [scaledImageContext], mimeType, this.kind, ( localize(
|
|
97
|
+
const edit = createCustomPasteEdit(model, [scaledImageContext], mimeType, this.kind, ( localize(5070, 'Pasted Image Attachment')), this.chatWidgetService);
|
|
98
98
|
return createEditSession(edit);
|
|
99
99
|
}
|
|
100
100
|
};
|
|
@@ -203,7 +203,7 @@ let CopyAttachmentsProvider = class CopyAttachmentsProvider {
|
|
|
203
203
|
}
|
|
204
204
|
const edit = {
|
|
205
205
|
insertText: textdata,
|
|
206
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(5071, 'Insert Prompt & Attachments')),
|
|
207
207
|
kind: this.kind,
|
|
208
208
|
handledMimeType: CopyAttachmentsProvider_1.ATTACHMENT_MIME_TYPE,
|
|
209
209
|
additionalEdit: {
|
|
@@ -277,7 +277,7 @@ class PasteTextProvider {
|
|
|
277
277
|
if (( currentContextIds.has(copiedContext.id))) {
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
const edit = createCustomPasteEdit(model, [copiedContext], Mimes.text, this.kind, ( localize(
|
|
280
|
+
const edit = createCustomPasteEdit(model, [copiedContext], Mimes.text, this.kind, ( localize(5072, 'Pasted Code Attachment')), this.chatWidgetService);
|
|
281
281
|
edit.yieldTo = [{ kind: HierarchicalKind.Empty.append('text', 'plain') }];
|
|
282
282
|
return createEditSession(edit);
|
|
283
283
|
}
|
|
@@ -287,7 +287,7 @@ function getCopiedContext(code, file, language, range) {
|
|
|
287
287
|
const start = range.startLineNumber;
|
|
288
288
|
const end = range.endLineNumber;
|
|
289
289
|
const resultText = `Copied Selection of Code: \n\n\n From the file: ${fileName} From lines ${start} to ${end} \n \`\`\`${code}\`\`\``;
|
|
290
|
-
const pastedLines = start === end ? ( localize(
|
|
290
|
+
const pastedLines = start === end ? ( localize(5073, '1 line')) : ( localize(5074, '{0} lines', end + 1 - start));
|
|
291
291
|
return {
|
|
292
292
|
kind: 'paste',
|
|
293
293
|
value: resultText,
|
|
@@ -311,7 +311,7 @@ function getCopiedContext(code, file, language, range) {
|
|
|
311
311
|
function createCustomPasteEdit(model, context, handledMimeType, kind, title, chatWidgetService) {
|
|
312
312
|
const label = context.length === 1
|
|
313
313
|
? context[0].name
|
|
314
|
-
: ( localize(
|
|
314
|
+
: ( localize(5075, '{0} and {1} more', context[0].name, context.length - 1));
|
|
315
315
|
const customEdit = {
|
|
316
316
|
resource: model.uri,
|
|
317
317
|
variable: context,
|
|
@@ -27,29 +27,29 @@ const CODING_AGENT_DOCS = 'https://code.visualstudio.com/docs/copilot/copilot-co
|
|
|
27
27
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
28
28
|
extensionPoint: 'chatSessions',
|
|
29
29
|
jsonSchema: {
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(5076, 'Contributes chat session integrations to the chat widget.')),
|
|
31
31
|
type: 'array',
|
|
32
32
|
items: {
|
|
33
33
|
type: 'object',
|
|
34
34
|
properties: {
|
|
35
35
|
type: {
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(5077, 'Unique identifier for the type of chat session.')),
|
|
37
37
|
type: 'string',
|
|
38
38
|
},
|
|
39
39
|
name: {
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(5078, 'Name shown in the chat widget. (eg: @agent)')),
|
|
41
41
|
type: 'string',
|
|
42
42
|
},
|
|
43
43
|
displayName: {
|
|
44
|
-
description: ( localize(
|
|
44
|
+
description: ( localize(5079, 'A longer name for this item which is used for display in menus.')),
|
|
45
45
|
type: 'string',
|
|
46
46
|
},
|
|
47
47
|
description: {
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(5080, 'Description of the chat session for use in menus and tooltips.')),
|
|
49
49
|
type: 'string'
|
|
50
50
|
},
|
|
51
51
|
when: {
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(5081, 'Condition which must be true to show this item.')),
|
|
53
53
|
type: 'string'
|
|
54
54
|
}
|
|
55
55
|
},
|
|
@@ -385,7 +385,7 @@ let CodingAgentChatImplementation = class CodingAgentChatImplementation extends
|
|
|
385
385
|
}
|
|
386
386
|
else {
|
|
387
387
|
const content = ( new MarkdownString(( localize(
|
|
388
|
-
|
|
388
|
+
5082,
|
|
389
389
|
"Use `#copilotCodingAgent` to begin a new [coding agent session]({0}).",
|
|
390
390
|
CODING_AGENT_DOCS
|
|
391
391
|
))));
|
|
@@ -75,7 +75,7 @@ let ChatSessionsView = class ChatSessionsView extends Disposable {
|
|
|
75
75
|
}
|
|
76
76
|
( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
77
77
|
id: VIEWLET_ID,
|
|
78
|
-
title: ( localize2(
|
|
78
|
+
title: ( localize2(5083, "Chat Sessions")),
|
|
79
79
|
ctorDescriptor: ( new SyncDescriptor(ChatSessionsViewPaneContainer)),
|
|
80
80
|
hideIfEmpty: false,
|
|
81
81
|
icon: registerIcon('chat-sessions-icon', Codicon.commentDiscussion, 'Icon for Chat Sessions View'),
|
|
@@ -228,8 +228,8 @@ let LocalChatSessionsProvider = class LocalChatSessionsProvider extends Disposab
|
|
|
228
228
|
if (chatWidget) {
|
|
229
229
|
sessions.push({
|
|
230
230
|
id: LocalChatSessionsProvider_1.CHAT_WIDGET_VIEW_ID,
|
|
231
|
-
label: chatWidget.viewModel?.model.title || ( localize2(
|
|
232
|
-
description: ( localize(
|
|
231
|
+
label: chatWidget.viewModel?.model.title || ( localize2(5084, "Chat")).value,
|
|
232
|
+
description: ( localize(5085, "Chat View")),
|
|
233
233
|
iconPath: Codicon.chatSparkle,
|
|
234
234
|
widget: chatWidget,
|
|
235
235
|
sessionType: 'widget'
|
|
@@ -277,7 +277,7 @@ let ChatSessionsViewPaneContainer = class ChatSessionsViewPaneContainer extends
|
|
|
277
277
|
}));
|
|
278
278
|
}
|
|
279
279
|
getTitle() {
|
|
280
|
-
const title = ( localize(
|
|
280
|
+
const title = ( localize(5086, "Chat Sessions"));
|
|
281
281
|
return title;
|
|
282
282
|
}
|
|
283
283
|
getAllChatSessionProviders() {
|
|
@@ -565,7 +565,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
565
565
|
if (!providerName) {
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
|
-
const messageText = ( localize(
|
|
568
|
+
const messageText = ( localize(5087, "No sessions found from {0}", providerName));
|
|
569
569
|
clearNode(this.messageElement);
|
|
570
570
|
const messageContainer = append(this.messageElement, $('.no-sessions-message'));
|
|
571
571
|
append(messageContainer, $('.codicon.codicon-info'));
|
|
@@ -608,7 +608,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
608
608
|
try {
|
|
609
609
|
await this.progressService.withProgress({
|
|
610
610
|
location: this.id,
|
|
611
|
-
title: ( localize(
|
|
611
|
+
title: ( localize(5088, 'Refreshing chat sessions...')),
|
|
612
612
|
}, async () => {
|
|
613
613
|
await this.tree.updateChildren(this.provider);
|
|
614
614
|
});
|
|
@@ -625,7 +625,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
625
625
|
try {
|
|
626
626
|
await this.progressService.withProgress({
|
|
627
627
|
location: this.id,
|
|
628
|
-
title: ( localize(
|
|
628
|
+
title: ( localize(5089, 'Loading chat sessions...')),
|
|
629
629
|
}, async () => {
|
|
630
630
|
await this.tree.setInput(this.provider);
|
|
631
631
|
});
|
|
@@ -656,7 +656,7 @@ let SessionsViewPane = class SessionsViewPane extends ViewPane {
|
|
|
656
656
|
},
|
|
657
657
|
accessibilityProvider: {
|
|
658
658
|
getAriaLabel: (element) => element.label,
|
|
659
|
-
getWidgetAriaLabel: () => ( localize(
|
|
659
|
+
getWidgetAriaLabel: () => ( localize(5090, "Chat Sessions"))
|
|
660
660
|
},
|
|
661
661
|
hideTwistiesOfChildlessElements: true,
|
|
662
662
|
allowNonCollapsibleParents: true
|
|
@@ -727,7 +727,7 @@ SessionsViewPane = ( __decorate([
|
|
|
727
727
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
728
728
|
command: {
|
|
729
729
|
id: 'workbench.action.openChat',
|
|
730
|
-
title: ( localize2(
|
|
730
|
+
title: ( localize2(5091, "New Chat Editor")),
|
|
731
731
|
icon: Codicon.plus
|
|
732
732
|
},
|
|
733
733
|
group: 'navigation',
|