@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
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
-
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
3
|
-
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
4
|
-
export declare class ChatEditingEditorOverlay implements IWorkbenchContribution {
|
|
5
|
-
static readonly ID = "chat.edits.editorOverlay";
|
|
6
|
-
private readonly _store;
|
|
7
|
-
constructor(editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
|
|
8
|
-
dispose(): void;
|
|
9
|
-
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
DELETED
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import * as chatEditingEditorOverlay from './media/chatEditingEditorOverlay.css';
|
|
5
|
-
import { Disposable, DisposableStore, toDisposable, MutableDisposable, DisposableMap, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
-
import { MenuWorkbenchToolBar, HiddenItemStrategy } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
8
|
-
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
-
import { ModifiedFileEntryState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
|
|
10
|
-
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
11
|
-
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
12
|
-
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
13
|
-
import { createElement, append, $, addDisposableGenericMouseMoveListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
14
|
-
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
15
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
16
|
-
import { navigationBearingFakeActionId, AcceptAction, RejectAction } from './chatEditingEditorActions.js';
|
|
17
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
18
|
-
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
19
|
-
import { EditorGroupView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorGroupView';
|
|
20
|
-
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
21
|
-
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
22
|
-
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
23
|
-
import { EditorResourceAccessor, SideBySideEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
24
|
-
import { IInlineChatSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
|
|
25
|
-
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
26
|
-
import { ObservableEditorSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
|
|
27
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
28
|
-
import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
29
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
30
|
-
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
31
|
-
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
32
|
-
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
33
|
-
import { observableFromEventOpts, observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
34
|
-
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
35
|
-
import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignalFromEvent';
|
|
36
|
-
import { derived, derivedOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
37
|
-
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
38
|
-
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
39
|
-
|
|
40
|
-
registerCss(chatEditingEditorOverlay);
|
|
41
|
-
let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
42
|
-
constructor(_editor, _chatService, _keybindingService, _instaService) {
|
|
43
|
-
super();
|
|
44
|
-
this._editor = _editor;
|
|
45
|
-
this._chatService = _chatService;
|
|
46
|
-
this._keybindingService = _keybindingService;
|
|
47
|
-
this._instaService = _instaService;
|
|
48
|
-
this._showStore = this._store.add(( new DisposableStore()));
|
|
49
|
-
this._session = observableValue(this, undefined);
|
|
50
|
-
this._entry = observableValue(this, undefined);
|
|
51
|
-
this._navigationBearings = observableValue(this, { changeCount: -1, activeIdx: -1, entriesCount: -1 });
|
|
52
|
-
this._domNode = createElement('div');
|
|
53
|
-
this._domNode.classList.add('chat-editor-overlay-widget');
|
|
54
|
-
this._isBusy = derived(r => {
|
|
55
|
-
const entry = this._entry.read(r);
|
|
56
|
-
const session = this._session.read(r);
|
|
57
|
-
return entry?.waitsForLastEdits.read(r) ?? !session?.isGlobalEditingSession;
|
|
58
|
-
});
|
|
59
|
-
const requestMessage = derived(r => {
|
|
60
|
-
const session = this._session.read(r);
|
|
61
|
-
const chatModel = session?.chatSessionResource && this._chatService.getSession(session?.chatSessionResource);
|
|
62
|
-
if (!session || !chatModel) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
const response = this._entry.read(r)?.lastModifyingResponse.read(r);
|
|
66
|
-
if (!response) {
|
|
67
|
-
return { message: ( localize(5157, "Working...")) };
|
|
68
|
-
}
|
|
69
|
-
const lastPart = observableFromEventOpts({ equalsFn: equals }, response.onDidChange, () => response.response.value)
|
|
70
|
-
.read(r)
|
|
71
|
-
.filter(part => part.kind === 'progressMessage' || part.kind === 'toolInvocation')
|
|
72
|
-
.at(-1);
|
|
73
|
-
if (lastPart?.kind === 'toolInvocation') {
|
|
74
|
-
return { message: lastPart.invocationMessage };
|
|
75
|
-
}
|
|
76
|
-
else if (lastPart?.kind === 'progressMessage') {
|
|
77
|
-
return { message: lastPart.content };
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return { message: ( localize(5157, "Working...")) };
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
const progressNode = createElement('div');
|
|
84
|
-
progressNode.classList.add('chat-editor-overlay-progress');
|
|
85
|
-
append(progressNode, renderIcon(ThemeIcon.modify(Codicon.loading, 'spin')));
|
|
86
|
-
const textProgress = append(progressNode, $('span.progress-message'));
|
|
87
|
-
this._domNode.appendChild(progressNode);
|
|
88
|
-
this._store.add(autorun(r => {
|
|
89
|
-
const value = requestMessage.read(r);
|
|
90
|
-
const busy = this._isBusy.read(r);
|
|
91
|
-
this._domNode.classList.toggle('busy', busy);
|
|
92
|
-
if (!busy || !value || this._session.read(r)?.isGlobalEditingSession) {
|
|
93
|
-
textProgress.innerText = '';
|
|
94
|
-
}
|
|
95
|
-
else if (value) {
|
|
96
|
-
textProgress.innerText = renderAsPlaintext(value.message);
|
|
97
|
-
}
|
|
98
|
-
}));
|
|
99
|
-
this._toolbarNode = createElement('div');
|
|
100
|
-
this._toolbarNode.classList.add('chat-editor-overlay-toolbar');
|
|
101
|
-
}
|
|
102
|
-
dispose() {
|
|
103
|
-
this.hide();
|
|
104
|
-
super.dispose();
|
|
105
|
-
}
|
|
106
|
-
getDomNode() {
|
|
107
|
-
return this._domNode;
|
|
108
|
-
}
|
|
109
|
-
show(session, entry, indicies) {
|
|
110
|
-
this._showStore.clear();
|
|
111
|
-
transaction(tx => {
|
|
112
|
-
this._session.set(session, tx);
|
|
113
|
-
this._entry.set(entry, tx);
|
|
114
|
-
});
|
|
115
|
-
this._showStore.add(autorun(r => {
|
|
116
|
-
const entryIndex = indicies.entryIndex.read(r);
|
|
117
|
-
const changeIndex = indicies.changeIndex.read(r);
|
|
118
|
-
const entries = session.entries.read(r);
|
|
119
|
-
let activeIdx = entryIndex !== undefined && changeIndex !== undefined
|
|
120
|
-
? changeIndex
|
|
121
|
-
: -1;
|
|
122
|
-
let totalChangesCount = 0;
|
|
123
|
-
for (let i = 0; i < entries.length; i++) {
|
|
124
|
-
const changesCount = entries[i].changesCount.read(r);
|
|
125
|
-
totalChangesCount += changesCount;
|
|
126
|
-
if (entryIndex !== undefined && i < entryIndex) {
|
|
127
|
-
activeIdx += changesCount;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
this._navigationBearings.set({ changeCount: totalChangesCount, activeIdx, entriesCount: entries.length }, undefined);
|
|
131
|
-
}));
|
|
132
|
-
this._domNode.appendChild(this._toolbarNode);
|
|
133
|
-
this._showStore.add(toDisposable(() => this._toolbarNode.remove()));
|
|
134
|
-
this._showStore.add(this._instaService.createInstance(MenuWorkbenchToolBar, this._toolbarNode, MenuId.ChatEditingEditorContent, {
|
|
135
|
-
telemetrySource: 'chatEditor.overlayToolbar',
|
|
136
|
-
hiddenItemStrategy: HiddenItemStrategy.Ignore,
|
|
137
|
-
toolbarOptions: {
|
|
138
|
-
primaryGroup: () => true,
|
|
139
|
-
useSeparatorsInPrimaryActions: true
|
|
140
|
-
},
|
|
141
|
-
menuOptions: { renderShortTitle: true },
|
|
142
|
-
actionViewItemProvider: (action, options) => {
|
|
143
|
-
const that = this;
|
|
144
|
-
if (action.id === navigationBearingFakeActionId) {
|
|
145
|
-
return new (class extends ActionViewItem {
|
|
146
|
-
constructor() {
|
|
147
|
-
super(undefined, action, { ...options, icon: false, label: true, keybindingNotRenderedWithLabel: true });
|
|
148
|
-
}
|
|
149
|
-
render(container) {
|
|
150
|
-
super.render(container);
|
|
151
|
-
container.classList.add('label-item');
|
|
152
|
-
this._store.add(autorun(r => {
|
|
153
|
-
assertType(this.label);
|
|
154
|
-
const { changeCount, activeIdx } = that._navigationBearings.read(r);
|
|
155
|
-
if (changeCount > 0) {
|
|
156
|
-
const n = activeIdx === -1 ? '1' : `${activeIdx + 1}`;
|
|
157
|
-
this.label.innerText = ( localize(5158, "{0} of {1}", n, changeCount));
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
this.label.innerText = ( localize(5159, "—"));
|
|
161
|
-
}
|
|
162
|
-
this.updateTooltip();
|
|
163
|
-
}));
|
|
164
|
-
}
|
|
165
|
-
getTooltip() {
|
|
166
|
-
const { changeCount, entriesCount } = that._navigationBearings.get();
|
|
167
|
-
if (changeCount === -1 || entriesCount === -1) {
|
|
168
|
-
return undefined;
|
|
169
|
-
}
|
|
170
|
-
let result;
|
|
171
|
-
if (changeCount === 1 && entriesCount === 1) {
|
|
172
|
-
result = ( localize(5160, "1 change in 1 file"));
|
|
173
|
-
}
|
|
174
|
-
else if (changeCount === 1) {
|
|
175
|
-
result = ( localize(5161, "1 change in {0} files", entriesCount));
|
|
176
|
-
}
|
|
177
|
-
else if (entriesCount === 1) {
|
|
178
|
-
result = ( localize(5162, "{0} changes in 1 file", changeCount));
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
result = ( localize(5163, "{0} changes in {1} files", changeCount, entriesCount));
|
|
182
|
-
}
|
|
183
|
-
if (!that._isBusy.get()) {
|
|
184
|
-
return result;
|
|
185
|
-
}
|
|
186
|
-
return localize(5164, "{0} - Working...", result);
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
if (action.id === AcceptAction.ID || action.id === RejectAction.ID) {
|
|
191
|
-
return new (class extends ActionViewItem {
|
|
192
|
-
constructor() {
|
|
193
|
-
super(undefined, action, { ...options, icon: false, label: true, keybindingNotRenderedWithLabel: true });
|
|
194
|
-
this._reveal = this._store.add(( new MutableDisposable()));
|
|
195
|
-
}
|
|
196
|
-
render(container) {
|
|
197
|
-
super.render(container);
|
|
198
|
-
if (action.id === AcceptAction.ID) {
|
|
199
|
-
const listener = this._store.add(( new MutableDisposable()));
|
|
200
|
-
this._store.add(autorun(r => {
|
|
201
|
-
assertType(this.label);
|
|
202
|
-
assertType(this.element);
|
|
203
|
-
const ctrl = that._entry.read(r)?.autoAcceptController.read(r);
|
|
204
|
-
if (ctrl) {
|
|
205
|
-
const r = -100 * (ctrl.remaining / ctrl.total);
|
|
206
|
-
this.element.style.setProperty('--vscode-action-item-auto-timeout', `${r}%`);
|
|
207
|
-
this.element.classList.toggle('auto', true);
|
|
208
|
-
listener.value = addDisposableGenericMouseMoveListener(this.element, () => ctrl.cancel());
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
this.element.classList.toggle('auto', false);
|
|
212
|
-
listener.clear();
|
|
213
|
-
}
|
|
214
|
-
}));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
set actionRunner(actionRunner) {
|
|
218
|
-
super.actionRunner = actionRunner;
|
|
219
|
-
this._reveal.value = actionRunner.onWillRun(_e => {
|
|
220
|
-
that._editor.focus();
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
get actionRunner() {
|
|
224
|
-
return super.actionRunner;
|
|
225
|
-
}
|
|
226
|
-
getTooltip() {
|
|
227
|
-
const value = super.getTooltip();
|
|
228
|
-
if (!value) {
|
|
229
|
-
return value;
|
|
230
|
-
}
|
|
231
|
-
const kb = that._keybindingService.lookupKeybinding(this.action.id);
|
|
232
|
-
if (!kb) {
|
|
233
|
-
return value;
|
|
234
|
-
}
|
|
235
|
-
return localize(5165, "{0} ({1})", value, kb.getLabel());
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
return undefined;
|
|
240
|
-
}
|
|
241
|
-
}));
|
|
242
|
-
}
|
|
243
|
-
hide() {
|
|
244
|
-
transaction(tx => {
|
|
245
|
-
this._session.set(undefined, tx);
|
|
246
|
-
this._entry.set(undefined, tx);
|
|
247
|
-
this._navigationBearings.set({ changeCount: -1, activeIdx: -1, entriesCount: -1 }, tx);
|
|
248
|
-
});
|
|
249
|
-
this._showStore.clear();
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
ChatEditorOverlayWidget = ( __decorate([
|
|
253
|
-
( __param(1, IChatService)),
|
|
254
|
-
( __param(2, IKeybindingService)),
|
|
255
|
-
( __param(3, IInstantiationService))
|
|
256
|
-
], ChatEditorOverlayWidget));
|
|
257
|
-
let ChatEditingOverlayController = class ChatEditingOverlayController {
|
|
258
|
-
constructor(container, group, instaService, chatService, chatEditingService, inlineChatService) {
|
|
259
|
-
this._store = ( new DisposableStore());
|
|
260
|
-
this._domNode = createElement('div');
|
|
261
|
-
this._domNode.classList.add('chat-editing-editor-overlay');
|
|
262
|
-
this._domNode.style.position = 'absolute';
|
|
263
|
-
this._domNode.style.bottom = `24px`;
|
|
264
|
-
this._domNode.style.right = `24px`;
|
|
265
|
-
this._domNode.style.zIndex = `100`;
|
|
266
|
-
const widget = instaService.createInstance(ChatEditorOverlayWidget, group);
|
|
267
|
-
this._domNode.appendChild(widget.getDomNode());
|
|
268
|
-
this._store.add(toDisposable(() => this._domNode.remove()));
|
|
269
|
-
this._store.add(widget);
|
|
270
|
-
const show = () => {
|
|
271
|
-
if (!container.contains(this._domNode)) {
|
|
272
|
-
container.appendChild(this._domNode);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
const hide = () => {
|
|
276
|
-
if (container.contains(this._domNode)) {
|
|
277
|
-
widget.hide();
|
|
278
|
-
this._domNode.remove();
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
const activeEditorSignal = observableSignalFromEvent(this, Event.any(group.onDidActiveEditorChange, group.onDidModelChange));
|
|
282
|
-
const activeUriObs = derivedOpts({ equalsFn: isEqual }, r => {
|
|
283
|
-
activeEditorSignal.read(r);
|
|
284
|
-
const editor = group.activeEditorPane;
|
|
285
|
-
const uri = EditorResourceAccessor.getOriginalUri(editor?.input, { supportSideBySide: SideBySideEditor.PRIMARY });
|
|
286
|
-
return uri;
|
|
287
|
-
});
|
|
288
|
-
const sessionAndEntry = derived(r => {
|
|
289
|
-
activeEditorSignal.read(r);
|
|
290
|
-
const uri = activeUriObs.read(r);
|
|
291
|
-
if (!uri) {
|
|
292
|
-
return undefined;
|
|
293
|
-
}
|
|
294
|
-
return ( new ObservableEditorSession(uri, chatEditingService, inlineChatService)).value.read(r);
|
|
295
|
-
});
|
|
296
|
-
const isInProgress = derived(r => {
|
|
297
|
-
const session = sessionAndEntry.read(r)?.session;
|
|
298
|
-
if (!session) {
|
|
299
|
-
return false;
|
|
300
|
-
}
|
|
301
|
-
const chatModel = chatService.getSession(session.chatSessionResource);
|
|
302
|
-
return chatModel.requestInProgress.read(r);
|
|
303
|
-
});
|
|
304
|
-
this._store.add(autorun(r => {
|
|
305
|
-
const data = sessionAndEntry.read(r);
|
|
306
|
-
if (!data) {
|
|
307
|
-
hide();
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
const { session, entry } = data;
|
|
311
|
-
if (!session.isGlobalEditingSession) {
|
|
312
|
-
hide();
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
if (entry?.state.read(r) === ModifiedFileEntryState.Modified
|
|
316
|
-
|| (!session.isGlobalEditingSession && isInProgress.read(r))
|
|
317
|
-
) {
|
|
318
|
-
const editorPane = group.activeEditorPane;
|
|
319
|
-
assertType(editorPane);
|
|
320
|
-
const changeIndex = derived(r => entry
|
|
321
|
-
? entry.getEditorIntegration(editorPane).currentIndex.read(r)
|
|
322
|
-
: 0);
|
|
323
|
-
const entryIndex = derived(r => entry
|
|
324
|
-
? session.entries.read(r).indexOf(entry)
|
|
325
|
-
: 0);
|
|
326
|
-
widget.show(session, entry, { entryIndex, changeIndex });
|
|
327
|
-
show();
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
hide();
|
|
331
|
-
}
|
|
332
|
-
}));
|
|
333
|
-
}
|
|
334
|
-
dispose() {
|
|
335
|
-
this._store.dispose();
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
ChatEditingOverlayController = ( __decorate([
|
|
339
|
-
( __param(2, IInstantiationService)),
|
|
340
|
-
( __param(3, IChatService)),
|
|
341
|
-
( __param(4, IChatEditingService)),
|
|
342
|
-
( __param(5, IInlineChatSessionService))
|
|
343
|
-
], ChatEditingOverlayController));
|
|
344
|
-
let ChatEditingEditorOverlay = class ChatEditingEditorOverlay {
|
|
345
|
-
static { this.ID = 'chat.edits.editorOverlay'; }
|
|
346
|
-
constructor(editorGroupsService, instantiationService) {
|
|
347
|
-
this._store = ( new DisposableStore());
|
|
348
|
-
const editorGroups = observableFromEvent(this, Event.any(editorGroupsService.onDidAddGroup, editorGroupsService.onDidRemoveGroup), () => editorGroupsService.groups);
|
|
349
|
-
const overlayWidgets = ( new DisposableMap());
|
|
350
|
-
this._store.add(autorun(r => {
|
|
351
|
-
const toDelete = ( new Set(( overlayWidgets.keys())));
|
|
352
|
-
const groups = editorGroups.read(r);
|
|
353
|
-
for (const group of groups) {
|
|
354
|
-
if (!(group instanceof EditorGroupView)) {
|
|
355
|
-
continue;
|
|
356
|
-
}
|
|
357
|
-
toDelete.delete(group);
|
|
358
|
-
if (!( overlayWidgets.has(group))) {
|
|
359
|
-
const scopedInstaService = instantiationService.createChild(( new ServiceCollection([IContextKeyService, group.scopedContextKeyService])));
|
|
360
|
-
const container = group.element;
|
|
361
|
-
const ctrl = scopedInstaService.createInstance(ChatEditingOverlayController, container, group);
|
|
362
|
-
overlayWidgets.set(group, combinedDisposable(ctrl, scopedInstaService));
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
for (const group of toDelete) {
|
|
366
|
-
overlayWidgets.deleteAndDispose(group);
|
|
367
|
-
}
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
dispose() {
|
|
371
|
-
this._store.dispose();
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
ChatEditingEditorOverlay = ( __decorate([
|
|
375
|
-
( __param(0, IEditorGroupsService)),
|
|
376
|
-
( __param(1, IInstantiationService))
|
|
377
|
-
], ChatEditingEditorOverlay));
|
|
378
|
-
|
|
379
|
-
export { ChatEditingEditorOverlay };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
.chat-editor-overlay-widget {
|
|
7
|
-
padding: 2px;
|
|
8
|
-
color: var(--vscode-button-foreground);
|
|
9
|
-
background-color: var(--vscode-button-background);
|
|
10
|
-
border-radius: 2px;
|
|
11
|
-
border: 1px solid var(--vscode-contrastBorder);
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
z-index: 10;
|
|
15
|
-
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes pulse {
|
|
20
|
-
0% {
|
|
21
|
-
box-shadow: 0 2px 8px 0 var(--vscode-widget-shadow);
|
|
22
|
-
}
|
|
23
|
-
50% {
|
|
24
|
-
box-shadow: 0 2px 8px 4px var(--vscode-widget-shadow);
|
|
25
|
-
}
|
|
26
|
-
100% {
|
|
27
|
-
box-shadow: 0 2px 8px 0 var(--vscode-widget-shadow);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.chat-editor-overlay-widget.busy {
|
|
32
|
-
animation: pulse ease-in 2.3s infinite;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.chat-editor-overlay-widget .chat-editor-overlay-progress {
|
|
36
|
-
align-items: center;
|
|
37
|
-
display: none;
|
|
38
|
-
padding: 5px 0 5px 5px;
|
|
39
|
-
font-size: 12px;
|
|
40
|
-
overflow: hidden;
|
|
41
|
-
gap: 6px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.chat-editor-overlay-widget.busy .chat-editor-overlay-progress {
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.chat-editor-overlay-widget .chat-editor-overlay-progress .progress-message {
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
max-width: 13em;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
padding-right: 8px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.chat-editor-overlay-widget .action-item > .action-label {
|
|
57
|
-
padding: 5px;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
border-radius: 2px; /* same as overlay widget */
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
.chat-editor-overlay-widget .action-item:first-child > .action-label {
|
|
64
|
-
padding-left: 7px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.chat-editor-overlay-widget .action-item:last-child > .action-label {
|
|
68
|
-
padding-right: 7px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.chat-editor-overlay-widget.busy .chat-editor-overlay-progress .codicon,
|
|
72
|
-
.chat-editor-overlay-widget .action-item > .action-label.codicon {
|
|
73
|
-
color: var(--vscode-button-foreground);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.chat-diff-change-content-widget .monaco-action-bar .action-item.disabled,
|
|
77
|
-
.chat-editor-overlay-widget .monaco-action-bar .action-item.disabled {
|
|
78
|
-
|
|
79
|
-
> .action-label.codicon::before,
|
|
80
|
-
> .action-label.codicon,
|
|
81
|
-
> .action-label,
|
|
82
|
-
> .action-label:hover {
|
|
83
|
-
color: var(--vscode-button-separator);
|
|
84
|
-
opacity: 1;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.chat-diff-change-content-widget .action-item > .action-label {
|
|
89
|
-
border-radius: 2px; /* same as overlay widget */
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.chat-editor-overlay-widget .action-item.label-item {
|
|
94
|
-
font-variant-numeric: tabular-nums;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.chat-editor-overlay-widget .monaco-action-bar .action-item.label-item > .action-label,
|
|
98
|
-
.chat-editor-overlay-widget .monaco-action-bar .action-item.label-item > .action-label:hover {
|
|
99
|
-
color: var(--vscode-button-foreground);
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.chat-editor-overlay-widget .action-item.auto {
|
|
104
|
-
position: relative;
|
|
105
|
-
overflow: hidden;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.chat-editor-overlay-widget .action-item.auto::before {
|
|
109
|
-
content: '';
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: 0;
|
|
112
|
-
left: var(--vscode-action-item-auto-timeout, -100%);
|
|
113
|
-
width: 100%;
|
|
114
|
-
height: 100%;
|
|
115
|
-
background-color: var(--vscode-toolbar-hoverBackground);
|
|
116
|
-
transition: left 0.5s linear;
|
|
117
|
-
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
-
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
5
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
6
|
-
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
7
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
|
-
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
9
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
-
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
-
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
12
|
-
import { IChatAgentAttachmentCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
|
|
13
|
-
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
14
|
-
import { IChatSession, IChatSessionContentProvider, IChatSessionItem, IChatSessionItemProvider, IChatSessionProviderOptionGroup, IChatSessionProviderOptionItem, IChatSessionsExtensionPoint, SessionOptionsChangedCallback } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
15
|
-
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
16
|
-
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
17
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
18
|
-
export declare class ChatSessionsService extends Disposable implements IChatSessionsService {
|
|
19
|
-
private readonly _logService;
|
|
20
|
-
private readonly _chatAgentService;
|
|
21
|
-
private readonly _extensionService;
|
|
22
|
-
private readonly _contextKeyService;
|
|
23
|
-
private readonly _menuService;
|
|
24
|
-
private readonly _themeService;
|
|
25
|
-
private readonly _labelService;
|
|
26
|
-
readonly _serviceBrand: undefined;
|
|
27
|
-
private readonly _itemsProviders;
|
|
28
|
-
private readonly _contributions;
|
|
29
|
-
private readonly _contributionDisposables;
|
|
30
|
-
private readonly _contentProviders;
|
|
31
|
-
private readonly _alternativeIdMap;
|
|
32
|
-
private readonly _contextKeys;
|
|
33
|
-
private readonly _onDidChangeItemsProviders;
|
|
34
|
-
readonly onDidChangeItemsProviders: Event<IChatSessionItemProvider>;
|
|
35
|
-
private readonly _onDidChangeSessionItems;
|
|
36
|
-
readonly onDidChangeSessionItems: Event<string>;
|
|
37
|
-
private readonly _onDidChangeAvailability;
|
|
38
|
-
readonly onDidChangeAvailability: Event<void>;
|
|
39
|
-
private readonly _onDidChangeInProgress;
|
|
40
|
-
get onDidChangeInProgress(): Event<void>;
|
|
41
|
-
private readonly _onDidChangeContentProviderSchemes;
|
|
42
|
-
get onDidChangeContentProviderSchemes(): Event<{
|
|
43
|
-
readonly added: string[];
|
|
44
|
-
readonly removed: string[];
|
|
45
|
-
}>;
|
|
46
|
-
private readonly _onDidChangeSessionOptions;
|
|
47
|
-
get onDidChangeSessionOptions(): Event<URI>;
|
|
48
|
-
private readonly _onDidChangeOptionGroups;
|
|
49
|
-
get onDidChangeOptionGroups(): Event<string>;
|
|
50
|
-
private readonly inProgressMap;
|
|
51
|
-
private readonly _sessionTypeOptions;
|
|
52
|
-
private readonly _sessionTypeIcons;
|
|
53
|
-
private readonly _sessionTypeWelcomeTitles;
|
|
54
|
-
private readonly _sessionTypeWelcomeMessages;
|
|
55
|
-
private readonly _sessionTypeWelcomeTips;
|
|
56
|
-
private readonly _sessionTypeInputPlaceholders;
|
|
57
|
-
private readonly _sessions;
|
|
58
|
-
private readonly _hasCanDelegateProvidersKey;
|
|
59
|
-
constructor(_logService: ILogService, _chatAgentService: IChatAgentService, _extensionService: IExtensionService, _contextKeyService: IContextKeyService, _menuService: IMenuService, _themeService: IThemeService, _labelService: ILabelService);
|
|
60
|
-
reportInProgress(chatSessionType: string, count: number): void;
|
|
61
|
-
getInProgress(): {
|
|
62
|
-
displayName: string;
|
|
63
|
-
count: number;
|
|
64
|
-
}[];
|
|
65
|
-
private updateInProgressStatus;
|
|
66
|
-
private registerContribution;
|
|
67
|
-
private _isContributionAvailable;
|
|
68
|
-
/**
|
|
69
|
-
* Resolves a session type to its primary type, checking for alternative IDs.
|
|
70
|
-
* @param sessionType The session type or alternative ID to resolve
|
|
71
|
-
* @returns The primary session type, or undefined if not found or not available
|
|
72
|
-
*/
|
|
73
|
-
private _resolveToPrimaryType;
|
|
74
|
-
private _registerMenuItems;
|
|
75
|
-
private _registerCommands;
|
|
76
|
-
private _evaluateAvailability;
|
|
77
|
-
private _enableContribution;
|
|
78
|
-
private _disposeSessionsForContribution;
|
|
79
|
-
private _registerAgent;
|
|
80
|
-
getAllChatSessionContributions(): IChatSessionsExtensionPoint[];
|
|
81
|
-
private _updateHasCanDelegateProvidersContextKey;
|
|
82
|
-
getChatSessionContribution(chatSessionType: string): IChatSessionsExtensionPoint | undefined;
|
|
83
|
-
getAllChatSessionItemProviders(): IChatSessionItemProvider[];
|
|
84
|
-
activateChatSessionItemProvider(chatViewType: string): Promise<IChatSessionItemProvider | undefined>;
|
|
85
|
-
canResolveChatSession(chatSessionResource: URI): Promise<boolean>;
|
|
86
|
-
getAllChatSessionItems(token: CancellationToken): Promise<Array<{
|
|
87
|
-
readonly chatSessionType: string;
|
|
88
|
-
readonly items: IChatSessionItem[];
|
|
89
|
-
}>>;
|
|
90
|
-
private getChatSessionItems;
|
|
91
|
-
registerChatSessionItemProvider(provider: IChatSessionItemProvider): IDisposable;
|
|
92
|
-
registerChatSessionContentProvider(chatSessionType: string, provider: IChatSessionContentProvider): IDisposable;
|
|
93
|
-
registerChatModelChangeListeners(chatService: IChatService, chatSessionType: string, onChange: () => void): IDisposable;
|
|
94
|
-
getInProgressSessionDescription(chatModel: IChatModel): string | undefined;
|
|
95
|
-
getOrCreateChatSession(sessionResource: URI, token: CancellationToken): Promise<IChatSession>;
|
|
96
|
-
hasAnySessionOptions(sessionResource: URI): boolean;
|
|
97
|
-
getSessionOption(sessionResource: URI, optionId: string): string | IChatSessionProviderOptionItem | undefined;
|
|
98
|
-
setSessionOption(sessionResource: URI, optionId: string, value: string | IChatSessionProviderOptionItem): boolean;
|
|
99
|
-
notifySessionItemsChanged(chatSessionType: string): void;
|
|
100
|
-
/**
|
|
101
|
-
* Store option groups for a session type
|
|
102
|
-
*/
|
|
103
|
-
setOptionGroupsForSessionType(chatSessionType: string, handle: number, optionGroups?: IChatSessionProviderOptionGroup[]): void;
|
|
104
|
-
/**
|
|
105
|
-
* Get available option groups for a session type
|
|
106
|
-
*/
|
|
107
|
-
getOptionGroupsForSessionType(chatSessionType: string): IChatSessionProviderOptionGroup[] | undefined;
|
|
108
|
-
private _optionsChangeCallback?;
|
|
109
|
-
/**
|
|
110
|
-
* Set the callback for notifying extensions about option changes
|
|
111
|
-
*/
|
|
112
|
-
setOptionsChangeCallback(callback: SessionOptionsChangedCallback): void;
|
|
113
|
-
/**
|
|
114
|
-
* Notify extension about option changes for a session
|
|
115
|
-
*/
|
|
116
|
-
notifySessionOptionsChange(sessionResource: URI, updates: ReadonlyArray<{
|
|
117
|
-
optionId: string;
|
|
118
|
-
value: string | IChatSessionProviderOptionItem;
|
|
119
|
-
}>): Promise<void>;
|
|
120
|
-
/**
|
|
121
|
-
* Get the icon for a specific session type
|
|
122
|
-
*/
|
|
123
|
-
getIconForSessionType(chatSessionType: string): ThemeIcon | URI | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Get the welcome title for a specific session type
|
|
126
|
-
*/
|
|
127
|
-
getWelcomeTitleForSessionType(chatSessionType: string): string | undefined;
|
|
128
|
-
/**
|
|
129
|
-
* Get the welcome message for a specific session type
|
|
130
|
-
*/
|
|
131
|
-
getWelcomeMessageForSessionType(chatSessionType: string): string | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* Get the input placeholder for a specific session type
|
|
134
|
-
*/
|
|
135
|
-
getInputPlaceholderForSessionType(chatSessionType: string): string | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* Get the capabilities for a specific session type
|
|
138
|
-
*/
|
|
139
|
-
getCapabilitiesForSessionType(chatSessionType: string): IChatAgentAttachmentCapabilities | undefined;
|
|
140
|
-
getContentProviderSchemes(): string[];
|
|
141
|
-
}
|