@codingame/monaco-vscode-chat-service-override 31.0.1 → 32.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.d.ts +1 -1
- package/index.js +22 -5
- package/package.json +5 -5
- package/vscode/src/vs/base/common/defaultAccount.d.ts +69 -0
- package/vscode/src/vs/base/common/defaultAccount.js +12 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +91 -22
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +301 -68
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +24 -5
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +89 -16
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +17 -5
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +73 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +32 -6
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +32 -20
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.d.ts +37 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.js +15 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +242 -201
- package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +35 -0
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +106 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +38 -30
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +2 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +114 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +10 -10
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +52 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +42 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +42 -41
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +6 -6
- package/vscode/src/vs/platform/agentHost/common/transportConstants.d.ts +15 -0
- package/vscode/src/vs/platform/agentHost/common/transportConstants.js +6 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +4 -3
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +4 -3
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +15 -7
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.js +17 -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 +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +64 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +31 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +18 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +30 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +8 -7
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
- 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 +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
- 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/localAgentSessionsController.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -19
- 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 +28 -25
- 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 +25 -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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +650 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -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/defaultModelContribution.js +4 -4
- 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/githubRepoFetcher.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -1
- 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/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
- 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.js +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
- 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 +14 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
- 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 +13 -13
- 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 +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
- 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.d.ts +1 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
- 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/browser/tools/terminalOutputCompressor.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
|
@@ -70,126 +70,131 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
70
70
|
if (type === "panelChat" || type === "quickChat" || type === "agentView") {
|
|
71
71
|
if (type === "quickChat") {
|
|
72
72
|
content.push(( localize(
|
|
73
|
-
|
|
73
|
+
4788,
|
|
74
74
|
"The quick chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses."
|
|
75
75
|
)));
|
|
76
76
|
content.push(( localize(
|
|
77
|
-
|
|
77
|
+
4789,
|
|
78
78
|
"The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions."
|
|
79
79
|
)));
|
|
80
80
|
} else {
|
|
81
81
|
content.push(( localize(
|
|
82
|
-
|
|
82
|
+
4790,
|
|
83
83
|
"The chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests."
|
|
84
84
|
)));
|
|
85
85
|
content.push(( localize(
|
|
86
|
-
|
|
86
|
+
4791,
|
|
87
87
|
"To create a new chat session, invoke the New Chat command{0}.",
|
|
88
88
|
"<keybinding:workbench.action.chat.newChat>"
|
|
89
89
|
)));
|
|
90
90
|
content.push(( localize(
|
|
91
|
-
|
|
91
|
+
4792,
|
|
92
92
|
"To view all chat sessions, invoke the Show Chats command{0}.",
|
|
93
93
|
"<keybinding:workbench.action.chat.history>"
|
|
94
94
|
)));
|
|
95
95
|
content.push(( localize(
|
|
96
|
-
|
|
96
|
+
4793,
|
|
97
97
|
"You can focus the agent sessions list by invoking the Focus Agent Sessions command{0}.",
|
|
98
98
|
`<keybinding:${FocusAgentSessionsAction.id}>`
|
|
99
99
|
)));
|
|
100
|
+
content.push(( localize(
|
|
101
|
+
4794,
|
|
102
|
+
"To open the Agents Window, invoke the Open Agents Window command{0}. In screen reader mode, this keybinding includes Alt to avoid conflicts with screen reader shortcuts.",
|
|
103
|
+
"<keybinding:workbench.action.openAgentsWindow>"
|
|
104
|
+
)));
|
|
100
105
|
}
|
|
101
106
|
content.push(( localize(
|
|
102
|
-
|
|
107
|
+
4795,
|
|
103
108
|
"In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request."
|
|
104
109
|
)));
|
|
105
110
|
content.push(( localize(
|
|
106
|
-
|
|
111
|
+
4796,
|
|
107
112
|
"To remove attached contexts, focus an attachment and press Delete or Backspace."
|
|
108
113
|
)));
|
|
109
114
|
content.push(( localize(
|
|
110
|
-
|
|
115
|
+
4797,
|
|
111
116
|
"In the input box, inspect the last response in the accessible view{0}. Thinking content is included in order by default.",
|
|
112
117
|
"<keybinding:editor.action.accessibleView>"
|
|
113
118
|
)));
|
|
114
119
|
content.push(( localize(
|
|
115
|
-
|
|
120
|
+
4798,
|
|
116
121
|
"To include or exclude thinking content in the accessible view, run the Toggle Thinking Content in Accessible View command from the Command Palette."
|
|
117
122
|
)));
|
|
118
123
|
content.push(( localize(
|
|
119
|
-
|
|
124
|
+
4799,
|
|
120
125
|
"To focus the chat request and response list, invoke the Focus Chat command{0}. This will move focus to the most recent response, which you can then navigate using the up and down arrow keys.",
|
|
121
126
|
getChatFocusKeybindingLabel(keybindingService, type, "last")
|
|
122
127
|
)));
|
|
123
128
|
content.push(( localize(
|
|
124
|
-
|
|
129
|
+
4800,
|
|
125
130
|
"To return to the last chat response you focused, invoke the Focus Last Focused Chat Response command{0}.",
|
|
126
131
|
getChatFocusKeybindingLabel(keybindingService, type, "lastFocused")
|
|
127
132
|
)));
|
|
128
133
|
content.push(( localize(
|
|
129
|
-
|
|
134
|
+
4801,
|
|
130
135
|
"To focus the input box for chat requests, invoke the Focus Chat Input command{0}.",
|
|
131
136
|
getChatFocusKeybindingLabel(keybindingService, type, "input")
|
|
132
137
|
)));
|
|
133
138
|
content.push(( localize(
|
|
134
|
-
|
|
139
|
+
4802,
|
|
135
140
|
"As the chat request is being processed, you will hear verbose progress updates if the request takes more than 4 seconds. This includes information like searched text for <search term> with X results, created file <file_name>, or read file <file path>. This can be disabled with accessibility.verboseChatProgressUpdates."
|
|
136
141
|
)));
|
|
137
142
|
content.push(( localize(
|
|
138
|
-
|
|
143
|
+
4803,
|
|
139
144
|
"Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response."
|
|
140
145
|
)));
|
|
141
146
|
content.push(( localize(
|
|
142
|
-
|
|
147
|
+
4804,
|
|
143
148
|
"To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.",
|
|
144
149
|
"<keybinding:workbench.action.chat.nextCodeBlock>"
|
|
145
150
|
)));
|
|
146
151
|
content.push(( localize(
|
|
147
|
-
|
|
152
|
+
4805,
|
|
148
153
|
"To navigate to the next user prompt in the conversation, invoke the Next User Prompt command{0}.",
|
|
149
154
|
"<keybinding:workbench.action.chat.nextUserPrompt>"
|
|
150
155
|
)));
|
|
151
156
|
content.push(( localize(
|
|
152
|
-
|
|
157
|
+
4806,
|
|
153
158
|
"To navigate to the previous user prompt in the conversation, invoke the Previous User Prompt command{0}.",
|
|
154
159
|
"<keybinding:workbench.action.chat.previousUserPrompt>"
|
|
155
160
|
)));
|
|
156
161
|
content.push(( localize(
|
|
157
|
-
|
|
162
|
+
4807,
|
|
158
163
|
"To focus pending chat confirmation dialogs, invoke the Focus Chat Confirmation Status command{0}.",
|
|
159
164
|
"<keybinding:workbench.action.chat.focusConfirmation>"
|
|
160
165
|
)));
|
|
161
166
|
content.push(( localize(
|
|
162
|
-
|
|
167
|
+
4808,
|
|
163
168
|
"If there are any hidden chat terminals, you can view them by invoking the View Hidden Chat Terminals command{0}.",
|
|
164
169
|
"<keybinding:workbench.action.terminal.chat.viewHiddenChatTerminals>"
|
|
165
170
|
)));
|
|
166
171
|
content.push(( localize(
|
|
167
|
-
|
|
172
|
+
4809,
|
|
168
173
|
"To focus the last chat terminal that ran a tool, invoke the Focus Most Recent Chat Terminal command{0}.",
|
|
169
174
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminal}>`
|
|
170
175
|
)));
|
|
171
176
|
content.push(( localize(
|
|
172
|
-
|
|
177
|
+
4810,
|
|
173
178
|
"To focus the output from the last chat terminal tool, invoke the Focus Most Recent Chat Terminal Output command{0}.",
|
|
174
179
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminalOutput}>`
|
|
175
180
|
)));
|
|
176
181
|
content.push(( localize(
|
|
177
|
-
|
|
182
|
+
4811,
|
|
178
183
|
"When a chat question appears, toggle focus between the question and the chat input{0}.",
|
|
179
184
|
"<keybinding:workbench.action.chat.focusQuestionCarousel>"
|
|
180
185
|
)));
|
|
181
186
|
content.push(( localize(
|
|
182
|
-
|
|
187
|
+
4812,
|
|
183
188
|
"When a chat question is focused, move to the previous question{0}.",
|
|
184
189
|
"<keybinding:workbench.action.chat.previousQuestion>"
|
|
185
190
|
)));
|
|
186
191
|
content.push(( localize(
|
|
187
|
-
|
|
192
|
+
4813,
|
|
188
193
|
"When a chat question is focused, move to the next question{0}.",
|
|
189
194
|
"<keybinding:workbench.action.chat.nextQuestion>"
|
|
190
195
|
)));
|
|
191
196
|
content.push(( localize(
|
|
192
|
-
|
|
197
|
+
4814,
|
|
193
198
|
"When a tip appears, toggle focus between the tip and the chat input{0}.",
|
|
194
199
|
"<keybinding:workbench.action.chat.focusTip>"
|
|
195
200
|
)));
|
|
@@ -197,99 +202,99 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
197
202
|
if (type === "editsView" || type === "agentView") {
|
|
198
203
|
if (type === "agentView") {
|
|
199
204
|
content.push(( localize(
|
|
200
|
-
|
|
205
|
+
4815,
|
|
201
206
|
"The chat agent view is used to apply edits across files in your workspace, enable running commands in the terminal, and more."
|
|
202
207
|
)));
|
|
203
208
|
} else {
|
|
204
|
-
content.push(( localize(
|
|
209
|
+
content.push(( localize(4816, "The chat editing view is used to apply edits across files.")));
|
|
205
210
|
}
|
|
206
211
|
content.push(( localize(
|
|
207
|
-
|
|
212
|
+
4817,
|
|
208
213
|
"It is comprised of an input box and a file working set (Shift+Tab)."
|
|
209
214
|
)));
|
|
210
215
|
content.push(( localize(
|
|
211
|
-
|
|
216
|
+
4818,
|
|
212
217
|
"When a request is made, a progress indicator will play while the edits are being applied."
|
|
213
218
|
)));
|
|
214
219
|
content.push(( localize(
|
|
215
|
-
|
|
220
|
+
4819,
|
|
216
221
|
"Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile."
|
|
217
222
|
)));
|
|
218
223
|
content.push(( localize(
|
|
219
|
-
|
|
224
|
+
4820,
|
|
220
225
|
"Navigate between edits in the editor with navigate previous{0} and next{1}",
|
|
221
226
|
"<keybinding:chatEditor.action.navigatePrevious>",
|
|
222
227
|
"<keybinding:chatEditor.action.navigateNext>"
|
|
223
228
|
)));
|
|
224
229
|
content.push(( localize(
|
|
225
|
-
|
|
230
|
+
4821,
|
|
226
231
|
"In the editor, Keep{0}, Undo{1}, or Toggle the Diff{2} for the current Change.",
|
|
227
232
|
"<keybinding:chatEditor.action.acceptHunk>",
|
|
228
233
|
"<keybinding:chatEditor.action.undoHunk>",
|
|
229
234
|
"<keybinding:chatEditor.action.toggleDiff>"
|
|
230
235
|
)));
|
|
231
236
|
content.push(( localize(
|
|
232
|
-
|
|
237
|
+
4822,
|
|
233
238
|
"Sounds will play when a change is accepted or undone. The sounds can be disabled with accessibility.signals.editsKept and accessibility.signals.editsUndone."
|
|
234
239
|
)));
|
|
235
240
|
if (type === "agentView") {
|
|
236
241
|
content.push(( localize(
|
|
237
|
-
|
|
242
|
+
4823,
|
|
238
243
|
"An alert will indicate when user action is required. For example, if the agent wants to run something in the terminal, you will hear Action Required: Run Command in Terminal."
|
|
239
244
|
)));
|
|
240
245
|
content.push(( localize(
|
|
241
|
-
|
|
246
|
+
4824,
|
|
242
247
|
"To take the action, use the accept tool command{0}.",
|
|
243
248
|
"<keybinding:workbench.action.chat.acceptTool>"
|
|
244
249
|
)));
|
|
245
250
|
content.push(( localize(
|
|
246
|
-
|
|
251
|
+
4825,
|
|
247
252
|
"To automatically approve tool actions without manual confirmation, set {0} to {1} in your settings.",
|
|
248
253
|
ChatConfiguration.GlobalAutoApprove,
|
|
249
254
|
"true"
|
|
250
255
|
)));
|
|
251
256
|
content.push(( localize(
|
|
252
|
-
|
|
257
|
+
4826,
|
|
253
258
|
"To accept a tool action, use the Accept Tool Confirmation command{0}.",
|
|
254
259
|
"<keybinding:workbench.action.chat.acceptTool>"
|
|
255
260
|
)));
|
|
256
261
|
content.push(( localize(
|
|
257
|
-
|
|
262
|
+
4827,
|
|
258
263
|
"By default, when edits are made to files, they will be opened. To change this behavior, set accessibility.openChatEditedFiles to false in your settings."
|
|
259
264
|
)));
|
|
260
265
|
content.push(( localize(
|
|
261
|
-
|
|
266
|
+
4828,
|
|
262
267
|
"To toggle focus between the Agent TODOs view and the chat input, use Agent TODOs: Toggle Focus{0}.",
|
|
263
268
|
"<keybinding:workbench.action.chat.focusTodosView>"
|
|
264
269
|
)));
|
|
265
270
|
}
|
|
266
|
-
content.push(( localize(
|
|
267
|
-
content.push(( localize(
|
|
271
|
+
content.push(( localize(4829, "Some helpful commands include:")));
|
|
272
|
+
content.push(( localize(4830, "- Undo Edits{0}.", "<keybinding:workbench.action.chat.undoEdits>")));
|
|
268
273
|
content.push(( localize(
|
|
269
|
-
|
|
274
|
+
4831,
|
|
270
275
|
"- Restore to Last Checkpoint{0}.",
|
|
271
276
|
"<keybinding:workbench.action.chat.restoreLastCheckpoint>"
|
|
272
277
|
)));
|
|
273
278
|
content.push(( localize(
|
|
274
|
-
|
|
279
|
+
4832,
|
|
275
280
|
"- Attach Files{0}.",
|
|
276
281
|
"<keybinding:workbench.action.chat.editing.attachFiles>"
|
|
277
282
|
)));
|
|
278
283
|
content.push(( localize(
|
|
279
|
-
|
|
284
|
+
4833,
|
|
280
285
|
"- Remove File from Working Set{0}.",
|
|
281
286
|
"<keybinding:chatEditing.removeFileFromWorkingSet>"
|
|
282
287
|
)));
|
|
283
288
|
content.push(( localize(
|
|
284
|
-
|
|
289
|
+
4834,
|
|
285
290
|
"- Keep{0} and Undo File{1}.",
|
|
286
291
|
"<keybinding:chatEditing.acceptFile>",
|
|
287
292
|
"<keybinding:chatEditing.discardFile>"
|
|
288
293
|
)));
|
|
289
|
-
content.push(( localize(
|
|
290
|
-
content.push(( localize(
|
|
291
|
-
content.push(( localize(
|
|
292
|
-
content.push(( localize(
|
|
294
|
+
content.push(( localize(4835, "- Save All Files{0}.", "<keybinding:chatEditing.saveAllFiles>")));
|
|
295
|
+
content.push(( localize(4836, "- Keep All Edits{0}.", "<keybinding:chatEditing.acceptAllFiles>")));
|
|
296
|
+
content.push(( localize(4837, "- Undo All Edits{0}.", "<keybinding:chatEditing.discardAllFiles>")));
|
|
297
|
+
content.push(( localize(4838, "- Open File in Diff{0}.", "<keybinding:chatEditing.openFileInDiff>")));
|
|
293
298
|
content.push(
|
|
294
299
|
`- ${ChatEditingShowChangesAction.LABEL}<keybinding:chatEditing.viewChanges>`
|
|
295
300
|
);
|
|
@@ -298,45 +303,45 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
298
303
|
);
|
|
299
304
|
} else {
|
|
300
305
|
content.push(( localize(
|
|
301
|
-
|
|
306
|
+
4839,
|
|
302
307
|
"Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
|
|
303
308
|
)));
|
|
304
309
|
content.push(( localize(
|
|
305
|
-
|
|
310
|
+
4840,
|
|
306
311
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
307
312
|
"<keybinding:inlineChat.start>"
|
|
308
313
|
)));
|
|
309
314
|
content.push(( localize(
|
|
310
|
-
|
|
315
|
+
4841,
|
|
311
316
|
"In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.",
|
|
312
317
|
"<keybinding:history.showPrevious>",
|
|
313
318
|
"<keybinding:history.showNext>"
|
|
314
319
|
)));
|
|
315
320
|
content.push(( localize(
|
|
316
|
-
|
|
321
|
+
4842,
|
|
317
322
|
"In the input box, inspect the response in the accessible view{0}.",
|
|
318
323
|
"<keybinding:editor.action.accessibleView>"
|
|
319
324
|
)));
|
|
320
325
|
content.push(( localize(
|
|
321
|
-
|
|
326
|
+
4843,
|
|
322
327
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
323
328
|
)));
|
|
324
329
|
content.push(( localize(
|
|
325
|
-
|
|
330
|
+
4844,
|
|
326
331
|
"If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
|
|
327
332
|
)));
|
|
328
333
|
content.push(( localize(
|
|
329
|
-
|
|
334
|
+
4845,
|
|
330
335
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
331
336
|
AccessibleDiffViewerNext.id
|
|
332
337
|
)));
|
|
333
338
|
content.push(( localize(
|
|
334
|
-
|
|
339
|
+
4846,
|
|
335
340
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
336
341
|
)));
|
|
337
342
|
}
|
|
338
343
|
content.push(( localize(
|
|
339
|
-
|
|
344
|
+
4847,
|
|
340
345
|
"Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
|
|
341
346
|
)));
|
|
342
347
|
return content.join("\n");
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js
CHANGED
|
@@ -58,7 +58,7 @@ let ChatAgentRecommendation = class ChatAgentRecommendation extends Disposable {
|
|
|
58
58
|
const availabilityContextId = `${INSTALL_CONTEXT_PREFIX}.${extensionKey}`;
|
|
59
59
|
const availabilityContext = ( new RawContextKey(availabilityContextId, false)).bindTo(this.contextKeyService);
|
|
60
60
|
this.availabilityContextKeys.set(extensionKey, availabilityContext);
|
|
61
|
-
const title = ( localize2(
|
|
61
|
+
const title = ( localize2(4910, "New {0}", recommendation.displayName));
|
|
62
62
|
this._register(registerAction2(class extends Action2 {
|
|
63
63
|
constructor() {
|
|
64
64
|
super({
|
|
@@ -22,7 +22,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
22
22
|
import { accessibleViewInCodeBlock } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
23
23
|
import { IAiEditTelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service';
|
|
24
24
|
import { EditDeltaInfo } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/textModelEditSource';
|
|
25
|
-
import { reviewEdits } from '
|
|
25
|
+
import { reviewEdits } from './reviewEdits.js';
|
|
26
26
|
import { ITerminalService, ITerminalEditorService, ITerminalGroupService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
27
27
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
28
28
|
import { ChatCopyKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
@@ -30,6 +30,7 @@ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/c
|
|
|
30
30
|
import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
31
31
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
32
32
|
import { IChatWidgetService, IChatCodeBlockContextProviderService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
33
|
+
import { ChatCopyActionViewItem } from './chatCopyActions.js';
|
|
33
34
|
import { DefaultChatTextEditor } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart';
|
|
34
35
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
35
36
|
import { ApplyCodeBlockOperation, InsertCodeBlockOperation } from './codeBlockOperations.js';
|
|
@@ -68,6 +69,16 @@ let CodeBlockActionRendering = class CodeBlockActionRendering extends Disposable
|
|
|
68
69
|
}
|
|
69
70
|
constructor(actionViewItemService, instantiationService, labelService) {
|
|
70
71
|
super();
|
|
72
|
+
const copyCodeBlockActionRendering = this._register(actionViewItemService.register(
|
|
73
|
+
MenuId.ChatCodeBlock,
|
|
74
|
+
"workbench.action.chat.copyCodeBlock",
|
|
75
|
+
(action, options) => {
|
|
76
|
+
if (!(action instanceof MenuItemAction)) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
return instantiationService.createInstance(ChatCopyActionViewItem, action, options);
|
|
80
|
+
}
|
|
81
|
+
));
|
|
71
82
|
const disposable = actionViewItemService.register(MenuId.ChatCodeBlock, APPLY_IN_EDITOR_ID, (action, options) => {
|
|
72
83
|
if (!(action instanceof MenuItemAction)) {
|
|
73
84
|
return undefined;
|
|
@@ -79,7 +90,7 @@ let CodeBlockActionRendering = class CodeBlockActionRendering extends Disposable
|
|
|
79
90
|
const label = labelService.getUriLabel(context.codemapperUri, {
|
|
80
91
|
relative: true
|
|
81
92
|
});
|
|
82
|
-
return localize(
|
|
93
|
+
return localize(4911, "Apply to {0}", label);
|
|
83
94
|
}
|
|
84
95
|
return super.getTooltip();
|
|
85
96
|
}
|
|
@@ -89,6 +100,7 @@ let CodeBlockActionRendering = class CodeBlockActionRendering extends Disposable
|
|
|
89
100
|
}
|
|
90
101
|
}, action, undefined);
|
|
91
102
|
});
|
|
103
|
+
markAsSingleton(copyCodeBlockActionRendering);
|
|
92
104
|
markAsSingleton(disposable);
|
|
93
105
|
}
|
|
94
106
|
};
|
|
@@ -98,7 +110,7 @@ function registerChatCodeBlockActions() {
|
|
|
98
110
|
constructor() {
|
|
99
111
|
super({
|
|
100
112
|
id: "workbench.action.chat.copyCodeBlock",
|
|
101
|
-
title: ( localize2(
|
|
113
|
+
title: ( localize2(4912, "Copy")),
|
|
102
114
|
f1: false,
|
|
103
115
|
category: CHAT_CATEGORY,
|
|
104
116
|
icon: Codicon.copy,
|
|
@@ -151,7 +163,8 @@ function registerChatCodeBlockActions() {
|
|
|
151
163
|
modelId: request?.modelId,
|
|
152
164
|
presentation: "codeBlock",
|
|
153
165
|
applyCodeBlockSuggestionId: undefined,
|
|
154
|
-
source: undefined
|
|
166
|
+
source: undefined,
|
|
167
|
+
sourceRequestId: undefined
|
|
155
168
|
});
|
|
156
169
|
}
|
|
157
170
|
}
|
|
@@ -208,7 +221,8 @@ function registerChatCodeBlockActions() {
|
|
|
208
221
|
modelId: request?.modelId,
|
|
209
222
|
presentation: "codeBlock",
|
|
210
223
|
applyCodeBlockSuggestionId: undefined,
|
|
211
|
-
source: undefined
|
|
224
|
+
source: undefined,
|
|
225
|
+
sourceRequestId: undefined
|
|
212
226
|
});
|
|
213
227
|
}
|
|
214
228
|
if (noSelection) {
|
|
@@ -221,7 +235,7 @@ function registerChatCodeBlockActions() {
|
|
|
221
235
|
constructor() {
|
|
222
236
|
super({
|
|
223
237
|
id: APPLY_IN_EDITOR_ID,
|
|
224
|
-
title: ( localize2(
|
|
238
|
+
title: ( localize2(4913, "Apply in Editor")),
|
|
225
239
|
precondition: ChatContextKeys.enabled,
|
|
226
240
|
f1: false,
|
|
227
241
|
category: CHAT_CATEGORY,
|
|
@@ -256,7 +270,7 @@ function registerChatCodeBlockActions() {
|
|
|
256
270
|
constructor() {
|
|
257
271
|
super({
|
|
258
272
|
id: "workbench.action.chat.insertCodeBlock",
|
|
259
|
-
title: ( localize2(
|
|
273
|
+
title: ( localize2(4914, "Insert At Cursor")),
|
|
260
274
|
precondition: ChatContextKeys.enabled,
|
|
261
275
|
f1: true,
|
|
262
276
|
category: CHAT_CATEGORY,
|
|
@@ -292,7 +306,7 @@ function registerChatCodeBlockActions() {
|
|
|
292
306
|
constructor() {
|
|
293
307
|
super({
|
|
294
308
|
id: "workbench.action.chat.insertIntoNewFile",
|
|
295
|
-
title: ( localize2(
|
|
309
|
+
title: ( localize2(4915, "Insert into New File")),
|
|
296
310
|
precondition: ChatContextKeys.enabled,
|
|
297
311
|
f1: true,
|
|
298
312
|
category: CHAT_CATEGORY,
|
|
@@ -347,7 +361,8 @@ function registerChatCodeBlockActions() {
|
|
|
347
361
|
modelId: request?.modelId,
|
|
348
362
|
presentation: "codeBlock",
|
|
349
363
|
applyCodeBlockSuggestionId: undefined,
|
|
350
|
-
source: undefined
|
|
364
|
+
source: undefined,
|
|
365
|
+
sourceRequestId: undefined
|
|
351
366
|
});
|
|
352
367
|
}
|
|
353
368
|
}
|
|
@@ -356,7 +371,7 @@ function registerChatCodeBlockActions() {
|
|
|
356
371
|
constructor() {
|
|
357
372
|
super({
|
|
358
373
|
id: "workbench.action.chat.runInTerminal",
|
|
359
|
-
title: ( localize2(
|
|
374
|
+
title: ( localize2(4916, "Insert into Terminal")),
|
|
360
375
|
precondition: ChatContextKeys.enabled,
|
|
361
376
|
f1: true,
|
|
362
377
|
category: CHAT_CATEGORY,
|
|
@@ -452,7 +467,7 @@ function registerChatCodeBlockActions() {
|
|
|
452
467
|
constructor() {
|
|
453
468
|
super({
|
|
454
469
|
id: "workbench.action.chat.nextCodeBlock",
|
|
455
|
-
title: ( localize2(
|
|
470
|
+
title: ( localize2(4917, "Next Code Block")),
|
|
456
471
|
keybinding: {
|
|
457
472
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown,
|
|
458
473
|
mac: {
|
|
@@ -474,7 +489,7 @@ function registerChatCodeBlockActions() {
|
|
|
474
489
|
constructor() {
|
|
475
490
|
super({
|
|
476
491
|
id: "workbench.action.chat.previousCodeBlock",
|
|
477
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(4918, "Previous Code Block")),
|
|
478
493
|
keybinding: {
|
|
479
494
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp,
|
|
480
495
|
mac: {
|
|
@@ -535,7 +550,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
535
550
|
constructor() {
|
|
536
551
|
super({
|
|
537
552
|
id: "workbench.action.chat.applyCompareEdits",
|
|
538
|
-
title: ( localize2(
|
|
553
|
+
title: ( localize2(4919, "Apply Edits")),
|
|
539
554
|
f1: false,
|
|
540
555
|
category: CHAT_CATEGORY,
|
|
541
556
|
icon: Codicon.gitPullRequestGoToChanges,
|
|
@@ -580,7 +595,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
580
595
|
constructor() {
|
|
581
596
|
super({
|
|
582
597
|
id: "workbench.action.chat.discardCompareEdits",
|
|
583
|
-
title: ( localize2(
|
|
598
|
+
title: ( localize2(4920, "Discard Edits")),
|
|
584
599
|
f1: false,
|
|
585
600
|
category: CHAT_CATEGORY,
|
|
586
601
|
icon: Codicon.trash,
|
|
@@ -603,7 +618,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
603
618
|
constructor() {
|
|
604
619
|
super({
|
|
605
620
|
id: "workbench.action.chat.toggleCompareBlockDiffViewMode",
|
|
606
|
-
title: ( localize2(
|
|
621
|
+
title: ( localize2(4921, "Toggle Inline/Side-by-Side Diff")),
|
|
607
622
|
f1: false,
|
|
608
623
|
category: CHAT_CATEGORY,
|
|
609
624
|
icon: Codicon.diffSingle,
|
|
@@ -626,7 +641,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
626
641
|
constructor() {
|
|
627
642
|
super({
|
|
628
643
|
id: "workbench.action.chat.openCompareBlockInDiffEditor",
|
|
629
|
-
title: ( localize2(
|
|
644
|
+
title: ( localize2(4922, "Open in Diff Editor")),
|
|
630
645
|
f1: false,
|
|
631
646
|
category: CHAT_CATEGORY,
|
|
632
647
|
icon: Codicon.goToFile,
|
|
@@ -43,6 +43,7 @@ import { ChatAgentLocation, isSupportedChatFileScheme } from '@codingame/monaco-
|
|
|
43
43
|
import { IChatWidgetService, IQuickChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
44
44
|
import { isChatContextPickerPickItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatContextPickService';
|
|
45
45
|
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatContextPickService.service';
|
|
46
|
+
import { IChatAttachmentResolveService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service';
|
|
46
47
|
import { isQuickChat } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget';
|
|
47
48
|
import { resizeImage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
|
|
48
49
|
import { registerPromptActions } from '../promptSyntax/promptFileActions.js';
|
|
@@ -82,7 +83,7 @@ class AttachResourceAction extends Action2 {
|
|
|
82
83
|
}
|
|
83
84
|
_getResources(accessor, ...args) {
|
|
84
85
|
const editorService = accessor.get(IEditorService);
|
|
85
|
-
const contexts = isEditorCommandsContext(args[1]) ? this._getEditorResources(accessor, args) : Array.isArray(args[1]) ? args[1] : [args[0]];
|
|
86
|
+
const contexts = isEditorCommandsContext(args[1]) ? this._getEditorResources(accessor, ...args) : Array.isArray(args[1]) ? args[1] : [args[0]];
|
|
86
87
|
const files = [];
|
|
87
88
|
for (const context of contexts) {
|
|
88
89
|
let uri;
|
|
@@ -122,7 +123,7 @@ class AttachFileToChatAction extends AttachResourceAction {
|
|
|
122
123
|
constructor() {
|
|
123
124
|
super({
|
|
124
125
|
id: AttachFileToChatAction.ID,
|
|
125
|
-
title: ( localize2(
|
|
126
|
+
title: ( localize2(4933, "Add File to Chat")),
|
|
126
127
|
category: CHAT_CATEGORY,
|
|
127
128
|
icon: Codicon.attach,
|
|
128
129
|
precondition: ChatContextKeys.enabled,
|
|
@@ -184,7 +185,7 @@ class AttachFolderToChatAction extends AttachResourceAction {
|
|
|
184
185
|
constructor() {
|
|
185
186
|
super({
|
|
186
187
|
id: AttachFolderToChatAction.ID,
|
|
187
|
-
title: ( localize2(
|
|
188
|
+
title: ( localize2(4934, "Add Folder to Chat")),
|
|
188
189
|
category: CHAT_CATEGORY,
|
|
189
190
|
f1: false,
|
|
190
191
|
menu: {
|
|
@@ -215,7 +216,7 @@ class AttachPinnedEditorsToChatAction extends Action2 {
|
|
|
215
216
|
constructor() {
|
|
216
217
|
super({
|
|
217
218
|
id: AttachPinnedEditorsToChatAction.ID,
|
|
218
|
-
title: ( localize2(
|
|
219
|
+
title: ( localize2(4935, "Add Pinned Editors to Chat")),
|
|
219
220
|
category: CHAT_CATEGORY,
|
|
220
221
|
precondition: ChatContextKeys.enabled,
|
|
221
222
|
f1: true
|
|
@@ -257,7 +258,7 @@ class AttachSelectionToChatAction extends Action2 {
|
|
|
257
258
|
constructor() {
|
|
258
259
|
super({
|
|
259
260
|
id: AttachSelectionToChatAction.ID,
|
|
260
|
-
title: ( localize2(
|
|
261
|
+
title: ( localize2(4936, "Add Selection to Chat")),
|
|
261
262
|
category: CHAT_CATEGORY,
|
|
262
263
|
icon: Codicon.attach,
|
|
263
264
|
f1: true,
|
|
@@ -337,7 +338,7 @@ class AttachSearchResultAction extends Action2 {
|
|
|
337
338
|
constructor() {
|
|
338
339
|
super({
|
|
339
340
|
id: "workbench.action.chat.insertSearchResults",
|
|
340
|
-
title: ( localize2(
|
|
341
|
+
title: ( localize2(4937, "Add Search Results to Chat")),
|
|
341
342
|
category: CHAT_CATEGORY,
|
|
342
343
|
f1: false,
|
|
343
344
|
menu: [{
|
|
@@ -400,7 +401,7 @@ class AttachContextAction extends Action2 {
|
|
|
400
401
|
constructor() {
|
|
401
402
|
super({
|
|
402
403
|
id: "workbench.action.chat.attachContext",
|
|
403
|
-
title: ( localize2(
|
|
404
|
+
title: ( localize2(4938, "Add Context...")),
|
|
404
405
|
icon: Codicon.add,
|
|
405
406
|
category: CHAT_CATEGORY,
|
|
406
407
|
keybinding: {
|
|
@@ -491,13 +492,14 @@ class AttachContextAction extends Action2 {
|
|
|
491
492
|
SymbolsQuickAccessProvider.PREFIX,
|
|
492
493
|
AbstractGotoSymbolQuickAccessProvider.PREFIX
|
|
493
494
|
],
|
|
494
|
-
placeholder: placeholder ?? ( localize(
|
|
495
|
+
placeholder: placeholder ?? ( localize(4939, "Search attachments")),
|
|
495
496
|
providerOptions
|
|
496
497
|
});
|
|
497
498
|
}
|
|
498
499
|
async _handleQPPick(accessor, widget, isInBackground, pick) {
|
|
499
500
|
const fileService = accessor.get(IFileService);
|
|
500
501
|
const textModelService = accessor.get(ITextModelService);
|
|
502
|
+
const chatAttachmentResolveService = accessor.get(IChatAttachmentResolveService);
|
|
501
503
|
const toAttach = [];
|
|
502
504
|
if (isIQuickPickItemWithResource(pick) && pick.resource) {
|
|
503
505
|
if (/\.(png|jpg|jpeg|bmp|gif|tiff)$/i.test(pick.resource.path)) {
|
|
@@ -516,6 +518,13 @@ class AttachContextAction extends Action2 {
|
|
|
516
518
|
}]
|
|
517
519
|
});
|
|
518
520
|
}
|
|
521
|
+
} else if (pick.resource.scheme === Schemas.vscodeBrowser) {
|
|
522
|
+
const entry = await chatAttachmentResolveService.resolveEditorAttachContext({
|
|
523
|
+
resource: pick.resource
|
|
524
|
+
});
|
|
525
|
+
if (entry) {
|
|
526
|
+
toAttach.push(entry);
|
|
527
|
+
}
|
|
519
528
|
} else {
|
|
520
529
|
let omittedState = OmittedState.NotOmitted;
|
|
521
530
|
try {
|
|
@@ -564,7 +573,7 @@ class AttachContextAction extends Action2 {
|
|
|
564
573
|
const pickerConfig = item.asPicker(widget);
|
|
565
574
|
const store = ( new DisposableStore());
|
|
566
575
|
const goBackItem = {
|
|
567
|
-
label: ( localize(
|
|
576
|
+
label: ( localize(4940, "Go back ↩")),
|
|
568
577
|
alwaysShow: true
|
|
569
578
|
};
|
|
570
579
|
const configureItem = pickerConfig.configure ? {
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
import { IActionRunner } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
1
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
3
|
import { IActionViewItemService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/actionViewItemService.service";
|
|
4
|
+
import { MenuEntryActionViewItem } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem";
|
|
3
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
6
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
7
|
+
export declare class ChatCopyActionViewItem extends MenuEntryActionViewItem {
|
|
8
|
+
private readonly copiedStateReset;
|
|
9
|
+
private readonly actionRunnerListener;
|
|
10
|
+
private copied;
|
|
11
|
+
get actionRunner(): IActionRunner;
|
|
12
|
+
set actionRunner(actionRunner: IActionRunner);
|
|
13
|
+
render(container: HTMLElement): void;
|
|
14
|
+
protected getTooltip(): string;
|
|
15
|
+
protected updateAriaLabel(): void;
|
|
16
|
+
protected updateClass(): void;
|
|
17
|
+
private clearLabelIconClasses;
|
|
18
|
+
private renderCopiedState;
|
|
19
|
+
private bindActionRunner;
|
|
20
|
+
}
|
|
5
21
|
export declare class ChatCopyActionRendering extends Disposable implements IWorkbenchContribution {
|
|
6
22
|
static readonly ID = "chat.copyActionRendering";
|
|
7
23
|
constructor(actionViewItemService: IActionViewItemService, instantiationService: IInstantiationService);
|