@codingame/monaco-vscode-chat-service-override 14.0.3 → 14.0.5
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 +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
- 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/chatMoveActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +47 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +17 -17
- 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/inlineChatController2.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +8 -8
|
@@ -85,34 +85,34 @@ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
85
85
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
86
86
|
configurationRegistry.registerConfiguration({
|
|
87
87
|
id: 'chatSidebar',
|
|
88
|
-
title: ( localize(
|
|
88
|
+
title: ( localize(4386, "Chat")),
|
|
89
89
|
type: 'object',
|
|
90
90
|
properties: {
|
|
91
91
|
'chat.editor.fontSize': {
|
|
92
92
|
type: 'number',
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(4387, "Controls the font size in pixels in chat codeblocks.")),
|
|
94
94
|
default: isMacintosh ? 12 : 14,
|
|
95
95
|
},
|
|
96
96
|
'chat.editor.fontFamily': {
|
|
97
97
|
type: 'string',
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(4388, "Controls the font family in chat codeblocks.")),
|
|
99
99
|
default: 'default'
|
|
100
100
|
},
|
|
101
101
|
'chat.editor.fontWeight': {
|
|
102
102
|
type: 'string',
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(4389, "Controls the font weight in chat codeblocks.")),
|
|
104
104
|
default: 'default'
|
|
105
105
|
},
|
|
106
106
|
'chat.editor.wordWrap': {
|
|
107
107
|
type: 'string',
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(4390, "Controls whether lines should wrap in chat codeblocks.")),
|
|
109
109
|
default: 'off',
|
|
110
110
|
enum: ['on', 'off']
|
|
111
111
|
},
|
|
112
112
|
'chat.editor.lineHeight': {
|
|
113
113
|
type: 'number',
|
|
114
114
|
description: ( localize(
|
|
115
|
-
|
|
115
|
+
4391,
|
|
116
116
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
117
117
|
)),
|
|
118
118
|
default: 0
|
|
@@ -120,7 +120,7 @@ configurationRegistry.registerConfiguration({
|
|
|
120
120
|
'chat.commandCenter.enabled': {
|
|
121
121
|
type: 'boolean',
|
|
122
122
|
markdownDescription: ( localize(
|
|
123
|
-
|
|
123
|
+
4392,
|
|
124
124
|
"Controls whether the command center shows a menu for actions to control Copilot (requires {0}).",
|
|
125
125
|
'`#window.commandCenter#`'
|
|
126
126
|
)),
|
|
@@ -129,7 +129,7 @@ configurationRegistry.registerConfiguration({
|
|
|
129
129
|
'chat.editing.autoAcceptDelay': {
|
|
130
130
|
type: 'number',
|
|
131
131
|
markdownDescription: ( localize(
|
|
132
|
-
|
|
132
|
+
4393,
|
|
133
133
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
134
134
|
)),
|
|
135
135
|
default: 0,
|
|
@@ -140,7 +140,7 @@ configurationRegistry.registerConfiguration({
|
|
|
140
140
|
type: 'boolean',
|
|
141
141
|
scope: ConfigurationScope.APPLICATION,
|
|
142
142
|
markdownDescription: ( localize(
|
|
143
|
-
|
|
143
|
+
4394,
|
|
144
144
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
145
145
|
)),
|
|
146
146
|
default: true,
|
|
@@ -149,7 +149,7 @@ configurationRegistry.registerConfiguration({
|
|
|
149
149
|
type: 'boolean',
|
|
150
150
|
scope: ConfigurationScope.APPLICATION,
|
|
151
151
|
markdownDescription: ( localize(
|
|
152
|
-
|
|
152
|
+
4395,
|
|
153
153
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
154
154
|
)),
|
|
155
155
|
default: true,
|
|
@@ -157,22 +157,22 @@ configurationRegistry.registerConfiguration({
|
|
|
157
157
|
'chat.experimental.detectParticipant.enabled': {
|
|
158
158
|
type: 'boolean',
|
|
159
159
|
deprecationMessage: ( localize(
|
|
160
|
-
|
|
160
|
+
4396,
|
|
161
161
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
162
162
|
)),
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(4397, "Enables chat participant autodetection for panel chat.")),
|
|
164
164
|
default: null
|
|
165
165
|
},
|
|
166
166
|
'chat.detectParticipant.enabled': {
|
|
167
167
|
type: 'boolean',
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(4398, "Enables chat participant autodetection for panel chat.")),
|
|
169
169
|
default: true
|
|
170
170
|
},
|
|
171
171
|
[PromptFilesConfig.CONFIG_KEY]: {
|
|
172
172
|
type: ['string', 'array', 'object', 'boolean', 'null'],
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(4399, "Prompt Files")),
|
|
174
174
|
markdownDescription: ( localize(
|
|
175
|
-
|
|
175
|
+
4400,
|
|
176
176
|
"Enable support for attaching reusable prompt files (`*{0}`) for Chat, Edits, and Inline Chat sessions. [Learn More]({1}).",
|
|
177
177
|
'.prompt.md',
|
|
178
178
|
PromptFilesConfig.DOCUMENTATION_URL
|
|
@@ -182,7 +182,7 @@ configurationRegistry.registerConfiguration({
|
|
|
182
182
|
},
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
185
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4401, "Chat"))), [
|
|
186
186
|
( new SyncDescriptor(ChatEditorInput))
|
|
187
187
|
]);
|
|
188
188
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -200,7 +200,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
200
200
|
super();
|
|
201
201
|
this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
|
|
202
202
|
id: ChatEditorInput.EditorID,
|
|
203
|
-
label: ( localize(
|
|
203
|
+
label: ( localize(4401, "Chat")),
|
|
204
204
|
priority: RegisteredEditorPriority.builtin
|
|
205
205
|
}, {
|
|
206
206
|
singlePerResource: true,
|
|
@@ -240,13 +240,13 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution {
|
|
|
240
240
|
}
|
|
241
241
|
this.registeredNode = {
|
|
242
242
|
id: 'chatAgent',
|
|
243
|
-
title: ( localize(
|
|
243
|
+
title: ( localize(4386, "Chat")),
|
|
244
244
|
type: 'object',
|
|
245
245
|
properties: {
|
|
246
246
|
'chat.agent.enabled': {
|
|
247
247
|
type: 'boolean',
|
|
248
248
|
description: ( localize(
|
|
249
|
-
|
|
249
|
+
4402,
|
|
250
250
|
"Enable agent mode for {0}. When this is enabled, a dropdown appears in the {0} view to toggle agent mode.",
|
|
251
251
|
'Copilot Edits'
|
|
252
252
|
)),
|
|
@@ -280,7 +280,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
280
280
|
super();
|
|
281
281
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
282
282
|
command: 'clear',
|
|
283
|
-
detail: ( localize(
|
|
283
|
+
detail: ( localize(4403, "Start a new chat")),
|
|
284
284
|
sortText: 'z2_clear',
|
|
285
285
|
executeImmediately: true,
|
|
286
286
|
locations: [ChatAgentLocation.Panel]
|
|
@@ -329,7 +329,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
329
329
|
}
|
|
330
330
|
const variables = [
|
|
331
331
|
...chatVariablesService.getVariables(ChatAgentLocation.Panel),
|
|
332
|
-
{ name: 'file', description: ( localize(
|
|
332
|
+
{ name: 'file', description: ( localize(4404, "Choose a file in the workspace")) }
|
|
333
333
|
];
|
|
334
334
|
const variableText = ( variables
|
|
335
335
|
.map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
|
|
@@ -146,7 +146,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
146
146
|
const session = this._currentSessionObs.get();
|
|
147
147
|
if (session) {
|
|
148
148
|
storageService.store(STORAGE_KEY_EDITING_SESSION, session.chatSessionId, StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
149
|
-
e.join(session.storeState(), { id: 'join.chatEditingSession', label: ( localize(
|
|
149
|
+
e.join(session.storeState(), { id: 'join.chatEditingSession', label: ( localize(4500, "Saving chat edits history")) });
|
|
150
150
|
}
|
|
151
151
|
}));
|
|
152
152
|
this._editingSessionFileLimitPromise = this._workbenchAssignmentService.getTreatment(chatEditingMaxFileAssignmentName).then(value => {
|
|
@@ -418,7 +418,7 @@ let ChatDecorationsProvider = class ChatDecorationsProvider extends Disposable {
|
|
|
418
418
|
super();
|
|
419
419
|
this._session = _session;
|
|
420
420
|
this._chatAgentService = _chatAgentService;
|
|
421
|
-
this.label = ( localize(
|
|
421
|
+
this.label = ( localize(4501, "Chat Editing"));
|
|
422
422
|
this._currentEntries = derived(this, (r) => {
|
|
423
423
|
const session = this._session.read(r);
|
|
424
424
|
if (!session) {
|
|
@@ -455,7 +455,7 @@ let ChatDecorationsProvider = class ChatDecorationsProvider extends Disposable {
|
|
|
455
455
|
return {
|
|
456
456
|
weight: 1000,
|
|
457
457
|
letter: Codicon.diffModified,
|
|
458
|
-
tooltip: defaultAgentName ? ( localize(
|
|
458
|
+
tooltip: defaultAgentName ? ( localize(4502, "Pending changes from {0}", defaultAgentName)) : ( localize(4503, "Pending changes from chat")),
|
|
459
459
|
bubble: true
|
|
460
460
|
};
|
|
461
461
|
}
|
|
@@ -254,7 +254,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
|
|
|
254
254
|
didChange = this._workingSet.delete(entry) || didChange;
|
|
255
255
|
}
|
|
256
256
|
for (const entry of activeEditors) {
|
|
257
|
-
this._workingSet.set(entry, { state: WorkingSetEntryState.Transient, description: ( localize(
|
|
257
|
+
this._workingSet.set(entry, { state: WorkingSetEntryState.Transient, description: ( localize(4504, "Open Editor")) });
|
|
258
258
|
didChange = true;
|
|
259
259
|
}
|
|
260
260
|
if (didChange) {
|
|
@@ -440,7 +440,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
|
|
|
440
440
|
}
|
|
441
441
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
442
442
|
multiDiffSource: getMultiDiffSourceUri(),
|
|
443
|
-
label: ( localize(
|
|
443
|
+
label: ( localize(4505, "Suggested Edits"))
|
|
444
444
|
}, this._instantiationService);
|
|
445
445
|
this._editorPane = await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
|
|
446
446
|
}
|
|
@@ -31,7 +31,7 @@ import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane, CHAT_EDITING_SIDEBAR_PANEL_ID } fr
|
|
|
31
31
|
|
|
32
32
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
33
33
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
34
|
-
title: ( localize2(
|
|
34
|
+
title: ( localize2(4584, "Chat")),
|
|
35
35
|
icon: Codicon.commentDiscussion,
|
|
36
36
|
ctorDescriptor: ( new SyncDescriptor(
|
|
37
37
|
ViewPaneContainer,
|
|
@@ -46,13 +46,13 @@ const chatViewDescriptor = [{
|
|
|
46
46
|
containerIcon: chatViewContainer.icon,
|
|
47
47
|
containerTitle: chatViewContainer.title.value,
|
|
48
48
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
49
|
-
name: ( localize2(
|
|
49
|
+
name: ( localize2(4584, "Chat")),
|
|
50
50
|
canToggleVisibility: false,
|
|
51
51
|
canMoveView: true,
|
|
52
52
|
openCommandActionDescriptor: {
|
|
53
53
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
54
54
|
title: chatViewContainer.title,
|
|
55
|
-
mnemonicTitle: ( localize(
|
|
55
|
+
mnemonicTitle: ( localize(4585, "&&Chat")),
|
|
56
56
|
keybindings: {
|
|
57
57
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
58
58
|
mac: {
|
|
@@ -67,7 +67,7 @@ const chatViewDescriptor = [{
|
|
|
67
67
|
( Registry.as(Extensions.ViewsRegistry)).registerViews(chatViewDescriptor, chatViewContainer);
|
|
68
68
|
const editsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
69
69
|
id: CHAT_EDITING_SIDEBAR_PANEL_ID,
|
|
70
|
-
title: ( localize2(
|
|
70
|
+
title: ( localize2(4586, "Copilot Edits")),
|
|
71
71
|
icon: Codicon.editSession,
|
|
72
72
|
ctorDescriptor: ( new SyncDescriptor(
|
|
73
73
|
ViewPaneContainer,
|
|
@@ -88,7 +88,7 @@ const editsViewDescriptor = [{
|
|
|
88
88
|
openCommandActionDescriptor: {
|
|
89
89
|
id: CHAT_EDITING_SIDEBAR_PANEL_ID,
|
|
90
90
|
title: editsViewContainer.title,
|
|
91
|
-
mnemonicTitle: ( localize(
|
|
91
|
+
mnemonicTitle: ( localize(4587, "Copilot Ed&&its")),
|
|
92
92
|
keybindings: {
|
|
93
93
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI,
|
|
94
94
|
linux: {
|
|
@@ -104,7 +104,7 @@ const editsViewDescriptor = [{
|
|
|
104
104
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
105
105
|
extensionPoint: 'chatParticipants',
|
|
106
106
|
jsonSchema: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(4588, 'Contributes a chat participant')),
|
|
108
108
|
type: 'array',
|
|
109
109
|
items: {
|
|
110
110
|
additionalProperties: false,
|
|
@@ -113,12 +113,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
113
113
|
required: ['name', 'id'],
|
|
114
114
|
properties: {
|
|
115
115
|
id: {
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(4589, "A unique id for this chat participant.")),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
name: {
|
|
120
120
|
description: ( localize(
|
|
121
|
-
|
|
121
|
+
4590,
|
|
122
122
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
123
123
|
)),
|
|
124
124
|
type: 'string',
|
|
@@ -126,37 +126,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
126
126
|
},
|
|
127
127
|
fullName: {
|
|
128
128
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
129
|
+
4591,
|
|
130
130
|
"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.",
|
|
131
131
|
'`name`'
|
|
132
132
|
)),
|
|
133
133
|
type: 'string'
|
|
134
134
|
},
|
|
135
135
|
description: {
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(4592, "A description of this chat participant, shown in the UI.")),
|
|
137
137
|
type: 'string'
|
|
138
138
|
},
|
|
139
139
|
isSticky: {
|
|
140
140
|
description: ( localize(
|
|
141
|
-
|
|
141
|
+
4593,
|
|
142
142
|
"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."
|
|
143
143
|
)),
|
|
144
144
|
type: 'boolean'
|
|
145
145
|
},
|
|
146
146
|
sampleRequest: {
|
|
147
147
|
description: ( localize(
|
|
148
|
-
|
|
148
|
+
4594,
|
|
149
149
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
150
150
|
)),
|
|
151
151
|
type: 'string'
|
|
152
152
|
},
|
|
153
153
|
when: {
|
|
154
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(4595, "A condition which must be true to enable this participant.")),
|
|
155
155
|
type: 'string'
|
|
156
156
|
},
|
|
157
157
|
disambiguation: {
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
4596,
|
|
160
160
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
161
161
|
)),
|
|
162
162
|
type: 'array',
|
|
@@ -168,21 +168,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
168
168
|
properties: {
|
|
169
169
|
category: {
|
|
170
170
|
markdownDescription: ( localize(
|
|
171
|
-
|
|
171
|
+
4597,
|
|
172
172
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
173
173
|
)),
|
|
174
174
|
type: 'string'
|
|
175
175
|
},
|
|
176
176
|
description: {
|
|
177
177
|
description: ( localize(
|
|
178
|
-
|
|
178
|
+
4598,
|
|
179
179
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
180
180
|
)),
|
|
181
181
|
type: 'string'
|
|
182
182
|
},
|
|
183
183
|
examples: {
|
|
184
184
|
description: ( localize(
|
|
185
|
-
|
|
185
|
+
4599,
|
|
186
186
|
"A list of representative example questions that are suitable for this chat participant."
|
|
187
187
|
)),
|
|
188
188
|
type: 'array'
|
|
@@ -192,7 +192,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
192
192
|
},
|
|
193
193
|
commands: {
|
|
194
194
|
markdownDescription: ( localize(
|
|
195
|
-
|
|
195
|
+
4600,
|
|
196
196
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
197
197
|
)),
|
|
198
198
|
type: 'array',
|
|
@@ -204,36 +204,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
204
204
|
properties: {
|
|
205
205
|
name: {
|
|
206
206
|
description: ( localize(
|
|
207
|
-
|
|
207
|
+
4601,
|
|
208
208
|
"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."
|
|
209
209
|
)),
|
|
210
210
|
type: 'string'
|
|
211
211
|
},
|
|
212
212
|
description: {
|
|
213
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(4602, "A description of this command.")),
|
|
214
214
|
type: 'string'
|
|
215
215
|
},
|
|
216
216
|
when: {
|
|
217
|
-
description: ( localize(
|
|
217
|
+
description: ( localize(4603, "A condition which must be true to enable this command.")),
|
|
218
218
|
type: 'string'
|
|
219
219
|
},
|
|
220
220
|
sampleRequest: {
|
|
221
221
|
description: ( localize(
|
|
222
|
-
|
|
222
|
+
4604,
|
|
223
223
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
224
224
|
)),
|
|
225
225
|
type: 'string'
|
|
226
226
|
},
|
|
227
227
|
isSticky: {
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
4593,
|
|
230
230
|
"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."
|
|
231
231
|
)),
|
|
232
232
|
type: 'boolean'
|
|
233
233
|
},
|
|
234
234
|
disambiguation: {
|
|
235
235
|
description: ( localize(
|
|
236
|
-
|
|
236
|
+
4605,
|
|
237
237
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
238
238
|
)),
|
|
239
239
|
type: 'array',
|
|
@@ -245,21 +245,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
245
245
|
properties: {
|
|
246
246
|
category: {
|
|
247
247
|
markdownDescription: ( localize(
|
|
248
|
-
|
|
248
|
+
4606,
|
|
249
249
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
250
250
|
)),
|
|
251
251
|
type: 'string'
|
|
252
252
|
},
|
|
253
253
|
description: {
|
|
254
254
|
description: ( localize(
|
|
255
|
-
|
|
255
|
+
4607,
|
|
256
256
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
257
257
|
)),
|
|
258
258
|
type: 'string'
|
|
259
259
|
},
|
|
260
260
|
examples: {
|
|
261
261
|
description: ( localize(
|
|
262
|
-
|
|
262
|
+
4608,
|
|
263
263
|
"A list of representative example questions that are suitable for this chat command."
|
|
264
264
|
)),
|
|
265
265
|
type: 'array'
|
|
@@ -391,9 +391,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
393
|
this.registeredWelcomeView = true;
|
|
394
|
-
const showExtensionLabel = ( localize(
|
|
394
|
+
const showExtensionLabel = ( localize(4609, "Show Extension"));
|
|
395
395
|
const mainMessage = ( localize(
|
|
396
|
-
|
|
396
|
+
4610,
|
|
397
397
|
"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.",
|
|
398
398
|
this.productService.nameLong
|
|
399
399
|
));
|
|
@@ -425,10 +425,10 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
425
425
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
426
426
|
}
|
|
427
427
|
const headers = [
|
|
428
|
-
( localize(
|
|
429
|
-
( localize(
|
|
430
|
-
( localize(
|
|
431
|
-
( localize(
|
|
428
|
+
( localize(4611, "Name")),
|
|
429
|
+
( localize(4612, "Full Name")),
|
|
430
|
+
( localize(4613, "Description")),
|
|
431
|
+
( localize(4614, "Commands")),
|
|
432
432
|
];
|
|
433
433
|
const rows = ( nonDefaultContributions.map(d => {
|
|
434
434
|
return [
|
|
@@ -449,7 +449,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
449
449
|
}
|
|
450
450
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
451
451
|
id: 'chatParticipants',
|
|
452
|
-
label: ( localize(
|
|
452
|
+
label: ( localize(4615, "Chat Participants")),
|
|
453
453
|
access: {
|
|
454
454
|
canToggle: false
|
|
455
455
|
},
|
|
@@ -59,7 +59,7 @@ class PasteImageProvider {
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const attachedVariables = widget.attachmentModel.attachments;
|
|
62
|
-
const displayName = ( localize(
|
|
62
|
+
const displayName = ( localize(4616, 'Pasted Image'));
|
|
63
63
|
let tempDisplayName = displayName;
|
|
64
64
|
for (let appendValue = 2; ( attachedVariables.some(attachment => attachment.name === tempDisplayName)); appendValue++) {
|
|
65
65
|
tempDisplayName = `${displayName} ${appendValue}`;
|
|
@@ -77,7 +77,7 @@ class PasteImageProvider {
|
|
|
77
77
|
if (( currentContextIds.has(scaledImageContext.id))) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const edit = createCustomPasteEdit(model, scaledImageContext, mimeType, this.kind, ( localize(
|
|
80
|
+
const edit = createCustomPasteEdit(model, scaledImageContext, mimeType, this.kind, ( localize(4617, 'Pasted Image Attachment')), this.chatWidgetService);
|
|
81
81
|
return createEditSession(edit);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -176,7 +176,7 @@ class PasteTextProvider {
|
|
|
176
176
|
if (( currentContextIds.has(copiedContext.id))) {
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const edit = createCustomPasteEdit(model, copiedContext, Mimes.text, this.kind, ( localize(
|
|
179
|
+
const edit = createCustomPasteEdit(model, copiedContext, Mimes.text, this.kind, ( localize(4618, 'Pasted Code Attachment')), this.chatWidgetService);
|
|
180
180
|
edit.yieldTo = [{ kind: HierarchicalKind.Empty.append('text', 'plain') }];
|
|
181
181
|
return createEditSession(edit);
|
|
182
182
|
}
|
|
@@ -186,7 +186,7 @@ function getCopiedContext(code, file, language, range) {
|
|
|
186
186
|
const start = range.startLineNumber;
|
|
187
187
|
const end = range.endLineNumber;
|
|
188
188
|
const resultText = `Copied Selection of Code: \n\n\n From the file: ${fileName} From lines ${start} to ${end} \n \`\`\`${code}\`\`\``;
|
|
189
|
-
const pastedLines = start === end ? ( localize(
|
|
189
|
+
const pastedLines = start === end ? ( localize(4619, '1 line')) : ( localize(4620, '{0} lines', end + 1 - start));
|
|
190
190
|
return {
|
|
191
191
|
kind: 'paste',
|
|
192
192
|
value: resultText,
|