@codingame/monaco-vscode-chat-service-override 22.1.8 → 23.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 +16 -7
- package/package.json +43 -41
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +57 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +26 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +51 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.d.ts → chatNewActions.d.ts} +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.js → chatNewActions.js} +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +101 -98
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +35 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +43 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +33 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +250 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +97 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +290 -231
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +7 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +646 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +46 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +44 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +46 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +45 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +30 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +60 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +60 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +29 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +365 -143
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +3 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +58 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +6 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +7 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +38 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +83 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +91 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +370 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +349 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +787 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +211 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatUsageWidget.css +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +21 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +54 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +31 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +16 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +29 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +37 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +96 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +66 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +77 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +91 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +458 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +212 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +96 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +15 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +33 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +688 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +15 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +126 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +38 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +28 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +24 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +25 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +30 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +10 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +61 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +28 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +254 -165
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +4 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +10 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +20 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +13 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +51 -21
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +74 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +83 -53
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +136 -78
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +18 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +357 -157
- 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 +55 -28
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +235 -108
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +50 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +11 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +18 -30
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +62 -139
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +119 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +6 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +192 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +21 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +8 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +18 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +18 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +24 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +33 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +42 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +14 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +227 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +133 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
- 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/monitoring/outputMonitor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +75 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +28 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +366 -363
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +123 -0
- package/vscode/src/vs/base/common/yaml.d.ts +0 -74
- package/vscode/src/vs/base/common/yaml.js +0 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +0 -239
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +0 -435
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +0 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +0 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +0 -380
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -137
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +0 -176
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +0 -206
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +0 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +0 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +0 -306
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.js +0 -102
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.d.ts +0 -97
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.js +0 -247
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -118
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.js +0 -55
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +0 -66
|
@@ -7,8 +7,8 @@ import { EmbeddedDiffEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
7
7
|
import { EmbeddedCodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
|
|
8
8
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
9
9
|
import { InlineChatController, InlineChatRunOptions, InlineChatController1, InlineChatController2 } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
10
|
-
import { ACTION_ACCEPT_CHANGES,
|
|
11
|
-
import {
|
|
10
|
+
import { ACTION_ACCEPT_CHANGES, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_POSSIBLE, ACTION_START, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_STASHED_SESSION, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, MENU_INLINE_CHAT_WIDGET_STATUS, MENU_INLINE_CHAT_ZONE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, ACTION_DISCARD_CHANGES, ACTION_REGENERATE_RESPONSE, MENU_INLINE_CHAT_SIDE, ACTION_VIEW_IN_CHAT, CTX_INLINE_CHAT_CHANGE_HAS_DIFF, CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF, ACTION_TOGGLE_DIFF } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
11
|
+
import { ctxHasRequestInProgress, ctxHasEditorModification } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
|
|
12
12
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
13
13
|
import { Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
14
14
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -26,16 +26,17 @@ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/c
|
|
|
26
26
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
27
27
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
28
28
|
import { IInlineChatSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
|
|
29
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
29
30
|
|
|
30
31
|
CommandsRegistry.registerCommandAlias('interactiveEditor.start', 'inlineChat.start');
|
|
31
32
|
CommandsRegistry.registerCommandAlias('interactive.acceptChanges', ACTION_ACCEPT_CHANGES);
|
|
32
|
-
const START_INLINE_CHAT = registerIcon('start-inline-chat', Codicon.sparkle, ( localize(
|
|
33
|
-
const inlineChatContextKey = ( ContextKeyExpr.and(( ContextKeyExpr.or(
|
|
33
|
+
const START_INLINE_CHAT = registerIcon('start-inline-chat', Codicon.sparkle, ( localize(8122, 'Icon which spawns the inline chat from the editor toolbar.')));
|
|
34
|
+
const inlineChatContextKey = ( ContextKeyExpr.and(( ContextKeyExpr.or(CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED)), CTX_INLINE_CHAT_POSSIBLE, EditorContextKeys.writable, ( EditorContextKeys.editorSimpleInput.negate())));
|
|
34
35
|
class StartSessionAction extends Action2 {
|
|
35
36
|
constructor() {
|
|
36
37
|
super({
|
|
37
38
|
id: ACTION_START,
|
|
38
|
-
title: ( localize2(
|
|
39
|
+
title: ( localize2(8123, 'Open Inline Chat')),
|
|
39
40
|
category: AbstractInline1ChatAction.category,
|
|
40
41
|
f1: true,
|
|
41
42
|
precondition: inlineChatContextKey,
|
|
@@ -91,7 +92,7 @@ class FocusInlineChat extends EditorAction2 {
|
|
|
91
92
|
constructor() {
|
|
92
93
|
super({
|
|
93
94
|
id: 'inlineChat.focus',
|
|
94
|
-
title: ( localize2(
|
|
95
|
+
title: ( localize2(8124, "Focus Input")),
|
|
95
96
|
f1: true,
|
|
96
97
|
category: AbstractInline1ChatAction.category,
|
|
97
98
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.editorTextFocus, CTX_INLINE_CHAT_VISIBLE, ( CTX_INLINE_CHAT_FOCUSED.negate()), ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()))),
|
|
@@ -114,7 +115,7 @@ class UnstashSessionAction extends EditorAction2 {
|
|
|
114
115
|
constructor() {
|
|
115
116
|
super({
|
|
116
117
|
id: 'inlineChat.unstash',
|
|
117
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(8125, "Resume Last Dismissed Inline Chat")),
|
|
118
119
|
category: AbstractInline1ChatAction.category,
|
|
119
120
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_HAS_STASHED_SESSION, EditorContextKeys.writable)),
|
|
120
121
|
keybinding: {
|
|
@@ -136,16 +137,16 @@ class UnstashSessionAction extends EditorAction2 {
|
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
class AbstractInline1ChatAction extends EditorAction2 {
|
|
139
|
-
static { this.category = ( localize2(
|
|
140
|
+
static { this.category = ( localize2(8126, "Inline Chat")); }
|
|
140
141
|
constructor(desc) {
|
|
141
142
|
const massageMenu = (menu) => {
|
|
142
143
|
if (Array.isArray(menu)) {
|
|
143
144
|
for (const entry of menu) {
|
|
144
|
-
entry.when = ( ContextKeyExpr.and(
|
|
145
|
+
entry.when = ( ContextKeyExpr.and(CTX_INLINE_CHAT_V1_ENABLED, entry.when));
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
else if (menu) {
|
|
148
|
-
menu.when = ( ContextKeyExpr.and(
|
|
149
|
+
menu.when = ( ContextKeyExpr.and(CTX_INLINE_CHAT_V1_ENABLED, menu.when));
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
152
|
if (Array.isArray(desc.menu)) {
|
|
@@ -157,7 +158,7 @@ class AbstractInline1ChatAction extends EditorAction2 {
|
|
|
157
158
|
super({
|
|
158
159
|
...desc,
|
|
159
160
|
category: AbstractInline1ChatAction.category,
|
|
160
|
-
precondition: ( ContextKeyExpr.and(
|
|
161
|
+
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_V1_ENABLED, desc.precondition))
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
runEditorCommand(accessor, editor, ..._args) {
|
|
@@ -198,7 +199,7 @@ class ArrowOutUpAction extends AbstractInline1ChatAction {
|
|
|
198
199
|
constructor() {
|
|
199
200
|
super({
|
|
200
201
|
id: 'inlineChat.arrowOutUp',
|
|
201
|
-
title: ( localize(
|
|
202
|
+
title: ( localize(8127, 'Cursor Up')),
|
|
202
203
|
precondition: ( ContextKeyExpr.and(
|
|
203
204
|
CTX_INLINE_CHAT_FOCUSED,
|
|
204
205
|
CTX_INLINE_CHAT_INNER_CURSOR_FIRST,
|
|
@@ -219,7 +220,7 @@ class ArrowOutDownAction extends AbstractInline1ChatAction {
|
|
|
219
220
|
constructor() {
|
|
220
221
|
super({
|
|
221
222
|
id: 'inlineChat.arrowOutDown',
|
|
222
|
-
title: ( localize(
|
|
223
|
+
title: ( localize(8128, 'Cursor Down')),
|
|
223
224
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_LAST, ( EditorContextKeys.isEmbeddedDiffEditor.negate()), ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()))),
|
|
224
225
|
keybinding: {
|
|
225
226
|
weight: KeybindingWeight.EditorCore,
|
|
@@ -235,8 +236,8 @@ class AcceptChanges extends AbstractInline1ChatAction {
|
|
|
235
236
|
constructor() {
|
|
236
237
|
super({
|
|
237
238
|
id: ACTION_ACCEPT_CHANGES,
|
|
238
|
-
title: ( localize2(
|
|
239
|
-
shortTitle: ( localize(
|
|
239
|
+
title: ( localize2(8129, "Accept Changes")),
|
|
240
|
+
shortTitle: ( localize(8130, 'Accept')),
|
|
240
241
|
icon: Codicon.check,
|
|
241
242
|
f1: true,
|
|
242
243
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE)),
|
|
@@ -264,7 +265,7 @@ class DiscardHunkAction extends AbstractInline1ChatAction {
|
|
|
264
265
|
constructor() {
|
|
265
266
|
super({
|
|
266
267
|
id: ACTION_DISCARD_CHANGES,
|
|
267
|
-
title: ( localize(
|
|
268
|
+
title: ( localize(8131, 'Discard')),
|
|
268
269
|
icon: Codicon.chromeClose,
|
|
269
270
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
270
271
|
menu: [{
|
|
@@ -287,8 +288,8 @@ class RerunAction extends AbstractInline1ChatAction {
|
|
|
287
288
|
constructor() {
|
|
288
289
|
super({
|
|
289
290
|
id: ACTION_REGENERATE_RESPONSE,
|
|
290
|
-
title: ( localize2(
|
|
291
|
-
shortTitle: ( localize(
|
|
291
|
+
title: ( localize2(8132, "Rerun Request")),
|
|
292
|
+
shortTitle: ( localize(8133, 'Rerun')),
|
|
292
293
|
f1: false,
|
|
293
294
|
icon: Codicon.refresh,
|
|
294
295
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
@@ -313,7 +314,7 @@ class RerunAction extends AbstractInline1ChatAction {
|
|
|
313
314
|
}
|
|
314
315
|
const lastRequest = model.getRequests().at(-1);
|
|
315
316
|
if (lastRequest) {
|
|
316
|
-
const widget = chatWidgetService.
|
|
317
|
+
const widget = chatWidgetService.getWidgetBySessionResource(model.sessionResource);
|
|
317
318
|
await chatService.resendRequest(lastRequest, {
|
|
318
319
|
noCommandDetection: false,
|
|
319
320
|
attempt: lastRequest.attempt + 1,
|
|
@@ -327,7 +328,7 @@ class CloseAction extends AbstractInline1ChatAction {
|
|
|
327
328
|
constructor() {
|
|
328
329
|
super({
|
|
329
330
|
id: 'inlineChat.close',
|
|
330
|
-
title: ( localize(
|
|
331
|
+
title: ( localize(8134, 'Close')),
|
|
331
332
|
icon: Codicon.close,
|
|
332
333
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
333
334
|
keybinding: {
|
|
@@ -354,7 +355,7 @@ class ConfigureInlineChatAction extends AbstractInline1ChatAction {
|
|
|
354
355
|
constructor() {
|
|
355
356
|
super({
|
|
356
357
|
id: 'inlineChat.configure',
|
|
357
|
-
title: ( localize2(
|
|
358
|
+
title: ( localize2(8135, 'Configure Inline Chat')),
|
|
358
359
|
icon: Codicon.settingsGear,
|
|
359
360
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
360
361
|
f1: true,
|
|
@@ -373,7 +374,7 @@ class MoveToNextHunk extends AbstractInline1ChatAction {
|
|
|
373
374
|
constructor() {
|
|
374
375
|
super({
|
|
375
376
|
id: 'inlineChat.moveToNextHunk',
|
|
376
|
-
title: ( localize2(
|
|
377
|
+
title: ( localize2(8136, 'Move to Next Change')),
|
|
377
378
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
378
379
|
f1: true,
|
|
379
380
|
keybinding: {
|
|
@@ -390,7 +391,7 @@ class MoveToPreviousHunk extends AbstractInline1ChatAction {
|
|
|
390
391
|
constructor() {
|
|
391
392
|
super({
|
|
392
393
|
id: 'inlineChat.moveToPreviousHunk',
|
|
393
|
-
title: ( localize2(
|
|
394
|
+
title: ( localize2(8137, 'Move to Previous Change')),
|
|
394
395
|
f1: true,
|
|
395
396
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
396
397
|
keybinding: {
|
|
@@ -407,7 +408,7 @@ class ViewInChatAction extends AbstractInline1ChatAction {
|
|
|
407
408
|
constructor() {
|
|
408
409
|
super({
|
|
409
410
|
id: ACTION_VIEW_IN_CHAT,
|
|
410
|
-
title: ( localize(
|
|
411
|
+
title: ( localize(8138, 'View in Chat')),
|
|
411
412
|
icon: Codicon.chatSparkle,
|
|
412
413
|
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
413
414
|
menu: [{
|
|
@@ -437,7 +438,7 @@ class ToggleDiffForChange extends AbstractInline1ChatAction {
|
|
|
437
438
|
super({
|
|
438
439
|
id: ACTION_TOGGLE_DIFF,
|
|
439
440
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_CHANGE_HAS_DIFF)),
|
|
440
|
-
title: ( localize2(
|
|
441
|
+
title: ( localize2(8139, 'Toggle Changes')),
|
|
441
442
|
icon: Codicon.diffSingle,
|
|
442
443
|
toggled: {
|
|
443
444
|
condition: CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF,
|
|
@@ -459,16 +460,16 @@ class ToggleDiffForChange extends AbstractInline1ChatAction {
|
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
class AbstractInline2ChatAction extends EditorAction2 {
|
|
462
|
-
static { this.category = ( localize2(
|
|
463
|
+
static { this.category = ( localize2(8126, "Inline Chat")); }
|
|
463
464
|
constructor(desc) {
|
|
464
465
|
const massageMenu = (menu) => {
|
|
465
466
|
if (Array.isArray(menu)) {
|
|
466
467
|
for (const entry of menu) {
|
|
467
|
-
entry.when = ( ContextKeyExpr.and(
|
|
468
|
+
entry.when = ( ContextKeyExpr.and(CTX_INLINE_CHAT_V2_ENABLED, entry.when));
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
471
|
else if (menu) {
|
|
471
|
-
menu.when = ( ContextKeyExpr.and(
|
|
472
|
+
menu.when = ( ContextKeyExpr.and(CTX_INLINE_CHAT_V2_ENABLED, menu.when));
|
|
472
473
|
}
|
|
473
474
|
};
|
|
474
475
|
if (Array.isArray(desc.menu)) {
|
|
@@ -480,7 +481,7 @@ class AbstractInline2ChatAction extends EditorAction2 {
|
|
|
480
481
|
super({
|
|
481
482
|
...desc,
|
|
482
483
|
category: AbstractInline2ChatAction.category,
|
|
483
|
-
precondition: ( ContextKeyExpr.and(
|
|
484
|
+
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_V2_ENABLED, desc.precondition))
|
|
484
485
|
});
|
|
485
486
|
}
|
|
486
487
|
runEditorCommand(accessor, editor, ..._args) {
|
|
@@ -518,32 +519,8 @@ class AbstractInline2ChatAction extends EditorAction2 {
|
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
521
|
class KeepOrUndoSessionAction extends AbstractInline2ChatAction {
|
|
521
|
-
constructor(
|
|
522
|
-
super(
|
|
523
|
-
id,
|
|
524
|
-
title: _keep
|
|
525
|
-
? ( localize2(7895, "Keep"))
|
|
526
|
-
: ( localize2(7896, "Undo")),
|
|
527
|
-
f1: true,
|
|
528
|
-
icon: _keep ? Codicon.check : Codicon.discard,
|
|
529
|
-
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, ( ctxHasRequestInProgress.negate()))),
|
|
530
|
-
keybinding: [{
|
|
531
|
-
weight: KeybindingWeight.WorkbenchContrib + 10,
|
|
532
|
-
primary: _keep
|
|
533
|
-
? KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyY
|
|
534
|
-
: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyN
|
|
535
|
-
}],
|
|
536
|
-
menu: [{
|
|
537
|
-
id: MENU_INLINE_CHAT_WIDGET_STATUS,
|
|
538
|
-
group: '0_main',
|
|
539
|
-
order: 1,
|
|
540
|
-
when: ( ContextKeyExpr.and(
|
|
541
|
-
CTX_INLINE_CHAT_HAS_AGENT2,
|
|
542
|
-
ContextKeyExpr.greater(ctxRequestCount.key, 0),
|
|
543
|
-
ctxHasEditorModification
|
|
544
|
-
)),
|
|
545
|
-
}]
|
|
546
|
-
});
|
|
522
|
+
constructor(_keep, desc) {
|
|
523
|
+
super(desc);
|
|
547
524
|
this._keep = _keep;
|
|
548
525
|
}
|
|
549
526
|
async runInlineChatCommand(accessor, _ctrl, editor, ..._args) {
|
|
@@ -560,110 +537,56 @@ class KeepOrUndoSessionAction extends AbstractInline2ChatAction {
|
|
|
560
537
|
else {
|
|
561
538
|
await session.editingSession.reject();
|
|
562
539
|
}
|
|
540
|
+
editor.setSelection(editor.getSelection().collapseToStart());
|
|
563
541
|
session.dispose();
|
|
564
542
|
}
|
|
565
543
|
}
|
|
566
544
|
}
|
|
567
545
|
class KeepSessionAction2 extends KeepOrUndoSessionAction {
|
|
568
546
|
constructor() {
|
|
569
|
-
super(
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
class UndoSessionAction2 extends KeepOrUndoSessionAction {
|
|
573
|
-
constructor() {
|
|
574
|
-
super('inlineChat2.undo', false);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
class CloseSessionAction2 extends AbstractInline2ChatAction {
|
|
578
|
-
constructor() {
|
|
579
|
-
super({
|
|
580
|
-
id: 'inlineChat2.close',
|
|
581
|
-
title: ( localize2(7897, "Close")),
|
|
547
|
+
super(true, {
|
|
548
|
+
id: 'inlineChat2.keep',
|
|
549
|
+
title: ( localize2(8140, "Keep")),
|
|
582
550
|
f1: true,
|
|
583
|
-
icon: Codicon.
|
|
584
|
-
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, ( ctxHasRequestInProgress.negate()),
|
|
551
|
+
icon: Codicon.check,
|
|
552
|
+
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, ( ctxHasRequestInProgress.negate()), ctxHasEditorModification, ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.EditorInline)))),
|
|
585
553
|
keybinding: [{
|
|
586
|
-
when: (
|
|
554
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.inputHasFocus, ( ChatContextKeys.inputHasText.negate()))),
|
|
587
555
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
588
|
-
primary:
|
|
556
|
+
primary: KeyCode.Enter
|
|
589
557
|
}, {
|
|
590
|
-
weight: KeybindingWeight.WorkbenchContrib,
|
|
591
|
-
primary: KeyCode.
|
|
558
|
+
weight: KeybindingWeight.WorkbenchContrib + 10,
|
|
559
|
+
primary: KeyMod.CtrlCmd | KeyCode.Enter
|
|
592
560
|
}],
|
|
593
561
|
menu: [{
|
|
594
|
-
id:
|
|
562
|
+
id: MenuId.ChatEditorInlineExecute,
|
|
595
563
|
group: 'navigation',
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
id: MENU_INLINE_CHAT_WIDGET_STATUS,
|
|
599
|
-
group: '0_main',
|
|
600
|
-
order: 1,
|
|
601
|
-
when: ( ContextKeyExpr.and(CTX_INLINE_CHAT_HAS_AGENT2, ( ctxHasEditorModification.negate()))),
|
|
564
|
+
order: 4,
|
|
565
|
+
when: ( ContextKeyExpr.and(( ctxHasRequestInProgress.negate()), ctxHasEditorModification, ( ChatContextKeys.inputHasText.toNegated()))),
|
|
602
566
|
}]
|
|
603
567
|
});
|
|
604
568
|
}
|
|
605
|
-
runInlineChatCommand(accessor, _ctrl, editor, ...args) {
|
|
606
|
-
const inlineChatSessions = accessor.get(IInlineChatSessionService);
|
|
607
|
-
if (editor.hasModel()) {
|
|
608
|
-
const textModel = editor.getModel();
|
|
609
|
-
inlineChatSessions.getSession2(textModel.uri)?.dispose();
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
569
|
}
|
|
613
|
-
class
|
|
570
|
+
class UndoAndCloseSessionAction2 extends KeepOrUndoSessionAction {
|
|
614
571
|
constructor() {
|
|
615
|
-
super({
|
|
616
|
-
id: 'inlineChat2.
|
|
617
|
-
title: ( localize2(
|
|
618
|
-
f1: true,
|
|
619
|
-
icon: Codicon.chatSparkle,
|
|
620
|
-
precondition: ( ContextKeyExpr.and(( ctxIsGlobalEditingSession.negate()), ContextKeyExpr.greaterEquals(ctxRequestCount.key, 1))),
|
|
621
|
-
toggled: {
|
|
622
|
-
condition: CTX_INLINE_CHAT_VISIBLE,
|
|
623
|
-
},
|
|
624
|
-
keybinding: {
|
|
625
|
-
weight: KeybindingWeight.WorkbenchContrib,
|
|
626
|
-
primary: KeyMod.CtrlCmd | KeyCode.KeyI
|
|
627
|
-
},
|
|
628
|
-
menu: {
|
|
629
|
-
id: MenuId.ChatEditingEditorContent,
|
|
630
|
-
when: ( ContextKeyExpr.and(ContextKeyExpr.greaterEquals(ctxRequestCount.key, 1), ( ctxIsGlobalEditingSession.negate()))),
|
|
631
|
-
group: 'navigate',
|
|
632
|
-
order: 4,
|
|
633
|
-
}
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
runInlineChatCommand(_accessor, ctrl, _editor) {
|
|
637
|
-
ctrl.toggleWidgetUntilNextRequest();
|
|
638
|
-
ctrl.markActiveController();
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
class CancelRequestAction extends AbstractInline2ChatAction {
|
|
642
|
-
constructor() {
|
|
643
|
-
super({
|
|
644
|
-
id: 'inlineChat2.cancelRequest',
|
|
645
|
-
title: ( localize2(7899, "Cancel Request")),
|
|
572
|
+
super(false, {
|
|
573
|
+
id: 'inlineChat2.close',
|
|
574
|
+
title: ( localize2(8141, "Close")),
|
|
646
575
|
f1: true,
|
|
647
|
-
icon: Codicon.
|
|
648
|
-
precondition:
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
576
|
+
icon: Codicon.close,
|
|
577
|
+
precondition: CTX_INLINE_CHAT_VISIBLE,
|
|
578
|
+
keybinding: [{
|
|
579
|
+
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(EditorContextKeys.focus, ( ctxHasEditorModification.negate()))), ChatContextKeys.inputHasFocus)),
|
|
580
|
+
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
581
|
+
primary: KeyCode.Escape,
|
|
582
|
+
}],
|
|
583
|
+
menu: [{
|
|
584
|
+
id: MenuId.ChatEditorInlineExecute,
|
|
585
|
+
group: 'navigation',
|
|
586
|
+
order: 100
|
|
587
|
+
}]
|
|
656
588
|
});
|
|
657
589
|
}
|
|
658
|
-
runInlineChatCommand(accessor, ctrl, _editor) {
|
|
659
|
-
const chatService = accessor.get(IChatService);
|
|
660
|
-
const { viewModel } = ctrl.widget.chatWidget;
|
|
661
|
-
if (viewModel) {
|
|
662
|
-
ctrl.toggleWidgetUntilNextRequest();
|
|
663
|
-
ctrl.markActiveController();
|
|
664
|
-
chatService.cancelCurrentRequestForSession(viewModel.sessionId);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
590
|
}
|
|
668
591
|
|
|
669
|
-
export { AbstractInline1ChatAction, AcceptChanges, ArrowOutDownAction, ArrowOutUpAction,
|
|
592
|
+
export { AbstractInline1ChatAction, AcceptChanges, ArrowOutDownAction, ArrowOutUpAction, CloseAction, ConfigureInlineChatAction, DiscardHunkAction, FocusInlineChat, KeepSessionAction2, MoveToNextHunk, MoveToPreviousHunk, RerunAction, START_INLINE_CHAT, StartSessionAction, ToggleDiffForChange, UndoAndCloseSessionAction2, UnstashSessionAction, ViewInChatAction };
|
|
@@ -22,7 +22,7 @@ export declare class ShowInlineChatHintAction extends EditorAction2 {
|
|
|
22
22
|
runEditorCommand(_accessor: ServicesAccessor, editor: ICodeEditor, ...args: [
|
|
23
23
|
uri: URI,
|
|
24
24
|
position: IPosition,
|
|
25
|
-
...rest:
|
|
25
|
+
...rest: unknown[]
|
|
26
26
|
]): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
export declare class InlineChatHintsController extends Disposable implements IEditorContribution {
|
|
@@ -32,12 +32,12 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
32
32
|
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
33
33
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
34
34
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
35
|
-
import {
|
|
36
|
-
import { INSTRUCTIONS_LANGUAGE_ID, PROMPT_LANGUAGE_ID } from '@codingame/monaco-vscode-
|
|
37
|
-
import { CTX_INLINE_CHAT_VISIBLE,
|
|
35
|
+
import { LEGACY_MODE_FILE_EXTENSION, AGENT_FILE_EXTENSION } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
|
|
36
|
+
import { INSTRUCTIONS_LANGUAGE_ID, PROMPT_LANGUAGE_ID } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
37
|
+
import { CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_V1_ENABLED, ACTION_START, InlineChatConfigKeys } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
38
38
|
import { AbstractInline1ChatAction } from './inlineChatActions.js';
|
|
39
39
|
import { InlineChatController } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
40
|
-
import * as inlineChat from '@codingame/monaco-vscode-
|
|
40
|
+
import * as inlineChat from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css';
|
|
41
41
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
42
42
|
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
43
43
|
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
@@ -51,18 +51,19 @@ const IGNORED_LANGUAGE_IDS = ( new Set([
|
|
|
51
51
|
'search-result',
|
|
52
52
|
INSTRUCTIONS_LANGUAGE_ID,
|
|
53
53
|
PROMPT_LANGUAGE_ID,
|
|
54
|
-
|
|
54
|
+
LEGACY_MODE_FILE_EXTENSION,
|
|
55
|
+
AGENT_FILE_EXTENSION
|
|
55
56
|
]));
|
|
56
|
-
const CTX_INLINE_CHAT_SHOWING_HINT = ( new RawContextKey('inlineChatShowingHint', false, ( localize(
|
|
57
|
+
const CTX_INLINE_CHAT_SHOWING_HINT = ( new RawContextKey('inlineChatShowingHint', false, ( localize(8153, "Whether inline chat shows a contextual hint"))));
|
|
57
58
|
const _inlineChatActionId = 'inlineChat.startWithCurrentLine';
|
|
58
59
|
class InlineChatExpandLineAction extends EditorAction2 {
|
|
59
60
|
constructor() {
|
|
60
61
|
super({
|
|
61
62
|
id: _inlineChatActionId,
|
|
62
63
|
category: AbstractInline1ChatAction.category,
|
|
63
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(8154, "Start in Editor with Current Line")),
|
|
64
65
|
f1: true,
|
|
65
|
-
precondition: ( ContextKeyExpr.and(( CTX_INLINE_CHAT_VISIBLE.negate()),
|
|
66
|
+
precondition: ( ContextKeyExpr.and(( CTX_INLINE_CHAT_VISIBLE.negate()), CTX_INLINE_CHAT_V1_ENABLED, EditorContextKeys.writable)),
|
|
66
67
|
keybinding: [{
|
|
67
68
|
when: CTX_INLINE_CHAT_SHOWING_HINT,
|
|
68
69
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
@@ -103,9 +104,9 @@ class ShowInlineChatHintAction extends EditorAction2 {
|
|
|
103
104
|
super({
|
|
104
105
|
id: 'inlineChat.showHint',
|
|
105
106
|
category: AbstractInline1ChatAction.category,
|
|
106
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(8155, "Show Inline Chat Hint")),
|
|
107
108
|
f1: false,
|
|
108
|
-
precondition: ( ContextKeyExpr.and(( CTX_INLINE_CHAT_VISIBLE.negate()),
|
|
109
|
+
precondition: ( ContextKeyExpr.and(( CTX_INLINE_CHAT_VISIBLE.negate()), CTX_INLINE_CHAT_V1_ENABLED, EditorContextKeys.writable)),
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
async runEditorCommand(_accessor, editor, ...args) {
|
|
@@ -231,15 +232,15 @@ let InlineChatHintsController = class InlineChatHintsController extends Disposab
|
|
|
231
232
|
this._ctxShowingHint.reset();
|
|
232
233
|
return;
|
|
233
234
|
}
|
|
234
|
-
const agentName = chatAgentService.getDefaultAgent(ChatAgentLocation.EditorInline)?.name ?? ( localize(
|
|
235
|
+
const agentName = chatAgentService.getDefaultAgent(ChatAgentLocation.EditorInline)?.name ?? ( localize(8156, "Chat"));
|
|
235
236
|
const { position, isEol, isWhitespace, kb, model } = showData;
|
|
236
237
|
const inlineClassName = ['a' , 'inline-chat-hint', 'inline-chat-hint-text'];
|
|
237
238
|
let content;
|
|
238
239
|
if (isWhitespace) {
|
|
239
|
-
content = '\u00a0' + ( localize(
|
|
240
|
+
content = '\u00a0' + ( localize(8157, "{0} to edit with {1}", kb, agentName));
|
|
240
241
|
}
|
|
241
242
|
else if (isEol) {
|
|
242
|
-
content = '\u00a0' + ( localize(
|
|
243
|
+
content = '\u00a0' + ( localize(8158, "{0} to continue with {1}", kb, agentName));
|
|
243
244
|
}
|
|
244
245
|
else {
|
|
245
246
|
content = '\u200a' + kb + '\u200a';
|
|
@@ -268,7 +269,7 @@ let InlineChatHintsController = class InlineChatHintsController extends Disposab
|
|
|
268
269
|
getActions: () => [
|
|
269
270
|
toAction({
|
|
270
271
|
id: 'inlineChat.disableHint',
|
|
271
|
-
label: ( localize(
|
|
272
|
+
label: ( localize(8159, "Disable Inline Chat Hint")),
|
|
272
273
|
run: async () => {
|
|
273
274
|
await this._configurationService.updateValue(setting, false);
|
|
274
275
|
}
|
|
@@ -296,7 +297,7 @@ class HideInlineChatHintAction extends EditorAction2 {
|
|
|
296
297
|
constructor() {
|
|
297
298
|
super({
|
|
298
299
|
id: 'inlineChat.hideHint',
|
|
299
|
-
title: ( localize2(
|
|
300
|
+
title: ( localize2(8160, "Hide Inline Chat Hint")),
|
|
300
301
|
precondition: CTX_INLINE_CHAT_SHOWING_HINT,
|
|
301
302
|
keybinding: {
|
|
302
303
|
weight: KeybindingWeight.EditorContrib - 10,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { CellDiffInfo } from "@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel";
|
|
3
|
-
import { INotebookEditor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookEditor } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
export declare class NotebookModifiedCellDecorator extends Disposable {
|
|
5
5
|
private readonly notebookEditor;
|
|
6
6
|
private readonly decorators;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-
|
|
4
|
-
import { overviewRulerModifiedForeground } from '@codingame/monaco-vscode-
|
|
3
|
+
import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
4
|
+
import { overviewRulerModifiedForeground } from '@codingame/monaco-vscode-bc6f260d-ec63-5c95-9446-1ca7d0872719-common/vscode/vs/workbench/contrib/scm/common/quickDiff';
|
|
5
5
|
|
|
6
6
|
class NotebookModifiedCellDecorator extends Disposable {
|
|
7
7
|
constructor(notebookEditor) {
|
|
@@ -13,42 +13,42 @@ import { IRemoteCodingAgentsService } from '@codingame/monaco-vscode-api/vscode/
|
|
|
13
13
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
14
14
|
extensionPoint: 'remoteCodingAgents',
|
|
15
15
|
jsonSchema: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(10221, 'Contributes remote coding agent integrations to the chat widget.')),
|
|
17
17
|
type: 'array',
|
|
18
18
|
items: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
21
|
id: {
|
|
22
|
-
description: ( localize(
|
|
22
|
+
description: ( localize(10222, 'A unique identifier for this item.')),
|
|
23
23
|
type: 'string',
|
|
24
24
|
},
|
|
25
25
|
command: {
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
10223,
|
|
28
28
|
'Identifier of the command to execute. The command must be declared in the "commands" section.'
|
|
29
29
|
)),
|
|
30
30
|
type: 'string'
|
|
31
31
|
},
|
|
32
32
|
displayName: {
|
|
33
33
|
description: ( localize(
|
|
34
|
-
|
|
34
|
+
10224,
|
|
35
35
|
'A user-friendly name for this item which is used for display in menus.'
|
|
36
36
|
)),
|
|
37
37
|
type: 'string'
|
|
38
38
|
},
|
|
39
39
|
description: {
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(10225, 'Description of the remote agent for use in menus and tooltips.')),
|
|
41
41
|
type: 'string'
|
|
42
42
|
},
|
|
43
43
|
followUpRegex: {
|
|
44
44
|
description: ( localize(
|
|
45
|
-
|
|
45
|
+
10226,
|
|
46
46
|
'The last occurrence of pattern in an existing chat conversation is sent to the contributing extension to facilitate follow-up responses.'
|
|
47
47
|
)),
|
|
48
48
|
type: 'string',
|
|
49
49
|
},
|
|
50
50
|
when: {
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(10227, 'Condition which must be true to show this item.')),
|
|
52
52
|
type: 'string'
|
|
53
53
|
},
|
|
54
54
|
},
|
package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js
CHANGED
|
@@ -7,6 +7,9 @@ import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/p
|
|
|
7
7
|
import { TerminalChatAccessibilityHelp } from './terminalChatAccessibilityHelp.js';
|
|
8
8
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import { TerminalChatEnabler } from './terminalChatEnabler.js';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
+
import './terminalChatService.js';
|
|
10
13
|
|
|
11
14
|
registerTerminalContribution(TerminalChatController.ID, TerminalChatController, false);
|
|
12
15
|
AccessibleViewRegistry.register(( new TerminalInlineChatAccessibleView()));
|