@codingame/monaco-vscode-chat-service-override 20.4.1 → 21.0.0
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/index.js +15 -7
- package/package.json +38 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +18 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +52 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +28 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +19 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +433 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +205 -551
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +52 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -163
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +11 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +32 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +22 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +47 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +33 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +74 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.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/chatEditor.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +23 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatLayoutService.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatLayoutService.js +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +36 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +37 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +238 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +23 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +257 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +126 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +55 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +130 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-dark.svg +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-light.svg +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css +6 -6
- 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 +39 -35
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +153 -168
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +127 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +111 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +66 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.js +41 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.js +55 -22
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkDiagnosticsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/basePromptParser.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/string.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/string.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/mode.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/mode.js +3 -4
- 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.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/promptHeader.js +8 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/topError.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +11 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +54 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +33 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +9 -9
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +9 -13
- 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 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +11 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +1 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.d.ts +16 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +84 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.js +55 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +15 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +72 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +19 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +7 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +12 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +85 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +448 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +30 -77
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +75 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +15 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +81 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +106 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{getTerminalOutputTool.js → tools/getTerminalOutputTool.js} +5 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +59 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +452 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{runInTerminalTool.d.ts → tools/runInTerminalTool.d.ts} +11 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{runInTerminalTool.js → tools/runInTerminalTool.js} +282 -133
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/createAndRunTaskTool.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/createAndRunTaskTool.js +51 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/getTaskOutputTool.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +117 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/runTaskTool.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/runTaskTool.js +54 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminal.chatAgentTools.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminal.chatAgentTools.js +8 -0
- package/vscode/src/vs/base/common/policy.d.ts +0 -41
- package/vscode/src/vs/base/common/policy.js +0 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.js +0 -738
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +0 -42
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptPathAutocompletion.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptPathAutocompletion.js +0 -167
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.js +0 -63
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.js +0 -163
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.js +0 -88
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.js +0 -80
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.js +0 -40
- /package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{getTerminalOutputTool.d.ts → tools/getTerminalOutputTool.d.ts} +0 -0
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(5060, '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(5061, '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(5062, '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(5063, 'Selecting element...'));
|
|
92
92
|
this.hideElement(startButton.element);
|
|
93
93
|
this.showElement(cancelButton.element);
|
|
94
|
-
cancelButton.label = ( localize(
|
|
94
|
+
cancelButton.label = ( localize(5064, '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(5065, '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(5066, 'Click to select an element.')),
|
|
115
115
|
supportIcons: true,
|
|
116
116
|
...defaultButtonStyles
|
|
117
117
|
})));
|
|
118
|
-
startButton.primaryButton.label = ( localize(
|
|
118
|
+
startButton.primaryButton.label = ( localize(5067, '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(5068, 'Click to cancel selection.')) }
|
|
123
123
|
)));
|
|
124
124
|
cancelButton.element.className = 'element-selection-cancel hidden';
|
|
125
|
-
const cancelButtonLabel = ( localize(
|
|
125
|
+
const cancelButtonLabel = ( localize(5069, '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(5070, "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(5071, "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(5072, "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(5073, "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(5063, '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(5065, '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(5074, '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(5075, '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(5076, 'Please reopen the preview.'));
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -7,7 +7,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
8
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
10
|
+
import { EditorPane } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
11
11
|
import { IEditorOpenContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
12
12
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
13
13
|
import { IExportableChatData, ISerializableChatData } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
@@ -21,6 +21,7 @@ export interface IChatEditorOptions extends IEditorOptions {
|
|
|
21
21
|
data: IExportableChatData | ISerializableChatData;
|
|
22
22
|
};
|
|
23
23
|
preferredTitle?: string;
|
|
24
|
+
ignoreInView?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare class ChatEditor extends EditorPane {
|
|
26
27
|
private readonly instantiationService;
|
|
@@ -33,6 +34,7 @@ export declare class ChatEditor extends EditorPane {
|
|
|
33
34
|
get scopedContextKeyService(): IScopedContextKeyService;
|
|
34
35
|
private _memento;
|
|
35
36
|
private _viewState;
|
|
37
|
+
private dimension;
|
|
36
38
|
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, instantiationService: IInstantiationService, storageService: IStorageService, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService);
|
|
37
39
|
private clear;
|
|
38
40
|
protected createEditor(parent: HTMLElement): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import {
|
|
3
|
+
import { Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { raceCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
5
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
5
6
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
7
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
@@ -19,16 +20,16 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
19
20
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
20
21
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
21
22
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
22
|
-
import { EditorPane } from '@codingame/monaco-vscode-
|
|
23
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
23
|
+
import { EditorPane } from '@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
24
|
+
import { Memento } from '@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common/vscode/vs/workbench/common/memento';
|
|
24
25
|
import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
25
26
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
26
27
|
import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
|
|
27
28
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
28
|
-
import { ChatSessionUri } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatUri';
|
|
29
29
|
import { ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
30
30
|
import { clearChatEditor } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
|
|
31
31
|
import { ChatEditorInput } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
32
|
+
import { getChatSessionType } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common';
|
|
32
33
|
import { ChatWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
33
34
|
|
|
34
35
|
let ChatEditor = class ChatEditor extends EditorPane {
|
|
@@ -44,6 +45,7 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
44
45
|
this.storageService = storageService;
|
|
45
46
|
this.chatSessionsService = chatSessionsService;
|
|
46
47
|
this.contextKeyService = contextKeyService;
|
|
48
|
+
this.dimension = new Dimension(0, 0);
|
|
47
49
|
}
|
|
48
50
|
async clear() {
|
|
49
51
|
if (this.input) {
|
|
@@ -82,6 +84,9 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
82
84
|
setEditorVisible(visible) {
|
|
83
85
|
super.setEditorVisible(visible);
|
|
84
86
|
this.widget?.setVisible(visible);
|
|
87
|
+
if (visible && this.widget) {
|
|
88
|
+
this.widget.layout(this.dimension.height, this.dimension.width);
|
|
89
|
+
}
|
|
85
90
|
}
|
|
86
91
|
focus() {
|
|
87
92
|
super.focus();
|
|
@@ -92,24 +97,22 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
92
97
|
super.clearInput();
|
|
93
98
|
}
|
|
94
99
|
async setInput(input, options, context, token) {
|
|
95
|
-
super.setInput(input, options, context, token);
|
|
100
|
+
await super.setInput(input, options, context, token);
|
|
101
|
+
if (token.isCancellationRequested) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
96
104
|
if (!this.widget) {
|
|
97
105
|
throw ( new Error('ChatEditor lifecycle issue: no editor widget'));
|
|
98
106
|
}
|
|
99
107
|
let isContributedChatSession = false;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
isContributedChatSession = true;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
this.widget.unlockFromCodingAgent();
|
|
112
|
-
}
|
|
108
|
+
const chatSessionType = getChatSessionType(input);
|
|
109
|
+
if (chatSessionType !== 'local') {
|
|
110
|
+
await raceCancellationError(this.chatSessionsService.canResolveContentProvider(chatSessionType), token);
|
|
111
|
+
const contributions = this.chatSessionsService.getAllChatSessionContributions();
|
|
112
|
+
const contribution = contributions.find(c => c.type === chatSessionType);
|
|
113
|
+
if (contribution) {
|
|
114
|
+
this.widget.lockToCodingAgent(contribution.name, contribution.displayName, contribution.type);
|
|
115
|
+
isContributedChatSession = true;
|
|
113
116
|
}
|
|
114
117
|
else {
|
|
115
118
|
this.widget.unlockFromCodingAgent();
|
|
@@ -118,7 +121,7 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
118
121
|
else {
|
|
119
122
|
this.widget.unlockFromCodingAgent();
|
|
120
123
|
}
|
|
121
|
-
const editorModel = await input.resolve();
|
|
124
|
+
const editorModel = await raceCancellationError(input.resolve(), token);
|
|
122
125
|
if (!editorModel) {
|
|
123
126
|
throw ( new Error(`Failed to get model for chat editor. id: ${input.sessionId}`));
|
|
124
127
|
}
|
|
@@ -146,6 +149,7 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
146
149
|
return { ...this._viewState };
|
|
147
150
|
}
|
|
148
151
|
layout(dimension, position) {
|
|
152
|
+
this.dimension = dimension;
|
|
149
153
|
if (this.widget) {
|
|
150
154
|
this.widget.layout(dimension.height, dimension.width);
|
|
151
155
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
3
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
+
import { ChatFontSize } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatLayoutService";
|
|
5
|
+
import { IChatLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatLayoutService.service";
|
|
6
|
+
export declare class ChatLayoutService extends Disposable implements IChatLayoutService {
|
|
7
|
+
readonly _serviceBrand: undefined;
|
|
8
|
+
private readonly _fontSizeDefault;
|
|
9
|
+
readonly fontFamily: IObservable<string | null>;
|
|
10
|
+
readonly fontSize: IObservable<ChatFontSize>;
|
|
11
|
+
constructor(configurationService: IConfigurationService);
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
+
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
7
|
+
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
8
|
+
|
|
9
|
+
let ChatLayoutService = class ChatLayoutService extends Disposable {
|
|
10
|
+
constructor(configurationService) {
|
|
11
|
+
super();
|
|
12
|
+
this._fontSizeDefault = 13;
|
|
13
|
+
const chatFontFamily = observableConfigValue('chat.fontFamily', 'default', configurationService);
|
|
14
|
+
const chatFontSize = observableConfigValue('chat.fontSize', this._fontSizeDefault, configurationService);
|
|
15
|
+
this.fontFamily = derived(reader => {
|
|
16
|
+
const fontFamily = chatFontFamily.read(reader);
|
|
17
|
+
return fontFamily === 'default' ? null : fontFamily;
|
|
18
|
+
});
|
|
19
|
+
this.fontSize = derived(reader => {
|
|
20
|
+
const fontSize = chatFontSize.read(reader);
|
|
21
|
+
return {
|
|
22
|
+
xs: Math.round(fontSize * (11 / this._fontSizeDefault)),
|
|
23
|
+
s: Math.round(fontSize * (12 / this._fontSizeDefault)),
|
|
24
|
+
m: Math.round(fontSize * (13 / this._fontSizeDefault)),
|
|
25
|
+
l: Math.round(fontSize * (14 / this._fontSizeDefault)),
|
|
26
|
+
xl: Math.round(fontSize * (16 / this._fontSizeDefault)),
|
|
27
|
+
xxl: Math.round(fontSize * (20 / this._fontSizeDefault)),
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
ChatLayoutService = ( __decorate([
|
|
33
|
+
( __param(0, IConfigurationService))
|
|
34
|
+
], ChatLayoutService));
|
|
35
|
+
|
|
36
|
+
export { ChatLayoutService };
|
|
@@ -119,7 +119,7 @@ const chatOutputRenderContributionPoint = ExtensionsRegistry.registerExtensionPo
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
jsonSchema: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(5129, '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(5130, 'Unique identifier for the renderer.')),
|
|
132
132
|
},
|
|
133
133
|
mimeTypes: {
|
|
134
134
|
type: 'array',
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(5131, 'MIME types that this renderer can handle')),
|
|
136
136
|
items: {
|
|
137
137
|
type: 'string'
|
|
138
138
|
}
|
|
@@ -15,7 +15,7 @@ import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
15
15
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
16
16
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
17
17
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
18
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
|
18
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
19
19
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
20
20
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
21
21
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -30,28 +30,28 @@ import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane } from './chatViewPane.js';
|
|
|
30
30
|
|
|
31
31
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
32
32
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
33
|
-
title: ( localize2(
|
|
34
|
-
icon: Codicon.
|
|
33
|
+
title: ( localize2(5132, "Chat")),
|
|
34
|
+
icon: Codicon.chatSparkle,
|
|
35
35
|
ctorDescriptor: ( new SyncDescriptor(
|
|
36
36
|
ViewPaneContainer,
|
|
37
37
|
[CHAT_SIDEBAR_PANEL_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
38
38
|
)),
|
|
39
39
|
storageId: CHAT_SIDEBAR_PANEL_ID,
|
|
40
40
|
hideIfEmpty: true,
|
|
41
|
-
order:
|
|
41
|
+
order: 1,
|
|
42
42
|
}, ViewContainerLocation.AuxiliaryBar, { isDefault: true, doNotRegisterOpenCommand: true });
|
|
43
43
|
const chatViewDescriptor = [{
|
|
44
44
|
id: ChatViewId,
|
|
45
45
|
containerIcon: chatViewContainer.icon,
|
|
46
46
|
containerTitle: chatViewContainer.title.value,
|
|
47
47
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
48
|
-
name: ( localize2(
|
|
48
|
+
name: ( localize2(5132, "Chat")),
|
|
49
49
|
canToggleVisibility: false,
|
|
50
50
|
canMoveView: true,
|
|
51
51
|
openCommandActionDescriptor: {
|
|
52
52
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
53
53
|
title: chatViewContainer.title,
|
|
54
|
-
mnemonicTitle: ( localize(
|
|
54
|
+
mnemonicTitle: ( localize(5133, "&&Chat")),
|
|
55
55
|
keybindings: {
|
|
56
56
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
57
57
|
mac: {
|
|
@@ -69,7 +69,7 @@ const chatViewDescriptor = [{
|
|
|
69
69
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
70
70
|
extensionPoint: 'chatParticipants',
|
|
71
71
|
jsonSchema: {
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(5134, 'Contributes a chat participant')),
|
|
73
73
|
type: 'array',
|
|
74
74
|
items: {
|
|
75
75
|
additionalProperties: false,
|
|
@@ -78,12 +78,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
78
78
|
required: ['name', 'id'],
|
|
79
79
|
properties: {
|
|
80
80
|
id: {
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(5135, "A unique id for this chat participant.")),
|
|
82
82
|
type: 'string'
|
|
83
83
|
},
|
|
84
84
|
name: {
|
|
85
85
|
description: ( localize(
|
|
86
|
-
|
|
86
|
+
5136,
|
|
87
87
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
88
88
|
)),
|
|
89
89
|
type: 'string',
|
|
@@ -91,37 +91,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
91
91
|
},
|
|
92
92
|
fullName: {
|
|
93
93
|
markdownDescription: ( localize(
|
|
94
|
-
|
|
94
|
+
5137,
|
|
95
95
|
"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.",
|
|
96
96
|
'`name`'
|
|
97
97
|
)),
|
|
98
98
|
type: 'string'
|
|
99
99
|
},
|
|
100
100
|
description: {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(5138, "A description of this chat participant, shown in the UI.")),
|
|
102
102
|
type: 'string'
|
|
103
103
|
},
|
|
104
104
|
isSticky: {
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
5139,
|
|
107
107
|
"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."
|
|
108
108
|
)),
|
|
109
109
|
type: 'boolean'
|
|
110
110
|
},
|
|
111
111
|
sampleRequest: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
5140,
|
|
114
114
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
115
115
|
)),
|
|
116
116
|
type: 'string'
|
|
117
117
|
},
|
|
118
118
|
when: {
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(5141, "A condition which must be true to enable this participant.")),
|
|
120
120
|
type: 'string'
|
|
121
121
|
},
|
|
122
122
|
disambiguation: {
|
|
123
123
|
description: ( localize(
|
|
124
|
-
|
|
124
|
+
5142,
|
|
125
125
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
126
126
|
)),
|
|
127
127
|
type: 'array',
|
|
@@ -133,21 +133,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
133
133
|
properties: {
|
|
134
134
|
category: {
|
|
135
135
|
markdownDescription: ( localize(
|
|
136
|
-
|
|
136
|
+
5143,
|
|
137
137
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
138
138
|
)),
|
|
139
139
|
type: 'string'
|
|
140
140
|
},
|
|
141
141
|
description: {
|
|
142
142
|
description: ( localize(
|
|
143
|
-
|
|
143
|
+
5144,
|
|
144
144
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
145
145
|
)),
|
|
146
146
|
type: 'string'
|
|
147
147
|
},
|
|
148
148
|
examples: {
|
|
149
149
|
description: ( localize(
|
|
150
|
-
|
|
150
|
+
5145,
|
|
151
151
|
"A list of representative example questions that are suitable for this chat participant."
|
|
152
152
|
)),
|
|
153
153
|
type: 'array'
|
|
@@ -157,7 +157,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
157
157
|
},
|
|
158
158
|
commands: {
|
|
159
159
|
markdownDescription: ( localize(
|
|
160
|
-
|
|
160
|
+
5146,
|
|
161
161
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
162
162
|
)),
|
|
163
163
|
type: 'array',
|
|
@@ -169,36 +169,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
169
169
|
properties: {
|
|
170
170
|
name: {
|
|
171
171
|
description: ( localize(
|
|
172
|
-
|
|
172
|
+
5147,
|
|
173
173
|
"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."
|
|
174
174
|
)),
|
|
175
175
|
type: 'string'
|
|
176
176
|
},
|
|
177
177
|
description: {
|
|
178
|
-
description: ( localize(
|
|
178
|
+
description: ( localize(5148, "A description of this command.")),
|
|
179
179
|
type: 'string'
|
|
180
180
|
},
|
|
181
181
|
when: {
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(5149, "A condition which must be true to enable this command.")),
|
|
183
183
|
type: 'string'
|
|
184
184
|
},
|
|
185
185
|
sampleRequest: {
|
|
186
186
|
description: ( localize(
|
|
187
|
-
|
|
187
|
+
5150,
|
|
188
188
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
189
189
|
)),
|
|
190
190
|
type: 'string'
|
|
191
191
|
},
|
|
192
192
|
isSticky: {
|
|
193
193
|
description: ( localize(
|
|
194
|
-
|
|
194
|
+
5139,
|
|
195
195
|
"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."
|
|
196
196
|
)),
|
|
197
197
|
type: 'boolean'
|
|
198
198
|
},
|
|
199
199
|
disambiguation: {
|
|
200
200
|
description: ( localize(
|
|
201
|
-
|
|
201
|
+
5151,
|
|
202
202
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
203
203
|
)),
|
|
204
204
|
type: 'array',
|
|
@@ -210,21 +210,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
210
210
|
properties: {
|
|
211
211
|
category: {
|
|
212
212
|
markdownDescription: ( localize(
|
|
213
|
-
|
|
213
|
+
5152,
|
|
214
214
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
215
215
|
)),
|
|
216
216
|
type: 'string'
|
|
217
217
|
},
|
|
218
218
|
description: {
|
|
219
219
|
description: ( localize(
|
|
220
|
-
|
|
220
|
+
5153,
|
|
221
221
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
222
222
|
)),
|
|
223
223
|
type: 'string'
|
|
224
224
|
},
|
|
225
225
|
examples: {
|
|
226
226
|
description: ( localize(
|
|
227
|
-
|
|
227
|
+
5154,
|
|
228
228
|
"A list of representative example questions that are suitable for this chat command."
|
|
229
229
|
)),
|
|
230
230
|
type: 'array'
|
|
@@ -289,6 +289,7 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
|
|
|
289
289
|
const store = ( new DisposableStore());
|
|
290
290
|
store.add(this._chatAgentService.registerAgent(providerDescriptor.id, {
|
|
291
291
|
extensionId: extension.description.identifier,
|
|
292
|
+
extensionVersion: extension.description.version,
|
|
292
293
|
publisherDisplayName: extension.description.publisherDisplayName ?? extension.description.publisher,
|
|
293
294
|
extensionPublisherId: extension.description.publisher,
|
|
294
295
|
extensionDisplayName: extension.description.displayName ?? extension.description.name,
|
|
@@ -354,9 +355,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
354
355
|
return;
|
|
355
356
|
}
|
|
356
357
|
this.registeredWelcomeView = true;
|
|
357
|
-
const showExtensionLabel = ( localize(
|
|
358
|
+
const showExtensionLabel = ( localize(5155, "Show Extension"));
|
|
358
359
|
const mainMessage = ( localize(
|
|
359
|
-
|
|
360
|
+
5156,
|
|
360
361
|
"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.",
|
|
361
362
|
this.productService.nameLong
|
|
362
363
|
));
|
|
@@ -388,10 +389,10 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
388
389
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
389
390
|
}
|
|
390
391
|
const headers = [
|
|
391
|
-
( localize(
|
|
392
|
-
( localize(
|
|
393
|
-
( localize(
|
|
394
|
-
( localize(
|
|
392
|
+
( localize(5157, "Name")),
|
|
393
|
+
( localize(5158, "Full Name")),
|
|
394
|
+
( localize(5159, "Description")),
|
|
395
|
+
( localize(5160, "Commands")),
|
|
395
396
|
];
|
|
396
397
|
const rows = ( nonDefaultContributions.map(d => {
|
|
397
398
|
return [
|
|
@@ -412,7 +413,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
412
413
|
}
|
|
413
414
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
414
415
|
id: 'chatParticipants',
|
|
415
|
-
label: ( localize(
|
|
416
|
+
label: ( localize(5161, "Chat Participants")),
|
|
416
417
|
access: {
|
|
417
418
|
canToggle: false
|
|
418
419
|
},
|
|
@@ -72,7 +72,7 @@ let PasteImageProvider = class PasteImageProvider {
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
const attachedVariables = widget.attachmentModel.attachments;
|
|
75
|
-
const displayName = ( localize(
|
|
75
|
+
const displayName = ( localize(5162, 'Pasted Image'));
|
|
76
76
|
let tempDisplayName = displayName;
|
|
77
77
|
for (let appendValue = 2; ( attachedVariables.some(attachment => attachment.name === tempDisplayName)); appendValue++) {
|
|
78
78
|
tempDisplayName = `${displayName} ${appendValue}`;
|
|
@@ -94,7 +94,7 @@ let PasteImageProvider = class PasteImageProvider {
|
|
|
94
94
|
if (( currentContextIds.has(scaledImageContext.id))) {
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
const edit = createCustomPasteEdit(model, [scaledImageContext], mimeType, this.kind, ( localize(
|
|
97
|
+
const edit = createCustomPasteEdit(model, [scaledImageContext], mimeType, this.kind, ( localize(5163, 'Pasted Image Attachment')), this.chatWidgetService);
|
|
98
98
|
return createEditSession(edit);
|
|
99
99
|
}
|
|
100
100
|
};
|
|
@@ -203,7 +203,7 @@ let CopyAttachmentsProvider = class CopyAttachmentsProvider {
|
|
|
203
203
|
}
|
|
204
204
|
const edit = {
|
|
205
205
|
insertText: textdata,
|
|
206
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(5164, 'Insert Prompt & Attachments')),
|
|
207
207
|
kind: this.kind,
|
|
208
208
|
handledMimeType: CopyAttachmentsProvider_1.ATTACHMENT_MIME_TYPE,
|
|
209
209
|
additionalEdit: {
|
|
@@ -277,7 +277,7 @@ class PasteTextProvider {
|
|
|
277
277
|
if (( currentContextIds.has(copiedContext.id))) {
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
const edit = createCustomPasteEdit(model, [copiedContext], Mimes.text, this.kind, ( localize(
|
|
280
|
+
const edit = createCustomPasteEdit(model, [copiedContext], Mimes.text, this.kind, ( localize(5165, 'Pasted Code Attachment')), this.chatWidgetService);
|
|
281
281
|
edit.yieldTo = [{ kind: HierarchicalKind.Empty.append('text', 'plain') }];
|
|
282
282
|
return createEditSession(edit);
|
|
283
283
|
}
|
|
@@ -287,7 +287,7 @@ function getCopiedContext(code, file, language, range) {
|
|
|
287
287
|
const start = range.startLineNumber;
|
|
288
288
|
const end = range.endLineNumber;
|
|
289
289
|
const resultText = `Copied Selection of Code: \n\n\n From the file: ${fileName} From lines ${start} to ${end} \n \`\`\`${code}\`\`\``;
|
|
290
|
-
const pastedLines = start === end ? ( localize(
|
|
290
|
+
const pastedLines = start === end ? ( localize(5166, '1 line')) : ( localize(5167, '{0} lines', end + 1 - start));
|
|
291
291
|
return {
|
|
292
292
|
kind: 'paste',
|
|
293
293
|
value: resultText,
|
|
@@ -311,7 +311,7 @@ function getCopiedContext(code, file, language, range) {
|
|
|
311
311
|
function createCustomPasteEdit(model, context, handledMimeType, kind, title, chatWidgetService) {
|
|
312
312
|
const label = context.length === 1
|
|
313
313
|
? context[0].name
|
|
314
|
-
: ( localize(
|
|
314
|
+
: ( localize(5168, '{0} and {1} more', context[0].name, context.length - 1));
|
|
315
315
|
const customEdit = {
|
|
316
316
|
resource: model.uri,
|
|
317
317
|
variable: context,
|
|
@@ -11,7 +11,7 @@ export declare class QuickChatService extends Disposable implements IQuickChatSe
|
|
|
11
11
|
private readonly instantiationService;
|
|
12
12
|
readonly _serviceBrand: undefined;
|
|
13
13
|
private readonly _onDidClose;
|
|
14
|
-
|
|
14
|
+
get onDidClose(): Event<void>;
|
|
15
15
|
private _input;
|
|
16
16
|
private _currentChat;
|
|
17
17
|
private _container;
|