@codingame/monaco-vscode-chat-service-override 25.1.2 → 26.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 +24 -3
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +23 -3
- package/vscode/src/vs/platform/browserElements/common/browserElements.js +13 -6
- package/vscode/src/vs/platform/domWidget/browser/domWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +42 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +218 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatTerminalOutputAccessibleView.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +165 -168
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +27 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +141 -140
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +189 -121
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +14 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +435 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +28 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +10 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +37 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +54 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +73 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +71 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +151 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +12 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +39 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +90 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +263 -143
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +188 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +37 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +21 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +392 -226
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +31 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +25 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +319 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +215 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +179 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +951 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agentsessionprojection.css +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +388 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +394 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +95 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +31 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +49 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +188 -151
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1012 -639
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +256 -151
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +182 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +253 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +69 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +52 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +274 -155
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +2 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +130 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +385 -160
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +53 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +112 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +19 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +31 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +39 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNewNotebookContentEdits.js +10 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +25 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +265 -203
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +29 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +114 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +16 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +44 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +119 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +152 -136
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +51 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +323 -217
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +653 -401
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +52 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +43 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +182 -136
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +548 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +222 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +151 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +453 -217
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +162 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +309 -233
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +55 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +73 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +333 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +39 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +23 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +20 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +65 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +48 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +20 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +155 -159
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +24 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +521 -246
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +107 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +28 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.js +10 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatLayoutService.js +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +56 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +37 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +1284 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +179 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +9 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/editorHoverWrapper.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +96 -78
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +58 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +25 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +484 -292
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +65 -92
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +331 -189
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +81 -93
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +36 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +169 -31
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +141 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +218 -144
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatTransferService.js +20 -10
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +109 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +349 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +139 -36
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +3 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +64 -51
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +49 -34
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +125 -97
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +91 -131
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +8 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +488 -222
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +32 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +58 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +717 -200
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +79 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +371 -130
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +3 -7
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +27 -21
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +7 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +26 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -60
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +115 -426
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +127 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +334 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +424 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +195 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +368 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +23 -25
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +34 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +8 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +103 -95
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +28 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +4 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +12 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +65 -54
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +86 -60
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +13 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +56 -46
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +63 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +35 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +44 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +3 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +70 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +26 -394
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +85 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +68 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +67 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +106 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +177 -97
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +136 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +128 -112
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +51 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +5 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +2 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +30 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +16 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +19 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +58 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +31 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +325 -199
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +33 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +45 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +746 -456
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +145 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +88 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +120 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +25 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +58 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +47 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +0 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +0 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +0 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +0 -243
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +0 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +0 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +0 -607
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +0 -255
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -396
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -379
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -117
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -141
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -961
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -447
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -251
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -42
|
@@ -8,13 +8,14 @@ import { createCommandUri, MarkdownString } from '@codingame/monaco-vscode-api/v
|
|
|
8
8
|
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
9
9
|
import { DisposableMap, DisposableStore, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
import { AmbiguousCharacters, InvisibleCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
11
|
-
import {
|
|
11
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
12
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
13
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
14
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
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 { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
18
19
|
import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
19
20
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
20
21
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
@@ -28,30 +29,33 @@ import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vs
|
|
|
28
29
|
import { ChatViewContainerId, ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
29
30
|
import { ChatViewPane } from './widgetHosts/viewPane/chatViewPane.js';
|
|
30
31
|
|
|
32
|
+
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(5440, "View icon of the chat view.")));
|
|
31
33
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
32
34
|
id: ChatViewContainerId,
|
|
33
|
-
title: ( localize2(
|
|
34
|
-
icon:
|
|
35
|
-
ctorDescriptor: ( new SyncDescriptor(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
)),
|
|
35
|
+
title: ( localize2(5441, "Chat")),
|
|
36
|
+
icon: chatViewIcon,
|
|
37
|
+
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [ChatViewContainerId, {
|
|
38
|
+
mergeViewWithContainerWhenSingleView: true
|
|
39
|
+
}])),
|
|
39
40
|
storageId: ChatViewContainerId,
|
|
40
41
|
hideIfEmpty: true,
|
|
41
|
-
order: 1
|
|
42
|
-
}, ViewContainerLocation.AuxiliaryBar, {
|
|
42
|
+
order: 1
|
|
43
|
+
}, ViewContainerLocation.AuxiliaryBar, {
|
|
44
|
+
isDefault: true,
|
|
45
|
+
doNotRegisterOpenCommand: true
|
|
46
|
+
});
|
|
43
47
|
const chatViewDescriptor = {
|
|
44
48
|
id: ChatViewId,
|
|
45
49
|
containerIcon: chatViewContainer.icon,
|
|
46
50
|
containerTitle: chatViewContainer.title.value,
|
|
47
51
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
48
|
-
name: ( localize2(
|
|
52
|
+
name: ( localize2(5441, "Chat")),
|
|
49
53
|
canToggleVisibility: false,
|
|
50
54
|
canMoveView: true,
|
|
51
55
|
openCommandActionDescriptor: {
|
|
52
56
|
id: ChatViewContainerId,
|
|
53
57
|
title: chatViewContainer.title,
|
|
54
|
-
mnemonicTitle: ( localize(
|
|
58
|
+
mnemonicTitle: ( localize(5442, "&&Chat")),
|
|
55
59
|
keybindings: {
|
|
56
60
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
57
61
|
mac: {
|
|
@@ -65,185 +69,209 @@ const chatViewDescriptor = {
|
|
|
65
69
|
};
|
|
66
70
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([chatViewDescriptor], chatViewContainer);
|
|
67
71
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
68
|
-
extensionPoint:
|
|
72
|
+
extensionPoint: "chatParticipants",
|
|
69
73
|
jsonSchema: {
|
|
70
|
-
description: ( localize(
|
|
71
|
-
type:
|
|
74
|
+
description: ( localize(5443, "Contributes a chat participant")),
|
|
75
|
+
type: "array",
|
|
72
76
|
items: {
|
|
73
77
|
additionalProperties: false,
|
|
74
|
-
type:
|
|
75
|
-
defaultSnippets: [{
|
|
76
|
-
|
|
78
|
+
type: "object",
|
|
79
|
+
defaultSnippets: [{
|
|
80
|
+
body: {
|
|
81
|
+
name: "",
|
|
82
|
+
description: ""
|
|
83
|
+
}
|
|
84
|
+
}],
|
|
85
|
+
required: ["name", "id"],
|
|
77
86
|
properties: {
|
|
78
87
|
id: {
|
|
79
|
-
description: ( localize(
|
|
80
|
-
type:
|
|
88
|
+
description: ( localize(5444, "A unique id for this chat participant.")),
|
|
89
|
+
type: "string"
|
|
81
90
|
},
|
|
82
91
|
name: {
|
|
83
92
|
description: ( localize(
|
|
84
|
-
|
|
93
|
+
5445,
|
|
85
94
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
86
95
|
)),
|
|
87
|
-
type:
|
|
88
|
-
pattern:
|
|
96
|
+
type: "string",
|
|
97
|
+
pattern: "^[\\w-]+$"
|
|
89
98
|
},
|
|
90
99
|
fullName: {
|
|
91
100
|
markdownDescription: ( localize(
|
|
92
|
-
|
|
101
|
+
5446,
|
|
93
102
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
94
|
-
|
|
103
|
+
"`name`"
|
|
95
104
|
)),
|
|
96
|
-
type:
|
|
105
|
+
type: "string"
|
|
97
106
|
},
|
|
98
107
|
description: {
|
|
99
|
-
description: ( localize(
|
|
100
|
-
type:
|
|
108
|
+
description: ( localize(5447, "A description of this chat participant, shown in the UI.")),
|
|
109
|
+
type: "string"
|
|
101
110
|
},
|
|
102
111
|
isSticky: {
|
|
103
112
|
description: ( localize(
|
|
104
|
-
|
|
113
|
+
5448,
|
|
105
114
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
106
115
|
)),
|
|
107
|
-
type:
|
|
116
|
+
type: "boolean"
|
|
108
117
|
},
|
|
109
118
|
sampleRequest: {
|
|
110
119
|
description: ( localize(
|
|
111
|
-
|
|
120
|
+
5449,
|
|
112
121
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
113
122
|
)),
|
|
114
|
-
type:
|
|
123
|
+
type: "string"
|
|
115
124
|
},
|
|
116
125
|
when: {
|
|
117
|
-
description: ( localize(
|
|
118
|
-
type:
|
|
126
|
+
description: ( localize(5450, "A condition which must be true to enable this participant.")),
|
|
127
|
+
type: "string"
|
|
119
128
|
},
|
|
120
129
|
disambiguation: {
|
|
121
130
|
description: ( localize(
|
|
122
|
-
|
|
131
|
+
5451,
|
|
123
132
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
124
133
|
)),
|
|
125
|
-
type:
|
|
134
|
+
type: "array",
|
|
126
135
|
items: {
|
|
127
136
|
additionalProperties: false,
|
|
128
|
-
type:
|
|
129
|
-
defaultSnippets: [{
|
|
130
|
-
|
|
137
|
+
type: "object",
|
|
138
|
+
defaultSnippets: [{
|
|
139
|
+
body: {
|
|
140
|
+
category: "",
|
|
141
|
+
description: "",
|
|
142
|
+
examples: []
|
|
143
|
+
}
|
|
144
|
+
}],
|
|
145
|
+
required: ["category", "description", "examples"],
|
|
131
146
|
properties: {
|
|
132
147
|
category: {
|
|
133
148
|
markdownDescription: ( localize(
|
|
134
|
-
|
|
149
|
+
5452,
|
|
135
150
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
136
151
|
)),
|
|
137
|
-
type:
|
|
152
|
+
type: "string"
|
|
138
153
|
},
|
|
139
154
|
description: {
|
|
140
155
|
description: ( localize(
|
|
141
|
-
|
|
156
|
+
5453,
|
|
142
157
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
143
158
|
)),
|
|
144
|
-
type:
|
|
159
|
+
type: "string"
|
|
145
160
|
},
|
|
146
161
|
examples: {
|
|
147
162
|
description: ( localize(
|
|
148
|
-
|
|
163
|
+
5454,
|
|
149
164
|
"A list of representative example questions that are suitable for this chat participant."
|
|
150
165
|
)),
|
|
151
|
-
type:
|
|
152
|
-
}
|
|
166
|
+
type: "array"
|
|
167
|
+
}
|
|
153
168
|
}
|
|
154
169
|
}
|
|
155
170
|
},
|
|
156
171
|
commands: {
|
|
157
172
|
markdownDescription: ( localize(
|
|
158
|
-
|
|
173
|
+
5455,
|
|
159
174
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
160
175
|
)),
|
|
161
|
-
type:
|
|
176
|
+
type: "array",
|
|
162
177
|
items: {
|
|
163
178
|
additionalProperties: false,
|
|
164
|
-
type:
|
|
165
|
-
defaultSnippets: [{
|
|
166
|
-
|
|
179
|
+
type: "object",
|
|
180
|
+
defaultSnippets: [{
|
|
181
|
+
body: {
|
|
182
|
+
name: "",
|
|
183
|
+
description: ""
|
|
184
|
+
}
|
|
185
|
+
}],
|
|
186
|
+
required: ["name"],
|
|
167
187
|
properties: {
|
|
168
188
|
name: {
|
|
169
189
|
description: ( localize(
|
|
170
|
-
|
|
190
|
+
5456,
|
|
171
191
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
172
192
|
)),
|
|
173
|
-
type:
|
|
193
|
+
type: "string"
|
|
174
194
|
},
|
|
175
195
|
description: {
|
|
176
|
-
description: ( localize(
|
|
177
|
-
type:
|
|
196
|
+
description: ( localize(5457, "A description of this command.")),
|
|
197
|
+
type: "string"
|
|
178
198
|
},
|
|
179
199
|
when: {
|
|
180
|
-
description: ( localize(
|
|
181
|
-
type:
|
|
200
|
+
description: ( localize(5458, "A condition which must be true to enable this command.")),
|
|
201
|
+
type: "string"
|
|
182
202
|
},
|
|
183
203
|
sampleRequest: {
|
|
184
204
|
description: ( localize(
|
|
185
|
-
|
|
205
|
+
5459,
|
|
186
206
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
187
207
|
)),
|
|
188
|
-
type:
|
|
208
|
+
type: "string"
|
|
189
209
|
},
|
|
190
210
|
isSticky: {
|
|
191
211
|
description: ( localize(
|
|
192
|
-
|
|
212
|
+
5448,
|
|
193
213
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
194
214
|
)),
|
|
195
|
-
type:
|
|
215
|
+
type: "boolean"
|
|
196
216
|
},
|
|
197
217
|
disambiguation: {
|
|
198
218
|
description: ( localize(
|
|
199
|
-
|
|
219
|
+
5460,
|
|
200
220
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
201
221
|
)),
|
|
202
|
-
type:
|
|
222
|
+
type: "array",
|
|
203
223
|
items: {
|
|
204
224
|
additionalProperties: false,
|
|
205
|
-
type:
|
|
206
|
-
defaultSnippets: [{
|
|
207
|
-
|
|
225
|
+
type: "object",
|
|
226
|
+
defaultSnippets: [{
|
|
227
|
+
body: {
|
|
228
|
+
category: "",
|
|
229
|
+
description: "",
|
|
230
|
+
examples: []
|
|
231
|
+
}
|
|
232
|
+
}],
|
|
233
|
+
required: ["category", "description", "examples"],
|
|
208
234
|
properties: {
|
|
209
235
|
category: {
|
|
210
236
|
markdownDescription: ( localize(
|
|
211
|
-
|
|
237
|
+
5461,
|
|
212
238
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
213
239
|
)),
|
|
214
|
-
type:
|
|
240
|
+
type: "string"
|
|
215
241
|
},
|
|
216
242
|
description: {
|
|
217
243
|
description: ( localize(
|
|
218
|
-
|
|
244
|
+
5462,
|
|
219
245
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
220
246
|
)),
|
|
221
|
-
type:
|
|
247
|
+
type: "string"
|
|
222
248
|
},
|
|
223
249
|
examples: {
|
|
224
250
|
description: ( localize(
|
|
225
|
-
|
|
251
|
+
5463,
|
|
226
252
|
"A list of representative example questions that are suitable for this chat command."
|
|
227
253
|
)),
|
|
228
|
-
type:
|
|
229
|
-
}
|
|
254
|
+
type: "array"
|
|
255
|
+
}
|
|
230
256
|
}
|
|
231
257
|
}
|
|
232
258
|
}
|
|
233
259
|
}
|
|
234
260
|
}
|
|
235
|
-
}
|
|
261
|
+
}
|
|
236
262
|
}
|
|
237
263
|
}
|
|
238
264
|
},
|
|
239
|
-
activationEventsGenerator: function*
|
|
265
|
+
activationEventsGenerator: function*(contributions) {
|
|
240
266
|
for (const contrib of contributions) {
|
|
241
267
|
yield `onChatParticipant:${contrib.id}`;
|
|
242
268
|
}
|
|
243
|
-
}
|
|
269
|
+
}
|
|
244
270
|
});
|
|
245
271
|
let ChatExtensionPointHandler = class ChatExtensionPointHandler {
|
|
246
|
-
static {
|
|
272
|
+
static {
|
|
273
|
+
this.ID = "workbench.contrib.chatExtensionPointHandler";
|
|
274
|
+
}
|
|
247
275
|
constructor(_chatAgentService) {
|
|
248
276
|
this._chatAgentService = _chatAgentService;
|
|
249
277
|
this._participantRegistrationDisposables = ( new DisposableMap());
|
|
@@ -254,33 +282,46 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
|
|
|
254
282
|
for (const extension of delta.added) {
|
|
255
283
|
for (const providerDescriptor of extension.value) {
|
|
256
284
|
if (!providerDescriptor.name?.match(/^[\w-]+$/)) {
|
|
257
|
-
extension.collector.error(
|
|
285
|
+
extension.collector.error(
|
|
286
|
+
`Extension '${extension.description.identifier.value}' CANNOT register participant with invalid name: ${providerDescriptor.name}. Name must match /^[\\w-]+$/.`
|
|
287
|
+
);
|
|
258
288
|
continue;
|
|
259
289
|
}
|
|
260
290
|
if (providerDescriptor.fullName && AmbiguousCharacters.getInstance(( new Set())).containsAmbiguousCharacter(providerDescriptor.fullName)) {
|
|
261
|
-
extension.collector.error(
|
|
291
|
+
extension.collector.error(
|
|
292
|
+
`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains ambiguous characters: ${providerDescriptor.fullName}.`
|
|
293
|
+
);
|
|
262
294
|
continue;
|
|
263
295
|
}
|
|
264
|
-
if (providerDescriptor.fullName && InvisibleCharacters.containsInvisibleCharacter(providerDescriptor.fullName.replace(/ /g,
|
|
265
|
-
extension.collector.error(
|
|
296
|
+
if (providerDescriptor.fullName && InvisibleCharacters.containsInvisibleCharacter(providerDescriptor.fullName.replace(/ /g, ""))) {
|
|
297
|
+
extension.collector.error(
|
|
298
|
+
`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains invisible characters: ${providerDescriptor.fullName}.`
|
|
299
|
+
);
|
|
266
300
|
continue;
|
|
267
301
|
}
|
|
268
|
-
if ((providerDescriptor.isDefault || providerDescriptor.modes) && !isProposedApiEnabled(extension.description,
|
|
269
|
-
extension.collector.error(
|
|
302
|
+
if ((providerDescriptor.isDefault || providerDescriptor.modes) && !isProposedApiEnabled(extension.description, "defaultChatParticipant")) {
|
|
303
|
+
extension.collector.error(
|
|
304
|
+
`Extension '${extension.description.identifier.value}' CANNOT use API proposal: defaultChatParticipant.`
|
|
305
|
+
);
|
|
270
306
|
continue;
|
|
271
307
|
}
|
|
272
|
-
if (providerDescriptor.locations && !isProposedApiEnabled(extension.description,
|
|
273
|
-
extension.collector.error(
|
|
308
|
+
if (providerDescriptor.locations && !isProposedApiEnabled(extension.description, "chatParticipantAdditions")) {
|
|
309
|
+
extension.collector.error(
|
|
310
|
+
`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantAdditions.`
|
|
311
|
+
);
|
|
274
312
|
continue;
|
|
275
313
|
}
|
|
276
314
|
if (!providerDescriptor.id || !providerDescriptor.name) {
|
|
277
|
-
extension.collector.error(
|
|
315
|
+
extension.collector.error(
|
|
316
|
+
`Extension '${extension.description.identifier.value}' CANNOT register participant without both id and name.`
|
|
317
|
+
);
|
|
278
318
|
continue;
|
|
279
319
|
}
|
|
280
320
|
const participantsDisambiguation = [];
|
|
281
321
|
if (providerDescriptor.disambiguation?.length) {
|
|
282
|
-
participantsDisambiguation.push(...( providerDescriptor.disambiguation.map(
|
|
283
|
-
...d,
|
|
322
|
+
participantsDisambiguation.push(...( providerDescriptor.disambiguation.map(d => ({
|
|
323
|
+
...d,
|
|
324
|
+
category: d.category ?? d.categoryName
|
|
284
325
|
}))));
|
|
285
326
|
}
|
|
286
327
|
try {
|
|
@@ -296,22 +337,24 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
|
|
|
296
337
|
when: providerDescriptor.when,
|
|
297
338
|
metadata: {
|
|
298
339
|
isSticky: providerDescriptor.isSticky,
|
|
299
|
-
sampleRequest: providerDescriptor.sampleRequest
|
|
340
|
+
sampleRequest: providerDescriptor.sampleRequest
|
|
300
341
|
},
|
|
301
342
|
name: providerDescriptor.name,
|
|
302
343
|
fullName: providerDescriptor.fullName,
|
|
303
344
|
isDefault: providerDescriptor.isDefault,
|
|
304
|
-
locations: isNonEmptyArray(providerDescriptor.locations) ?
|
|
305
|
-
( providerDescriptor.locations.map(ChatAgentLocation.fromRaw)) :
|
|
306
|
-
[ChatAgentLocation.Chat],
|
|
345
|
+
locations: isNonEmptyArray(providerDescriptor.locations) ? ( providerDescriptor.locations.map(ChatAgentLocation.fromRaw)) : [ChatAgentLocation.Chat],
|
|
307
346
|
modes: providerDescriptor.isDefault ? (providerDescriptor.modes ?? [ChatModeKind.Ask]) : [ChatModeKind.Agent, ChatModeKind.Ask, ChatModeKind.Edit],
|
|
308
347
|
slashCommands: providerDescriptor.commands ?? [],
|
|
309
|
-
disambiguation: coalesce(participantsDisambiguation.flat())
|
|
348
|
+
disambiguation: coalesce(participantsDisambiguation.flat())
|
|
310
349
|
}));
|
|
311
|
-
this._participantRegistrationDisposables.set(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
350
|
+
this._participantRegistrationDisposables.set(
|
|
351
|
+
getParticipantKey(extension.description.identifier, providerDescriptor.id),
|
|
352
|
+
store
|
|
353
|
+
);
|
|
354
|
+
} catch (e) {
|
|
355
|
+
extension.collector.error(
|
|
356
|
+
`Failed to register participant ${providerDescriptor.id}: ${toErrorMessage(e, true)}`
|
|
357
|
+
);
|
|
315
358
|
}
|
|
316
359
|
}
|
|
317
360
|
}
|
|
@@ -323,60 +366,62 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
|
|
|
323
366
|
});
|
|
324
367
|
}
|
|
325
368
|
};
|
|
326
|
-
ChatExtensionPointHandler = ( __decorate([
|
|
327
|
-
( __param(0, IChatAgentService))
|
|
328
|
-
], ChatExtensionPointHandler));
|
|
369
|
+
ChatExtensionPointHandler = ( __decorate([( __param(0, IChatAgentService))], ChatExtensionPointHandler));
|
|
329
370
|
function getParticipantKey(extensionId, participantName) {
|
|
330
371
|
return `${extensionId.value}_${participantName}`;
|
|
331
372
|
}
|
|
332
373
|
let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposable {
|
|
333
|
-
static {
|
|
374
|
+
static {
|
|
375
|
+
this.ID = "workbench.contrib.chatCompatNotifier";
|
|
376
|
+
}
|
|
334
377
|
constructor(extensionsWorkbenchService, contextKeyService, productService) {
|
|
335
378
|
super();
|
|
336
379
|
this.productService = productService;
|
|
337
380
|
this.registeredWelcomeView = false;
|
|
338
381
|
const isInvalid = ChatContextKeys.extensionInvalid.bindTo(contextKeyService);
|
|
339
|
-
this._register(
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
382
|
+
this._register(
|
|
383
|
+
Event.runAndSubscribe(extensionsWorkbenchService.onDidChangeExtensionsNotification, () => {
|
|
384
|
+
const notification = extensionsWorkbenchService.getExtensionsNotification();
|
|
385
|
+
const chatExtension = notification?.extensions.find(
|
|
386
|
+
ext => ExtensionIdentifier.equals(ext.identifier.id, this.productService.defaultChatAgent?.chatExtensionId)
|
|
387
|
+
);
|
|
388
|
+
if (chatExtension) {
|
|
389
|
+
isInvalid.set(true);
|
|
390
|
+
this.registerWelcomeView(chatExtension);
|
|
391
|
+
} else {
|
|
392
|
+
isInvalid.set(false);
|
|
393
|
+
}
|
|
394
|
+
})
|
|
395
|
+
);
|
|
350
396
|
}
|
|
351
397
|
registerWelcomeView(chatExtension) {
|
|
352
398
|
if (this.registeredWelcomeView) {
|
|
353
399
|
return;
|
|
354
400
|
}
|
|
355
401
|
this.registeredWelcomeView = true;
|
|
356
|
-
const showExtensionLabel = ( localize(
|
|
402
|
+
const showExtensionLabel = ( localize(5464, "Show Extension"));
|
|
357
403
|
const mainMessage = ( localize(
|
|
358
|
-
|
|
404
|
+
5465,
|
|
359
405
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
360
406
|
this.productService.nameLong
|
|
361
407
|
));
|
|
362
|
-
const commandButton = `[${showExtensionLabel}](${createCommandUri(
|
|
408
|
+
const commandButton = `[${showExtensionLabel}](${createCommandUri(
|
|
409
|
+
showExtensionsWithIdsCommandId,
|
|
410
|
+
[this.productService.defaultChatAgent?.chatExtensionId]
|
|
411
|
+
)})`;
|
|
363
412
|
const versionMessage = `Copilot Chat version: ${chatExtension.version}`;
|
|
364
413
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
365
414
|
this._register(viewsRegistry.registerViewWelcomeContent(ChatViewId, {
|
|
366
|
-
content: [mainMessage, commandButton, versionMessage].join(
|
|
367
|
-
when: ChatContextKeys.extensionInvalid
|
|
415
|
+
content: [mainMessage, commandButton, versionMessage].join("\n\n"),
|
|
416
|
+
when: ChatContextKeys.extensionInvalid
|
|
368
417
|
}));
|
|
369
418
|
}
|
|
370
419
|
};
|
|
371
|
-
ChatCompatibilityNotifier = ( __decorate([
|
|
372
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
373
|
-
( __param(1, IContextKeyService)),
|
|
374
|
-
( __param(2, IProductService))
|
|
375
|
-
], ChatCompatibilityNotifier));
|
|
420
|
+
ChatCompatibilityNotifier = ( __decorate([( __param(0, IExtensionsWorkbenchService)), ( __param(1, IContextKeyService)), ( __param(2, IProductService))], ChatCompatibilityNotifier));
|
|
376
421
|
class ChatParticipantDataRenderer extends Disposable {
|
|
377
422
|
constructor() {
|
|
378
423
|
super(...arguments);
|
|
379
|
-
this.type =
|
|
424
|
+
this.type = "table";
|
|
380
425
|
}
|
|
381
426
|
shouldRender(manifest) {
|
|
382
427
|
return !!manifest.contributes?.chatParticipants;
|
|
@@ -384,20 +429,21 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
384
429
|
render(manifest) {
|
|
385
430
|
const nonDefaultContributions = manifest.contributes?.chatParticipants?.filter(c => !c.isDefault) ?? [];
|
|
386
431
|
if (!nonDefaultContributions.length) {
|
|
387
|
-
return {
|
|
432
|
+
return {
|
|
433
|
+
data: {
|
|
434
|
+
headers: [],
|
|
435
|
+
rows: []
|
|
436
|
+
},
|
|
437
|
+
dispose: () => {}
|
|
438
|
+
};
|
|
388
439
|
}
|
|
389
|
-
const headers = [
|
|
390
|
-
( localize(5287, "Name")),
|
|
391
|
-
( localize(5288, "Full Name")),
|
|
392
|
-
( localize(5289, "Description")),
|
|
393
|
-
( localize(5290, "Commands")),
|
|
394
|
-
];
|
|
440
|
+
const headers = [( localize(5466, "Name")), ( localize(5467, "Full Name")), ( localize(5468, "Description")), ( localize(5469, "Commands"))];
|
|
395
441
|
const rows = ( nonDefaultContributions.map(d => {
|
|
396
442
|
return [
|
|
397
|
-
|
|
443
|
+
"@" + d.name,
|
|
398
444
|
d.fullName,
|
|
399
|
-
d.description ??
|
|
400
|
-
d.commands?.length ? ( new MarkdownString(( d.commands.map(c => `- /` + c.name)).join(
|
|
445
|
+
d.description ?? "-",
|
|
446
|
+
d.commands?.length ? ( new MarkdownString(( d.commands.map(c => `- /` + c.name)).join("\n"))) : "-"
|
|
401
447
|
];
|
|
402
448
|
}));
|
|
403
449
|
return {
|
|
@@ -405,17 +451,17 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
405
451
|
headers,
|
|
406
452
|
rows
|
|
407
453
|
},
|
|
408
|
-
dispose: () => {
|
|
454
|
+
dispose: () => {}
|
|
409
455
|
};
|
|
410
456
|
}
|
|
411
457
|
}
|
|
412
458
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
413
|
-
id:
|
|
414
|
-
label: ( localize(
|
|
459
|
+
id: "chatParticipants",
|
|
460
|
+
label: ( localize(5470, "Chat Participants")),
|
|
415
461
|
access: {
|
|
416
462
|
canToggle: false
|
|
417
463
|
},
|
|
418
|
-
renderer: ( new SyncDescriptor(ChatParticipantDataRenderer))
|
|
464
|
+
renderer: ( new SyncDescriptor(ChatParticipantDataRenderer))
|
|
419
465
|
});
|
|
420
466
|
|
|
421
467
|
export { ChatCompatibilityNotifier, ChatExtensionPointHandler };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
6
|
+
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
7
|
+
import { ISCMService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
8
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
9
|
+
import { IExportableRepoData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
10
|
+
/**
|
|
11
|
+
* Captures repository state from the first available SCM repository.
|
|
12
|
+
*/
|
|
13
|
+
export declare function captureRepoInfo(scmService: ISCMService, fileService: IFileService): Promise<IExportableRepoData | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Captures repository information for chat sessions on creation and first message.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ChatRepoInfoContribution extends Disposable implements IWorkbenchContribution {
|
|
18
|
+
private readonly chatService;
|
|
19
|
+
private readonly chatEntitlementService;
|
|
20
|
+
private readonly scmService;
|
|
21
|
+
private readonly fileService;
|
|
22
|
+
private readonly logService;
|
|
23
|
+
private readonly configurationService;
|
|
24
|
+
static readonly ID = "workbench.contrib.chatRepoInfo";
|
|
25
|
+
private _configurationRegistered;
|
|
26
|
+
constructor(chatService: IChatService, chatEntitlementService: IChatEntitlementService, scmService: ISCMService, fileService: IFileService, logService: ILogService, configurationService: IConfigurationService);
|
|
27
|
+
private registerConfigurationIfInternal;
|
|
28
|
+
private captureAndSetRepoData;
|
|
29
|
+
/**
|
|
30
|
+
* Trims diffs from older sessions, keeping full diffs only for the most recent sessions.
|
|
31
|
+
*/
|
|
32
|
+
private trimOldSessionDiffs;
|
|
33
|
+
}
|