@codingame/monaco-vscode-api 29.1.0 → 30.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/missing-services.js +39 -16
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +5 -5
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +19 -7
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +81 -15
- package/vscode/src/vs/base/common/codicons.d.ts +4 -0
- package/vscode/src/vs/base/common/codicons.js +3 -1
- package/vscode/src/vs/base/common/glob.js +5 -1
- package/vscode/src/vs/base/common/performance.d.ts +4 -0
- package/vscode/src/vs/base/common/performance.js +40 -17
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +4 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +13 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +106 -74
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +14 -11
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -0
- package/vscode/src/vs/platform/actions/common/actions.js +9 -0
- package/vscode/src/vs/platform/browserView/common/browserView.d.ts +34 -7
- package/vscode/src/vs/platform/editor/common/editor.d.ts +29 -4
- package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environmentService.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +3 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +3 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +2 -2
- package/vscode/src/vs/platform/label/common/label.d.ts +6 -0
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.d.ts +11 -2
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +6 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +14 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +5 -3
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +6 -2
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.d.ts +4 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.service.d.ts +6 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.service.js +6 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +5 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +4 -0
- package/vscode/src/vs/platform/theme/common/colorUtils.js +9 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +21 -1
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +57 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +34 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +5 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +32 -2
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +11 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +24 -2
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +35 -5
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +70 -4
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +8 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +156 -167
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +77 -77
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +161 -161
- package/vscode/src/vs/workbench/common/views.d.ts +0 -6
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +154 -154
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +65 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +26 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +21 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +21 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1409 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +87 -83
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/common/chatPerf.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPerf.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +9 -12
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +1 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +45 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +17 -4
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +48 -5
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +46 -18
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.service.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +11 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +54 -20
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +3 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +10 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +36 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +3 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +2 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +78 -88
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +16 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +28 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +1 -7
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.service.d.ts +2 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +148 -148
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +76 -76
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +34 -34
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +40 -40
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +20 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +30 -13
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +32 -5
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +43 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +13 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +10 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +10 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +134 -91
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +4 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +27 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +9 -0
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +8 -4
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +0 -4
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +19 -1
- package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +168 -0
- package/vscode-dts/vscode.proposed.d.ts +1 -0
- package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -746
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -300
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1963
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -314
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -886
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -118
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -71
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -313
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -265
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -185
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -69
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -933
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -643
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -197
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -539
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
|
@@ -21,6 +21,7 @@ import { ILogService } from '../../../../../platform/log/common/log.service.js';
|
|
|
21
21
|
import { CellUri } from '../../../notebook/common/notebookCommon.js';
|
|
22
22
|
import { IChatRequestVariableEntry, isStringVariableEntry, isImplicitVariableEntry, isStringImplicitContextValue } from '../attachments/chatVariableEntries.js';
|
|
23
23
|
import { migrateLegacyTerminalToolSpecificData } from '../chat.js';
|
|
24
|
+
import { markChat, ChatPerfMark } from '../chatPerf.js';
|
|
24
25
|
import { IChatToolInvocation, ChatResponseClearToPreviousToolInvocationReason, ResponseModelState, ElicitationState, isIUsedContext, ChatRequestQueueKind } from '../chatService/chatService.js';
|
|
25
26
|
import { IChatService } from '../chatService/chatService.service.js';
|
|
26
27
|
import { ChatAgentLocation, ChatModeKind } from '../constants.js';
|
|
@@ -153,6 +154,46 @@ class AbstractResponse {
|
|
|
153
154
|
}
|
|
154
155
|
return this._markdownContent;
|
|
155
156
|
}
|
|
157
|
+
getFinalResponse() {
|
|
158
|
+
const parts = this._responseParts;
|
|
159
|
+
let i = parts.length - 1;
|
|
160
|
+
while (i >= 0) {
|
|
161
|
+
const part = parts[i];
|
|
162
|
+
if (part.kind === "markdownContent" || part.kind === "markdownVuln") {
|
|
163
|
+
if (part.content.value.length > 0) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
} else if (part.kind === "inlineReference") {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
i--;
|
|
170
|
+
}
|
|
171
|
+
if (i < 0) {
|
|
172
|
+
return "";
|
|
173
|
+
}
|
|
174
|
+
const end = i;
|
|
175
|
+
while (i >= 0) {
|
|
176
|
+
const part = parts[i];
|
|
177
|
+
if (part.kind === "markdownContent" || part.kind === "markdownVuln" || part.kind === "inlineReference") {
|
|
178
|
+
i--;
|
|
179
|
+
} else {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const start = i + 1;
|
|
184
|
+
const segments = [];
|
|
185
|
+
for (let j = start; j <= end; j++) {
|
|
186
|
+
const part = parts[j];
|
|
187
|
+
if (part.kind === "inlineReference") {
|
|
188
|
+
segments.push(this.inlineRefToRepr(part));
|
|
189
|
+
} else if (part.kind === "markdownContent" || part.kind === "markdownVuln") {
|
|
190
|
+
if (part.content.value.length > 0) {
|
|
191
|
+
segments.push(part.content.value);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return segments.join("");
|
|
196
|
+
}
|
|
156
197
|
_invalidateRepr() {
|
|
157
198
|
this._responseRepr = undefined;
|
|
158
199
|
this._markdownContent = undefined;
|
|
@@ -259,7 +300,7 @@ class AbstractResponse {
|
|
|
259
300
|
blocks.push(currentBlockSegments.join(""));
|
|
260
301
|
}
|
|
261
302
|
if (hasEditGroupsAfterLastClear) {
|
|
262
|
-
blocks.push(( localize(
|
|
303
|
+
blocks.push(( localize(7292, "Made changes.")));
|
|
263
304
|
}
|
|
264
305
|
return blocks.join("\n\n");
|
|
265
306
|
}
|
|
@@ -365,12 +406,12 @@ class Response extends AbstractResponse {
|
|
|
365
406
|
if (progress.kind === "clearToPreviousToolInvocation") {
|
|
366
407
|
if (progress.reason === ChatResponseClearToPreviousToolInvocationReason.CopyrightContentRetry) {
|
|
367
408
|
this.clearToPreviousToolInvocation(( localize(
|
|
368
|
-
|
|
409
|
+
7293,
|
|
369
410
|
"Response cleared due to possible match to public code, retrying with modified prompt."
|
|
370
411
|
)));
|
|
371
412
|
} else if (progress.reason === ChatResponseClearToPreviousToolInvocationReason.FilteredContentRetry) {
|
|
372
413
|
this.clearToPreviousToolInvocation(( localize(
|
|
373
|
-
|
|
414
|
+
7294,
|
|
374
415
|
"Response cleared due to content safety filters, retrying with modified prompt."
|
|
375
416
|
)));
|
|
376
417
|
} else {
|
|
@@ -594,9 +635,6 @@ class ChatResponseModel extends Disposable {
|
|
|
594
635
|
get vote() {
|
|
595
636
|
return this._vote;
|
|
596
637
|
}
|
|
597
|
-
get voteDownReason() {
|
|
598
|
-
return this._voteDownReason;
|
|
599
|
-
}
|
|
600
638
|
get followups() {
|
|
601
639
|
return this._followups;
|
|
602
640
|
}
|
|
@@ -671,7 +709,6 @@ class ChatResponseModel extends Disposable {
|
|
|
671
709
|
}
|
|
672
710
|
this._timeSpentWaitingAccumulator = params.timeSpentWaiting || 0;
|
|
673
711
|
this._vote = params.vote;
|
|
674
|
-
this._voteDownReason = params.voteDownReason;
|
|
675
712
|
this._result = params.result;
|
|
676
713
|
this._followups = params.followups ? [...params.followups] : undefined;
|
|
677
714
|
this.isCompleteAddedRequest = params.isCompleteAddedRequest ?? false;
|
|
@@ -691,14 +728,14 @@ class ChatResponseModel extends Disposable {
|
|
|
691
728
|
return title ? (isMarkdownString(title) ? title.value : title) : undefined;
|
|
692
729
|
}
|
|
693
730
|
if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
694
|
-
return localize(
|
|
731
|
+
return localize(7295, "Approve tool result?");
|
|
695
732
|
}
|
|
696
733
|
}
|
|
697
734
|
if (part.kind === "confirmation" && !part.isUsed) {
|
|
698
735
|
return part.title;
|
|
699
736
|
}
|
|
700
737
|
if (part.kind === "questionCarousel" && !part.isUsed) {
|
|
701
|
-
return localize(
|
|
738
|
+
return localize(7296, "Answer questions to continue...");
|
|
702
739
|
}
|
|
703
740
|
if (part.kind === "elicitation2" && part.state.read(r) === ElicitationState.Pending) {
|
|
704
741
|
const title = part.title;
|
|
@@ -821,10 +858,6 @@ class ChatResponseModel extends Disposable {
|
|
|
821
858
|
this._vote = vote;
|
|
822
859
|
this._onDidChange.fire(defaultChatResponseModelChangeReason);
|
|
823
860
|
}
|
|
824
|
-
setVoteDownReason(reason) {
|
|
825
|
-
this._voteDownReason = reason;
|
|
826
|
-
this._onDidChange.fire(defaultChatResponseModelChangeReason);
|
|
827
|
-
}
|
|
828
861
|
setEditApplied(edit, editCount) {
|
|
829
862
|
if (!this.response.value.includes(edit)) {
|
|
830
863
|
return false;
|
|
@@ -860,7 +893,6 @@ class ChatResponseModel extends Disposable {
|
|
|
860
893
|
completedAt: Date.now()
|
|
861
894
|
} : modelState,
|
|
862
895
|
vote: this.vote,
|
|
863
|
-
voteDownReason: this.voteDownReason,
|
|
864
896
|
slashCommand: this.slashCommand,
|
|
865
897
|
usedContext: this.usedContext,
|
|
866
898
|
contentReferences: this.contentReferences,
|
|
@@ -962,14 +994,15 @@ class InputModel {
|
|
|
962
994
|
});
|
|
963
995
|
return {
|
|
964
996
|
contrib: value.contrib,
|
|
965
|
-
attachments: persistableAttachments,
|
|
997
|
+
attachments: ( persistableAttachments.map(IChatRequestVariableEntry.toExport)),
|
|
966
998
|
mode: value.mode,
|
|
967
999
|
selectedModel: value.selectedModel ? {
|
|
968
1000
|
identifier: value.selectedModel.identifier,
|
|
969
1001
|
metadata: value.selectedModel.metadata
|
|
970
1002
|
} : undefined,
|
|
971
1003
|
inputText: value.inputText,
|
|
972
|
-
selections: value.selections
|
|
1004
|
+
selections: value.selections,
|
|
1005
|
+
permissionLevel: value.permissionLevel
|
|
973
1006
|
};
|
|
974
1007
|
}
|
|
975
1008
|
}
|
|
@@ -1174,7 +1207,7 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
1174
1207
|
this._customTitle = isValidFullData ? initialData.customTitle : undefined;
|
|
1175
1208
|
const serializedInputState = initialModelProps.inputState || (isValidFullData && initialData.inputState ? initialData.inputState : undefined);
|
|
1176
1209
|
this.inputModel = ( new InputModel(serializedInputState && {
|
|
1177
|
-
attachments: serializedInputState.attachments,
|
|
1210
|
+
attachments: ( (serializedInputState.attachments ?? []).map(IChatRequestVariableEntry.fromExport)),
|
|
1178
1211
|
mode: serializedInputState.mode,
|
|
1179
1212
|
selectedModel: serializedInputState.selectedModel && {
|
|
1180
1213
|
identifier: serializedInputState.selectedModel.identifier,
|
|
@@ -1182,7 +1215,8 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
1182
1215
|
},
|
|
1183
1216
|
contrib: serializedInputState.contrib,
|
|
1184
1217
|
inputText: serializedInputState.inputText,
|
|
1185
|
-
selections: serializedInputState.selections
|
|
1218
|
+
selections: serializedInputState.selections,
|
|
1219
|
+
permissionLevel: serializedInputState.permissionLevel
|
|
1186
1220
|
}));
|
|
1187
1221
|
this.dataSerializer = dataRef?.serializer;
|
|
1188
1222
|
this._initialResponderUsername = initialData?.responderUsername;
|
|
@@ -1333,7 +1367,6 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
1333
1367
|
modelState,
|
|
1334
1368
|
vote: raw.vote,
|
|
1335
1369
|
timestamp: raw.timestamp,
|
|
1336
|
-
voteDownReason: raw.voteDownReason,
|
|
1337
1370
|
result,
|
|
1338
1371
|
followups: raw.followups,
|
|
1339
1372
|
restoredId: raw.responseId,
|
|
@@ -1494,6 +1527,7 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
1494
1527
|
codeBlockInfos: undefined
|
|
1495
1528
|
}));
|
|
1496
1529
|
this._requests.push(request);
|
|
1530
|
+
markChat(this.sessionResource, ChatPerfMark.RequestUiUpdated);
|
|
1497
1531
|
this._onDidChange.fire({
|
|
1498
1532
|
kind: "addRequest",
|
|
1499
1533
|
request
|
|
@@ -1704,7 +1738,7 @@ function getCodeCitationsMessage(citations) {
|
|
|
1704
1738
|
return "";
|
|
1705
1739
|
}
|
|
1706
1740
|
const licenseTypes = citations.reduce((set, c) => set.add(c.license), ( new Set()));
|
|
1707
|
-
const label = licenseTypes.size === 1 ? ( localize(
|
|
1741
|
+
const label = licenseTypes.size === 1 ? ( localize(7297, "Similar code found with 1 license type", licenseTypes.size)) : ( localize(7298, "Similar code found with {0} license types", licenseTypes.size));
|
|
1708
1742
|
return label;
|
|
1709
1743
|
}
|
|
1710
1744
|
function serializeSendOptions(options) {
|
package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js
CHANGED
|
@@ -60,7 +60,7 @@ class ChatToolInvocation {
|
|
|
60
60
|
if (startOptions.startInStreaming) {
|
|
61
61
|
defaultMessage = toolData.displayName;
|
|
62
62
|
} else if (startOptions.startInCancelled) {
|
|
63
|
-
defaultMessage = startOptions.cancelReasonMessage ?? ( localize(
|
|
63
|
+
defaultMessage = startOptions.cancelReasonMessage ?? ( localize(7299, "Tool \"{0}\" was denied", toolData.displayName));
|
|
64
64
|
}
|
|
65
65
|
this.invocationMessage = preparedInvocation?.invocationMessage ?? defaultMessage;
|
|
66
66
|
this.pastTenseMessage = preparedInvocation?.pastTenseMessage;
|
|
@@ -6,7 +6,7 @@ import { ThemeIcon } from "../../../../../base/common/themables.js";
|
|
|
6
6
|
import { URI } from "../../../../../base/common/uri.js";
|
|
7
7
|
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
8
8
|
import { IChatRequestVariableEntry } from "../attachments/chatVariableEntries.js";
|
|
9
|
-
import { ChatAgentVoteDirection,
|
|
9
|
+
import { ChatAgentVoteDirection, ChatRequestQueueKind, IChatCodeCitation, IChatContentReference, IChatDisabledClaudeHooksPart, IChatFollowup, IChatMcpServersStarting, IChatProgressMessage, IChatQuestionCarousel, IChatResponseErrorDetails, IChatTask, IChatUsedContext } from "../chatService/chatService.js";
|
|
10
10
|
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "../participants/chatAgents.js";
|
|
11
11
|
import { IChatAgentNameService } from "../participants/chatAgents.service.js";
|
|
12
12
|
import { IParsedChatRequest } from "../requestParser/chatParserTypes.js";
|
|
@@ -63,6 +63,7 @@ export interface IChatRequestViewModel {
|
|
|
63
63
|
readonly slashCommand: IChatAgentCommand | undefined;
|
|
64
64
|
readonly agentOrSlashCommandDetected: boolean;
|
|
65
65
|
readonly shouldBeBlocked: IObservable<boolean>;
|
|
66
|
+
readonly attachedContext?: readonly IChatRequestVariableEntry[];
|
|
66
67
|
readonly modelId?: string;
|
|
67
68
|
readonly timestamp: number;
|
|
68
69
|
/** The kind of pending request, or undefined if not pending */
|
|
@@ -160,7 +161,6 @@ export interface IChatResponseViewModel {
|
|
|
160
161
|
readonly isCanceled: boolean;
|
|
161
162
|
readonly isStale: boolean;
|
|
162
163
|
readonly vote: ChatAgentVoteDirection | undefined;
|
|
163
|
-
readonly voteDownReason: ChatAgentVoteDownReason | undefined;
|
|
164
164
|
readonly replyFollowups?: IChatFollowup[];
|
|
165
165
|
readonly errorDetails?: IChatResponseErrorDetails;
|
|
166
166
|
readonly result?: IChatAgentResult;
|
|
@@ -170,7 +170,6 @@ export interface IChatResponseViewModel {
|
|
|
170
170
|
renderData?: IChatResponseRenderData;
|
|
171
171
|
currentRenderedHeight: number | undefined;
|
|
172
172
|
setVote(vote: ChatAgentVoteDirection): void;
|
|
173
|
-
setVoteDownReason(reason: ChatAgentVoteDownReason | undefined): void;
|
|
174
173
|
usedReferencesExpanded?: boolean;
|
|
175
174
|
vulnerabilitiesListExpanded: boolean;
|
|
176
175
|
setEditApplied(edit: IChatTextEditGroup, editCount: number): void;
|
|
@@ -239,6 +238,7 @@ export declare class ChatRequestViewModel implements IChatRequestViewModel {
|
|
|
239
238
|
get slashCommand(): IChatAgentCommand | undefined;
|
|
240
239
|
get agentOrSlashCommandDetected(): boolean;
|
|
241
240
|
currentRenderedHeight: number | undefined;
|
|
241
|
+
get attachedContext(): IChatRequestVariableEntry[] | undefined;
|
|
242
242
|
get modelId(): string | undefined;
|
|
243
243
|
get timestamp(): number;
|
|
244
244
|
get pendingKind(): ChatRequestQueueKind | undefined;
|
|
@@ -274,7 +274,6 @@ export declare class ChatResponseViewModel extends Disposable implements IChatRe
|
|
|
274
274
|
get result(): IChatAgentResult | undefined;
|
|
275
275
|
get errorDetails(): IChatResponseErrorDetails | undefined;
|
|
276
276
|
get vote(): ChatAgentVoteDirection | undefined;
|
|
277
|
-
get voteDownReason(): ChatAgentVoteDownReason | undefined;
|
|
278
277
|
get requestId(): string;
|
|
279
278
|
get isStale(): boolean;
|
|
280
279
|
get isLast(): boolean;
|
|
@@ -290,6 +289,5 @@ export declare class ChatResponseViewModel extends Disposable implements IChatRe
|
|
|
290
289
|
get contentUpdateTimings(): IChatStreamStats | undefined;
|
|
291
290
|
constructor(_model: IChatResponseModel, session: IChatViewModel, instantiationService: IInstantiationService, chatAgentNameService: IChatAgentNameService);
|
|
292
291
|
setVote(vote: ChatAgentVoteDirection): void;
|
|
293
|
-
setVoteDownReason(reason: ChatAgentVoteDownReason | undefined): void;
|
|
294
292
|
setEditApplied(edit: IChatTextEditGroup, editCount: number): void;
|
|
295
293
|
}
|
|
@@ -221,6 +221,9 @@ class ChatRequestViewModel {
|
|
|
221
221
|
get agentOrSlashCommandDetected() {
|
|
222
222
|
return this._model.response?.agentOrSlashCommandDetected ?? false;
|
|
223
223
|
}
|
|
224
|
+
get attachedContext() {
|
|
225
|
+
return this._model.attachedContext;
|
|
226
|
+
}
|
|
224
227
|
get modelId() {
|
|
225
228
|
return this._model.modelId;
|
|
226
229
|
}
|
|
@@ -310,9 +313,6 @@ let ChatResponseViewModel = class ChatResponseViewModel extends Disposable {
|
|
|
310
313
|
get vote() {
|
|
311
314
|
return this._model.vote;
|
|
312
315
|
}
|
|
313
|
-
get voteDownReason() {
|
|
314
|
-
return this._model.voteDownReason;
|
|
315
|
-
}
|
|
316
316
|
get requestId() {
|
|
317
317
|
return this._model.requestId;
|
|
318
318
|
}
|
|
@@ -370,10 +370,6 @@ let ChatResponseViewModel = class ChatResponseViewModel extends Disposable {
|
|
|
370
370
|
this._modelChangeCount++;
|
|
371
371
|
this._model.setVote(vote);
|
|
372
372
|
}
|
|
373
|
-
setVoteDownReason(reason) {
|
|
374
|
-
this._modelChangeCount++;
|
|
375
|
-
this._model.setVoteDownReason(reason);
|
|
376
|
-
}
|
|
377
373
|
setEditApplied(edit, editCount) {
|
|
378
374
|
this._modelChangeCount++;
|
|
379
375
|
this._model.setEditApplied(edit, editCount);
|
|
@@ -13,6 +13,7 @@ import { ExtensionIdentifier } from '../../../../../platform/extensions/common/e
|
|
|
13
13
|
import { ChatContextKeys } from '../actions/chatContextKeys.js';
|
|
14
14
|
import { ChatAgentLocation, ChatModeKind, ChatConfiguration } from '../constants.js';
|
|
15
15
|
import { ILanguageModelsService } from '../languageModels.service.js';
|
|
16
|
+
import { markChat, ChatPerfMark } from '../chatPerf.js';
|
|
16
17
|
|
|
17
18
|
let ChatAgentService = class ChatAgentService extends Disposable {
|
|
18
19
|
static {
|
|
@@ -214,11 +215,14 @@ let ChatAgentService = class ChatAgentService extends Disposable {
|
|
|
214
215
|
return this.getAgentsByName(agent.name).filter(a => a.extensionId.value !== agent.extensionId.value).length > 0;
|
|
215
216
|
}
|
|
216
217
|
async invokeAgent(id, request, progress, history, token) {
|
|
218
|
+
markChat(request.sessionResource, ChatPerfMark.AgentWillInvoke);
|
|
217
219
|
const data = this._agents.get(id);
|
|
218
220
|
if (!data?.impl) {
|
|
219
221
|
throw ( new Error(`No activated agent with id "${id}"`));
|
|
220
222
|
}
|
|
221
|
-
|
|
223
|
+
const result = await data.impl.invoke(request, progress, history, token);
|
|
224
|
+
markChat(request.sessionResource, ChatPerfMark.AgentDidInvoke);
|
|
225
|
+
return result;
|
|
222
226
|
}
|
|
223
227
|
setRequestTools(id, requestId, tools) {
|
|
224
228
|
const data = this._agents.get(id);
|
|
@@ -11,6 +11,12 @@ export declare const IAgentPluginRepositoryService: import("../../../../../platf
|
|
|
11
11
|
export interface IAgentPluginRepositoryService {
|
|
12
12
|
readonly _serviceBrand: undefined;
|
|
13
13
|
/**
|
|
14
|
+
* Root directory where agent plugins are stored on disk.
|
|
15
|
+
* On native this is `~/{dataFolderName}/agent-plugins/`; on web it
|
|
16
|
+
* falls back to `{cacheHome}/agentPlugins/`.
|
|
17
|
+
*/
|
|
18
|
+
readonly agentPluginsHome: URI;
|
|
19
|
+
/**
|
|
14
20
|
* Returns the local cache URI for a marketplace repository reference.
|
|
15
21
|
* Uses a storage-backed marketplace index when available.
|
|
16
22
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IMarketplacePlugin } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService";
|
|
1
2
|
export interface IUpdateAllPluginsOptions {
|
|
2
3
|
/**
|
|
3
4
|
* When `true`, also re-installs npm/pip packages that have no pinned
|
|
@@ -18,3 +19,20 @@ export interface IUpdateAllPluginsResult {
|
|
|
18
19
|
/** Names of plugins/marketplaces that failed to update. */
|
|
19
20
|
readonly failedNames: readonly string[];
|
|
20
21
|
}
|
|
22
|
+
export interface IInstallPluginFromSourceOptions {
|
|
23
|
+
/**
|
|
24
|
+
* When set, targets a specific plugin by name within the marketplace
|
|
25
|
+
* instead of installing all or prompting the user. The matched plugin
|
|
26
|
+
* is installed and returned in the result.
|
|
27
|
+
*/
|
|
28
|
+
readonly plugin?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IInstallPluginFromSourceResult {
|
|
31
|
+
readonly success: boolean;
|
|
32
|
+
readonly message?: string;
|
|
33
|
+
/**
|
|
34
|
+
* When {@link IInstallPluginFromSourceOptions.plugin} is set and the
|
|
35
|
+
* plugin was found, this contains the discovered marketplace plugin.
|
|
36
|
+
*/
|
|
37
|
+
readonly matchedPlugin?: IMarketplacePlugin;
|
|
38
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../../base/common/cancellation.js";
|
|
2
2
|
import { URI } from "../../../../../base/common/uri.js";
|
|
3
|
-
import { IUpdateAllPluginsOptions, IUpdateAllPluginsResult } from "./pluginInstallService.js";
|
|
3
|
+
import { IInstallPluginFromSourceOptions, IInstallPluginFromSourceResult, IUpdateAllPluginsOptions, IUpdateAllPluginsResult } from "./pluginInstallService.js";
|
|
4
4
|
import { IMarketplacePlugin } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService";
|
|
5
5
|
export declare const IPluginInstallService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IPluginInstallService>;
|
|
6
6
|
export interface IPluginInstallService {
|
|
@@ -15,8 +15,11 @@ export interface IPluginInstallService {
|
|
|
15
15
|
* GitHub shorthand (`owner/repo`) or a full git clone URL. Clones the
|
|
16
16
|
* repository, reads marketplace metadata to discover plugins, and
|
|
17
17
|
* registers the selected plugin.
|
|
18
|
+
*
|
|
19
|
+
* When {@link IInstallPluginFromSourceOptions.plugin} is set, targets
|
|
20
|
+
* a specific plugin, installs it, and returns it.
|
|
18
21
|
*/
|
|
19
|
-
installPluginFromSource(source: string): Promise<void>;
|
|
22
|
+
installPluginFromSource(source: string, options?: IInstallPluginFromSourceOptions): Promise<void>;
|
|
20
23
|
/**
|
|
21
24
|
* Synchronously validates the format of a plugin source string.
|
|
22
25
|
* Returns an error message if the format is invalid, or undefined if valid.
|
|
@@ -26,11 +29,12 @@ export interface IPluginInstallService {
|
|
|
26
29
|
* Installs a plugin from an already-validated source string.
|
|
27
30
|
* Handles trust, cloning, scanning, and registration. Returns a result
|
|
28
31
|
* with an optional error message (e.g. no plugins found).
|
|
32
|
+
*
|
|
33
|
+
* When {@link IInstallPluginFromSourceOptions.plugin} is set, targets
|
|
34
|
+
* a specific plugin, installs it, and returns it in
|
|
35
|
+
* {@link IInstallPluginFromSourceResult.matchedPlugin}.
|
|
29
36
|
*/
|
|
30
|
-
installPluginFromValidatedSource(source: string): Promise<
|
|
31
|
-
success: boolean;
|
|
32
|
-
message?: string;
|
|
33
|
-
}>;
|
|
37
|
+
installPluginFromValidatedSource(source: string, options?: IInstallPluginFromSourceOptions): Promise<IInstallPluginFromSourceResult>;
|
|
34
38
|
/**
|
|
35
39
|
* Pulls the latest changes for an already-cloned marketplace repository.
|
|
36
40
|
*/
|
package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export interface IPluginMarketplaceService {
|
|
|
34
34
|
getMarketplacePluginMetadata(pluginUri: URI): IMarketplacePlugin | undefined;
|
|
35
35
|
addInstalledPlugin(pluginUri: URI, plugin: IMarketplacePlugin): void;
|
|
36
36
|
removeInstalledPlugin(pluginUri: URI): void;
|
|
37
|
-
setInstalledPluginEnabled(pluginUri: URI, enabled: boolean): void;
|
|
38
37
|
/** Returns whether the given marketplace has been explicitly trusted by the user. */
|
|
39
38
|
isMarketplaceTrusted(ref: IMarketplaceReference): boolean;
|
|
40
39
|
/** Records that the user trusts the given marketplace, persisted permanently. */
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { IPromptPath } from "./service/promptsService.js";
|
|
|
17
17
|
import { IPromptsService } from "./service/promptsService.service.js";
|
|
18
18
|
import { ChatModeKind } from "../constants.js";
|
|
19
19
|
import { UserSelectedTools } from "../participants/chatAgents.js";
|
|
20
|
+
import { IAgentPluginService } from "../plugins/agentPluginService.service.js";
|
|
20
21
|
export type InstructionsCollectionEvent = {
|
|
21
22
|
applyingInstructionsCount: number;
|
|
22
23
|
referencedInstructionsCount: number;
|
|
@@ -43,11 +44,13 @@ export declare class ComputeAutomaticInstructions {
|
|
|
43
44
|
private readonly _remoteAgentService;
|
|
44
45
|
private readonly _telemetryService;
|
|
45
46
|
private readonly _languageModelToolsService;
|
|
47
|
+
private readonly _agentPluginService;
|
|
46
48
|
private _parseResults;
|
|
47
|
-
constructor(_modeKind: ChatModeKind, _enabledTools: UserSelectedTools | undefined, _enabledSubagents: (readonly string[]) | undefined, _sessionResource: URI | undefined, _promptsService: IPromptsService, _logService: ILogService, _labelService: ILabelService, _configurationService: IConfigurationService, _contextKeyService: IContextKeyService, _workspaceService: IWorkspaceContextService, _fileService: IFileService, _remoteAgentService: IRemoteAgentService, _telemetryService: ITelemetryService, _languageModelToolsService: ILanguageModelToolsService);
|
|
49
|
+
constructor(_modeKind: ChatModeKind, _enabledTools: UserSelectedTools | undefined, _enabledSubagents: (readonly string[]) | undefined, _sessionResource: URI | undefined, _promptsService: IPromptsService, _logService: ILogService, _labelService: ILabelService, _configurationService: IConfigurationService, _contextKeyService: IContextKeyService, _workspaceService: IWorkspaceContextService, _fileService: IFileService, _remoteAgentService: IRemoteAgentService, _telemetryService: ITelemetryService, _languageModelToolsService: ILanguageModelToolsService, _agentPluginService: IAgentPluginService);
|
|
48
50
|
private _parseInstructionsFile;
|
|
49
51
|
collect(variables: ChatRequestVariableSet, token: CancellationToken): Promise<void>;
|
|
50
52
|
private sendTelemetry;
|
|
53
|
+
private _logSkillLoadedTelemetry;
|
|
51
54
|
/** public for testing */
|
|
52
55
|
addApplyingInstructions(instructionFiles: readonly IPromptPath[], context: {
|
|
53
56
|
files: ResourceSet;
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js
CHANGED
|
@@ -24,6 +24,8 @@ import { IPromptsService } from './service/promptsService.service.js';
|
|
|
24
24
|
import { AGENT_DEBUG_LOG_ENABLED_SETTING, AGENT_DEBUG_LOG_FILE_LOGGING_ENABLED_SETTING, TROUBLESHOOT_SKILL_PATH } from './promptTypes.js';
|
|
25
25
|
import { OffsetRange } from '../../../../../editor/common/core/ranges/offsetRange.js';
|
|
26
26
|
import { ChatModeKind, ChatConfiguration } from '../constants.js';
|
|
27
|
+
import { hash } from '../../../../../base/common/hash.js';
|
|
28
|
+
import { IAgentPluginService } from '../plugins/agentPluginService.service.js';
|
|
27
29
|
|
|
28
30
|
function newInstructionsCollectionEvent() {
|
|
29
31
|
return {
|
|
@@ -52,7 +54,8 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
52
54
|
_fileService,
|
|
53
55
|
_remoteAgentService,
|
|
54
56
|
_telemetryService,
|
|
55
|
-
_languageModelToolsService
|
|
57
|
+
_languageModelToolsService,
|
|
58
|
+
_agentPluginService
|
|
56
59
|
) {
|
|
57
60
|
this._modeKind = _modeKind;
|
|
58
61
|
this._enabledTools = _enabledTools;
|
|
@@ -68,6 +71,7 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
68
71
|
this._remoteAgentService = _remoteAgentService;
|
|
69
72
|
this._telemetryService = _telemetryService;
|
|
70
73
|
this._languageModelToolsService = _languageModelToolsService;
|
|
74
|
+
this._agentPluginService = _agentPluginService;
|
|
71
75
|
this._parseResults = ( new ResourceMap());
|
|
72
76
|
}
|
|
73
77
|
async _parseInstructionsFile(uri, token) {
|
|
@@ -107,6 +111,31 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
107
111
|
telemetryEvent.totalInstructionsCount = telemetryEvent.agentInstructionsCount + telemetryEvent.referencedInstructionsCount + telemetryEvent.applyingInstructionsCount + telemetryEvent.listedInstructionsCount;
|
|
108
112
|
this._telemetryService.publicLog2("instructionsCollected", telemetryEvent);
|
|
109
113
|
}
|
|
114
|
+
async _logSkillLoadedTelemetry(skills) {
|
|
115
|
+
try {
|
|
116
|
+
const pluginByUri = ( new ResourceMap());
|
|
117
|
+
const allPlugins = this._agentPluginService.plugins.get();
|
|
118
|
+
for (const plugin of allPlugins) {
|
|
119
|
+
pluginByUri.set(plugin.uri, plugin);
|
|
120
|
+
}
|
|
121
|
+
const hashOrEmpty = value => {
|
|
122
|
+
return value !== undefined ? String(hash(value)) : "";
|
|
123
|
+
};
|
|
124
|
+
for (const skill of skills) {
|
|
125
|
+
const skillPlugin = skill.pluginUri ? pluginByUri.get(skill.pluginUri) : undefined;
|
|
126
|
+
this._telemetryService.publicLog2("skillLoadedIntoContext", {
|
|
127
|
+
skillNameHash: hashOrEmpty(skill.name),
|
|
128
|
+
skillStorage: skill.storage,
|
|
129
|
+
extensionIdHash: hashOrEmpty(skill.extension?.identifier.value),
|
|
130
|
+
extensionVersion: skill.extension?.version ?? "",
|
|
131
|
+
pluginNameHash: hashOrEmpty(skillPlugin?.label),
|
|
132
|
+
pluginVersion: skillPlugin?.fromMarketplace?.version ?? ""
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
} catch (err) {
|
|
136
|
+
this._logService.error("[InstructionsContextComputer] Failed to log skill telemetry", err);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
110
139
|
async addApplyingInstructions(instructionFiles, context, variables, telemetryEvent, token) {
|
|
111
140
|
const includeApplyingInstructions = this._configurationService.getValue(PromptsConfig.INCLUDE_APPLYING_INSTRUCTIONS);
|
|
112
141
|
if (!includeApplyingInstructions && this._modeKind !== ChatModeKind.Edit) {
|
|
@@ -142,8 +171,8 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
142
171
|
this._logService.trace(
|
|
143
172
|
`[InstructionsContextComputer] Match for ${uri} with ${match.pattern}${match.file ? ` for file ${match.file}` : ""}`
|
|
144
173
|
);
|
|
145
|
-
const reason = !match.file ? ( localize(
|
|
146
|
-
|
|
174
|
+
const reason = !match.file ? ( localize(7334, "Automatically attached as pattern is **")) : ( localize(
|
|
175
|
+
7335,
|
|
147
176
|
"Automatically attached as pattern {0} matches {1}",
|
|
148
177
|
pattern,
|
|
149
178
|
this._labelService.getUriLabel(match.file, {
|
|
@@ -317,7 +346,7 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
317
346
|
const folderName = this._labelService.getUriLabel(dirname(uri), {
|
|
318
347
|
relative: true
|
|
319
348
|
});
|
|
320
|
-
const description = folderName.trim().length === 0 ? ( localize(
|
|
349
|
+
const description = folderName.trim().length === 0 ? ( localize(7336, "Instructions for the workspace")) : ( localize(7337, "Instructions for folder '{0}'", folderName));
|
|
321
350
|
entries.push("<instruction>");
|
|
322
351
|
entries.push(`<description>${description}</description>`);
|
|
323
352
|
entries.push(`<file>${filePath(uri)}</file>`);
|
|
@@ -345,6 +374,7 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
345
374
|
return true;
|
|
346
375
|
});
|
|
347
376
|
if (modelInvocableSkills && modelInvocableSkills.length > 0) {
|
|
377
|
+
this._logSkillLoadedTelemetry(modelInvocableSkills);
|
|
348
378
|
const useSkillAdherencePrompt = this._configurationService.getValue(PromptsConfig.USE_SKILL_ADHERENCE_PROMPT);
|
|
349
379
|
entries.push("<skills>");
|
|
350
380
|
if (useSkillAdherencePrompt) {
|
|
@@ -498,7 +528,7 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
498
528
|
if (isPromptOrInstructionsFile(uri)) {
|
|
499
529
|
todo.push(uri);
|
|
500
530
|
}
|
|
501
|
-
const reason = ( localize(
|
|
531
|
+
const reason = ( localize(7338, "Referenced by {0}", basename(next)));
|
|
502
532
|
attachedContext.add(
|
|
503
533
|
toPromptFileVariableEntry(uri, PromptFileVariableKind.InstructionReference, reason, true)
|
|
504
534
|
);
|
|
@@ -512,7 +542,7 @@ let ComputeAutomaticInstructions = class ComputeAutomaticInstructions {
|
|
|
512
542
|
}
|
|
513
543
|
}
|
|
514
544
|
};
|
|
515
|
-
ComputeAutomaticInstructions = ( __decorate([( __param(4, IPromptsService)), ( __param(5, ILogService)), ( __param(6, ILabelService)), ( __param(7, IConfigurationService)), ( __param(8, IContextKeyService)), ( __param(9, IWorkspaceContextService)), ( __param(10, IFileService)), ( __param(11, IRemoteAgentService)), ( __param(12, ITelemetryService)), ( __param(13, ILanguageModelToolsService))], ComputeAutomaticInstructions));
|
|
545
|
+
ComputeAutomaticInstructions = ( __decorate([( __param(4, IPromptsService)), ( __param(5, ILogService)), ( __param(6, ILabelService)), ( __param(7, IConfigurationService)), ( __param(8, IContextKeyService)), ( __param(9, IWorkspaceContextService)), ( __param(10, IFileService)), ( __param(11, IRemoteAgentService)), ( __param(12, ITelemetryService)), ( __param(13, ILanguageModelToolsService)), ( __param(14, IAgentPluginService))], ComputeAutomaticInstructions));
|
|
516
546
|
function getFilePath(uri, remoteOS) {
|
|
517
547
|
if (uri.scheme === Schemas.file || uri.scheme === Schemas.vscodeRemote) {
|
|
518
548
|
const fsPath = uri.fsPath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { PromptsType } from '../promptTypes.js';
|
|
3
|
-
import { getPromptFileDefaultLocations
|
|
2
|
+
import { PromptFileSource, PromptsType } from '../promptTypes.js';
|
|
3
|
+
import { getPromptFileDefaultLocations } from './promptFileLocations.js';
|
|
4
4
|
import { PromptsStorage } from '../service/promptsService.js';
|
|
5
5
|
|
|
6
6
|
var PromptsConfig;
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { URI } from "../../../../../../base/common/uri.js";
|
|
2
|
-
import { PromptsType } from "../promptTypes.js";
|
|
2
|
+
import { PromptFileSource, PromptsType } from "../promptTypes.js";
|
|
3
3
|
import { PromptsStorage } from "../service/promptsService.js";
|
|
4
4
|
/**
|
|
5
5
|
* File extension for the reusable prompt files.
|
|
@@ -81,31 +81,13 @@ export declare const CLAUDE_RULES_SOURCE_FOLDER = ".claude/rules";
|
|
|
81
81
|
* Hooks folder.
|
|
82
82
|
*/
|
|
83
83
|
export declare const HOOKS_SOURCE_FOLDER = ".github/hooks";
|
|
84
|
-
/**
|
|
85
|
-
* Tracks where prompt files originate from.
|
|
86
|
-
*/
|
|
87
|
-
export declare enum PromptFileSource {
|
|
88
|
-
GitHubWorkspace = "github-workspace",
|
|
89
|
-
CopilotPersonal = "copilot-personal",
|
|
90
|
-
ClaudePersonal = "claude-personal",
|
|
91
|
-
ClaudeWorkspace = "claude-workspace",
|
|
92
|
-
ClaudeWorkspaceLocal = "claude-workspace-local",
|
|
93
|
-
AgentsWorkspace = "agents-workspace",
|
|
94
|
-
AgentsPersonal = "agents-personal",
|
|
95
|
-
ConfigWorkspace = "config-workspace",
|
|
96
|
-
ConfigPersonal = "config-personal",
|
|
97
|
-
ExtensionContribution = "extension-contribution",
|
|
98
|
-
ExtensionAPI = "extension-api",
|
|
99
|
-
Plugin = "plugin",
|
|
100
|
-
Internal = "internal"
|
|
101
|
-
}
|
|
102
84
|
/**
|
|
103
85
|
* Prompt source folder path with source and storage type.
|
|
104
86
|
*/
|
|
105
87
|
export interface IPromptSourceFolder {
|
|
106
88
|
readonly path: string;
|
|
107
89
|
readonly source: PromptFileSource;
|
|
108
|
-
readonly storage: PromptsStorage;
|
|
90
|
+
readonly storage: PromptsStorage.local | PromptsStorage.user;
|
|
109
91
|
}
|
|
110
92
|
/**
|
|
111
93
|
* Resolved prompt folder with source and storage type.
|
|
@@ -115,7 +97,7 @@ export interface IResolvedPromptSourceFolder {
|
|
|
115
97
|
readonly parent: URI;
|
|
116
98
|
readonly filePattern: string | undefined;
|
|
117
99
|
readonly source: PromptFileSource;
|
|
118
|
-
readonly storage: PromptsStorage;
|
|
100
|
+
readonly storage: PromptsStorage.local | PromptsStorage.user;
|
|
119
101
|
/**
|
|
120
102
|
* The original path string before resolution (e.g., '~/.copilot/agents' or '.github/agents').
|
|
121
103
|
* Used for display purposes.
|
|
@@ -126,14 +108,6 @@ export interface IResolvedPromptSourceFolder {
|
|
|
126
108
|
*/
|
|
127
109
|
readonly isDefault?: boolean;
|
|
128
110
|
}
|
|
129
|
-
/**
|
|
130
|
-
* Resolved prompt markdown file with source and storage type.
|
|
131
|
-
*/
|
|
132
|
-
export interface IResolvedPromptFile {
|
|
133
|
-
readonly fileUri: URI;
|
|
134
|
-
readonly source: PromptFileSource;
|
|
135
|
-
readonly storage: PromptsStorage;
|
|
136
|
-
}
|
|
137
111
|
/**
|
|
138
112
|
* All default skill source folders (both workspace and user home).
|
|
139
113
|
*/
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { dirname, basename } from '../../../../../../base/common/resources.js';
|
|
3
|
-
import { PromptsType } from '../promptTypes.js';
|
|
3
|
+
import { PromptFileSource, PromptsType } from '../promptTypes.js';
|
|
4
4
|
import { PromptsStorage } from '../service/promptsService.js';
|
|
5
5
|
|
|
6
6
|
const PROMPT_FILE_EXTENSION = ".prompt.md";
|
|
@@ -22,22 +22,6 @@ const AGENTS_SOURCE_FOLDER = ".github/agents";
|
|
|
22
22
|
const CLAUDE_AGENTS_SOURCE_FOLDER = ".claude/agents";
|
|
23
23
|
const COPILOT_USER_AGENTS_SOURCE_FOLDER = "~/.copilot/agents";
|
|
24
24
|
const CLAUDE_RULES_SOURCE_FOLDER = ".claude/rules";
|
|
25
|
-
var PromptFileSource;
|
|
26
|
-
(function(PromptFileSource) {
|
|
27
|
-
PromptFileSource["GitHubWorkspace"] = "github-workspace";
|
|
28
|
-
PromptFileSource["CopilotPersonal"] = "copilot-personal";
|
|
29
|
-
PromptFileSource["ClaudePersonal"] = "claude-personal";
|
|
30
|
-
PromptFileSource["ClaudeWorkspace"] = "claude-workspace";
|
|
31
|
-
PromptFileSource["ClaudeWorkspaceLocal"] = "claude-workspace-local";
|
|
32
|
-
PromptFileSource["AgentsWorkspace"] = "agents-workspace";
|
|
33
|
-
PromptFileSource["AgentsPersonal"] = "agents-personal";
|
|
34
|
-
PromptFileSource["ConfigWorkspace"] = "config-workspace";
|
|
35
|
-
PromptFileSource["ConfigPersonal"] = "config-personal";
|
|
36
|
-
PromptFileSource["ExtensionContribution"] = "extension-contribution";
|
|
37
|
-
PromptFileSource["ExtensionAPI"] = "extension-api";
|
|
38
|
-
PromptFileSource["Plugin"] = "plugin";
|
|
39
|
-
PromptFileSource["Internal"] = "internal";
|
|
40
|
-
})(PromptFileSource || (PromptFileSource = {}));
|
|
41
25
|
const DEFAULT_SKILL_SOURCE_FOLDERS = [{
|
|
42
26
|
path: ".github/skills",
|
|
43
27
|
source: PromptFileSource.GitHubWorkspace,
|
|
@@ -230,4 +214,4 @@ function getCleanPromptName(fileUri) {
|
|
|
230
214
|
return basename(fileUri);
|
|
231
215
|
}
|
|
232
216
|
|
|
233
|
-
export { AGENTS_SOURCE_FOLDER, AGENT_FILE_EXTENSION, AGENT_MD_FILENAME, CLAUDE_AGENTS_SOURCE_FOLDER, CLAUDE_CONFIG_FOLDER, CLAUDE_LOCAL_MD_FILENAME, CLAUDE_MD_FILENAME, CLAUDE_RULES_SOURCE_FOLDER, COPILOT_CUSTOM_INSTRUCTIONS_FILENAME, COPILOT_USER_AGENTS_SOURCE_FOLDER, DEFAULT_AGENT_SOURCE_FOLDERS, DEFAULT_HOOK_FILE_PATHS, DEFAULT_INSTRUCTIONS_SOURCE_FOLDERS, DEFAULT_PROMPT_SOURCE_FOLDERS, DEFAULT_SKILL_SOURCE_FOLDERS, GITHUB_CONFIG_FOLDER, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION, LEGACY_MODE_DEFAULT_SOURCE_FOLDER, LEGACY_MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION,
|
|
217
|
+
export { AGENTS_SOURCE_FOLDER, AGENT_FILE_EXTENSION, AGENT_MD_FILENAME, CLAUDE_AGENTS_SOURCE_FOLDER, CLAUDE_CONFIG_FOLDER, CLAUDE_LOCAL_MD_FILENAME, CLAUDE_MD_FILENAME, CLAUDE_RULES_SOURCE_FOLDER, COPILOT_CUSTOM_INSTRUCTIONS_FILENAME, COPILOT_USER_AGENTS_SOURCE_FOLDER, DEFAULT_AGENT_SOURCE_FOLDERS, DEFAULT_HOOK_FILE_PATHS, DEFAULT_INSTRUCTIONS_SOURCE_FOLDERS, DEFAULT_PROMPT_SOURCE_FOLDERS, DEFAULT_SKILL_SOURCE_FOLDERS, GITHUB_CONFIG_FOLDER, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION, LEGACY_MODE_DEFAULT_SOURCE_FOLDER, LEGACY_MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, SKILL_FILENAME, VALID_SKILL_NAME_REGEX, getCleanPromptName, getPromptFileDefaultLocations, getPromptFileExtension, getPromptFileType, getSkillFolderName, isInClaudeAgentsFolder, isInClaudeRulesFolder, isInCopilotAgentsFolder, isPromptOrInstructionsFile };
|