@codingame/monaco-vscode-chat-service-override 15.0.0 → 15.0.1
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/chatAccessibilityHelp.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.js +6 -6
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- 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 +46 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +29 -29
- 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/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.js +1 -1
- 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/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/inlineChatCurrentLine.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "15.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common": "15.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common": "15.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "15.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common": "15.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "15.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "15.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "15.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "15.0.1",
|
|
29
|
+
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.1",
|
|
31
|
+
"@codingame/monaco-vscode-ad89fae6-94f0-5ac2-a185-22dea4b68ee0-common": "15.0.1",
|
|
32
|
+
"@codingame/monaco-vscode-api": "15.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common": "15.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "15.0.1",
|
|
35
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "15.0.1",
|
|
36
|
+
"@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common": "15.0.1"
|
|
37
37
|
},
|
|
38
38
|
"main": "index.js",
|
|
39
39
|
"module": "index.js",
|
|
@@ -61,161 +61,161 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
61
61
|
if (type === 'panelChat' || type === 'quickChat') {
|
|
62
62
|
if (type === 'quickChat') {
|
|
63
63
|
content.push(( localize(
|
|
64
|
-
|
|
64
|
+
4225,
|
|
65
65
|
'The quick 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.'
|
|
66
66
|
)));
|
|
67
67
|
content.push(( localize(
|
|
68
|
-
|
|
68
|
+
4226,
|
|
69
69
|
'The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions.'
|
|
70
70
|
)));
|
|
71
71
|
}
|
|
72
72
|
if (type === 'panelChat') {
|
|
73
73
|
content.push(( localize(
|
|
74
|
-
|
|
74
|
+
4227,
|
|
75
75
|
'The panel chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests.'
|
|
76
76
|
)));
|
|
77
77
|
content.push(( localize(
|
|
78
|
-
|
|
78
|
+
4228,
|
|
79
79
|
'In the input box, navigate to the suggested follow up question (Shift+Tab) and press Enter to run it.'
|
|
80
80
|
)));
|
|
81
81
|
}
|
|
82
82
|
content.push(( localize(
|
|
83
|
-
|
|
83
|
+
4229,
|
|
84
84
|
'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.'
|
|
85
85
|
)));
|
|
86
86
|
content.push(( localize(
|
|
87
|
-
|
|
87
|
+
4230,
|
|
88
88
|
'In the input box, inspect the last response in the accessible view{0}.',
|
|
89
89
|
'<keybinding:editor.action.accessibleView>'
|
|
90
90
|
)));
|
|
91
91
|
content.push(( localize(
|
|
92
|
-
|
|
92
|
+
4231,
|
|
93
93
|
'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.'
|
|
94
94
|
)));
|
|
95
95
|
content.push(( localize(
|
|
96
|
-
|
|
96
|
+
4232,
|
|
97
97
|
'To focus the chat request/response list, which can be navigated with up and down arrows, invoke the Focus Chat command{0}.',
|
|
98
98
|
getChatFocusKeybindingLabel(keybindingService, type, false)
|
|
99
99
|
)));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
4233,
|
|
102
102
|
'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.',
|
|
103
103
|
getChatFocusKeybindingLabel(keybindingService, type, true)
|
|
104
104
|
)));
|
|
105
105
|
content.push(( localize(
|
|
106
|
-
|
|
106
|
+
4234,
|
|
107
107
|
'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.',
|
|
108
108
|
'<keybinding:workbench.action.chat.nextCodeBlock>'
|
|
109
109
|
)));
|
|
110
110
|
if (type === 'panelChat') {
|
|
111
111
|
content.push(( localize(
|
|
112
|
-
|
|
112
|
+
4235,
|
|
113
113
|
'To create a new chat session, invoke the New Chat command{0}.',
|
|
114
114
|
'<keybinding:workbench.action.chat.new>'
|
|
115
115
|
)));
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
if (type === 'editsView') {
|
|
119
|
-
content.push(( localize(
|
|
119
|
+
content.push(( localize(4236, 'The chat editing view is used to apply edits across files.')));
|
|
120
120
|
content.push(( localize(
|
|
121
|
-
|
|
121
|
+
4237,
|
|
122
122
|
'It is comprised of an input box and a file working set (Shift+Tab).'
|
|
123
123
|
)));
|
|
124
124
|
content.push(( localize(
|
|
125
|
-
|
|
125
|
+
4238,
|
|
126
126
|
'When a request is made, a progress indicator will play while the edits are being applied.'
|
|
127
127
|
)));
|
|
128
128
|
content.push(( localize(
|
|
129
|
-
|
|
129
|
+
4239,
|
|
130
130
|
'Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile.'
|
|
131
131
|
)));
|
|
132
132
|
content.push(( localize(
|
|
133
|
-
|
|
133
|
+
4240,
|
|
134
134
|
'Navigate between edits in the editor with navigate previous{0} and next{1}',
|
|
135
135
|
'<keybinding:chatEditor.action.navigatePrevious>',
|
|
136
136
|
'<keybinding:chatEditor.action.navigateNext>'
|
|
137
137
|
)));
|
|
138
138
|
content.push(( localize(
|
|
139
|
-
|
|
139
|
+
4241,
|
|
140
140
|
'In the editor, Accept{0}, Reject{1}, or Toggle the Diff{2} for the current Change.',
|
|
141
141
|
'<keybinding:chatEditor.action.acceptHunk>',
|
|
142
142
|
'<keybinding:chatEditor.action.undoHunk>',
|
|
143
143
|
'<keybinding:chatEditor.action.toggleDiff>'
|
|
144
144
|
)));
|
|
145
|
-
content.push(( localize(
|
|
146
|
-
content.push(( localize(
|
|
145
|
+
content.push(( localize(4242, 'When in the edits view, some helpful commands include:')));
|
|
146
|
+
content.push(( localize(4243, '- Undo Edits{0}.', '<keybinding:workbench.action.chat.undoEdits>')));
|
|
147
147
|
content.push(( localize(
|
|
148
|
-
|
|
148
|
+
4244,
|
|
149
149
|
'- Attach Files{0}.',
|
|
150
150
|
'<keybinding:workbench.action.chat.editing.attachFiles>'
|
|
151
151
|
)));
|
|
152
152
|
content.push(( localize(
|
|
153
|
-
|
|
153
|
+
4245,
|
|
154
154
|
'- Remove File from Working Set{0}.',
|
|
155
155
|
'<keybinding:chatEditing.removeFileFromWorkingSet>'
|
|
156
156
|
)));
|
|
157
157
|
content.push(( localize(
|
|
158
|
-
|
|
158
|
+
4246,
|
|
159
159
|
'- Accept{0} and Discard File{1}.',
|
|
160
160
|
'<keybinding:chatEditing.acceptFile>',
|
|
161
161
|
'<keybinding:chatEditing.discardFile>'
|
|
162
162
|
)));
|
|
163
|
-
content.push(( localize(
|
|
164
|
-
content.push(( localize(
|
|
163
|
+
content.push(( localize(4247, '- Save All Files{0}.', '<keybinding:chatEditing.saveAllFiles>')));
|
|
164
|
+
content.push(( localize(4248, '- Accept All Edits{0}.', '<keybinding:chatEditing.acceptAllFiles>')));
|
|
165
165
|
content.push(( localize(
|
|
166
|
-
|
|
166
|
+
4249,
|
|
167
167
|
'- Discard All Edits{0}.',
|
|
168
168
|
'<keybinding:chatEditing.discardAllFiles>'
|
|
169
169
|
)));
|
|
170
|
-
content.push(( localize(
|
|
170
|
+
content.push(( localize(4250, '- Open File in Diff{0}.', '<keybinding:chatEditing.openFileInDiff>')));
|
|
171
171
|
content.push(( localize(
|
|
172
|
-
|
|
172
|
+
4251,
|
|
173
173
|
'- Add File to Working Set{0}.',
|
|
174
174
|
'<keybinding:chatEditing.addFileToWorkingSet>'
|
|
175
175
|
)));
|
|
176
|
-
content.push(( localize(
|
|
176
|
+
content.push(( localize(4252, '- View Changes{0}.', '<keybinding:chatEditing.viewChanges>')));
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
179
179
|
content.push(( localize(
|
|
180
|
-
|
|
180
|
+
4253,
|
|
181
181
|
"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."
|
|
182
182
|
)));
|
|
183
183
|
content.push(( localize(
|
|
184
|
-
|
|
184
|
+
4254,
|
|
185
185
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
186
186
|
'<keybinding:inlineChat.start>'
|
|
187
187
|
)));
|
|
188
188
|
content.push(( localize(
|
|
189
|
-
|
|
189
|
+
4255,
|
|
190
190
|
'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.',
|
|
191
191
|
'<keybinding:history.showPrevious>',
|
|
192
192
|
'<keybinding:history.showNext>'
|
|
193
193
|
)));
|
|
194
194
|
content.push(( localize(
|
|
195
|
-
|
|
195
|
+
4256,
|
|
196
196
|
'In the input box, inspect the response in the accessible view{0}.',
|
|
197
197
|
'<keybinding:editor.action.accessibleView>'
|
|
198
198
|
)));
|
|
199
199
|
content.push(( localize(
|
|
200
|
-
|
|
200
|
+
4257,
|
|
201
201
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
202
202
|
)));
|
|
203
203
|
content.push(( localize(
|
|
204
|
-
|
|
204
|
+
4258,
|
|
205
205
|
"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."
|
|
206
206
|
)));
|
|
207
207
|
content.push(( localize(
|
|
208
|
-
|
|
208
|
+
4259,
|
|
209
209
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
210
210
|
AccessibleDiffViewerNext.id
|
|
211
211
|
)));
|
|
212
212
|
content.push(( localize(
|
|
213
|
-
|
|
213
|
+
4260,
|
|
214
214
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
215
215
|
)));
|
|
216
216
|
}
|
|
217
217
|
content.push(( localize(
|
|
218
|
-
|
|
218
|
+
4261,
|
|
219
219
|
"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."
|
|
220
220
|
)));
|
|
221
221
|
return content.join('\n');
|
|
@@ -12,7 +12,7 @@ import { getCleanPromptName } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-
|
|
|
12
12
|
|
|
13
13
|
const DOCS_OPTION = {
|
|
14
14
|
type: 'item',
|
|
15
|
-
label: ( localize(
|
|
15
|
+
label: ( localize(4300, 'Learn how to create reusable prompts')),
|
|
16
16
|
description: DOCUMENTATION_URL,
|
|
17
17
|
tooltip: DOCUMENTATION_URL,
|
|
18
18
|
value: ( URI.parse(DOCUMENTATION_URL)),
|
|
@@ -86,7 +86,7 @@ const createPickItem = (promptFile, labelService) => {
|
|
|
86
86
|
const { uri, type } = promptFile;
|
|
87
87
|
const fileWithoutExtension = getCleanPromptName(uri);
|
|
88
88
|
const description = (type === 'user')
|
|
89
|
-
? ( localize(
|
|
89
|
+
? ( localize(4301, 'User prompt'))
|
|
90
90
|
: labelService.getUriLabel(dirname(uri), { relative: true });
|
|
91
91
|
const tooltip = (type === 'user')
|
|
92
92
|
? description
|
|
@@ -102,13 +102,13 @@ const createPickItem = (promptFile, labelService) => {
|
|
|
102
102
|
};
|
|
103
103
|
const createPlaceholderText = (options) => {
|
|
104
104
|
const { widget } = options;
|
|
105
|
-
let text = ( localize(
|
|
105
|
+
let text = ( localize(4302, 'Select a prompt to use'));
|
|
106
106
|
if (!widget) {
|
|
107
107
|
const altOptionkey = (isWindows || isLinux) ? 'Alt' : 'Option';
|
|
108
|
-
const altOptionModifierNote = ( localize(
|
|
108
|
+
const altOptionModifierNote = ( localize(4303, '{0}-key to use in Edits', altOptionkey));
|
|
109
109
|
const cmdCtrlkey = (isWindows || isLinux) ? 'Ctrl' : 'Cmd';
|
|
110
|
-
const superModifierNote = ( localize(
|
|
111
|
-
text += ( localize(
|
|
110
|
+
const superModifierNote = ( localize(4304, '{0}-key to open in editor', cmdCtrlkey));
|
|
111
|
+
text += ( localize(4305, ' (hold {0} or {1})', altOptionModifierNote, superModifierNote));
|
|
112
112
|
}
|
|
113
113
|
return text;
|
|
114
114
|
};
|
|
@@ -81,7 +81,7 @@ let CodeBlockActionRendering = class CodeBlockActionRendering extends Disposable
|
|
|
81
81
|
const context = this._context;
|
|
82
82
|
if (isCodeBlockActionContext(context) && context.codemapperUri) {
|
|
83
83
|
const label = labelService.getUriLabel(context.codemapperUri, { relative: true });
|
|
84
|
-
return localize(
|
|
84
|
+
return localize(4316, "Apply to {0}", label);
|
|
85
85
|
}
|
|
86
86
|
return super.getTooltip();
|
|
87
87
|
}
|
|
@@ -104,7 +104,7 @@ function registerChatCodeBlockActions() {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: 'workbench.action.chat.copyCodeBlock',
|
|
107
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(4317, "Copy")),
|
|
108
108
|
f1: false,
|
|
109
109
|
category: CHAT_CATEGORY,
|
|
110
110
|
icon: Codicon.copy,
|
|
@@ -189,7 +189,7 @@ function registerChatCodeBlockActions() {
|
|
|
189
189
|
constructor() {
|
|
190
190
|
super({
|
|
191
191
|
id: APPLY_IN_EDITOR_ID,
|
|
192
|
-
title: ( localize2(
|
|
192
|
+
title: ( localize2(4318, "Apply in Editor")),
|
|
193
193
|
precondition: ChatContextKeys.enabled,
|
|
194
194
|
f1: true,
|
|
195
195
|
category: CHAT_CATEGORY,
|
|
@@ -225,7 +225,7 @@ function registerChatCodeBlockActions() {
|
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
227
227
|
id: 'workbench.action.chat.insertCodeBlock',
|
|
228
|
-
title: ( localize2(
|
|
228
|
+
title: ( localize2(4319, "Insert At Cursor")),
|
|
229
229
|
precondition: ChatContextKeys.enabled,
|
|
230
230
|
f1: true,
|
|
231
231
|
category: CHAT_CATEGORY,
|
|
@@ -259,7 +259,7 @@ function registerChatCodeBlockActions() {
|
|
|
259
259
|
constructor() {
|
|
260
260
|
super({
|
|
261
261
|
id: 'workbench.action.chat.insertIntoNewFile',
|
|
262
|
-
title: ( localize2(
|
|
262
|
+
title: ( localize2(4320, "Insert into New File")),
|
|
263
263
|
precondition: ChatContextKeys.enabled,
|
|
264
264
|
f1: true,
|
|
265
265
|
category: CHAT_CATEGORY,
|
|
@@ -300,7 +300,7 @@ function registerChatCodeBlockActions() {
|
|
|
300
300
|
constructor() {
|
|
301
301
|
super({
|
|
302
302
|
id: 'workbench.action.chat.runInTerminal',
|
|
303
|
-
title: ( localize2(
|
|
303
|
+
title: ( localize2(4321, "Insert into Terminal")),
|
|
304
304
|
precondition: ChatContextKeys.enabled,
|
|
305
305
|
f1: true,
|
|
306
306
|
category: CHAT_CATEGORY,
|
|
@@ -394,7 +394,7 @@ function registerChatCodeBlockActions() {
|
|
|
394
394
|
constructor() {
|
|
395
395
|
super({
|
|
396
396
|
id: 'workbench.action.chat.nextCodeBlock',
|
|
397
|
-
title: ( localize2(
|
|
397
|
+
title: ( localize2(4322, "Next Code Block")),
|
|
398
398
|
keybinding: {
|
|
399
399
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown,
|
|
400
400
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown, },
|
|
@@ -414,7 +414,7 @@ function registerChatCodeBlockActions() {
|
|
|
414
414
|
constructor() {
|
|
415
415
|
super({
|
|
416
416
|
id: 'workbench.action.chat.previousCodeBlock',
|
|
417
|
-
title: ( localize2(
|
|
417
|
+
title: ( localize2(4323, "Previous Code Block")),
|
|
418
418
|
keybinding: {
|
|
419
419
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp,
|
|
420
420
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp, },
|
|
@@ -472,7 +472,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
472
472
|
constructor() {
|
|
473
473
|
super({
|
|
474
474
|
id: 'workbench.action.chat.applyCompareEdits',
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(4324, "Apply Edits")),
|
|
476
476
|
f1: false,
|
|
477
477
|
category: CHAT_CATEGORY,
|
|
478
478
|
icon: Codicon.gitPullRequestGoToChanges,
|
|
@@ -514,7 +514,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
514
514
|
constructor() {
|
|
515
515
|
super({
|
|
516
516
|
id: 'workbench.action.chat.discardCompareEdits',
|
|
517
|
-
title: ( localize2(
|
|
517
|
+
title: ( localize2(4325, "Discard Edits")),
|
|
518
518
|
f1: false,
|
|
519
519
|
category: CHAT_CATEGORY,
|
|
520
520
|
icon: Codicon.trash,
|
|
@@ -25,7 +25,7 @@ import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/l
|
|
|
25
25
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
26
26
|
import { ActiveEditorContext, TextCompareEditorActiveContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
27
27
|
import { EditorResourceAccessor, SideBySideEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
28
|
-
import { DiffEditorInput } from '@codingame/monaco-vscode-
|
|
28
|
+
import { DiffEditorInput } from '@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
29
29
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
30
30
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
31
31
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -144,7 +144,7 @@ class AttachFileToChatAction extends AttachFileAction {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super({
|
|
146
146
|
id: AttachFileToChatAction.ID,
|
|
147
|
-
title: ( localize2(
|
|
147
|
+
title: ( localize2(4326, "Add File to Chat")),
|
|
148
148
|
category: CHAT_CATEGORY,
|
|
149
149
|
f1: false,
|
|
150
150
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(TEXT_FILE_EDITOR_ID)), TextCompareEditorActiveContext)))),
|
|
@@ -171,7 +171,7 @@ class AttachSelectionToChatAction extends Action2 {
|
|
|
171
171
|
constructor() {
|
|
172
172
|
super({
|
|
173
173
|
id: AttachSelectionToChatAction.ID,
|
|
174
|
-
title: ( localize2(
|
|
174
|
+
title: ( localize2(4327, "Add Selection to Chat")),
|
|
175
175
|
category: CHAT_CATEGORY,
|
|
176
176
|
f1: false,
|
|
177
177
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(TEXT_FILE_EDITOR_ID)), TextCompareEditorActiveContext)))),
|
|
@@ -228,7 +228,7 @@ class AttachFileToEditingSessionAction extends AttachFileAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: AttachFileToEditingSessionAction.ID,
|
|
231
|
-
title: ( localize2(
|
|
231
|
+
title: ( localize2(4328, "Add File to {0}", 'Copilot Edits')),
|
|
232
232
|
category: CHAT_CATEGORY,
|
|
233
233
|
f1: false,
|
|
234
234
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(TEXT_FILE_EDITOR_ID)), TextCompareEditorActiveContext)))),
|
|
@@ -255,7 +255,7 @@ class AttachSelectionToEditingSessionAction extends Action2 {
|
|
|
255
255
|
constructor() {
|
|
256
256
|
super({
|
|
257
257
|
id: AttachSelectionToEditingSessionAction.ID,
|
|
258
|
-
title: ( localize2(
|
|
258
|
+
title: ( localize2(4329, "Add Selection to {0}", 'Copilot Edits')),
|
|
259
259
|
category: CHAT_CATEGORY,
|
|
260
260
|
f1: false,
|
|
261
261
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(TEXT_FILE_EDITOR_ID)), TextCompareEditorActiveContext))))
|
|
@@ -281,7 +281,7 @@ class AttachContextAction extends Action2 {
|
|
|
281
281
|
static { this._cdt = ( ContextKeyExpr.or(( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Panel)))), ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Editor)))), ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Notebook)))), ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Terminal)))))); }
|
|
282
282
|
constructor(desc = {
|
|
283
283
|
id: AttachContextAction.ID,
|
|
284
|
-
title: ( localize2(
|
|
284
|
+
title: ( localize2(4330, "Attach Context")),
|
|
285
285
|
icon: Codicon.attach,
|
|
286
286
|
category: CHAT_CATEGORY,
|
|
287
287
|
precondition: ( ContextKeyExpr.or(AttachContextAction._cdt, ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.EditingSession)))))),
|
|
@@ -438,7 +438,7 @@ class AttachContextAction extends Action2 {
|
|
|
438
438
|
}
|
|
439
439
|
return acc;
|
|
440
440
|
}, []));
|
|
441
|
-
const selectedFiles = await quickInputService.pick(itemsPromise, { placeHolder: ( localize(
|
|
441
|
+
const selectedFiles = await quickInputService.pick(itemsPromise, { placeHolder: ( localize(4331, 'Add related files to your working set')), canPickMany: true });
|
|
442
442
|
for (const file of selectedFiles ?? []) {
|
|
443
443
|
chatEditingService.getEditingSession(chatSessionId)?.addFileToWorkingSet(file.value);
|
|
444
444
|
}
|
|
@@ -481,8 +481,8 @@ class AttachContextAction extends Action2 {
|
|
|
481
481
|
const fileBuffer = await clipboardService.readImage();
|
|
482
482
|
toAttach.push({
|
|
483
483
|
id: await imageToHash(fileBuffer),
|
|
484
|
-
name: ( localize(
|
|
485
|
-
fullName: ( localize(
|
|
484
|
+
name: ( localize(4332, 'Pasted Image')),
|
|
485
|
+
fullName: ( localize(4332, 'Pasted Image')),
|
|
486
486
|
value: fileBuffer,
|
|
487
487
|
isImage: true
|
|
488
488
|
});
|
|
@@ -525,7 +525,7 @@ class AttachContextAction extends Action2 {
|
|
|
525
525
|
quickPickItems.push({
|
|
526
526
|
kind: 'image',
|
|
527
527
|
id: await imageToHash(imageData),
|
|
528
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(4333, 'Image from Clipboard')),
|
|
529
529
|
iconClass: ThemeIcon.asClassName(Codicon.fileMedia),
|
|
530
530
|
});
|
|
531
531
|
}
|
|
@@ -535,8 +535,8 @@ class AttachContextAction extends Action2 {
|
|
|
535
535
|
icon: ThemeIcon.fromId(Codicon.deviceCamera.id),
|
|
536
536
|
iconClass: ThemeIcon.asClassName(Codicon.deviceCamera),
|
|
537
537
|
label: (isElectron
|
|
538
|
-
? ( localize(
|
|
539
|
-
: ( localize(
|
|
538
|
+
? ( localize(4334, 'Screenshot Window'))
|
|
539
|
+
: ( localize(4335, 'Screenshot'))),
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
if (widget.viewModel?.sessionId) {
|
|
@@ -578,20 +578,20 @@ class AttachContextAction extends Action2 {
|
|
|
578
578
|
}
|
|
579
579
|
quickPickItems.push({
|
|
580
580
|
kind: 'quickaccess',
|
|
581
|
-
label: ( localize(
|
|
581
|
+
label: ( localize(4336, 'Symbol...')),
|
|
582
582
|
iconClass: ThemeIcon.asClassName(Codicon.symbolField),
|
|
583
583
|
prefix: SymbolsQuickAccessProvider.PREFIX,
|
|
584
584
|
id: 'symbol'
|
|
585
585
|
});
|
|
586
586
|
quickPickItems.push({
|
|
587
587
|
kind: 'folder',
|
|
588
|
-
label: ( localize(
|
|
588
|
+
label: ( localize(4337, 'Folder...')),
|
|
589
589
|
iconClass: ThemeIcon.asClassName(Codicon.folder),
|
|
590
590
|
id: 'folder',
|
|
591
591
|
});
|
|
592
592
|
quickPickItems.push({
|
|
593
593
|
kind: 'diagnostic',
|
|
594
|
-
label: ( localize(
|
|
594
|
+
label: ( localize(4338, 'Problem...')),
|
|
595
595
|
iconClass: ThemeIcon.asClassName(Codicon.error),
|
|
596
596
|
id: 'diagnostic'
|
|
597
597
|
});
|
|
@@ -602,10 +602,10 @@ class AttachContextAction extends Action2 {
|
|
|
602
602
|
icon: ThemeIcon.fromId(Codicon.serverEnvironment.id),
|
|
603
603
|
iconClass: ThemeIcon.asClassName(Codicon.serverEnvironment),
|
|
604
604
|
value: 'kernelVariable',
|
|
605
|
-
label: ( localize(
|
|
605
|
+
label: ( localize(4339, 'Kernel Variable...')),
|
|
606
606
|
command: {
|
|
607
607
|
id: 'notebook.chat.selectAndInsertKernelVariable',
|
|
608
|
-
title: ( localize(
|
|
608
|
+
title: ( localize(4340, 'Select and Insert Kernel Variable')),
|
|
609
609
|
arguments: [{ widget, range: undefined }]
|
|
610
610
|
}
|
|
611
611
|
});
|
|
@@ -615,7 +615,7 @@ class AttachContextAction extends Action2 {
|
|
|
615
615
|
quickPickItems.unshift({
|
|
616
616
|
kind: 'related-files',
|
|
617
617
|
id: 'related-files',
|
|
618
|
-
label: ( localize(
|
|
618
|
+
label: ( localize(4341, 'Related Files')),
|
|
619
619
|
iconClass: ThemeIcon.asClassName(Codicon.sparkle),
|
|
620
620
|
});
|
|
621
621
|
}
|
|
@@ -623,7 +623,7 @@ class AttachContextAction extends Action2 {
|
|
|
623
623
|
quickPickItems.unshift({
|
|
624
624
|
kind: 'open-editors',
|
|
625
625
|
id: 'open-editors',
|
|
626
|
-
label: ( localize(
|
|
626
|
+
label: ( localize(4342, 'Open Editors')),
|
|
627
627
|
iconClass: ThemeIcon.asClassName(Codicon.files),
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -631,7 +631,7 @@ class AttachContextAction extends Action2 {
|
|
|
631
631
|
quickPickItems.unshift({
|
|
632
632
|
kind: 'search-results',
|
|
633
633
|
id: 'search-results',
|
|
634
|
-
label: ( localize(
|
|
634
|
+
label: ( localize(4343, 'Search Results')),
|
|
635
635
|
iconClass: ThemeIcon.asClassName(Codicon.search),
|
|
636
636
|
});
|
|
637
637
|
}
|
|
@@ -641,7 +641,7 @@ class AttachContextAction extends Action2 {
|
|
|
641
641
|
quickPickItems.push({
|
|
642
642
|
id: REUSABLE_PROMPT_PICK_ID,
|
|
643
643
|
kind: REUSABLE_PROMPT_PICK_ID,
|
|
644
|
-
label: ( localize(
|
|
644
|
+
label: ( localize(4344, 'Prompt...')),
|
|
645
645
|
iconClass: ThemeIcon.asClassName(Codicon.bookmark),
|
|
646
646
|
keybinding,
|
|
647
647
|
});
|
|
@@ -742,7 +742,7 @@ class AttachContextAction extends Action2 {
|
|
|
742
742
|
SymbolsQuickAccessProvider.PREFIX,
|
|
743
743
|
AbstractGotoSymbolQuickAccessProvider.PREFIX
|
|
744
744
|
],
|
|
745
|
-
placeholder: placeholder ?? ( localize(
|
|
745
|
+
placeholder: placeholder ?? ( localize(4345, 'Search attachments')),
|
|
746
746
|
providerOptions,
|
|
747
747
|
});
|
|
748
748
|
}
|
|
@@ -763,8 +763,8 @@ registerAction2(class AttachFilesAction extends AttachContextAction {
|
|
|
763
763
|
constructor() {
|
|
764
764
|
super({
|
|
765
765
|
id: 'workbench.action.chat.editing.attachFiles',
|
|
766
|
-
title: ( localize2(
|
|
767
|
-
shortTitle: ( localize2(
|
|
766
|
+
title: ( localize2(4346, "Add Files to Copilot Edits")),
|
|
767
|
+
shortTitle: ( localize2(4347, "Add Files...")),
|
|
768
768
|
f1: false,
|
|
769
769
|
category: CHAT_CATEGORY,
|
|
770
770
|
menu: { id: MenuId.ChatInputAttachmentToolbar, group: 'navigation' },
|
|
@@ -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(4348, "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(4349, "Copy")),
|
|
46
46
|
f1: false,
|
|
47
47
|
category: CHAT_CATEGORY,
|
|
48
48
|
menu: {
|
|
@@ -13,7 +13,7 @@ class LogChatInputHistoryAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: LogChatInputHistoryAction.ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4350, "Log Chat Input History")),
|
|
17
17
|
icon: Codicon.attach,
|
|
18
18
|
category: Categories.Developer,
|
|
19
19
|
f1: true
|
|
@@ -13,7 +13,7 @@ function registerChatFileTreeActions() {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'workbench.action.chat.nextFileTree',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4372, "Next File Tree")),
|
|
17
17
|
keybinding: {
|
|
18
18
|
primary: KeyMod.CtrlCmd | KeyCode.F9,
|
|
19
19
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -32,7 +32,7 @@ function registerChatFileTreeActions() {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'workbench.action.chat.previousFileTree',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4373, "Previous File Tree")),
|
|
36
36
|
keybinding: {
|
|
37
37
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.F9,
|
|
38
38
|
weight: KeybindingWeight.WorkbenchContrib,
|