@codingame/monaco-vscode-chat-service-override 27.0.0 โ 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +5 -5
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +54 -4
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +179 -11
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +5 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +6 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +25 -10
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +6 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +5 -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 +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +89 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +4 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +146 -53
- 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 +56 -54
- 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 +5 -5
- 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 +25 -25
- 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/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +7 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +189 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +42 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +20 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +210 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +122 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +87 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +279 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +63 -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 +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +62 -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 +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +49 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +14 -14
- 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 +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +103 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +61 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +31 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +229 -524
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +54 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +112 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +348 -285
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +107 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +4 -4
- 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/tools/languageModelToolsConfirmationService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +55 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +148 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- 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 +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +72 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +5 -3
- 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 +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +11 -10
- 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 +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +72 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +37 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +71 -25
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +217 -91
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +85 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +257 -63
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +32 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +287 -88
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +75 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +81 -41
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +6 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +38 -22
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -8
- 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 +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +36 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +27 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +1 -1
- 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/terminalSandboxService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -67
|
@@ -29,10 +29,10 @@ import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vs
|
|
|
29
29
|
import { ChatViewContainerId, ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
30
30
|
import { ChatViewPane } from './widgetHosts/viewPane/chatViewPane.js';
|
|
31
31
|
|
|
32
|
-
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(
|
|
32
|
+
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(5976, "View icon of the chat view.")));
|
|
33
33
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
34
34
|
id: ChatViewContainerId,
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(5977, "Chat")),
|
|
36
36
|
icon: chatViewIcon,
|
|
37
37
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [ChatViewContainerId, {
|
|
38
38
|
mergeViewWithContainerWhenSingleView: true
|
|
@@ -49,13 +49,13 @@ const chatViewDescriptor = {
|
|
|
49
49
|
containerIcon: chatViewContainer.icon,
|
|
50
50
|
containerTitle: chatViewContainer.title.value,
|
|
51
51
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
52
|
-
name: ( localize2(
|
|
52
|
+
name: ( localize2(5977, "Chat")),
|
|
53
53
|
canToggleVisibility: false,
|
|
54
54
|
canMoveView: true,
|
|
55
55
|
openCommandActionDescriptor: {
|
|
56
56
|
id: ChatViewContainerId,
|
|
57
57
|
title: chatViewContainer.title,
|
|
58
|
-
mnemonicTitle: ( localize(
|
|
58
|
+
mnemonicTitle: ( localize(5978, "&&Chat")),
|
|
59
59
|
keybindings: {
|
|
60
60
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
61
61
|
mac: {
|
|
@@ -71,7 +71,7 @@ const chatViewDescriptor = {
|
|
|
71
71
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
72
72
|
extensionPoint: "chatParticipants",
|
|
73
73
|
jsonSchema: {
|
|
74
|
-
description: ( localize(
|
|
74
|
+
description: ( localize(5979, "Contributes a chat participant")),
|
|
75
75
|
type: "array",
|
|
76
76
|
items: {
|
|
77
77
|
additionalProperties: false,
|
|
@@ -85,12 +85,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
85
85
|
required: ["name", "id"],
|
|
86
86
|
properties: {
|
|
87
87
|
id: {
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(5980, "A unique id for this chat participant.")),
|
|
89
89
|
type: "string"
|
|
90
90
|
},
|
|
91
91
|
name: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
5981,
|
|
94
94
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
95
95
|
)),
|
|
96
96
|
type: "string",
|
|
@@ -98,37 +98,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
98
98
|
},
|
|
99
99
|
fullName: {
|
|
100
100
|
markdownDescription: ( localize(
|
|
101
|
-
|
|
101
|
+
5982,
|
|
102
102
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
103
103
|
"`name`"
|
|
104
104
|
)),
|
|
105
105
|
type: "string"
|
|
106
106
|
},
|
|
107
107
|
description: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(5983, "A description of this chat participant, shown in the UI.")),
|
|
109
109
|
type: "string"
|
|
110
110
|
},
|
|
111
111
|
isSticky: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
5984,
|
|
114
114
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
115
115
|
)),
|
|
116
116
|
type: "boolean"
|
|
117
117
|
},
|
|
118
118
|
sampleRequest: {
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
5985,
|
|
121
121
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
122
122
|
)),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(5986, "A condition which must be true to enable this participant.")),
|
|
127
127
|
type: "string"
|
|
128
128
|
},
|
|
129
129
|
disambiguation: {
|
|
130
130
|
description: ( localize(
|
|
131
|
-
|
|
131
|
+
5987,
|
|
132
132
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
133
133
|
)),
|
|
134
134
|
type: "array",
|
|
@@ -146,21 +146,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
146
146
|
properties: {
|
|
147
147
|
category: {
|
|
148
148
|
markdownDescription: ( localize(
|
|
149
|
-
|
|
149
|
+
5988,
|
|
150
150
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
151
151
|
)),
|
|
152
152
|
type: "string"
|
|
153
153
|
},
|
|
154
154
|
description: {
|
|
155
155
|
description: ( localize(
|
|
156
|
-
|
|
156
|
+
5989,
|
|
157
157
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
158
158
|
)),
|
|
159
159
|
type: "string"
|
|
160
160
|
},
|
|
161
161
|
examples: {
|
|
162
162
|
description: ( localize(
|
|
163
|
-
|
|
163
|
+
5990,
|
|
164
164
|
"A list of representative example questions that are suitable for this chat participant."
|
|
165
165
|
)),
|
|
166
166
|
type: "array"
|
|
@@ -170,7 +170,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
170
170
|
},
|
|
171
171
|
commands: {
|
|
172
172
|
markdownDescription: ( localize(
|
|
173
|
-
|
|
173
|
+
5991,
|
|
174
174
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
175
175
|
)),
|
|
176
176
|
type: "array",
|
|
@@ -187,36 +187,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
187
187
|
properties: {
|
|
188
188
|
name: {
|
|
189
189
|
description: ( localize(
|
|
190
|
-
|
|
190
|
+
5992,
|
|
191
191
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
192
192
|
)),
|
|
193
193
|
type: "string"
|
|
194
194
|
},
|
|
195
195
|
description: {
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(5993, "A description of this command.")),
|
|
197
197
|
type: "string"
|
|
198
198
|
},
|
|
199
199
|
when: {
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(5994, "A condition which must be true to enable this command.")),
|
|
201
201
|
type: "string"
|
|
202
202
|
},
|
|
203
203
|
sampleRequest: {
|
|
204
204
|
description: ( localize(
|
|
205
|
-
|
|
205
|
+
5995,
|
|
206
206
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
207
207
|
)),
|
|
208
208
|
type: "string"
|
|
209
209
|
},
|
|
210
210
|
isSticky: {
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
5984,
|
|
213
213
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
214
214
|
)),
|
|
215
215
|
type: "boolean"
|
|
216
216
|
},
|
|
217
217
|
disambiguation: {
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
5996,
|
|
220
220
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
221
221
|
)),
|
|
222
222
|
type: "array",
|
|
@@ -234,21 +234,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
234
234
|
properties: {
|
|
235
235
|
category: {
|
|
236
236
|
markdownDescription: ( localize(
|
|
237
|
-
|
|
237
|
+
5997,
|
|
238
238
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
239
239
|
)),
|
|
240
240
|
type: "string"
|
|
241
241
|
},
|
|
242
242
|
description: {
|
|
243
243
|
description: ( localize(
|
|
244
|
-
|
|
244
|
+
5998,
|
|
245
245
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
246
246
|
)),
|
|
247
247
|
type: "string"
|
|
248
248
|
},
|
|
249
249
|
examples: {
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
5999,
|
|
252
252
|
"A list of representative example questions that are suitable for this chat command."
|
|
253
253
|
)),
|
|
254
254
|
type: "array"
|
|
@@ -399,9 +399,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
this.registeredWelcomeView = true;
|
|
402
|
-
const showExtensionLabel = ( localize(
|
|
402
|
+
const showExtensionLabel = ( localize(6000, "Show Extension"));
|
|
403
403
|
const mainMessage = ( localize(
|
|
404
|
-
|
|
404
|
+
6001,
|
|
405
405
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
406
406
|
this.productService.nameLong
|
|
407
407
|
));
|
|
@@ -437,7 +437,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
437
437
|
dispose: () => {}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const headers = [( localize(
|
|
440
|
+
const headers = [( localize(6002, "Name")), ( localize(6003, "Full Name")), ( localize(6004, "Description")), ( localize(6005, "Commands"))];
|
|
441
441
|
const rows = ( nonDefaultContributions.map(d => {
|
|
442
442
|
return [
|
|
443
443
|
"@" + d.name,
|
|
@@ -457,7 +457,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
457
457
|
}
|
|
458
458
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
459
459
|
id: "chatParticipants",
|
|
460
|
-
label: ( localize(
|
|
460
|
+
label: ( localize(6006, "Chat Participants")),
|
|
461
461
|
access: {
|
|
462
462
|
canToggle: false
|
|
463
463
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
4
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
@@ -7,6 +8,14 @@ import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
7
8
|
import { ISCMService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
8
9
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
9
10
|
import { IExportableRepoData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
11
|
+
/**
|
|
12
|
+
* Generates a unified diff string compatible with `git apply`.
|
|
13
|
+
*
|
|
14
|
+
* Note: This implementation has a known limitation - if the only change between
|
|
15
|
+
* files is the presence/absence of a trailing newline (content otherwise identical),
|
|
16
|
+
* no diff will be generated because VS Code's diff algorithm treats the lines as equal.
|
|
17
|
+
*/
|
|
18
|
+
export declare function generateUnifiedDiff(fileService: IFileService, relPath: string, originalUri: URI | undefined, modifiedUri: URI, changeType: "added" | "modified" | "deleted" | "renamed"): Promise<string | undefined>;
|
|
10
19
|
/**
|
|
11
20
|
* Captures lightweight repository metadata (branch, commit, remote) from SCM providers.
|
|
12
21
|
* No file I/O or diff computation - reads only from already-loaded SCM observables.
|
|
@@ -127,13 +127,13 @@ let ChatRepoInfoContribution = class ChatRepoInfoContribution extends Disposable
|
|
|
127
127
|
const registry = ( Registry.as(Extensions.Configuration));
|
|
128
128
|
registry.registerConfiguration({
|
|
129
129
|
id: "chatRepoInfo",
|
|
130
|
-
title: ( localize(
|
|
130
|
+
title: ( localize(6007, "Chat Repository Info")),
|
|
131
131
|
type: "object",
|
|
132
132
|
properties: {
|
|
133
133
|
[ChatConfiguration.RepoInfoEnabled]: {
|
|
134
134
|
type: "boolean",
|
|
135
135
|
description: ( localize(
|
|
136
|
-
|
|
136
|
+
6008,
|
|
137
137
|
"Controls whether lightweight repository metadata (branch, commit, remotes) is captured when a chat request is submitted for internal diagnostics."
|
|
138
138
|
)),
|
|
139
139
|
default: false
|
|
@@ -50,7 +50,7 @@ async function maybeEnableAuthExtension(extensionsWorkbenchService, logService)
|
|
|
50
50
|
);
|
|
51
51
|
try {
|
|
52
52
|
await extensionsWorkbenchService.setEnablement([providerExtension], EnablementState.EnabledGlobally);
|
|
53
|
-
await extensionsWorkbenchService.updateRunningExtensions(( localize(
|
|
53
|
+
await extensionsWorkbenchService.updateRunningExtensions(( localize(6060, "Enabling GitHub Authentication")));
|
|
54
54
|
return true;
|
|
55
55
|
} catch (error) {
|
|
56
56
|
logService.error(
|
|
@@ -217,7 +217,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
217
217
|
registerActions(context, requests, controller) {
|
|
218
218
|
class ChatSetupTriggerAction extends Action2 {
|
|
219
219
|
static {
|
|
220
|
-
this.CHAT_SETUP_ACTION_LABEL = ( localize2(
|
|
220
|
+
this.CHAT_SETUP_ACTION_LABEL = ( localize2(6061, "Use AI Features with Copilot for free..."));
|
|
221
221
|
}
|
|
222
222
|
constructor() {
|
|
223
223
|
super({
|
|
@@ -262,8 +262,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
262
262
|
confirmed
|
|
263
263
|
} = await dialogService.confirm({
|
|
264
264
|
type: Severity.Error,
|
|
265
|
-
message: ( localize(
|
|
266
|
-
primaryButton: ( localize(
|
|
265
|
+
message: ( localize(6062, "Chat setup failed. Would you like to try again?")),
|
|
266
|
+
primaryButton: ( localize(6063, "Retry"))
|
|
267
267
|
});
|
|
268
268
|
if (confirmed) {
|
|
269
269
|
return Boolean(await commandService.executeCommand(CHAT_SETUP_ACTION_ID, mode, options));
|
|
@@ -297,7 +297,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: "workbench.action.chat.triggerSetupForceSignIn",
|
|
300
|
-
title: ( localize2(
|
|
300
|
+
title: ( localize2(6064, "Sign in to use AI features"))
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
async run(accessor) {
|
|
@@ -335,7 +335,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
335
335
|
constructor() {
|
|
336
336
|
super({
|
|
337
337
|
id: "workbench.action.chat.triggerSetupFromAccounts",
|
|
338
|
-
title: ( localize2(
|
|
338
|
+
title: ( localize2(6065, "Sign in to use AI features...")),
|
|
339
339
|
menu: {
|
|
340
340
|
id: MenuId.AccountsContext,
|
|
341
341
|
group: "2_copilot",
|
|
@@ -358,8 +358,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
358
358
|
constructor() {
|
|
359
359
|
super({
|
|
360
360
|
id: "workbench.action.chat.upgradePlan",
|
|
361
|
-
title: ( localize2(
|
|
362
|
-
category: ( localize2(
|
|
361
|
+
title: ( localize2(6066, "Upgrade to GitHub Copilot Pro")),
|
|
362
|
+
category: ( localize2(6067, "Chat")),
|
|
363
363
|
f1: true,
|
|
364
364
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
365
365
|
ChatContextKeys.Entitlement.canSignUp,
|
|
@@ -400,8 +400,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
400
400
|
constructor() {
|
|
401
401
|
super({
|
|
402
402
|
id: "workbench.action.chat.manageOverages",
|
|
403
|
-
title: ( localize2(
|
|
404
|
-
category: ( localize2(
|
|
403
|
+
title: ( localize2(6068, "Manage GitHub Copilot Overages")),
|
|
404
|
+
category: ( localize2(6067, "Chat")),
|
|
405
405
|
f1: true,
|
|
406
406
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
407
407
|
ChatContextKeys.Entitlement.planPro,
|
|
@@ -470,7 +470,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
470
470
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
471
471
|
command: {
|
|
472
472
|
id: "chat.internal.explain",
|
|
473
|
-
title: ( localize(
|
|
473
|
+
title: ( localize(6069, "Explain"))
|
|
474
474
|
},
|
|
475
475
|
group: "1_chat",
|
|
476
476
|
order: 4,
|
|
@@ -479,7 +479,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
479
479
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
480
480
|
command: {
|
|
481
481
|
id: "chat.internal.fix",
|
|
482
|
-
title: ( localize(
|
|
482
|
+
title: ( localize(6070, "Fix"))
|
|
483
483
|
},
|
|
484
484
|
group: "1_chat",
|
|
485
485
|
order: 5,
|
|
@@ -488,7 +488,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
488
488
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
489
489
|
command: {
|
|
490
490
|
id: "chat.internal.review",
|
|
491
|
-
title: ( localize(
|
|
491
|
+
title: ( localize(6071, "Code Review"))
|
|
492
492
|
},
|
|
493
493
|
group: "1_chat",
|
|
494
494
|
order: 6,
|
|
@@ -657,7 +657,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
657
657
|
}
|
|
658
658
|
await this.extensionsWorkbenchService.setEnablement([defaultChatExtension], state);
|
|
659
659
|
await this.extensionsWorkbenchService.updateRunningExtensions(
|
|
660
|
-
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(
|
|
660
|
+
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(6072, "Enabling AI features")) : ( localize(6073, "Disabling AI features"))
|
|
661
661
|
);
|
|
662
662
|
}
|
|
663
663
|
maybeHideAuxiliaryBar() {
|
|
@@ -675,7 +675,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
675
675
|
this.ID = "workbench.action.chat.hideSetup";
|
|
676
676
|
}
|
|
677
677
|
static {
|
|
678
|
-
this.TITLE = ( localize2(
|
|
678
|
+
this.TITLE = ( localize2(6074, "Learn How to Hide AI Features"));
|
|
679
679
|
}
|
|
680
680
|
constructor() {
|
|
681
681
|
super({
|
|
@@ -106,7 +106,7 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
async setup(options = {}) {
|
|
108
108
|
const watch = ( new StopWatch(false));
|
|
109
|
-
const title = ( localize(
|
|
109
|
+
const title = ( localize(6075, "Getting chat ready..."));
|
|
110
110
|
const badge = this.activityService.showViewContainerActivity(ChatViewContainerId, {
|
|
111
111
|
badge: ( new ProgressBadge(() => title))
|
|
112
112
|
});
|
|
@@ -182,12 +182,12 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
182
182
|
} = await this.dialogService.confirm({
|
|
183
183
|
type: Severity.Error,
|
|
184
184
|
message: ( localize(
|
|
185
|
-
|
|
185
|
+
6076,
|
|
186
186
|
"Failed to sign in to {0}. Would you like to try again?",
|
|
187
187
|
this.defaultAccountService.getDefaultAccountAuthenticationProvider().name
|
|
188
188
|
)),
|
|
189
|
-
detail: ( localize(
|
|
190
|
-
primaryButton: ( localize(
|
|
189
|
+
detail: ( localize(6077, "You must be signed in to use AI features.")),
|
|
190
|
+
primaryButton: ( localize(6078, "Retry"))
|
|
191
191
|
});
|
|
192
192
|
if (confirmed) {
|
|
193
193
|
return this.signIn(options);
|
|
@@ -268,11 +268,11 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
268
268
|
} = await this.dialogService.confirm({
|
|
269
269
|
type: Severity.Error,
|
|
270
270
|
message: ( localize(
|
|
271
|
-
|
|
271
|
+
6079,
|
|
272
272
|
"An error occurred while setting up chat. Would you like to try again?"
|
|
273
273
|
)),
|
|
274
274
|
detail: error && !isCancellationError(error) ? toErrorMessage(error) : undefined,
|
|
275
|
-
primaryButton: ( localize(
|
|
275
|
+
primaryButton: ( localize(6078, "Retry"))
|
|
276
276
|
});
|
|
277
277
|
if (confirmed) {
|
|
278
278
|
return this.doInstallWithRetry();
|
|
@@ -350,8 +350,8 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
350
350
|
}
|
|
351
351
|
let isSingleWord = false;
|
|
352
352
|
const result = await this.quickInputService.input({
|
|
353
|
-
prompt: ( localize(
|
|
354
|
-
placeHolder: ( localize(
|
|
353
|
+
prompt: ( localize(6080, "What is your {0} instance?", defaultChat.provider.enterprise.name)),
|
|
354
|
+
placeHolder: ( localize(6081, "i.e. \"octocat\" or \"https://octocat.ghe.com\"...")),
|
|
355
355
|
ignoreFocusLost: true,
|
|
356
356
|
value: uri,
|
|
357
357
|
validateInput: async value => {
|
|
@@ -362,14 +362,14 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
362
362
|
if (domainRegEx.test(value)) {
|
|
363
363
|
isSingleWord = true;
|
|
364
364
|
return {
|
|
365
|
-
content: ( localize(
|
|
365
|
+
content: ( localize(6082, "Will resolve to {0}", `https://${value}.ghe.com`)),
|
|
366
366
|
severity: Severity.Info
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
if (!fullUriRegEx.test(value)) {
|
|
370
370
|
return {
|
|
371
371
|
content: ( localize(
|
|
372
|
-
|
|
372
|
+
6083,
|
|
373
373
|
"You must enter a valid {0} instance (i.e. \"octocat\" or \"https://octocat.ghe.com\")",
|
|
374
374
|
defaultChat.provider.enterprise.name
|
|
375
375
|
)),
|
|
@@ -62,8 +62,8 @@ let GrowthSessionController = class GrowthSessionController extends Disposable {
|
|
|
62
62
|
}
|
|
63
63
|
return [{
|
|
64
64
|
resource: GrowthSessionController_1.SESSION_URI,
|
|
65
|
-
label: ( localize(
|
|
66
|
-
description: ( localize(
|
|
65
|
+
label: ( localize(6084, "Try Copilot")),
|
|
66
|
+
description: ( localize(6085, "GitHub Copilot is available. Try it for free.")),
|
|
67
67
|
status: ChatSessionStatus.NeedsInput,
|
|
68
68
|
iconPath: Codicon.lightbulb,
|
|
69
69
|
timing: {
|
|
@@ -101,9 +101,9 @@ class GrowthSessionOpenerParticipant {
|
|
|
101
101
|
query: "",
|
|
102
102
|
isPartialQuery: true,
|
|
103
103
|
previousRequests: [{
|
|
104
|
-
request: ( localize(
|
|
104
|
+
request: ( localize(6086, "Tell me about GitHub Copilot!")),
|
|
105
105
|
response: ( localize(
|
|
106
|
-
|
|
106
|
+
6087,
|
|
107
107
|
"Welcome to GitHub Copilot, your AI coding assistant! Here are some things you can try:\n\n- ๐ *\"Help me debug this error\"* โ paste an error message and get a fix\n- ๐งช *\"Write tests for my function\"* โ select code and ask for unit tests\n- ๐ก *\"Explain this code\"* โ highlight something unfamiliar and ask what it does\n- ๐ *\"Scaffold a REST API\"* โ describe what you want and let Agent mode build it\n- ๐จ *\"Refactor this to be more readable\"* โ select messy code and clean it up\n\nType anything below to get started!"
|
|
108
108
|
))
|
|
109
109
|
}]
|
|
@@ -124,8 +124,8 @@ registerAction2(class ResetGrowthSessionAction extends Action2 {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: "workbench.action.chat.resetGrowthSession",
|
|
127
|
-
title: ( localize2(
|
|
128
|
-
category: ( localize2(
|
|
127
|
+
title: ( localize2(6088, "Reset Growth Session Notification")),
|
|
128
|
+
category: ( localize2(6089, "Developer")),
|
|
129
129
|
f1: true
|
|
130
130
|
});
|
|
131
131
|
}
|