@codingame/monaco-vscode-chat-service-override 11.1.1 → 11.1.2
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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +16 -16
- 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 +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- 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/chatEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeContributions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +13 -13
- 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/inlineChatCurrentLine.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.
|
|
30
|
-
"@codingame/monaco-vscode-chat-notebook-common": "11.1.
|
|
31
|
-
"@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.
|
|
32
|
-
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.
|
|
33
|
-
"@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.
|
|
34
|
-
"@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.
|
|
35
|
-
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
|
|
30
|
+
"@codingame/monaco-vscode-chat-notebook-common": "11.1.2",
|
|
31
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.2",
|
|
32
|
+
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.2",
|
|
33
|
+
"@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.2",
|
|
34
|
+
"@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.2",
|
|
35
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.2"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -44,44 +44,44 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
44
44
|
const content = [];
|
|
45
45
|
if (type === 'panelChat' || type === 'quickChat') {
|
|
46
46
|
content.push(( localize(
|
|
47
|
-
|
|
47
|
+
7501,
|
|
48
48
|
'The chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses.'
|
|
49
49
|
)));
|
|
50
50
|
content.push(( localize(
|
|
51
|
-
|
|
51
|
+
7502,
|
|
52
52
|
'In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request.'
|
|
53
53
|
)));
|
|
54
54
|
content.push(( localize(
|
|
55
|
-
|
|
55
|
+
7503,
|
|
56
56
|
'In the input box, inspect the last response in the accessible view{0}.',
|
|
57
57
|
'<keybinding:editor.action.accessibleView>'
|
|
58
58
|
)));
|
|
59
59
|
content.push(( localize(
|
|
60
|
-
|
|
60
|
+
7504,
|
|
61
61
|
'In the input box, navigate to the suggested follow up question (Shift+Tab) and press Enter to run it.'
|
|
62
62
|
)));
|
|
63
63
|
content.push(( localize(
|
|
64
|
-
|
|
64
|
+
7505,
|
|
65
65
|
'Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response.'
|
|
66
66
|
)));
|
|
67
67
|
content.push(( localize(
|
|
68
|
-
|
|
68
|
+
7506,
|
|
69
69
|
'To focus the chat request/response list, which can be navigated with up and down arrows, invoke the Focus Chat command{0}.',
|
|
70
70
|
getChatFocusKeybindingLabel(keybindingService, type, false)
|
|
71
71
|
)));
|
|
72
72
|
content.push(( localize(
|
|
73
|
-
|
|
73
|
+
7507,
|
|
74
74
|
'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.',
|
|
75
75
|
getChatFocusKeybindingLabel(keybindingService, type, true)
|
|
76
76
|
)));
|
|
77
77
|
content.push(( localize(
|
|
78
|
-
|
|
78
|
+
7508,
|
|
79
79
|
'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.',
|
|
80
80
|
'<keybinding:workbench.action.chat.nextCodeBlock>'
|
|
81
81
|
)));
|
|
82
82
|
if (type === 'panelChat') {
|
|
83
83
|
content.push(( localize(
|
|
84
|
-
|
|
84
|
+
7509,
|
|
85
85
|
'To create a new chat session, invoke the New Chat command{0}.',
|
|
86
86
|
'<keybinding:workbench.action.chat.new>'
|
|
87
87
|
)));
|
|
@@ -89,45 +89,45 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
91
|
content.push(( localize(
|
|
92
|
-
|
|
92
|
+
7510,
|
|
93
93
|
"Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
|
|
94
94
|
)));
|
|
95
95
|
content.push(( localize(
|
|
96
|
-
|
|
96
|
+
7511,
|
|
97
97
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
98
98
|
'<keybinding:inlineChat.start>'
|
|
99
99
|
)));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
7512,
|
|
102
102
|
'In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.',
|
|
103
103
|
'<keybinding:history.showPrevious>',
|
|
104
104
|
'<keybinding:history.showNext>'
|
|
105
105
|
)));
|
|
106
106
|
content.push(( localize(
|
|
107
|
-
|
|
107
|
+
7513,
|
|
108
108
|
'In the input box, inspect the response in the accessible view{0}.',
|
|
109
109
|
'<keybinding:editor.action.accessibleView>'
|
|
110
110
|
)));
|
|
111
111
|
content.push(( localize(
|
|
112
|
-
|
|
112
|
+
7514,
|
|
113
113
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
114
114
|
)));
|
|
115
115
|
content.push(( localize(
|
|
116
|
-
|
|
116
|
+
7515,
|
|
117
117
|
"If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
|
|
118
118
|
)));
|
|
119
119
|
content.push(( localize(
|
|
120
|
-
|
|
120
|
+
7516,
|
|
121
121
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
122
122
|
AccessibleDiffViewerNext.id
|
|
123
123
|
)));
|
|
124
124
|
content.push(( localize(
|
|
125
|
-
|
|
125
|
+
7517,
|
|
126
126
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
127
127
|
)));
|
|
128
128
|
}
|
|
129
129
|
content.push(( localize(
|
|
130
|
-
|
|
130
|
+
7518,
|
|
131
131
|
"Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
|
|
132
132
|
)));
|
|
133
133
|
return content.join('\n');
|
|
@@ -26,7 +26,7 @@ function registerNewChatActions() {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: 'workbench.action.chatEditor.newChat',
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(7540, "New Chat")),
|
|
30
30
|
icon: Codicon.plus,
|
|
31
31
|
f1: false,
|
|
32
32
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
@@ -47,7 +47,7 @@ function registerNewChatActions() {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: ACTION_ID_NEW_CHAT,
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(7540, "New Chat")),
|
|
51
51
|
category: CHAT_CATEGORY,
|
|
52
52
|
icon: Codicon.plus,
|
|
53
53
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -94,7 +94,7 @@ function registerNewChatActions() {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: ACTION_ID_NEW_EDIT_SESSION,
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(7541, "New Edit Session")),
|
|
98
98
|
category: CHAT_CATEGORY,
|
|
99
99
|
icon: Codicon.plus,
|
|
100
100
|
precondition: ( (ContextKeyExpr.and(CONTEXT_CHAT_ENABLED, CONTEXT_CHAT_EDITING_PARTICIPANT_REGISTERED))),
|
|
@@ -120,9 +120,9 @@ function registerNewChatActions() {
|
|
|
120
120
|
const undecidedEdits = currentEdits.filter((edit) => edit.state.get() === 0 );
|
|
121
121
|
if (undecidedEdits.length) {
|
|
122
122
|
const { result } = await dialogService.prompt({
|
|
123
|
-
title: ( localize(
|
|
123
|
+
title: ( localize(7542, "Start new editing session?")),
|
|
124
124
|
message: ( localize(
|
|
125
|
-
|
|
125
|
+
7543,
|
|
126
126
|
"Starting a new editing session will end your current session. Do you want to discard pending edits to {0} files?",
|
|
127
127
|
undecidedEdits.length
|
|
128
128
|
)),
|
|
@@ -130,14 +130,14 @@ function registerNewChatActions() {
|
|
|
130
130
|
cancelButton: true,
|
|
131
131
|
buttons: [
|
|
132
132
|
{
|
|
133
|
-
label: ( localize(
|
|
133
|
+
label: ( localize(7544, "Discard & Continue")),
|
|
134
134
|
run: async () => {
|
|
135
135
|
await currentEditingSession.reject();
|
|
136
136
|
return true;
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(7545, "Accept & Continue")),
|
|
141
141
|
run: async () => {
|
|
142
142
|
await currentEditingSession.accept();
|
|
143
143
|
return true;
|
|
@@ -185,7 +185,7 @@ function registerNewChatActions() {
|
|
|
185
185
|
constructor() {
|
|
186
186
|
super({
|
|
187
187
|
id: 'workbench.action.chat.done',
|
|
188
|
-
title: ( localize2(
|
|
188
|
+
title: ( localize2(7546, "Done")),
|
|
189
189
|
category: CHAT_CATEGORY,
|
|
190
190
|
precondition: ( (ContextKeyExpr.and(CONTEXT_CHAT_ENABLED, CONTEXT_CHAT_EDITING_PARTICIPANT_REGISTERED))),
|
|
191
191
|
f1: false,
|
|
@@ -230,7 +230,7 @@ function registerNewChatActions() {
|
|
|
230
230
|
constructor() {
|
|
231
231
|
super({
|
|
232
232
|
id: 'workbench.action.chat.undoEdit',
|
|
233
|
-
title: ( localize2(
|
|
233
|
+
title: ( localize2(7547, "Undo Last Edit")),
|
|
234
234
|
category: CHAT_CATEGORY,
|
|
235
235
|
icon: Codicon.discard,
|
|
236
236
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -263,7 +263,7 @@ function registerNewChatActions() {
|
|
|
263
263
|
constructor() {
|
|
264
264
|
super({
|
|
265
265
|
id: 'workbench.action.chat.redoEdit',
|
|
266
|
-
title: ( localize2(
|
|
266
|
+
title: ( localize2(7548, "Redo Last Edit")),
|
|
267
267
|
category: CHAT_CATEGORY,
|
|
268
268
|
icon: Codicon.redo,
|
|
269
269
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -296,7 +296,7 @@ function registerNewChatActions() {
|
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: 'workbench.action.chat.openEditSession',
|
|
299
|
-
title: ( localize2(
|
|
299
|
+
title: ( localize2(7549, "Open {0}", 'Copilot Edits')),
|
|
300
300
|
category: CHAT_CATEGORY,
|
|
301
301
|
icon: Codicon.goToEditingSession,
|
|
302
302
|
precondition: ( (ContextKeyExpr.and(CONTEXT_CHAT_ENABLED, CONTEXT_CHAT_EDITING_PARTICIPANT_REGISTERED))),
|
|
@@ -62,7 +62,7 @@ function registerChatCodeBlockActions() {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super({
|
|
64
64
|
id: 'workbench.action.chat.copyCodeBlock',
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(7550, "Copy")),
|
|
66
66
|
f1: false,
|
|
67
67
|
category: CHAT_CATEGORY,
|
|
68
68
|
icon: Codicon.copy,
|
|
@@ -147,7 +147,7 @@ function registerChatCodeBlockActions() {
|
|
|
147
147
|
constructor() {
|
|
148
148
|
super({
|
|
149
149
|
id: 'workbench.action.chat.applyInEditor',
|
|
150
|
-
title: ( localize2(
|
|
150
|
+
title: ( localize2(7551, "Apply in Editor")),
|
|
151
151
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
152
152
|
f1: true,
|
|
153
153
|
category: CHAT_CATEGORY,
|
|
@@ -182,7 +182,7 @@ function registerChatCodeBlockActions() {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: 'workbench.action.chat.applyAll',
|
|
185
|
-
title: ( localize2(
|
|
185
|
+
title: ( localize2(7552, "Apply All Edits")),
|
|
186
186
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
187
187
|
f1: true,
|
|
188
188
|
category: CHAT_CATEGORY,
|
|
@@ -209,7 +209,7 @@ function registerChatCodeBlockActions() {
|
|
|
209
209
|
constructor() {
|
|
210
210
|
super({
|
|
211
211
|
id: 'workbench.action.chat.insertCodeBlock',
|
|
212
|
-
title: ( localize2(
|
|
212
|
+
title: ( localize2(7553, "Insert At Cursor")),
|
|
213
213
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
214
214
|
f1: true,
|
|
215
215
|
category: CHAT_CATEGORY,
|
|
@@ -240,7 +240,7 @@ function registerChatCodeBlockActions() {
|
|
|
240
240
|
constructor() {
|
|
241
241
|
super({
|
|
242
242
|
id: 'workbench.action.chat.insertIntoNewFile',
|
|
243
|
-
title: ( localize2(
|
|
243
|
+
title: ( localize2(7554, "Insert into New File")),
|
|
244
244
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
245
245
|
f1: true,
|
|
246
246
|
category: CHAT_CATEGORY,
|
|
@@ -281,7 +281,7 @@ function registerChatCodeBlockActions() {
|
|
|
281
281
|
constructor() {
|
|
282
282
|
super({
|
|
283
283
|
id: 'workbench.action.chat.runInTerminal',
|
|
284
|
-
title: ( localize2(
|
|
284
|
+
title: ( localize2(7555, "Insert into Terminal")),
|
|
285
285
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
286
286
|
f1: true,
|
|
287
287
|
category: CHAT_CATEGORY,
|
|
@@ -381,7 +381,7 @@ function registerChatCodeBlockActions() {
|
|
|
381
381
|
constructor() {
|
|
382
382
|
super({
|
|
383
383
|
id: 'workbench.action.chat.nextCodeBlock',
|
|
384
|
-
title: ( localize2(
|
|
384
|
+
title: ( localize2(7556, "Next Code Block")),
|
|
385
385
|
keybinding: {
|
|
386
386
|
primary: 2048 | 512 | 12 ,
|
|
387
387
|
mac: { primary: 2048 | 512 | 12 , },
|
|
@@ -401,7 +401,7 @@ function registerChatCodeBlockActions() {
|
|
|
401
401
|
constructor() {
|
|
402
402
|
super({
|
|
403
403
|
id: 'workbench.action.chat.previousCodeBlock',
|
|
404
|
-
title: ( localize2(
|
|
404
|
+
title: ( localize2(7557, "Previous Code Block")),
|
|
405
405
|
keybinding: {
|
|
406
406
|
primary: 2048 | 512 | 11 ,
|
|
407
407
|
mac: { primary: 2048 | 512 | 11 , },
|
|
@@ -458,7 +458,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
458
458
|
constructor() {
|
|
459
459
|
super({
|
|
460
460
|
id: 'workbench.action.chat.applyCompareEdits',
|
|
461
|
-
title: ( localize2(
|
|
461
|
+
title: ( localize2(7558, "Apply Edits")),
|
|
462
462
|
f1: false,
|
|
463
463
|
category: CHAT_CATEGORY,
|
|
464
464
|
icon: Codicon.check,
|
|
@@ -488,7 +488,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: 'workbench.action.chat.discardCompareEdits',
|
|
491
|
-
title: ( localize2(
|
|
491
|
+
title: ( localize2(7559, "Discard Edits")),
|
|
492
492
|
f1: false,
|
|
493
493
|
category: CHAT_CATEGORY,
|
|
494
494
|
icon: Codicon.trash,
|
|
@@ -81,7 +81,7 @@ class AttachFileAction extends Action2 {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: AttachFileAction.ID,
|
|
84
|
-
title: ( localize2(
|
|
84
|
+
title: ( localize2(7560, "Add File to Chat")),
|
|
85
85
|
category: CHAT_CATEGORY,
|
|
86
86
|
f1: false,
|
|
87
87
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -110,7 +110,7 @@ class AttachSelectionAction extends Action2 {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: AttachSelectionAction.ID,
|
|
113
|
-
title: ( localize2(
|
|
113
|
+
title: ( localize2(7561, "Add Selection to Chat")),
|
|
114
114
|
category: CHAT_CATEGORY,
|
|
115
115
|
f1: false,
|
|
116
116
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -152,7 +152,7 @@ class AttachContextAction extends Action2 {
|
|
|
152
152
|
))); }
|
|
153
153
|
constructor(desc = {
|
|
154
154
|
id: AttachContextAction.ID,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(7562, "Attach Context")),
|
|
156
156
|
icon: Codicon.attach,
|
|
157
157
|
category: CHAT_CATEGORY,
|
|
158
158
|
precondition: ( (ContextKeyExpr.or(AttachContextAction._cdt, (ContextKeyExpr.and(
|
|
@@ -317,8 +317,8 @@ class AttachContextAction extends Action2 {
|
|
|
317
317
|
const fileBuffer = await clipboardService.readImage();
|
|
318
318
|
toAttach.push({
|
|
319
319
|
id: await imageToHash(fileBuffer),
|
|
320
|
-
name: ( localize(
|
|
321
|
-
fullName: ( localize(
|
|
320
|
+
name: ( localize(7563, 'Pasted Image')),
|
|
321
|
+
fullName: ( localize(7563, 'Pasted Image')),
|
|
322
322
|
value: fileBuffer,
|
|
323
323
|
isDynamic: true,
|
|
324
324
|
isImage: true
|
|
@@ -383,7 +383,7 @@ class AttachContextAction extends Action2 {
|
|
|
383
383
|
quickPickItems.push({
|
|
384
384
|
kind: 'image',
|
|
385
385
|
id: await imageToHash(imageData),
|
|
386
|
-
label: ( localize(
|
|
386
|
+
label: ( localize(7564, 'Image from Clipboard')),
|
|
387
387
|
iconClass: ThemeIcon.asClassName(Codicon.fileMedia),
|
|
388
388
|
});
|
|
389
389
|
}
|
|
@@ -393,8 +393,8 @@ class AttachContextAction extends Action2 {
|
|
|
393
393
|
icon: ThemeIcon.fromId(Codicon.deviceCamera.id),
|
|
394
394
|
iconClass: ThemeIcon.asClassName(Codicon.deviceCamera),
|
|
395
395
|
label: (isElectron
|
|
396
|
-
? ( localize(
|
|
397
|
-
: ( localize(
|
|
396
|
+
? ( localize(7565, 'Screenshot Window'))
|
|
397
|
+
: ( localize(7566, 'Screenshot'))),
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
if (widget.viewModel?.sessionId) {
|
|
@@ -437,7 +437,7 @@ class AttachContextAction extends Action2 {
|
|
|
437
437
|
}
|
|
438
438
|
quickPickItems.push({
|
|
439
439
|
kind: 'quickaccess',
|
|
440
|
-
label: ( localize(
|
|
440
|
+
label: ( localize(7567, 'Symbol...')),
|
|
441
441
|
iconClass: ThemeIcon.asClassName(Codicon.symbolField),
|
|
442
442
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
443
443
|
id: 'symbol'
|
|
@@ -450,10 +450,10 @@ class AttachContextAction extends Action2 {
|
|
|
450
450
|
icon: ThemeIcon.fromId(Codicon.serverEnvironment.id),
|
|
451
451
|
iconClass: ThemeIcon.asClassName(Codicon.serverEnvironment),
|
|
452
452
|
value: 'kernelVariable',
|
|
453
|
-
label: ( localize(
|
|
453
|
+
label: ( localize(7568, 'Kernel Variable...')),
|
|
454
454
|
command: {
|
|
455
455
|
id: 'notebook.chat.selectAndInsertKernelVariable',
|
|
456
|
-
title: ( localize(
|
|
456
|
+
title: ( localize(7569, 'Select and Insert Kernel Variable')),
|
|
457
457
|
arguments: [{ widget, range: undefined }]
|
|
458
458
|
}
|
|
459
459
|
});
|
|
@@ -464,7 +464,7 @@ class AttachContextAction extends Action2 {
|
|
|
464
464
|
quickPickItems.push({
|
|
465
465
|
kind: 'open-editors',
|
|
466
466
|
id: 'open-editors',
|
|
467
|
-
label: ( localize(
|
|
467
|
+
label: ( localize(7570, 'Open Editors')),
|
|
468
468
|
iconClass: ThemeIcon.asClassName(Codicon.files),
|
|
469
469
|
});
|
|
470
470
|
}
|
|
@@ -472,7 +472,7 @@ class AttachContextAction extends Action2 {
|
|
|
472
472
|
quickPickItems.push({
|
|
473
473
|
kind: 'search-results',
|
|
474
474
|
id: 'search-results',
|
|
475
|
-
label: ( localize(
|
|
475
|
+
label: ( localize(7571, 'Search Results')),
|
|
476
476
|
iconClass: ThemeIcon.asClassName(Codicon.search),
|
|
477
477
|
});
|
|
478
478
|
}
|
|
@@ -547,7 +547,7 @@ class AttachContextAction extends Action2 {
|
|
|
547
547
|
SymbolsQuickAccessProvider.PREFIX,
|
|
548
548
|
AbstractGotoSymbolQuickAccessProvider.PREFIX
|
|
549
549
|
],
|
|
550
|
-
placeholder: placeholder ?? ( localize(
|
|
550
|
+
placeholder: placeholder ?? ( localize(7572, 'Search attachments')),
|
|
551
551
|
providerOptions,
|
|
552
552
|
});
|
|
553
553
|
}
|
|
@@ -556,7 +556,7 @@ registerAction2(class AttachFilesAction extends AttachContextAction {
|
|
|
556
556
|
constructor() {
|
|
557
557
|
super({
|
|
558
558
|
id: 'workbench.action.chat.editing.attachFiles',
|
|
559
|
-
title: ( localize2(
|
|
559
|
+
title: ( localize2(7573, "Add Files to Working Set")),
|
|
560
560
|
f1: false,
|
|
561
561
|
category: CHAT_CATEGORY,
|
|
562
562
|
precondition: ( (CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.EditingSession)))
|
|
@@ -564,7 +564,7 @@ registerAction2(class AttachFilesAction extends AttachContextAction {
|
|
|
564
564
|
}
|
|
565
565
|
async run(accessor, ...args) {
|
|
566
566
|
const context = args[0];
|
|
567
|
-
const attachFilesContext = { ...context, showFilesOnly: true, placeholder: ( localize(
|
|
567
|
+
const attachFilesContext = { ...context, showFilesOnly: true, placeholder: ( localize(7574, 'Search for files to add to your working set')) };
|
|
568
568
|
return super.run(accessor, attachFilesContext);
|
|
569
569
|
}
|
|
570
570
|
});
|
|
@@ -12,7 +12,7 @@ function registerChatCopyActions() {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: 'workbench.action.chat.copyAll',
|
|
15
|
-
title: ( localize2(
|
|
15
|
+
title: ( localize2(7575, "Copy All")),
|
|
16
16
|
f1: false,
|
|
17
17
|
category: CHAT_CATEGORY,
|
|
18
18
|
menu: {
|
|
@@ -42,7 +42,7 @@ function registerChatCopyActions() {
|
|
|
42
42
|
constructor() {
|
|
43
43
|
super({
|
|
44
44
|
id: 'workbench.action.chat.copyItem',
|
|
45
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(7576, "Copy")),
|
|
46
46
|
f1: false,
|
|
47
47
|
category: CHAT_CATEGORY,
|
|
48
48
|
menu: {
|
|
@@ -12,7 +12,7 @@ class LogChatInputHistoryAction extends Action2 {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: LogChatInputHistoryAction.ID,
|
|
15
|
-
title: ( localize2(
|
|
15
|
+
title: ( localize2(7577, "Log Chat Input History")),
|
|
16
16
|
icon: Codicon.attach,
|
|
17
17
|
category: Categories.Developer,
|
|
18
18
|
f1: true
|
|
@@ -11,7 +11,7 @@ function registerChatFileTreeActions() {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'workbench.action.chat.nextFileTree',
|
|
14
|
-
title: ( localize2(
|
|
14
|
+
title: ( localize2(7589, "Next File Tree")),
|
|
15
15
|
keybinding: {
|
|
16
16
|
primary: 2048 | 67 ,
|
|
17
17
|
weight: 200 ,
|
|
@@ -30,7 +30,7 @@ function registerChatFileTreeActions() {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: 'workbench.action.chat.previousFileTree',
|
|
33
|
-
title: ( localize2(
|
|
33
|
+
title: ( localize2(7590, "Previous File Tree")),
|
|
34
34
|
keybinding: {
|
|
35
35
|
primary: 2048 | 1024 | 67 ,
|
|
36
36
|
weight: 200 ,
|
|
@@ -14,14 +14,14 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
14
14
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
15
15
|
|
|
16
16
|
const defaultFileName = 'chat.json';
|
|
17
|
-
const filters = [{ name: ( localize(
|
|
17
|
+
const filters = [{ name: ( localize(7591, "Chat Session")), extensions: ['json'] }];
|
|
18
18
|
function registerChatExportActions() {
|
|
19
19
|
registerAction2(class ExportChatAction extends Action2 {
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.chat.export',
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(7592, "Export Chat...")),
|
|
25
25
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
26
26
|
f1: true,
|
|
27
27
|
});
|
|
@@ -55,7 +55,7 @@ function registerChatExportActions() {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: 'workbench.action.chat.import',
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(7593, "Import Chat...")),
|
|
59
59
|
category: CHAT_CATEGORY,
|
|
60
60
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
61
61
|
f1: true,
|
|
@@ -25,7 +25,7 @@ function registerMoveActions() {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: `workbench.action.chat.openInEditor`,
|
|
28
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(7594, "Open Chat in Editor")),
|
|
29
29
|
category: CHAT_CATEGORY,
|
|
30
30
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
31
31
|
f1: true,
|
|
@@ -45,7 +45,7 @@ function registerMoveActions() {
|
|
|
45
45
|
constructor() {
|
|
46
46
|
super({
|
|
47
47
|
id: `workbench.action.chat.openInNewWindow`,
|
|
48
|
-
title: ( localize2(
|
|
48
|
+
title: ( localize2(7595, "Open Chat in New Window")),
|
|
49
49
|
category: CHAT_CATEGORY,
|
|
50
50
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
51
51
|
f1: true,
|
|
@@ -65,7 +65,7 @@ function registerMoveActions() {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: `workbench.action.chat.openInSidebar`,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(7596, "Open Chat in Side Bar")),
|
|
69
69
|
category: CHAT_CATEGORY,
|
|
70
70
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
71
71
|
f1: true,
|
|
@@ -17,7 +17,7 @@ function registerQuickChatActions() {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: 'workbench.action.quickchat.openInChatView',
|
|
20
|
-
title: ( localize2(
|
|
20
|
+
title: ( localize2(7597, "Open in Chat View")),
|
|
21
21
|
f1: false,
|
|
22
22
|
category: CHAT_CATEGORY,
|
|
23
23
|
icon: Codicon.commentDiscussion,
|
|
@@ -37,7 +37,7 @@ function registerQuickChatActions() {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'workbench.action.quickchat.close',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(7598, "Close Quick Chat")),
|
|
41
41
|
f1: false,
|
|
42
42
|
category: CHAT_CATEGORY,
|
|
43
43
|
icon: Codicon.close,
|
|
@@ -57,7 +57,7 @@ function registerQuickChatActions() {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: 'workbench.action.quickchat.launchInlineChat',
|
|
60
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(7599, "Launch Inline Chat")),
|
|
61
61
|
f1: false,
|
|
62
62
|
category: CHAT_CATEGORY
|
|
63
63
|
});
|
|
@@ -85,7 +85,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
super({
|
|
87
87
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
88
|
-
title: ( localize2(
|
|
88
|
+
title: ( localize2(7600, 'Quick Chat')),
|
|
89
89
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
90
90
|
icon: Codicon.commentDiscussion,
|
|
91
91
|
f1: false,
|
|
@@ -100,7 +100,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
100
100
|
order: 5
|
|
101
101
|
},
|
|
102
102
|
metadata: {
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(7601, 'Toggle the quick chat')),
|
|
104
104
|
args: [{
|
|
105
105
|
name: 'args',
|
|
106
106
|
schema: {
|
|
@@ -110,18 +110,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
110
110
|
required: ['query'],
|
|
111
111
|
properties: {
|
|
112
112
|
query: {
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(7602, "The query to open the quick chat with")),
|
|
114
114
|
type: 'string'
|
|
115
115
|
},
|
|
116
116
|
isPartialQuery: {
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(7603, "Whether the query is partial; it will wait for more user input")),
|
|
118
118
|
type: 'boolean'
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
type: 'string',
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(7602, "The query to open the quick chat with"))
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
127
|
}
|
|
@@ -151,7 +151,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
151
151
|
super({
|
|
152
152
|
id: `workbench.action.openQuickChat`,
|
|
153
153
|
category: CHAT_CATEGORY,
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(7604, "Open Quick Chat")),
|
|
155
155
|
f1: true
|
|
156
156
|
});
|
|
157
157
|
}
|