@codingame/monaco-vscode-chat-service-override 26.1.1 → 26.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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +19 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +209 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +3 -3
- 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/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +255 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +51 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +329 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +51 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +58 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +591 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +162 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +30 -15
- 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/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +24 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +251 -72
- 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/browser/widget/input/chatQueuePickerActionItem.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +191 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +13 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +203 -25
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +50 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +11 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +23 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +76 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +22 -11
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +135 -54
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +64 -43
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +341 -24
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +95 -26
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- 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 +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +14 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +0 -955
|
@@ -29,10 +29,10 @@ import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vs
|
|
|
29
29
|
import { ChatViewContainerId, ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
30
30
|
import { ChatViewPane } from './widgetHosts/viewPane/chatViewPane.js';
|
|
31
31
|
|
|
32
|
-
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(
|
|
32
|
+
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(5474, "View icon of the chat view.")));
|
|
33
33
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
34
34
|
id: ChatViewContainerId,
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(5475, "Chat")),
|
|
36
36
|
icon: chatViewIcon,
|
|
37
37
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [ChatViewContainerId, {
|
|
38
38
|
mergeViewWithContainerWhenSingleView: true
|
|
@@ -49,13 +49,13 @@ const chatViewDescriptor = {
|
|
|
49
49
|
containerIcon: chatViewContainer.icon,
|
|
50
50
|
containerTitle: chatViewContainer.title.value,
|
|
51
51
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
52
|
-
name: ( localize2(
|
|
52
|
+
name: ( localize2(5475, "Chat")),
|
|
53
53
|
canToggleVisibility: false,
|
|
54
54
|
canMoveView: true,
|
|
55
55
|
openCommandActionDescriptor: {
|
|
56
56
|
id: ChatViewContainerId,
|
|
57
57
|
title: chatViewContainer.title,
|
|
58
|
-
mnemonicTitle: ( localize(
|
|
58
|
+
mnemonicTitle: ( localize(5476, "&&Chat")),
|
|
59
59
|
keybindings: {
|
|
60
60
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
61
61
|
mac: {
|
|
@@ -71,7 +71,7 @@ const chatViewDescriptor = {
|
|
|
71
71
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
72
72
|
extensionPoint: "chatParticipants",
|
|
73
73
|
jsonSchema: {
|
|
74
|
-
description: ( localize(
|
|
74
|
+
description: ( localize(5477, "Contributes a chat participant")),
|
|
75
75
|
type: "array",
|
|
76
76
|
items: {
|
|
77
77
|
additionalProperties: false,
|
|
@@ -85,12 +85,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
85
85
|
required: ["name", "id"],
|
|
86
86
|
properties: {
|
|
87
87
|
id: {
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(5478, "A unique id for this chat participant.")),
|
|
89
89
|
type: "string"
|
|
90
90
|
},
|
|
91
91
|
name: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
5479,
|
|
94
94
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
95
95
|
)),
|
|
96
96
|
type: "string",
|
|
@@ -98,37 +98,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
98
98
|
},
|
|
99
99
|
fullName: {
|
|
100
100
|
markdownDescription: ( localize(
|
|
101
|
-
|
|
101
|
+
5480,
|
|
102
102
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
103
103
|
"`name`"
|
|
104
104
|
)),
|
|
105
105
|
type: "string"
|
|
106
106
|
},
|
|
107
107
|
description: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(5481, "A description of this chat participant, shown in the UI.")),
|
|
109
109
|
type: "string"
|
|
110
110
|
},
|
|
111
111
|
isSticky: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
5482,
|
|
114
114
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
115
115
|
)),
|
|
116
116
|
type: "boolean"
|
|
117
117
|
},
|
|
118
118
|
sampleRequest: {
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
5483,
|
|
121
121
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
122
122
|
)),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(5484, "A condition which must be true to enable this participant.")),
|
|
127
127
|
type: "string"
|
|
128
128
|
},
|
|
129
129
|
disambiguation: {
|
|
130
130
|
description: ( localize(
|
|
131
|
-
|
|
131
|
+
5485,
|
|
132
132
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
133
133
|
)),
|
|
134
134
|
type: "array",
|
|
@@ -146,21 +146,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
146
146
|
properties: {
|
|
147
147
|
category: {
|
|
148
148
|
markdownDescription: ( localize(
|
|
149
|
-
|
|
149
|
+
5486,
|
|
150
150
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
151
151
|
)),
|
|
152
152
|
type: "string"
|
|
153
153
|
},
|
|
154
154
|
description: {
|
|
155
155
|
description: ( localize(
|
|
156
|
-
|
|
156
|
+
5487,
|
|
157
157
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
158
158
|
)),
|
|
159
159
|
type: "string"
|
|
160
160
|
},
|
|
161
161
|
examples: {
|
|
162
162
|
description: ( localize(
|
|
163
|
-
|
|
163
|
+
5488,
|
|
164
164
|
"A list of representative example questions that are suitable for this chat participant."
|
|
165
165
|
)),
|
|
166
166
|
type: "array"
|
|
@@ -170,7 +170,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
170
170
|
},
|
|
171
171
|
commands: {
|
|
172
172
|
markdownDescription: ( localize(
|
|
173
|
-
|
|
173
|
+
5489,
|
|
174
174
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
175
175
|
)),
|
|
176
176
|
type: "array",
|
|
@@ -187,36 +187,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
187
187
|
properties: {
|
|
188
188
|
name: {
|
|
189
189
|
description: ( localize(
|
|
190
|
-
|
|
190
|
+
5490,
|
|
191
191
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
192
192
|
)),
|
|
193
193
|
type: "string"
|
|
194
194
|
},
|
|
195
195
|
description: {
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(5491, "A description of this command.")),
|
|
197
197
|
type: "string"
|
|
198
198
|
},
|
|
199
199
|
when: {
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(5492, "A condition which must be true to enable this command.")),
|
|
201
201
|
type: "string"
|
|
202
202
|
},
|
|
203
203
|
sampleRequest: {
|
|
204
204
|
description: ( localize(
|
|
205
|
-
|
|
205
|
+
5493,
|
|
206
206
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
207
207
|
)),
|
|
208
208
|
type: "string"
|
|
209
209
|
},
|
|
210
210
|
isSticky: {
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
5482,
|
|
213
213
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
214
214
|
)),
|
|
215
215
|
type: "boolean"
|
|
216
216
|
},
|
|
217
217
|
disambiguation: {
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
5494,
|
|
220
220
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
221
221
|
)),
|
|
222
222
|
type: "array",
|
|
@@ -234,21 +234,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
234
234
|
properties: {
|
|
235
235
|
category: {
|
|
236
236
|
markdownDescription: ( localize(
|
|
237
|
-
|
|
237
|
+
5495,
|
|
238
238
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
239
239
|
)),
|
|
240
240
|
type: "string"
|
|
241
241
|
},
|
|
242
242
|
description: {
|
|
243
243
|
description: ( localize(
|
|
244
|
-
|
|
244
|
+
5496,
|
|
245
245
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
246
246
|
)),
|
|
247
247
|
type: "string"
|
|
248
248
|
},
|
|
249
249
|
examples: {
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
5497,
|
|
252
252
|
"A list of representative example questions that are suitable for this chat command."
|
|
253
253
|
)),
|
|
254
254
|
type: "array"
|
|
@@ -399,9 +399,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
this.registeredWelcomeView = true;
|
|
402
|
-
const showExtensionLabel = ( localize(
|
|
402
|
+
const showExtensionLabel = ( localize(5498, "Show Extension"));
|
|
403
403
|
const mainMessage = ( localize(
|
|
404
|
-
|
|
404
|
+
5499,
|
|
405
405
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
406
406
|
this.productService.nameLong
|
|
407
407
|
));
|
|
@@ -437,7 +437,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
437
437
|
dispose: () => {}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const headers = [( localize(
|
|
440
|
+
const headers = [( localize(5500, "Name")), ( localize(5501, "Full Name")), ( localize(5502, "Description")), ( localize(5503, "Commands"))];
|
|
441
441
|
const rows = ( nonDefaultContributions.map(d => {
|
|
442
442
|
return [
|
|
443
443
|
"@" + d.name,
|
|
@@ -457,7 +457,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
457
457
|
}
|
|
458
458
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
459
459
|
id: "chatParticipants",
|
|
460
|
-
label: ( localize(
|
|
460
|
+
label: ( localize(5504, "Chat Participants")),
|
|
461
461
|
access: {
|
|
462
462
|
canToggle: false
|
|
463
463
|
},
|
|
@@ -469,13 +469,13 @@ let ChatRepoInfoContribution = class ChatRepoInfoContribution extends Disposable
|
|
|
469
469
|
const registry = ( Registry.as(Extensions.Configuration));
|
|
470
470
|
registry.registerConfiguration({
|
|
471
471
|
id: "chatRepoInfo",
|
|
472
|
-
title: ( localize(
|
|
472
|
+
title: ( localize(5505, "Chat Repository Info")),
|
|
473
473
|
type: "object",
|
|
474
474
|
properties: {
|
|
475
475
|
[ChatConfiguration.RepoInfoEnabled]: {
|
|
476
476
|
type: "boolean",
|
|
477
477
|
description: ( localize(
|
|
478
|
-
|
|
478
|
+
5506,
|
|
479
479
|
"Controls whether repository information (branch, commit, working tree diffs) is captured at the start of chat sessions for internal diagnostics."
|
|
480
480
|
)),
|
|
481
481
|
default: true
|
|
@@ -186,7 +186,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
186
186
|
registerActions(context, requests, controller) {
|
|
187
187
|
class ChatSetupTriggerAction extends Action2 {
|
|
188
188
|
static {
|
|
189
|
-
this.CHAT_SETUP_ACTION_LABEL = ( localize2(
|
|
189
|
+
this.CHAT_SETUP_ACTION_LABEL = ( localize2(5555, "Use AI Features with Copilot for free..."));
|
|
190
190
|
}
|
|
191
191
|
constructor() {
|
|
192
192
|
super({
|
|
@@ -231,8 +231,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
231
231
|
confirmed
|
|
232
232
|
} = await dialogService.confirm({
|
|
233
233
|
type: Severity.Error,
|
|
234
|
-
message: ( localize(
|
|
235
|
-
primaryButton: ( localize(
|
|
234
|
+
message: ( localize(5556, "Chat setup failed. Would you like to try again?")),
|
|
235
|
+
primaryButton: ( localize(5557, "Retry"))
|
|
236
236
|
});
|
|
237
237
|
if (confirmed) {
|
|
238
238
|
return Boolean(await commandService.executeCommand(CHAT_SETUP_ACTION_ID, mode, options));
|
|
@@ -265,7 +265,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
265
265
|
constructor() {
|
|
266
266
|
super({
|
|
267
267
|
id: "workbench.action.chat.triggerSetupForceSignIn",
|
|
268
|
-
title: ( localize2(
|
|
268
|
+
title: ( localize2(5558, "Sign in to use AI features"))
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
async run(accessor) {
|
|
@@ -303,7 +303,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
303
303
|
constructor() {
|
|
304
304
|
super({
|
|
305
305
|
id: "workbench.action.chat.triggerSetupFromAccounts",
|
|
306
|
-
title: ( localize2(
|
|
306
|
+
title: ( localize2(5559, "Sign in to use AI features...")),
|
|
307
307
|
menu: {
|
|
308
308
|
id: MenuId.AccountsContext,
|
|
309
309
|
group: "2_copilot",
|
|
@@ -326,8 +326,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
326
326
|
constructor() {
|
|
327
327
|
super({
|
|
328
328
|
id: "workbench.action.chat.upgradePlan",
|
|
329
|
-
title: ( localize2(
|
|
330
|
-
category: ( localize2(
|
|
329
|
+
title: ( localize2(5560, "Upgrade to GitHub Copilot Pro")),
|
|
330
|
+
category: ( localize2(5561, "Chat")),
|
|
331
331
|
f1: true,
|
|
332
332
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
333
333
|
ChatContextKeys.Entitlement.canSignUp,
|
|
@@ -368,8 +368,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
368
368
|
constructor() {
|
|
369
369
|
super({
|
|
370
370
|
id: "workbench.action.chat.manageOverages",
|
|
371
|
-
title: ( localize2(
|
|
372
|
-
category: ( localize2(
|
|
371
|
+
title: ( localize2(5562, "Manage GitHub Copilot Overages")),
|
|
372
|
+
category: ( localize2(5561, "Chat")),
|
|
373
373
|
f1: true,
|
|
374
374
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
375
375
|
ChatContextKeys.Entitlement.planPro,
|
|
@@ -442,7 +442,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
442
442
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
443
443
|
command: {
|
|
444
444
|
id: "chat.internal.explain",
|
|
445
|
-
title: ( localize(
|
|
445
|
+
title: ( localize(5563, "Explain"))
|
|
446
446
|
},
|
|
447
447
|
group: "1_chat",
|
|
448
448
|
order: 4,
|
|
@@ -451,7 +451,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
451
451
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
452
452
|
command: {
|
|
453
453
|
id: "chat.internal.fix",
|
|
454
|
-
title: ( localize(
|
|
454
|
+
title: ( localize(5564, "Fix"))
|
|
455
455
|
},
|
|
456
456
|
group: "1_action",
|
|
457
457
|
order: 1,
|
|
@@ -460,7 +460,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
460
460
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
461
461
|
command: {
|
|
462
462
|
id: "chat.internal.review",
|
|
463
|
-
title: ( localize(
|
|
463
|
+
title: ( localize(5565, "Code Review"))
|
|
464
464
|
},
|
|
465
465
|
group: "1_action",
|
|
466
466
|
order: 2,
|
|
@@ -469,7 +469,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
469
469
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
470
470
|
command: {
|
|
471
471
|
id: "chat.internal.generateDocs",
|
|
472
|
-
title: ( localize(
|
|
472
|
+
title: ( localize(5566, "Generate Docs"))
|
|
473
473
|
},
|
|
474
474
|
group: "2_generate",
|
|
475
475
|
order: 1,
|
|
@@ -478,7 +478,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
478
478
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
479
479
|
command: {
|
|
480
480
|
id: "chat.internal.generateTests",
|
|
481
|
-
title: ( localize(
|
|
481
|
+
title: ( localize(5567, "Generate Tests"))
|
|
482
482
|
},
|
|
483
483
|
group: "2_generate",
|
|
484
484
|
order: 2,
|
|
@@ -647,7 +647,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
647
647
|
}
|
|
648
648
|
await this.extensionsWorkbenchService.setEnablement([defaultChatExtension], state);
|
|
649
649
|
await this.extensionsWorkbenchService.updateRunningExtensions(
|
|
650
|
-
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(
|
|
650
|
+
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(5568, "Enabling AI features")) : ( localize(5569, "Disabling AI features"))
|
|
651
651
|
);
|
|
652
652
|
}
|
|
653
653
|
maybeHideAuxiliaryBar() {
|
|
@@ -665,7 +665,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
665
665
|
this.ID = "workbench.action.chat.hideSetup";
|
|
666
666
|
}
|
|
667
667
|
static {
|
|
668
|
-
this.TITLE = ( localize2(
|
|
668
|
+
this.TITLE = ( localize2(5570, "Learn How to Hide AI Features"));
|
|
669
669
|
}
|
|
670
670
|
constructor() {
|
|
671
671
|
super({
|
|
@@ -106,7 +106,7 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
async setup(options = {}) {
|
|
108
108
|
const watch = ( new StopWatch(false));
|
|
109
|
-
const title = ( localize(
|
|
109
|
+
const title = ( localize(5571, "Getting chat ready..."));
|
|
110
110
|
const badge = this.activityService.showViewContainerActivity(ChatViewContainerId, {
|
|
111
111
|
badge: ( new ProgressBadge(() => title))
|
|
112
112
|
});
|
|
@@ -178,12 +178,12 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
178
178
|
} = await this.dialogService.confirm({
|
|
179
179
|
type: Severity.Error,
|
|
180
180
|
message: ( localize(
|
|
181
|
-
|
|
181
|
+
5572,
|
|
182
182
|
"Failed to sign in to {0}. Would you like to try again?",
|
|
183
183
|
this.defaultAccountService.getDefaultAccountAuthenticationProvider().name
|
|
184
184
|
)),
|
|
185
|
-
detail: ( localize(
|
|
186
|
-
primaryButton: ( localize(
|
|
185
|
+
detail: ( localize(5573, "You must be signed in to use AI features.")),
|
|
186
|
+
primaryButton: ( localize(5574, "Retry"))
|
|
187
187
|
});
|
|
188
188
|
if (confirmed) {
|
|
189
189
|
return this.signIn(options);
|
|
@@ -264,11 +264,11 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
264
264
|
} = await this.dialogService.confirm({
|
|
265
265
|
type: Severity.Error,
|
|
266
266
|
message: ( localize(
|
|
267
|
-
|
|
267
|
+
5575,
|
|
268
268
|
"An error occurred while setting up chat. Would you like to try again?"
|
|
269
269
|
)),
|
|
270
270
|
detail: error && !isCancellationError(error) ? toErrorMessage(error) : undefined,
|
|
271
|
-
primaryButton: ( localize(
|
|
271
|
+
primaryButton: ( localize(5574, "Retry"))
|
|
272
272
|
});
|
|
273
273
|
if (confirmed) {
|
|
274
274
|
return this.doInstallWithRetry();
|
|
@@ -346,8 +346,8 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
346
346
|
}
|
|
347
347
|
let isSingleWord = false;
|
|
348
348
|
const result = await this.quickInputService.input({
|
|
349
|
-
prompt: ( localize(
|
|
350
|
-
placeHolder: ( localize(
|
|
349
|
+
prompt: ( localize(5576, "What is your {0} instance?", defaultChat.provider.enterprise.name)),
|
|
350
|
+
placeHolder: ( localize(5577, "i.e. \"octocat\" or \"https://octocat.ghe.com\"...")),
|
|
351
351
|
ignoreFocusLost: true,
|
|
352
352
|
value: uri,
|
|
353
353
|
validateInput: async value => {
|
|
@@ -358,14 +358,14 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
358
358
|
if (domainRegEx.test(value)) {
|
|
359
359
|
isSingleWord = true;
|
|
360
360
|
return {
|
|
361
|
-
content: ( localize(
|
|
361
|
+
content: ( localize(5578, "Will resolve to {0}", `https://${value}.ghe.com`)),
|
|
362
362
|
severity: Severity.Info
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
if (!fullUriRegEx.test(value)) {
|
|
366
366
|
return {
|
|
367
367
|
content: ( localize(
|
|
368
|
-
|
|
368
|
+
5579,
|
|
369
369
|
"You must enter a valid {0} instance (i.e. \"octocat\" or \"https://octocat.ghe.com\")",
|
|
370
370
|
defaultChat.provider.enterprise.name
|
|
371
371
|
)),
|
|
@@ -131,7 +131,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
131
131
|
"setup.vscode",
|
|
132
132
|
"vscode",
|
|
133
133
|
false,
|
|
134
|
-
( localize2(
|
|
134
|
+
( localize2(5580, "Ask questions about VS Code")).value,
|
|
135
135
|
ChatAgentLocation.Chat,
|
|
136
136
|
ChatModeKind.Agent,
|
|
137
137
|
context,
|
|
@@ -146,7 +146,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
146
146
|
"setup.workspace",
|
|
147
147
|
"workspace",
|
|
148
148
|
false,
|
|
149
|
-
( localize2(
|
|
149
|
+
( localize2(5581, "Ask about your workspace")).value,
|
|
150
150
|
ChatAgentLocation.Chat,
|
|
151
151
|
ChatModeKind.Agent,
|
|
152
152
|
context,
|
|
@@ -161,7 +161,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
161
161
|
"setup.terminal.agent",
|
|
162
162
|
"terminal",
|
|
163
163
|
false,
|
|
164
|
-
( localize2(
|
|
164
|
+
( localize2(5582, "Ask how to do something in the terminal")).value,
|
|
165
165
|
ChatAgentLocation.Chat,
|
|
166
166
|
ChatModeKind.Agent,
|
|
167
167
|
context,
|
|
@@ -172,9 +172,9 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
172
172
|
id: "setup_tools_createNewWorkspace",
|
|
173
173
|
source: ToolDataSource.Internal,
|
|
174
174
|
icon: Codicon.newFolder,
|
|
175
|
-
displayName: ( localize(
|
|
175
|
+
displayName: ( localize(5583, "New Workspace")),
|
|
176
176
|
modelDescription: "Scaffold a new workspace in VS Code",
|
|
177
|
-
userDescription: ( localize(
|
|
177
|
+
userDescription: ( localize(5584, "Scaffold a new workspace in VS Code")),
|
|
178
178
|
canBeReferencedInPrompt: true,
|
|
179
179
|
toolReferenceName: "new",
|
|
180
180
|
when: ContextKeyExpr.true()
|
|
@@ -229,10 +229,10 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
static {
|
|
232
|
-
this.SETUP_NEEDED_MESSAGE = ( new MarkdownString(( localize(
|
|
232
|
+
this.SETUP_NEEDED_MESSAGE = ( new MarkdownString(( localize(5585, "You need to set up GitHub Copilot and be signed in to use Chat."))));
|
|
233
233
|
}
|
|
234
234
|
static {
|
|
235
|
-
this.TRUST_NEEDED_MESSAGE = ( new MarkdownString(( localize(
|
|
235
|
+
this.TRUST_NEEDED_MESSAGE = ( new MarkdownString(( localize(5586, "You need to trust this workspace to use Chat."))));
|
|
236
236
|
}
|
|
237
237
|
static {
|
|
238
238
|
this.CHAT_RETRY_COMMAND_ID = "workbench.action.chat.retrySetup";
|
|
@@ -347,7 +347,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
347
347
|
}
|
|
348
348
|
progress({
|
|
349
349
|
kind: "progressMessage",
|
|
350
|
-
content: ( new MarkdownString(( localize(
|
|
350
|
+
content: ( new MarkdownString(( localize(5587, "Getting chat ready..."))))
|
|
351
351
|
});
|
|
352
352
|
await this.forwardRequestToChat(
|
|
353
353
|
requestModel,
|
|
@@ -383,7 +383,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
383
383
|
this.logService.error("[chat setup] Failed to forward request to chat", error);
|
|
384
384
|
progress({
|
|
385
385
|
kind: "warning",
|
|
386
|
-
content: ( new MarkdownString(( localize(
|
|
386
|
+
content: ( new MarkdownString(( localize(5588, "Failed to get a response. Please try again."))))
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
}
|
|
@@ -447,7 +447,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
447
447
|
const timeoutHandle = setTimeout(() => {
|
|
448
448
|
progress({
|
|
449
449
|
kind: "progressMessage",
|
|
450
|
-
content: ( new MarkdownString(( localize(
|
|
450
|
+
content: ( new MarkdownString(( localize(5589, "Chat is almost ready..."))))
|
|
451
451
|
});
|
|
452
452
|
}, 10000);
|
|
453
453
|
try {
|
|
@@ -463,13 +463,13 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
463
463
|
let warningMessage;
|
|
464
464
|
if (this.chatEntitlementService.anonymous) {
|
|
465
465
|
warningMessage = ( localize(
|
|
466
|
-
|
|
466
|
+
5590,
|
|
467
467
|
"Chat took too long to get ready. Please ensure that the extension `{0}` is installed and enabled. Click restart to try again if this issue persists.",
|
|
468
468
|
defaultChat.chatExtensionId
|
|
469
469
|
));
|
|
470
470
|
} else {
|
|
471
471
|
warningMessage = ( localize(
|
|
472
|
-
|
|
472
|
+
5591,
|
|
473
473
|
"Chat took too long to get ready. Please ensure you are signed in to {0} and that the extension `{1}` is installed and enabled. Click restart to try again if this issue persists.",
|
|
474
474
|
defaultChat.provider.default.name,
|
|
475
475
|
defaultChat.chatExtensionId
|
|
@@ -500,7 +500,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
500
500
|
kind: "command",
|
|
501
501
|
command: {
|
|
502
502
|
id: SetupAgent_1.CHAT_RETRY_COMMAND_ID,
|
|
503
|
-
title: ( localize(
|
|
503
|
+
title: ( localize(5592, "Restart")),
|
|
504
504
|
arguments: [requestModel.session.sessionResource]
|
|
505
505
|
}
|
|
506
506
|
});
|
|
@@ -596,7 +596,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
596
596
|
progress({
|
|
597
597
|
kind: "progressMessage",
|
|
598
598
|
content: ( new MarkdownString(( localize(
|
|
599
|
-
|
|
599
|
+
5593,
|
|
600
600
|
"Signing in to {0}...",
|
|
601
601
|
defaultAccountService.getDefaultAccountAuthenticationProvider().name
|
|
602
602
|
))))
|
|
@@ -605,7 +605,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
605
605
|
case ChatSetupStep.Installing:
|
|
606
606
|
progress({
|
|
607
607
|
kind: "progressMessage",
|
|
608
|
-
content: ( new MarkdownString(( localize(
|
|
608
|
+
content: ( new MarkdownString(( localize(5594, "Getting chat ready..."))))
|
|
609
609
|
});
|
|
610
610
|
break;
|
|
611
611
|
}
|
|
@@ -641,7 +641,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
641
641
|
} else {
|
|
642
642
|
progress({
|
|
643
643
|
kind: "warning",
|
|
644
|
-
content: ( new MarkdownString(( localize(
|
|
644
|
+
content: ( new MarkdownString(( localize(5595, "Chat setup failed."))))
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
}
|
|
@@ -795,13 +795,13 @@ let ChatCodeActionsProvider = ChatCodeActionsProvider_1 = class ChatCodeActionsP
|
|
|
795
795
|
if (range.isEmpty()) {
|
|
796
796
|
const textAtLine = model.getLineContent(range.startLineNumber);
|
|
797
797
|
if (/^\s*$/.test(textAtLine)) {
|
|
798
|
-
generateOrModifyTitle = ( localize(
|
|
798
|
+
generateOrModifyTitle = ( localize(5596, "Generate"));
|
|
799
799
|
generateOrModifyCommand = AICodeActionsHelper.generate(range);
|
|
800
800
|
}
|
|
801
801
|
} else {
|
|
802
802
|
const textInSelection = model.getValueInRange(range);
|
|
803
803
|
if (!/^\s*$/.test(textInSelection)) {
|
|
804
|
-
generateOrModifyTitle = ( localize(
|
|
804
|
+
generateOrModifyTitle = ( localize(5597, "Modify"));
|
|
805
805
|
generateOrModifyCommand = AICodeActionsHelper.modify(range);
|
|
806
806
|
}
|
|
807
807
|
}
|
|
@@ -819,14 +819,14 @@ let ChatCodeActionsProvider = ChatCodeActionsProvider_1 = class ChatCodeActionsP
|
|
|
819
819
|
kind: CodeActionKind.QuickFix.append("copilot").value,
|
|
820
820
|
isAI: true,
|
|
821
821
|
diagnostics: markers,
|
|
822
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(5598, "Fix")),
|
|
823
823
|
command: AICodeActionsHelper.fixMarkers(markers, range)
|
|
824
824
|
});
|
|
825
825
|
actions.push({
|
|
826
826
|
kind: CodeActionKind.QuickFix.append("explain").append("copilot").value,
|
|
827
827
|
isAI: true,
|
|
828
828
|
diagnostics: markers,
|
|
829
|
-
title: ( localize(
|
|
829
|
+
title: ( localize(5599, "Explain")),
|
|
830
830
|
command: AICodeActionsHelper.explainMarkers(markers)
|
|
831
831
|
});
|
|
832
832
|
}
|
|
@@ -849,7 +849,7 @@ class AICodeActionsHelper {
|
|
|
849
849
|
static modify(range) {
|
|
850
850
|
return {
|
|
851
851
|
id: ACTION_START,
|
|
852
|
-
title: ( localize(
|
|
852
|
+
title: ( localize(5597, "Modify")),
|
|
853
853
|
arguments: [{
|
|
854
854
|
initialSelection: this.rangeToSelection(range),
|
|
855
855
|
initialRange: range,
|
|
@@ -860,7 +860,7 @@ class AICodeActionsHelper {
|
|
|
860
860
|
static generate(range) {
|
|
861
861
|
return {
|
|
862
862
|
id: ACTION_START,
|
|
863
|
-
title: ( localize(
|
|
863
|
+
title: ( localize(5596, "Generate")),
|
|
864
864
|
arguments: [{
|
|
865
865
|
initialSelection: this.rangeToSelection(range),
|
|
866
866
|
initialRange: range,
|
|
@@ -879,7 +879,7 @@ class AICodeActionsHelper {
|
|
|
879
879
|
static explainMarkers(markers) {
|
|
880
880
|
return {
|
|
881
881
|
id: CHAT_OPEN_ACTION_ID,
|
|
882
|
-
title: ( localize(
|
|
882
|
+
title: ( localize(5599, "Explain")),
|
|
883
883
|
arguments: [{
|
|
884
884
|
query: `@workspace /explain ${( markers.map(marker => marker.message)).join(", ")}`,
|
|
885
885
|
isPartialQuery: true
|
|
@@ -889,7 +889,7 @@ class AICodeActionsHelper {
|
|
|
889
889
|
static fixMarkers(markers, range) {
|
|
890
890
|
return {
|
|
891
891
|
id: ACTION_START,
|
|
892
|
-
title: ( localize(
|
|
892
|
+
title: ( localize(5598, "Fix")),
|
|
893
893
|
arguments: [{
|
|
894
894
|
message: `/fix ${( markers.map(marker => marker.message)).join(", ")}`,
|
|
895
895
|
initialSelection: this.rangeToSelection(range),
|