@codingame/monaco-vscode-chat-service-override 34.1.3 → 35.0.1
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 +38 -0
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.js +40 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +91 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +20 -4
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +148 -15
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +9 -1
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +57 -3
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +10 -14
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +29 -8
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +109 -2
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +207 -21
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +362 -37
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +698 -91
- package/vscode/src/vs/platform/agentHost/common/agentService.js +46 -3
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.js +26 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +5 -5
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +17 -17
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +96 -12
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +226 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.d.ts +18 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.js +89 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +10 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +400 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +129 -446
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +35 -25
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +7 -1
- package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.d.ts +4 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +1 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.d.ts +0 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.js +5 -18
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +52 -3
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +212 -34
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +3 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +11 -10
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +13 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +6 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +399 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +85 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +177 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +204 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +338 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +57 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +98 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +149 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +116 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +226 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +138 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +25 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +108 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +63 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +322 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.js +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +237 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +32 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +71 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +19 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +66 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +128 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +58 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +64 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +45 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +25 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +143 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +7 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +26 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +106 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +44 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.js +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +9 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +107 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +46 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +19 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +244 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +47 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js +772 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +3 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +421 -201
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +1424 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +107 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +331 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +581 -336
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +567 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +168 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +183 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +897 -251
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.d.ts +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +720 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +354 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +55 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +192 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +37 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +40 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +230 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +35 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +26 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +56 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +109 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +38 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +175 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +183 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +20 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +40 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +169 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +399 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.d.ts +321 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.js +2117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.js +367 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +16 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +68 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +320 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +80 -4
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +226 -88
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +177 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +78 -136
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +1 -17
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +16 -5
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +24 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +113 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +227 -152
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +98 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +7 -6
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +11 -12
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +7 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +32 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +37 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +29 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +7 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +10 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +26 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +416 -252
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +25 -8
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +8 -3
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +0 -82
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -47
- /package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.js +0 -0
|
@@ -3,6 +3,9 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
4
4
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
5
5
|
import { CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
6
|
+
import { untildify } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
7
|
+
import { win32, posix } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
8
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
10
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
8
11
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -14,6 +17,7 @@ import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/pla
|
|
|
14
17
|
import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
15
18
|
import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
16
19
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
20
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
17
21
|
import { IAgentPluginRepositoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service';
|
|
18
22
|
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
19
23
|
import { PluginSourceKind, MarketplaceType, hasSourceChanged } from '../common/plugins/pluginMarketplaceService.js';
|
|
@@ -32,7 +36,8 @@ let PluginInstallService = class PluginInstallService {
|
|
|
32
36
|
_progressService,
|
|
33
37
|
_commandService,
|
|
34
38
|
_quickInputService,
|
|
35
|
-
_configurationService
|
|
39
|
+
_configurationService,
|
|
40
|
+
_pathService
|
|
36
41
|
) {
|
|
37
42
|
this._pluginRepositoryService = _pluginRepositoryService;
|
|
38
43
|
this._pluginMarketplaceService = _pluginMarketplaceService;
|
|
@@ -44,6 +49,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
44
49
|
this._commandService = _commandService;
|
|
45
50
|
this._quickInputService = _quickInputService;
|
|
46
51
|
this._configurationService = _configurationService;
|
|
52
|
+
this._pathService = _pathService;
|
|
47
53
|
}
|
|
48
54
|
async installPlugin(plugin) {
|
|
49
55
|
if (!(await this._ensureMarketplaceTrusted(plugin))) {
|
|
@@ -59,76 +65,34 @@ let PluginInstallService = class PluginInstallService {
|
|
|
59
65
|
}
|
|
60
66
|
return this._installGitPlugin(plugin);
|
|
61
67
|
}
|
|
62
|
-
async installPluginFromSource(source, options) {
|
|
63
|
-
const reference = parseMarketplaceReference(source);
|
|
64
|
-
if (!reference) {
|
|
65
|
-
this._notificationService.notify({
|
|
66
|
-
severity: Severity.Error,
|
|
67
|
-
message: ( localize(
|
|
68
|
-
6933,
|
|
69
|
-
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo) or a git clone URL.",
|
|
70
|
-
source
|
|
71
|
-
))
|
|
72
|
-
});
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (reference.kind === MarketplaceReferenceKind.LocalFileUri) {
|
|
76
|
-
this._notificationService.notify({
|
|
77
|
-
severity: Severity.Error,
|
|
78
|
-
message: ( localize(
|
|
79
|
-
6934,
|
|
80
|
-
"Local file paths are not supported. Enter a GitHub repository (owner/repo) or a git clone URL."
|
|
81
|
-
))
|
|
82
|
-
});
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const result = await this._doInstallFromSource(reference, options);
|
|
86
|
-
if (!result.success && result.message) {
|
|
87
|
-
this._notificationService.notify({
|
|
88
|
-
severity: Severity.Error,
|
|
89
|
-
message: result.message
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
68
|
validatePluginSource(source) {
|
|
94
69
|
const reference = parseMarketplaceReference(source);
|
|
95
|
-
if (
|
|
96
|
-
return
|
|
97
|
-
6933,
|
|
98
|
-
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo) or a git clone URL.",
|
|
99
|
-
source
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
if (reference.kind === MarketplaceReferenceKind.LocalFileUri) {
|
|
103
|
-
return localize(
|
|
104
|
-
6934,
|
|
105
|
-
"Local file paths are not supported. Enter a GitHub repository (owner/repo) or a git clone URL."
|
|
106
|
-
);
|
|
70
|
+
if (reference || this._isLocalPathSource(source)) {
|
|
71
|
+
return undefined;
|
|
107
72
|
}
|
|
108
|
-
return
|
|
73
|
+
return localize(
|
|
74
|
+
7436,
|
|
75
|
+
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo), a git clone URL, or a local folder path.",
|
|
76
|
+
source
|
|
77
|
+
);
|
|
109
78
|
}
|
|
110
|
-
async
|
|
79
|
+
async installPluginFromSource(source, options) {
|
|
111
80
|
const reference = parseMarketplaceReference(source);
|
|
112
|
-
if (
|
|
113
|
-
return
|
|
114
|
-
success: false,
|
|
115
|
-
message: ( localize(
|
|
116
|
-
6933,
|
|
117
|
-
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo) or a git clone URL.",
|
|
118
|
-
source
|
|
119
|
-
))
|
|
120
|
-
};
|
|
81
|
+
if (reference && reference.kind !== MarketplaceReferenceKind.LocalFileUri) {
|
|
82
|
+
return this._doInstallFromSource(reference, options);
|
|
121
83
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
message: ( localize(
|
|
126
|
-
6934,
|
|
127
|
-
"Local file paths are not supported. Enter a GitHub repository (owner/repo) or a git clone URL."
|
|
128
|
-
))
|
|
129
|
-
};
|
|
84
|
+
const local = await this._resolveLocalDirectorySource(source);
|
|
85
|
+
if (local) {
|
|
86
|
+
return this._doInstallFromLocalSource(local.reference, local.configPath, options);
|
|
130
87
|
}
|
|
131
|
-
return
|
|
88
|
+
return {
|
|
89
|
+
success: false,
|
|
90
|
+
message: ( localize(
|
|
91
|
+
7436,
|
|
92
|
+
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo), a git clone URL, or a local folder path.",
|
|
93
|
+
source
|
|
94
|
+
))
|
|
95
|
+
};
|
|
132
96
|
}
|
|
133
97
|
async _doInstallFromSource(reference, options) {
|
|
134
98
|
const sourceDescriptor = reference.kind === MarketplaceReferenceKind.GitHubShorthand ? {
|
|
@@ -156,7 +120,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
156
120
|
let repoDir;
|
|
157
121
|
try {
|
|
158
122
|
repoDir = await this._pluginRepositoryService.ensurePluginSource(tempPlugin, {
|
|
159
|
-
progressTitle: ( localize(
|
|
123
|
+
progressTitle: ( localize(7437, "Cloning plugin source '{0}'...", reference.displayLabel)),
|
|
160
124
|
failureLabel: reference.displayLabel,
|
|
161
125
|
marketplaceType: MarketplaceType.OpenPlugin
|
|
162
126
|
});
|
|
@@ -165,7 +129,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
165
129
|
return {
|
|
166
130
|
success: false,
|
|
167
131
|
message: ( localize(
|
|
168
|
-
|
|
132
|
+
7438,
|
|
169
133
|
"Failed to clone plugin source '{0}': {1}",
|
|
170
134
|
reference.displayLabel,
|
|
171
135
|
detail
|
|
@@ -176,7 +140,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
176
140
|
if (!repoExists) {
|
|
177
141
|
return {
|
|
178
142
|
success: false,
|
|
179
|
-
message: ( localize(
|
|
143
|
+
message: ( localize(7439, "Failed to clone plugin source '{0}'.", reference.displayLabel))
|
|
180
144
|
};
|
|
181
145
|
}
|
|
182
146
|
const discoveredPlugins = await this._pluginMarketplaceService.readPluginsFromDirectory(repoDir, reference);
|
|
@@ -187,7 +151,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
187
151
|
return {
|
|
188
152
|
success: false,
|
|
189
153
|
message: ( localize(
|
|
190
|
-
|
|
154
|
+
7440,
|
|
191
155
|
"Plugin '{0}' not found in '{1}'.",
|
|
192
156
|
options.plugin,
|
|
193
157
|
reference.displayLabel
|
|
@@ -206,19 +170,85 @@ let PluginInstallService = class PluginInstallService {
|
|
|
206
170
|
return {
|
|
207
171
|
success: false,
|
|
208
172
|
message: ( localize(
|
|
209
|
-
|
|
173
|
+
7441,
|
|
210
174
|
"No plugins found in '{0}'. This does not appear to be a valid plugin marketplace.",
|
|
211
175
|
reference.displayLabel
|
|
212
176
|
))
|
|
213
177
|
};
|
|
214
178
|
}
|
|
179
|
+
return this._installDiscoveredPlugins(reference, discoveredPlugins, options);
|
|
180
|
+
}
|
|
181
|
+
async _doInstallFromLocalSource(reference, configPath, options) {
|
|
182
|
+
const repoDir = reference.localRepositoryUri;
|
|
183
|
+
if (!repoDir) {
|
|
184
|
+
return {
|
|
185
|
+
success: false,
|
|
186
|
+
message: ( localize(
|
|
187
|
+
7436,
|
|
188
|
+
"'{0}' is not a valid plugin source. Enter a GitHub repository (owner/repo), a git clone URL, or a local folder path.",
|
|
189
|
+
reference.rawValue
|
|
190
|
+
))
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
let isDirectory = false;
|
|
194
|
+
try {
|
|
195
|
+
isDirectory = (await this._fileService.resolve(repoDir)).isDirectory;
|
|
196
|
+
} catch {}
|
|
197
|
+
if (!isDirectory) {
|
|
198
|
+
return {
|
|
199
|
+
success: false,
|
|
200
|
+
message: ( localize(
|
|
201
|
+
7442,
|
|
202
|
+
"The folder '{0}' does not exist or is not a directory.",
|
|
203
|
+
repoDir.fsPath
|
|
204
|
+
))
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
const discoveredPlugins = await this._pluginMarketplaceService.readPluginsFromDirectory(repoDir, reference);
|
|
208
|
+
if (discoveredPlugins.length > 0) {
|
|
209
|
+
const tempPlugin = {
|
|
210
|
+
name: reference.displayLabel,
|
|
211
|
+
description: "",
|
|
212
|
+
version: "",
|
|
213
|
+
source: "",
|
|
214
|
+
sourceDescriptor: {
|
|
215
|
+
kind: PluginSourceKind.RelativePath,
|
|
216
|
+
path: ""
|
|
217
|
+
},
|
|
218
|
+
marketplace: reference.displayLabel,
|
|
219
|
+
marketplaceReference: reference,
|
|
220
|
+
marketplaceType: MarketplaceType.OpenPlugin
|
|
221
|
+
};
|
|
222
|
+
if (!(await this._ensureMarketplaceTrusted(tempPlugin))) {
|
|
223
|
+
return {
|
|
224
|
+
success: false
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
return this._installDiscoveredPlugins(reference, discoveredPlugins, options);
|
|
228
|
+
}
|
|
229
|
+
if (await this._pluginMarketplaceService.isPluginDirectory(repoDir)) {
|
|
230
|
+
await this._addPluginLocationToConfig(configPath);
|
|
231
|
+
return {
|
|
232
|
+
success: true
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
success: false,
|
|
237
|
+
message: ( localize(
|
|
238
|
+
7443,
|
|
239
|
+
"No plugin or marketplace found in '{0}'. This folder does not contain a plugin or marketplace manifest.",
|
|
240
|
+
repoDir.fsPath
|
|
241
|
+
))
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
async _installDiscoveredPlugins(reference, discoveredPlugins, options) {
|
|
215
245
|
if (options?.plugin) {
|
|
216
246
|
const matchedPlugin = discoveredPlugins.find(p => p.name === options.plugin);
|
|
217
247
|
if (!matchedPlugin) {
|
|
218
248
|
return {
|
|
219
249
|
success: false,
|
|
220
250
|
message: ( localize(
|
|
221
|
-
|
|
251
|
+
7440,
|
|
222
252
|
"Plugin '{0}' not found in '{1}'.",
|
|
223
253
|
options.plugin,
|
|
224
254
|
reference.displayLabel
|
|
@@ -245,7 +275,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
245
275
|
plugin: p
|
|
246
276
|
})));
|
|
247
277
|
const selected = await this._quickInputService.pick(picks, {
|
|
248
|
-
placeHolder: ( localize(
|
|
278
|
+
placeHolder: ( localize(7444, "Select a plugin to install from '{0}'", reference.displayLabel)),
|
|
249
279
|
canPickMany: false
|
|
250
280
|
});
|
|
251
281
|
if (!selected) {
|
|
@@ -270,6 +300,59 @@ let PluginInstallService = class PluginInstallService {
|
|
|
270
300
|
}
|
|
271
301
|
return this._configurationService.updateValue(ChatConfiguration.PluginMarketplaces, [...userValues, reference.rawValue]);
|
|
272
302
|
}
|
|
303
|
+
_addPluginLocationToConfig(pathKey) {
|
|
304
|
+
const current = this._configurationService.inspect(ChatConfiguration.PluginLocations).userValue ?? {};
|
|
305
|
+
if (current[pathKey] === true) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
return this._configurationService.updateValue(ChatConfiguration.PluginLocations, {
|
|
309
|
+
...current,
|
|
310
|
+
[pathKey]: true
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
_isLocalPathSource(source) {
|
|
314
|
+
const trimmed = source.trim();
|
|
315
|
+
if (!trimmed) {
|
|
316
|
+
return false;
|
|
317
|
+
}
|
|
318
|
+
if (/^file:\/\//i.test(trimmed)) {
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
if (trimmed === "~" || trimmed.startsWith("~/") || trimmed.startsWith("~\\")) {
|
|
322
|
+
return true;
|
|
323
|
+
}
|
|
324
|
+
return win32.isAbsolute(trimmed) || posix.isAbsolute(trimmed);
|
|
325
|
+
}
|
|
326
|
+
async _resolveLocalDirectorySource(source) {
|
|
327
|
+
const trimmed = source.trim();
|
|
328
|
+
const parsed = parseMarketplaceReference(trimmed);
|
|
329
|
+
if (parsed?.kind === MarketplaceReferenceKind.LocalFileUri && parsed.localRepositoryUri) {
|
|
330
|
+
return {
|
|
331
|
+
reference: parsed,
|
|
332
|
+
configPath: parsed.localRepositoryUri.fsPath
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
if (!this._isLocalPathSource(trimmed)) {
|
|
336
|
+
return undefined;
|
|
337
|
+
}
|
|
338
|
+
let resolvedPath = trimmed;
|
|
339
|
+
if (resolvedPath.startsWith("~")) {
|
|
340
|
+
const userHome = await this._pathService.userHome();
|
|
341
|
+
const home = userHome.scheme === "file" ? userHome.fsPath : userHome.path;
|
|
342
|
+
resolvedPath = untildify(resolvedPath, home);
|
|
343
|
+
}
|
|
344
|
+
if (!win32.isAbsolute(resolvedPath) && !posix.isAbsolute(resolvedPath)) {
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
const reference = parseMarketplaceReference(( URI.file(resolvedPath).toString()));
|
|
348
|
+
if (reference?.kind !== MarketplaceReferenceKind.LocalFileUri) {
|
|
349
|
+
return undefined;
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
reference,
|
|
353
|
+
configPath: trimmed
|
|
354
|
+
};
|
|
355
|
+
}
|
|
273
356
|
async updatePlugin(plugin, silent) {
|
|
274
357
|
const kind = plugin.sourceDescriptor.kind;
|
|
275
358
|
if (kind === PluginSourceKind.Npm || kind === PluginSourceKind.Pip) {
|
|
@@ -403,15 +486,15 @@ let PluginInstallService = class PluginInstallService {
|
|
|
403
486
|
} else {
|
|
404
487
|
await this._progressService.withProgress({
|
|
405
488
|
location: ProgressLocation.Notification,
|
|
406
|
-
title: ( localize(
|
|
489
|
+
title: ( localize(7445, "Updating plugins..."))
|
|
407
490
|
}, doUpdate);
|
|
408
491
|
}
|
|
409
492
|
if (failedNames.length > 0) {
|
|
410
493
|
this._notificationService.notify({
|
|
411
494
|
severity: Severity.Error,
|
|
412
|
-
message: ( localize(
|
|
495
|
+
message: ( localize(7446, "Failed to update: {0}", failedNames.join(", "))),
|
|
413
496
|
actions: {
|
|
414
|
-
primary: [( new Action("showGitOutput", ( localize(
|
|
497
|
+
primary: [( new Action("showGitOutput", ( localize(7447, "Show Output")), undefined, true, () => {
|
|
415
498
|
this._commandService.executeCommand("git.showOutput");
|
|
416
499
|
}))]
|
|
417
500
|
}
|
|
@@ -420,7 +503,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
420
503
|
this._pluginMarketplaceService.clearUpdatesAvailable();
|
|
421
504
|
this._notificationService.notify({
|
|
422
505
|
severity: Severity.Info,
|
|
423
|
-
message: ( localize(
|
|
506
|
+
message: ( localize(7448, "Updated plugins: {0}", updatedNames.join(", ")))
|
|
424
507
|
});
|
|
425
508
|
} else if (!token.isCancellationRequested) {
|
|
426
509
|
this._pluginMarketplaceService.clearUpdatesAvailable();
|
|
@@ -437,21 +520,37 @@ let PluginInstallService = class PluginInstallService {
|
|
|
437
520
|
if (this._pluginMarketplaceService.isMarketplaceTrusted(plugin.marketplaceReference)) {
|
|
438
521
|
return true;
|
|
439
522
|
}
|
|
523
|
+
if (this._pluginMarketplaceService.isStrictMarketplacePolicyActive()) {
|
|
524
|
+
this._notificationService.notify({
|
|
525
|
+
severity: Severity.Warning,
|
|
526
|
+
message: ( localize(
|
|
527
|
+
7449,
|
|
528
|
+
"Plugins from '{0}' are blocked by your organization's policy.",
|
|
529
|
+
plugin.marketplaceReference.displayLabel
|
|
530
|
+
)),
|
|
531
|
+
actions: {
|
|
532
|
+
primary: [( new Action("chat.plugins.viewMarketplacePolicy", ( localize(7450, "View Policy Settings")), undefined, true, () => {
|
|
533
|
+
return this._commandService.executeCommand("workbench.action.openSettings", ChatConfiguration.StrictMarketplaces);
|
|
534
|
+
}))]
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
return false;
|
|
538
|
+
}
|
|
440
539
|
const {
|
|
441
540
|
confirmed
|
|
442
541
|
} = await this._dialogService.confirm({
|
|
443
542
|
type: "question",
|
|
444
543
|
message: ( localize(
|
|
445
|
-
|
|
544
|
+
7451,
|
|
446
545
|
"Trust Plugins from '{0}'?",
|
|
447
546
|
plugin.marketplaceReference.displayLabel
|
|
448
547
|
)),
|
|
449
548
|
detail: ( localize(
|
|
450
|
-
|
|
549
|
+
7452,
|
|
451
550
|
"Plugins can run code on your machine. Only install plugins from sources you trust.\n\nSource: {0}",
|
|
452
551
|
plugin.marketplaceReference.rawValue
|
|
453
552
|
)),
|
|
454
|
-
primaryButton: ( localize(
|
|
553
|
+
primaryButton: ( localize(7453, "&&Trust")),
|
|
455
554
|
custom: {
|
|
456
555
|
icon: Codicon.shield
|
|
457
556
|
}
|
|
@@ -465,7 +564,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
465
564
|
async _installRelativePathPlugin(plugin) {
|
|
466
565
|
try {
|
|
467
566
|
await this._pluginRepositoryService.ensureRepository(plugin.marketplaceReference, {
|
|
468
|
-
progressTitle: ( localize(
|
|
567
|
+
progressTitle: ( localize(7454, "Installing plugin '{0}'...", plugin.name)),
|
|
469
568
|
failureLabel: plugin.name,
|
|
470
569
|
marketplaceType: plugin.marketplaceType
|
|
471
570
|
});
|
|
@@ -479,7 +578,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
479
578
|
this._notificationService.notify({
|
|
480
579
|
severity: Severity.Error,
|
|
481
580
|
message: ( localize(
|
|
482
|
-
|
|
581
|
+
7455,
|
|
483
582
|
"Plugin source directory '{0}' is invalid for repository '{1}'.",
|
|
484
583
|
plugin.source,
|
|
485
584
|
plugin.marketplace
|
|
@@ -492,7 +591,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
492
591
|
this._notificationService.notify({
|
|
493
592
|
severity: Severity.Error,
|
|
494
593
|
message: ( localize(
|
|
495
|
-
|
|
594
|
+
7456,
|
|
496
595
|
"Plugin source directory '{0}' not found in repository '{1}'.",
|
|
497
596
|
plugin.source,
|
|
498
597
|
plugin.marketplace
|
|
@@ -507,7 +606,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
507
606
|
let pluginDir;
|
|
508
607
|
try {
|
|
509
608
|
pluginDir = await this._pluginRepositoryService.ensurePluginSource(plugin, {
|
|
510
|
-
progressTitle: ( localize(
|
|
609
|
+
progressTitle: ( localize(7454, "Installing plugin '{0}'...", plugin.name)),
|
|
511
610
|
failureLabel: plugin.name,
|
|
512
611
|
marketplaceType: plugin.marketplaceType
|
|
513
612
|
});
|
|
@@ -519,7 +618,7 @@ let PluginInstallService = class PluginInstallService {
|
|
|
519
618
|
this._notificationService.notify({
|
|
520
619
|
severity: Severity.Error,
|
|
521
620
|
message: ( localize(
|
|
522
|
-
|
|
621
|
+
7457,
|
|
523
622
|
"Plugin source '{0}' not found after cloning.",
|
|
524
623
|
repo.getLabel(plugin.sourceDescriptor)
|
|
525
624
|
))
|
|
@@ -548,6 +647,6 @@ let PluginInstallService = class PluginInstallService {
|
|
|
548
647
|
return true;
|
|
549
648
|
}
|
|
550
649
|
};
|
|
551
|
-
PluginInstallService = ( __decorate([( __param(0, IAgentPluginRepositoryService)), ( __param(1, IPluginMarketplaceService)), ( __param(2, IFileService)), ( __param(3, INotificationService)), ( __param(4, IDialogService)), ( __param(5, ILogService)), ( __param(6, IProgressService)), ( __param(7, ICommandService)), ( __param(8, IQuickInputService)), ( __param(9, IConfigurationService))], PluginInstallService));
|
|
650
|
+
PluginInstallService = ( __decorate([( __param(0, IAgentPluginRepositoryService)), ( __param(1, IPluginMarketplaceService)), ( __param(2, IFileService)), ( __param(3, INotificationService)), ( __param(4, IDialogService)), ( __param(5, ILogService)), ( __param(6, IProgressService)), ( __param(7, ICommandService)), ( __param(8, IQuickInputService)), ( __param(9, IConfigurationService)), ( __param(10, IPathService))], PluginInstallService));
|
|
552
651
|
|
|
553
652
|
export { PluginInstallService };
|
|
@@ -76,7 +76,7 @@ let AbstractGitPluginSource = class AbstractGitPluginSource {
|
|
|
76
76
|
await this._checkoutRevision(repoDir, descriptor, options?.failureLabel ?? label);
|
|
77
77
|
return this.getInstallUri(cacheRoot, descriptor);
|
|
78
78
|
}
|
|
79
|
-
const progressTitle = options?.progressTitle ?? ( localize(
|
|
79
|
+
const progressTitle = options?.progressTitle ?? ( localize(7458, "Cloning plugin source '{0}'...", label));
|
|
80
80
|
const failureLabel = options?.failureLabel ?? label;
|
|
81
81
|
const ref = descriptor.ref;
|
|
82
82
|
await this._cloneRepository(repoDir, this._cloneUrl(descriptor), progressTitle, failureLabel, ref);
|
|
@@ -118,7 +118,7 @@ let AbstractGitPluginSource = class AbstractGitPluginSource {
|
|
|
118
118
|
try {
|
|
119
119
|
return await this._progressService.withProgress({
|
|
120
120
|
location: ProgressLocation.Notification,
|
|
121
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(7459, "Updating plugin '{0}'...", updateLabel)),
|
|
122
122
|
cancellable: true
|
|
123
123
|
}, () => doUpdate(cts), () => cts.dispose(true));
|
|
124
124
|
} finally {
|
|
@@ -130,7 +130,7 @@ let AbstractGitPluginSource = class AbstractGitPluginSource {
|
|
|
130
130
|
this._notificationService.notify({
|
|
131
131
|
severity: Severity.Error,
|
|
132
132
|
message: ( localize(
|
|
133
|
-
|
|
133
|
+
7460,
|
|
134
134
|
"Failed to update plugin '{0}': {1}",
|
|
135
135
|
failureLabel,
|
|
136
136
|
err?.message ?? String(err)
|
|
@@ -156,7 +156,7 @@ let AbstractGitPluginSource = class AbstractGitPluginSource {
|
|
|
156
156
|
this._notificationService.notify({
|
|
157
157
|
severity: Severity.Error,
|
|
158
158
|
message: ( localize(
|
|
159
|
-
|
|
159
|
+
7461,
|
|
160
160
|
"Failed to install plugin '{0}': {1}",
|
|
161
161
|
failureLabel,
|
|
162
162
|
err?.message ?? String(err)
|
|
@@ -183,7 +183,7 @@ let AbstractGitPluginSource = class AbstractGitPluginSource {
|
|
|
183
183
|
this._notificationService.notify({
|
|
184
184
|
severity: Severity.Error,
|
|
185
185
|
message: ( localize(
|
|
186
|
-
|
|
186
|
+
7462,
|
|
187
187
|
"Failed to checkout plugin '{0}' to requested revision: {1}",
|
|
188
188
|
failureLabel,
|
|
189
189
|
err?.message ?? String(err)
|
|
@@ -344,7 +344,7 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
344
344
|
if (!confirmed) {
|
|
345
345
|
return undefined;
|
|
346
346
|
}
|
|
347
|
-
const progressTitle = ( localize(
|
|
347
|
+
const progressTitle = ( localize(7463, "Installing {0} plugin '{1}'...", this._managerName, plugin.name));
|
|
348
348
|
const {
|
|
349
349
|
success,
|
|
350
350
|
terminal
|
|
@@ -357,7 +357,7 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
357
357
|
this._notificationService.notify({
|
|
358
358
|
severity: Severity.Error,
|
|
359
359
|
message: ( localize(
|
|
360
|
-
|
|
360
|
+
7464,
|
|
361
361
|
"{0} package '{1}' was not found after installation.",
|
|
362
362
|
this._managerName,
|
|
363
363
|
this.getLabel(plugin.sourceDescriptor)
|
|
@@ -375,9 +375,9 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
375
375
|
return (new Promise(resolve => {
|
|
376
376
|
const n = this._notificationService.notify({
|
|
377
377
|
severity: Severity.Info,
|
|
378
|
-
message: ( localize(
|
|
378
|
+
message: ( localize(7465, "Plugin '{0}' wants to run: {1}", pluginName, command)),
|
|
379
379
|
actions: {
|
|
380
|
-
primary: [( new Action("installPlugin", ( localize(
|
|
380
|
+
primary: [( new Action("installPlugin", ( localize(7466, "Install")), undefined, true, async () => resolve(true)))]
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
Event.once(n.onDidClose)(() => resolve(false));
|
|
@@ -387,9 +387,9 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
387
387
|
confirmed
|
|
388
388
|
} = await this._dialogService.confirm({
|
|
389
389
|
type: "question",
|
|
390
|
-
message: ( localize(
|
|
391
|
-
detail: ( localize(
|
|
392
|
-
primaryButton: ( localize(
|
|
390
|
+
message: ( localize(7467, "Install Plugin '{0}'?", pluginName)),
|
|
391
|
+
detail: ( localize(7468, "This will run the following command in a terminal:\n\n{0}", command)),
|
|
392
|
+
primaryButton: ( localize(7469, "&&Install"))
|
|
393
393
|
});
|
|
394
394
|
return confirmed;
|
|
395
395
|
}
|
|
@@ -403,7 +403,7 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
403
403
|
}, async () => {
|
|
404
404
|
terminal = await this._terminalService.createTerminal({
|
|
405
405
|
config: {
|
|
406
|
-
name: ( localize(
|
|
406
|
+
name: ( localize(7470, "Plugin Install")),
|
|
407
407
|
forceShellIntegration: true,
|
|
408
408
|
isTransient: true,
|
|
409
409
|
isFeatureTerminal: true
|
|
@@ -415,7 +415,7 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
415
415
|
await terminal.runCommand(command, true);
|
|
416
416
|
const exitCode = await commandResultPromise;
|
|
417
417
|
if (exitCode !== 0) {
|
|
418
|
-
throw ( new Error(( localize(
|
|
418
|
+
throw ( new Error(( localize(7471, "Command exited with code {0}", exitCode))));
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
return {
|
|
@@ -427,7 +427,7 @@ let AbstractPackagePluginSource = class AbstractPackagePluginSource {
|
|
|
427
427
|
this._notificationService.notify({
|
|
428
428
|
severity: Severity.Error,
|
|
429
429
|
message: ( localize(
|
|
430
|
-
|
|
430
|
+
7472,
|
|
431
431
|
"Plugin installation command failed: {0}",
|
|
432
432
|
err?.message ?? String(err)
|
|
433
433
|
))
|
|
@@ -4,6 +4,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
4
4
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
7
8
|
import { IURLHandler } from "@codingame/monaco-vscode-api/vscode/vs/platform/url/common/url";
|
|
8
9
|
import { IURLService } from "@codingame/monaco-vscode-api/vscode/vs/platform/url/common/url.service";
|
|
9
10
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -28,10 +29,11 @@ export declare class PluginUrlHandler extends Disposable implements IWorkbenchCo
|
|
|
28
29
|
private readonly _extensionsWorkbenchService;
|
|
29
30
|
private readonly _hostService;
|
|
30
31
|
private readonly _logService;
|
|
32
|
+
private readonly _notificationService;
|
|
31
33
|
private readonly _editorService;
|
|
32
34
|
private readonly _instantiationService;
|
|
33
35
|
static readonly ID = "workbench.contrib.pluginUrlHandler";
|
|
34
|
-
constructor(urlService: IURLService, _pluginInstallService: IPluginInstallService, _dialogService: IDialogService, _configurationService: IConfigurationService, _extensionsWorkbenchService: IExtensionsWorkbenchService, _hostService: IHostService, _logService: ILogService, _editorService: IEditorService, _instantiationService: IInstantiationService);
|
|
36
|
+
constructor(urlService: IURLService, _pluginInstallService: IPluginInstallService, _dialogService: IDialogService, _configurationService: IConfigurationService, _extensionsWorkbenchService: IExtensionsWorkbenchService, _hostService: IHostService, _logService: ILogService, _notificationService: INotificationService, _editorService: IEditorService, _instantiationService: IInstantiationService);
|
|
35
37
|
handleURL(uri: URI): Promise<boolean>;
|
|
36
38
|
private _handleInstall;
|
|
37
39
|
/**
|