@codingame/monaco-vscode-chat-service-override 20.0.1 → 20.1.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 +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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,41 +15,41 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-07eaa805-9dea-5ec6-a422-a4f04872424d-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-0af61f78-dfc5-57ba-8d32-66268c8de38d-common": "20.
|
|
20
|
-
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.
|
|
22
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.
|
|
23
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.
|
|
24
|
-
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.
|
|
25
|
-
"@codingame/monaco-vscode-64322fa2-7385-5f46-935b-8f243d98004b-common": "20.
|
|
26
|
-
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.
|
|
27
|
-
"@codingame/monaco-vscode-6883db80-c313-54eb-8fbc-5872c56b0326-common": "20.
|
|
28
|
-
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "20.
|
|
29
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.
|
|
30
|
-
"@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common": "20.
|
|
31
|
-
"@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common": "20.
|
|
32
|
-
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "20.
|
|
33
|
-
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "20.
|
|
34
|
-
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "20.
|
|
35
|
-
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.
|
|
36
|
-
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "20.
|
|
37
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.
|
|
38
|
-
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "20.
|
|
39
|
-
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "20.
|
|
40
|
-
"@codingame/monaco-vscode-api": "20.
|
|
41
|
-
"@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common": "20.
|
|
42
|
-
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "20.
|
|
43
|
-
"@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "20.
|
|
44
|
-
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.
|
|
45
|
-
"@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common": "20.
|
|
46
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.
|
|
47
|
-
"@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "20.
|
|
48
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "20.
|
|
49
|
-
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "20.
|
|
50
|
-
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "20.
|
|
51
|
-
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "20.
|
|
52
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.
|
|
18
|
+
"@codingame/monaco-vscode-07eaa805-9dea-5ec6-a422-a4f04872424d-common": "20.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-0af61f78-dfc5-57ba-8d32-66268c8de38d-common": "20.1.1",
|
|
20
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "20.1.1",
|
|
21
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.1.1",
|
|
22
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.1.1",
|
|
23
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.1.1",
|
|
24
|
+
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "20.1.1",
|
|
25
|
+
"@codingame/monaco-vscode-64322fa2-7385-5f46-935b-8f243d98004b-common": "20.1.1",
|
|
26
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.1.1",
|
|
27
|
+
"@codingame/monaco-vscode-6883db80-c313-54eb-8fbc-5872c56b0326-common": "20.1.1",
|
|
28
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "20.1.1",
|
|
29
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "20.1.1",
|
|
30
|
+
"@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common": "20.1.1",
|
|
31
|
+
"@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common": "20.1.1",
|
|
32
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "20.1.1",
|
|
33
|
+
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "20.1.1",
|
|
34
|
+
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "20.1.1",
|
|
35
|
+
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.1.1",
|
|
36
|
+
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "20.1.1",
|
|
37
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.1.1",
|
|
38
|
+
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "20.1.1",
|
|
39
|
+
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "20.1.1",
|
|
40
|
+
"@codingame/monaco-vscode-api": "20.1.1",
|
|
41
|
+
"@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common": "20.1.1",
|
|
42
|
+
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "20.1.1",
|
|
43
|
+
"@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "20.1.1",
|
|
44
|
+
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.1.1",
|
|
45
|
+
"@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common": "20.1.1",
|
|
46
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.1.1",
|
|
47
|
+
"@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common": "20.1.1",
|
|
48
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "20.1.1",
|
|
49
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "20.1.1",
|
|
50
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "20.1.1",
|
|
51
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "20.1.1",
|
|
52
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.1.1"
|
|
53
53
|
},
|
|
54
54
|
"main": "index.js",
|
|
55
55
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js
CHANGED
|
@@ -507,12 +507,12 @@ let ChatEditingCodeEditorIntegration = class ChatEditingCodeEditorIntegration {
|
|
|
507
507
|
options: { selection },
|
|
508
508
|
label: defaultAgentName
|
|
509
509
|
? ( localize(
|
|
510
|
-
|
|
510
|
+
4920,
|
|
511
511
|
'{0} (changes from {1})',
|
|
512
512
|
basename(this._entry.modifiedURI),
|
|
513
513
|
defaultAgentName
|
|
514
514
|
))
|
|
515
|
-
: ( localize(
|
|
515
|
+
: ( localize(4921, '{0} (changes from chat)', basename(this._entry.modifiedURI)))
|
|
516
516
|
});
|
|
517
517
|
if (diffEditor && diffEditor.input) {
|
|
518
518
|
diffEditor.getControl()?.setSelection(selection);
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js
CHANGED
|
@@ -54,8 +54,8 @@ class NavigateAction extends ChatEditingEditorAction {
|
|
|
54
54
|
? 'chatEditor.action.navigateNext'
|
|
55
55
|
: 'chatEditor.action.navigatePrevious',
|
|
56
56
|
title: next
|
|
57
|
-
? ( localize2(
|
|
58
|
-
: ( localize2(
|
|
57
|
+
? ( localize2(4922, 'Go to Next Chat Edit'))
|
|
58
|
+
: ( localize2(4923, 'Go to Previous Chat Edit')),
|
|
59
59
|
icon: next ? Codicon.arrowDown : Codicon.arrowUp,
|
|
60
60
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
|
|
61
61
|
keybinding: {
|
|
@@ -127,14 +127,14 @@ class KeepOrUndoAction extends ChatEditingEditorAction {
|
|
|
127
127
|
super({
|
|
128
128
|
id,
|
|
129
129
|
title: _keep
|
|
130
|
-
? ( localize2(
|
|
131
|
-
: ( localize2(
|
|
130
|
+
? ( localize2(4924, 'Keep Chat Edits'))
|
|
131
|
+
: ( localize2(4925, 'Undo Chat Edits')),
|
|
132
132
|
shortTitle: _keep
|
|
133
|
-
? ( localize2(
|
|
134
|
-
: ( localize2(
|
|
133
|
+
? ( localize2(4926, 'Keep'))
|
|
134
|
+
: ( localize2(4927, 'Undo')),
|
|
135
135
|
tooltip: _keep
|
|
136
|
-
? ( localize2(
|
|
137
|
-
: ( localize2(
|
|
136
|
+
? ( localize2(4928, 'Keep Chat Edits in this File'))
|
|
137
|
+
: ( localize2(4929, 'Undo Chat Edits in this File')),
|
|
138
138
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxHasRequestInProgress.negate()))),
|
|
139
139
|
icon: _keep
|
|
140
140
|
? Codicon.check
|
|
@@ -184,7 +184,7 @@ class AcceptRejectHunkAction extends ChatEditingEditorAction {
|
|
|
184
184
|
constructor(_accept) {
|
|
185
185
|
super({
|
|
186
186
|
id: _accept ? 'chatEditor.action.acceptHunk' : 'chatEditor.action.undoHunk',
|
|
187
|
-
title: _accept ? ( localize2(
|
|
187
|
+
title: _accept ? ( localize2(4930, 'Keep this Change')) : ( localize2(4931, 'Undo this Change')),
|
|
188
188
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxHasRequestInProgress.negate()))),
|
|
189
189
|
icon: _accept ? Codicon.check : Codicon.discard,
|
|
190
190
|
f1: true,
|
|
@@ -219,7 +219,7 @@ class ToggleDiffAction extends ChatEditingEditorAction {
|
|
|
219
219
|
constructor() {
|
|
220
220
|
super({
|
|
221
221
|
id: 'chatEditor.action.toggleDiff',
|
|
222
|
-
title: ( localize2(
|
|
222
|
+
title: ( localize2(4932, 'Toggle Diff Editor for Chat Edits')),
|
|
223
223
|
category: CHAT_CATEGORY,
|
|
224
224
|
toggled: {
|
|
225
225
|
condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
|
|
@@ -251,7 +251,7 @@ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
|
|
|
251
251
|
constructor() {
|
|
252
252
|
super({
|
|
253
253
|
id: 'chatEditor.action.showAccessibleDiffView',
|
|
254
|
-
title: ( localize2(
|
|
254
|
+
title: ( localize2(4933, 'Show Accessible Diff View for Chat Edits')),
|
|
255
255
|
f1: true,
|
|
256
256
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxHasRequestInProgress.negate()))),
|
|
257
257
|
keybinding: {
|
|
@@ -269,7 +269,7 @@ class ReviewChangesAction extends ChatEditingEditorAction {
|
|
|
269
269
|
constructor() {
|
|
270
270
|
super({
|
|
271
271
|
id: 'chatEditor.action.reviewChanges',
|
|
272
|
-
title: ( localize2(
|
|
272
|
+
title: ( localize2(4934, "Review")),
|
|
273
273
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxHasRequestInProgress.negate()))),
|
|
274
274
|
menu: [{
|
|
275
275
|
id: MenuId.ChatEditingEditorContent,
|
|
@@ -288,8 +288,8 @@ class AcceptAllEditsAction extends ChatEditingEditorAction {
|
|
|
288
288
|
constructor() {
|
|
289
289
|
super({
|
|
290
290
|
id: AcceptAllEditsAction.ID,
|
|
291
|
-
title: ( localize2(
|
|
292
|
-
tooltip: ( localize2(
|
|
291
|
+
title: ( localize2(4935, 'Keep All Chat Edits')),
|
|
292
|
+
tooltip: ( localize2(4936, 'Keep All Chat Edits in this Session')),
|
|
293
293
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxHasRequestInProgress.negate()))),
|
|
294
294
|
icon: Codicon.checkAll,
|
|
295
295
|
f1: true,
|
|
@@ -308,7 +308,7 @@ class MultiDiffAcceptDiscardAction extends Action2 {
|
|
|
308
308
|
constructor(accept) {
|
|
309
309
|
super({
|
|
310
310
|
id: accept ? 'chatEditing.multidiff.acceptAllFiles' : 'chatEditing.multidiff.discardAllFiles',
|
|
311
|
-
title: accept ? ( localize(
|
|
311
|
+
title: accept ? ( localize(4937, 'Keep All Edits')) : ( localize(4938, 'Undo All Edits')),
|
|
312
312
|
icon: accept ? Codicon.check : Codicon.discard,
|
|
313
313
|
menu: {
|
|
314
314
|
when: ( ContextKeyExpr.equals('resourceScheme', CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
|
|
@@ -370,7 +370,7 @@ function registerChatEditorActions() {
|
|
|
370
370
|
MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
|
|
371
371
|
command: {
|
|
372
372
|
id: navigationBearingFakeActionId,
|
|
373
|
-
title: ( localize(
|
|
373
|
+
title: ( localize(4939, "Navigation Status")),
|
|
374
374
|
precondition: ( ContextKeyExpr.false()),
|
|
375
375
|
},
|
|
376
376
|
group: 'navigate',
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
CHANGED
|
@@ -64,10 +64,10 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
64
64
|
}
|
|
65
65
|
const response = this._entry.read(r)?.lastModifyingResponse.read(r);
|
|
66
66
|
if (!response) {
|
|
67
|
-
return { message: ( localize(
|
|
67
|
+
return { message: ( localize(4945, "Working...")) };
|
|
68
68
|
}
|
|
69
69
|
if (response.isPaused.read(r)) {
|
|
70
|
-
return { message: ( localize(
|
|
70
|
+
return { message: ( localize(4946, "Paused")), paused: true };
|
|
71
71
|
}
|
|
72
72
|
const lastPart = observableFromEventOpts({ equalsFn: equals }, response.onDidChange, () => response.response.value)
|
|
73
73
|
.read(r)
|
|
@@ -80,7 +80,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
80
80
|
return { message: lastPart.content };
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
return { message: ( localize(
|
|
83
|
+
return { message: ( localize(4945, "Working...")) };
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
const progressNode = createElement('div');
|
|
@@ -157,10 +157,10 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
157
157
|
const { changeCount, activeIdx } = that._navigationBearings.read(r);
|
|
158
158
|
if (changeCount > 0) {
|
|
159
159
|
const n = activeIdx === -1 ? '1' : `${activeIdx + 1}`;
|
|
160
|
-
this.label.innerText = ( localize(
|
|
160
|
+
this.label.innerText = ( localize(4947, "{0} of {1}", n, changeCount));
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
|
-
this.label.innerText = ( localize(
|
|
163
|
+
this.label.innerText = ( localize(4948, "—"));
|
|
164
164
|
}
|
|
165
165
|
this.updateTooltip();
|
|
166
166
|
}));
|
|
@@ -172,21 +172,21 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
172
172
|
}
|
|
173
173
|
let result;
|
|
174
174
|
if (changeCount === 1 && entriesCount === 1) {
|
|
175
|
-
result = ( localize(
|
|
175
|
+
result = ( localize(4949, "1 change in 1 file"));
|
|
176
176
|
}
|
|
177
177
|
else if (changeCount === 1) {
|
|
178
|
-
result = ( localize(
|
|
178
|
+
result = ( localize(4950, "1 change in {0} files", entriesCount));
|
|
179
179
|
}
|
|
180
180
|
else if (entriesCount === 1) {
|
|
181
|
-
result = ( localize(
|
|
181
|
+
result = ( localize(4951, "{0} changes in 1 file", changeCount));
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
|
-
result = ( localize(
|
|
184
|
+
result = ( localize(4952, "{0} changes in {1} files", changeCount, entriesCount));
|
|
185
185
|
}
|
|
186
186
|
if (!that._isBusy.get()) {
|
|
187
187
|
return result;
|
|
188
188
|
}
|
|
189
|
-
return localize(
|
|
189
|
+
return localize(4953, "{0} - Working...", result);
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -235,7 +235,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
235
235
|
if (!kb) {
|
|
236
236
|
return value;
|
|
237
237
|
}
|
|
238
|
-
return localize(
|
|
238
|
+
return localize(4954, "{0} ({1})", value, kb.getLabel());
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js
CHANGED
|
@@ -70,7 +70,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
70
70
|
if (inProgress) {
|
|
71
71
|
const res = this._lastModifyingResponseObs.read(r);
|
|
72
72
|
const req = res && res.session.getRequests().find(value => value.id === res.requestId);
|
|
73
|
-
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(
|
|
73
|
+
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(4955, "Chat Edits")));
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
76
76
|
resourceFilter.clear();
|
|
@@ -112,7 +112,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
112
112
|
}
|
|
113
113
|
_createUndoRedoElement(response) {
|
|
114
114
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
115
|
-
const label = request?.message.text ? ( localize(
|
|
115
|
+
const label = request?.message.text ? ( localize(4956, "Chat Edit: '{0}'", request.message.text)) : ( localize(4957, "Chat Edit"));
|
|
116
116
|
return ( new SingleModelEditStackElement(label, 'chat.edit', this.modifiedModel, null));
|
|
117
117
|
}
|
|
118
118
|
async acceptAgentEdits(resource, textEdits, isLastEdits, responseModel) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js
CHANGED
|
@@ -40,7 +40,7 @@ class AutoAcceptControl {
|
|
|
40
40
|
this.cancel = cancel;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const pendingRewriteMinimap = registerColor('minimap.chatEditHighlight', ( transparent(editorBackground, 0.6)), ( localize(
|
|
43
|
+
const pendingRewriteMinimap = registerColor('minimap.chatEditHighlight', ( transparent(editorBackground, 0.6)), ( localize(4958, "Color of pending edit regions in the minimap")));
|
|
44
44
|
let AbstractChatEditingModifiedFileEntry = class AbstractChatEditingModifiedFileEntry extends Disposable {
|
|
45
45
|
static { AbstractChatEditingModifiedFileEntry_1 = this; }
|
|
46
46
|
static { this.scheme = 'modified-file-entry'; }
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js
CHANGED
|
@@ -396,7 +396,7 @@ let ChatEditingModifiedNotebookEntry = class ChatEditingModifiedNotebookEntry ex
|
|
|
396
396
|
}
|
|
397
397
|
_createUndoRedoElement(response) {
|
|
398
398
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
399
|
-
const label = request?.message.text ? ( localize(
|
|
399
|
+
const label = request?.message.text ? ( localize(4959, "Chat Edit: '{0}'", request.message.text)) : ( localize(4960, "Chat Edit"));
|
|
400
400
|
const transientOptions = this.transientOptions;
|
|
401
401
|
const outputSizeLimit = this.configurationService.getValue(NotebookSetting.outputBackupSizeLimit) * 1024;
|
|
402
402
|
let initial = createSnapshot(this.modifiedModel, transientOptions, outputSizeLimit);
|
|
@@ -97,7 +97,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
97
97
|
}
|
|
98
98
|
e.join(storageTask, {
|
|
99
99
|
id: 'join.chatEditingSession',
|
|
100
|
-
label: ( localize(
|
|
100
|
+
label: ( localize(4961, "Saving chat edits history"))
|
|
101
101
|
});
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
@@ -328,7 +328,7 @@ let ChatDecorationsProvider = class ChatDecorationsProvider extends Disposable {
|
|
|
328
328
|
super();
|
|
329
329
|
this._sessions = _sessions;
|
|
330
330
|
this._chatAgentService = _chatAgentService;
|
|
331
|
-
this.label = ( localize(
|
|
331
|
+
this.label = ( localize(4962, "Chat Editing"));
|
|
332
332
|
this._currentEntries = derived(this, (r) => {
|
|
333
333
|
const sessions = this._sessions.read(r);
|
|
334
334
|
if (!sessions) {
|
|
@@ -368,7 +368,7 @@ let ChatDecorationsProvider = class ChatDecorationsProvider extends Disposable {
|
|
|
368
368
|
return {
|
|
369
369
|
weight: 1000,
|
|
370
370
|
letter: Codicon.diffModified,
|
|
371
|
-
tooltip: defaultAgentName ? ( localize(
|
|
371
|
+
tooltip: defaultAgentName ? ( localize(4963, "Pending changes from {0}", defaultAgentName)) : ( localize(4964, "Pending changes from chat")),
|
|
372
372
|
bubble: true
|
|
373
373
|
};
|
|
374
374
|
}
|
|
@@ -286,7 +286,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
|
|
|
286
286
|
}
|
|
287
287
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
288
288
|
multiDiffSource: getMultiDiffSourceUri(this, previousChanges),
|
|
289
|
-
label: ( localize(
|
|
289
|
+
label: ( localize(4965, "Suggested Edits"))
|
|
290
290
|
}, this._instantiationService);
|
|
291
291
|
this._editorPane = await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
|
|
292
292
|
}
|
|
@@ -553,12 +553,12 @@ let ChatEditingNotebookEditorWidgetIntegration = class ChatEditingNotebookEditor
|
|
|
553
553
|
modified: { resource: this._entry.modifiedURI },
|
|
554
554
|
label: defaultAgentName
|
|
555
555
|
? ( localize(
|
|
556
|
-
|
|
556
|
+
4966,
|
|
557
557
|
'{0} (changes from {1})',
|
|
558
558
|
basename(this._entry.modifiedURI),
|
|
559
559
|
defaultAgentName
|
|
560
560
|
))
|
|
561
|
-
: ( localize(
|
|
561
|
+
: ( localize(4967, '{0} (changes from chat)', basename(this._entry.modifiedURI)))
|
|
562
562
|
};
|
|
563
563
|
await this._editorService.openEditor(diffInput);
|
|
564
564
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js
CHANGED
|
@@ -71,27 +71,27 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
71
71
|
this._domNode = createElement('div');
|
|
72
72
|
this._domNode.className = 'element-selection-message';
|
|
73
73
|
const message = createElement('span');
|
|
74
|
-
const startSelectionMessage = ( localize(
|
|
74
|
+
const startSelectionMessage = ( localize(4968, 'Add element to chat'));
|
|
75
75
|
message.textContent = startSelectionMessage;
|
|
76
76
|
this._domNode.appendChild(message);
|
|
77
77
|
let cts;
|
|
78
78
|
const actions = [];
|
|
79
79
|
actions.push(toAction({
|
|
80
80
|
id: 'singleSelection',
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(4969, 'Select an Element')),
|
|
82
82
|
enabled: true,
|
|
83
83
|
run: async () => { await startElementSelection(); }
|
|
84
84
|
}), toAction({
|
|
85
85
|
id: 'continuousSelection',
|
|
86
|
-
label: ( localize(
|
|
86
|
+
label: ( localize(4970, 'Continuous Selection')),
|
|
87
87
|
enabled: true,
|
|
88
88
|
run: async () => {
|
|
89
89
|
this._editor.focus();
|
|
90
90
|
cts = ( new CancellationTokenSource());
|
|
91
|
-
message.textContent = ( localize(
|
|
91
|
+
message.textContent = ( localize(4971, 'Selecting element...'));
|
|
92
92
|
this.hideElement(startButton.element);
|
|
93
93
|
this.showElement(cancelButton.element);
|
|
94
|
-
cancelButton.label = ( localize(
|
|
94
|
+
cancelButton.label = ( localize(4972, 'Done'));
|
|
95
95
|
while (!cts.token.isCancellationRequested) {
|
|
96
96
|
try {
|
|
97
97
|
await this.addElementToChat(cts);
|
|
@@ -102,7 +102,7 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
message.textContent = ( localize(
|
|
105
|
+
message.textContent = ( localize(4973, 'Element added to chat'));
|
|
106
106
|
finishedSelecting();
|
|
107
107
|
}
|
|
108
108
|
}));
|
|
@@ -111,27 +111,27 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
111
111
|
addPrimaryActionToDropdown: false,
|
|
112
112
|
contextMenuProvider: this.contextMenuService,
|
|
113
113
|
supportShortLabel: true,
|
|
114
|
-
title: ( localize(
|
|
114
|
+
title: ( localize(4974, 'Click to select an element.')),
|
|
115
115
|
supportIcons: true,
|
|
116
116
|
...defaultButtonStyles
|
|
117
117
|
})));
|
|
118
|
-
startButton.primaryButton.label = ( localize(
|
|
118
|
+
startButton.primaryButton.label = ( localize(4975, 'Start'));
|
|
119
119
|
startButton.element.classList.add('element-selection-start');
|
|
120
120
|
const cancelButton = this._showStore.add(( new Button(
|
|
121
121
|
this._domNode,
|
|
122
|
-
{ ...defaultButtonStyles, supportIcons: true, title: ( localize(
|
|
122
|
+
{ ...defaultButtonStyles, supportIcons: true, title: ( localize(4976, 'Click to cancel selection.')) }
|
|
123
123
|
)));
|
|
124
124
|
cancelButton.element.className = 'element-selection-cancel hidden';
|
|
125
|
-
const cancelButtonLabel = ( localize(
|
|
125
|
+
const cancelButtonLabel = ( localize(4977, 'Cancel'));
|
|
126
126
|
cancelButton.label = cancelButtonLabel;
|
|
127
|
-
const configure = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(
|
|
127
|
+
const configure = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(4978, "Configure Attachments Sent")) })));
|
|
128
128
|
configure.icon = Codicon.gear;
|
|
129
|
-
const collapseOverlay = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(
|
|
129
|
+
const collapseOverlay = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(4979, "Collapse Overlay")) })));
|
|
130
130
|
collapseOverlay.icon = Codicon.chevronRight;
|
|
131
|
-
const nextSelection = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(
|
|
131
|
+
const nextSelection = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(4980, "Select Again")) })));
|
|
132
132
|
nextSelection.icon = Codicon.close;
|
|
133
133
|
nextSelection.element.classList.add('hidden');
|
|
134
|
-
const expandOverlay = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(
|
|
134
|
+
const expandOverlay = this._showStore.add(( new Button(this._domNode, { supportIcons: true, title: ( localize(4981, "Expand Overlay")) })));
|
|
135
135
|
expandOverlay.icon = Codicon.layout;
|
|
136
136
|
const expandContainer = createElement('div');
|
|
137
137
|
expandContainer.className = 'element-expand-container hidden';
|
|
@@ -155,11 +155,11 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
155
155
|
const startElementSelection = async () => {
|
|
156
156
|
cts = ( new CancellationTokenSource());
|
|
157
157
|
this._editor.focus();
|
|
158
|
-
message.textContent = ( localize(
|
|
158
|
+
message.textContent = ( localize(4971, 'Selecting element...'));
|
|
159
159
|
this.hideElement(startButton.element);
|
|
160
160
|
this.showElement(cancelButton.element);
|
|
161
161
|
await this.addElementToChat(cts);
|
|
162
|
-
message.textContent = ( localize(
|
|
162
|
+
message.textContent = ( localize(4973, 'Element added to chat'));
|
|
163
163
|
finishedSelecting();
|
|
164
164
|
};
|
|
165
165
|
this._showStore.add(addDisposableListener(startButton.primaryButton.element, 'click', async () => {
|
|
@@ -167,7 +167,7 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
167
167
|
}));
|
|
168
168
|
this._showStore.add(addDisposableListener(cancelButton.element, 'click', () => {
|
|
169
169
|
cts.cancel();
|
|
170
|
-
message.textContent = ( localize(
|
|
170
|
+
message.textContent = ( localize(4982, 'Selection canceled'));
|
|
171
171
|
finishedSelecting();
|
|
172
172
|
}));
|
|
173
173
|
this._showStore.add(addDisposableListener(collapseOverlay.element, 'click', () => {
|
|
@@ -303,7 +303,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
303
303
|
};
|
|
304
304
|
let cts = ( new CancellationTokenSource());
|
|
305
305
|
const show = async () => {
|
|
306
|
-
connectingWebviewElement.textContent = ( localize(
|
|
306
|
+
connectingWebviewElement.textContent = ( localize(4983, 'Connecting to webview...'));
|
|
307
307
|
if (!container.contains(connectingWebviewElement)) {
|
|
308
308
|
container.appendChild(connectingWebviewElement);
|
|
309
309
|
}
|
|
@@ -314,7 +314,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
314
314
|
await this._browserElementsService.startDebugSession(cts.token, activeBrowserType);
|
|
315
315
|
}
|
|
316
316
|
catch (error) {
|
|
317
|
-
connectingWebviewElement.textContent = ( localize(
|
|
317
|
+
connectingWebviewElement.textContent = ( localize(4984, 'Please reopen the preview.'));
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -119,7 +119,7 @@ const chatOutputRenderContributionPoint = ExtensionsRegistry.registerExtensionPo
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
jsonSchema: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(5036, 'Contributes a renderer for specific MIME types in chat outputs')),
|
|
123
123
|
type: 'array',
|
|
124
124
|
items: {
|
|
125
125
|
type: 'object',
|
|
@@ -128,11 +128,11 @@ const chatOutputRenderContributionPoint = ExtensionsRegistry.registerExtensionPo
|
|
|
128
128
|
properties: {
|
|
129
129
|
viewType: {
|
|
130
130
|
type: 'string',
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(5037, 'Unique identifier for the renderer.')),
|
|
132
132
|
},
|
|
133
133
|
mimeTypes: {
|
|
134
134
|
type: 'array',
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(5038, 'MIME types that this renderer can handle')),
|
|
136
136
|
items: {
|
|
137
137
|
type: 'string'
|
|
138
138
|
}
|