@codingame/monaco-vscode-api 37.1.0 → 37.2.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 +6 -26
- package/package.json +8 -8
- package/services.d.ts +1 -1
- package/services.js +3 -3
- package/tools.d.ts +4 -0
- package/tools.js +24 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +63 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +305 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
- package/vscode/src/vs/workbench/browser/media/code-icon.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.js +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +4 -3
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +72 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +96 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +1148 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +97 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.d.ts +0 -7
- package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.js +0 -92
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.d.ts +0 -12
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +0 -262
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +0 -865
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +0 -311
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -231
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1850
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +0 -140
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +0 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.js +0 -17
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -253
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +0 -194
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -69
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +0 -300
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +0 -272
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -178
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -294
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -212
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -955
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -697
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +0 -150
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +0 -142
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +0 -335
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1673
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -202
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -872
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +0 -289
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +0 -600
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +0 -239
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +0 -143
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +0 -298
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +0 -177
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +0 -73
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +0 -577
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +0 -90
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +0 -53
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +0 -92
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -518
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -231
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.js +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -283
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.d.ts +0 -91
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -340
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -272
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +0 -686
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css +0 -348
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css +0 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css +0 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditController.css +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditorOverlay.css +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css +0 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -131
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.d.ts +0 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -673
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +0 -354
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2926
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +0 -200
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -591
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.d.ts +0 -99
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -131
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -158
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -183
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -429
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -108
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -221
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -142
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -762
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -357
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -260
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +0 -182
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -796
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -126
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -443
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -121
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.d.ts +0 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1288
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.d.ts +0 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -287
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +0 -117
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +0 -222
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1840
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -449
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.d.ts +0 -432
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2546
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.d.ts +0 -137
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -646
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +0 -111
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.d.ts +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -472
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -34
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -275
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.d.ts +0 -69
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.d.ts +0 -125
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -958
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -458
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.d.ts +0 -80
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -708
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -193
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.d.ts +0 -108
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -717
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -183
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -134
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -213
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.d.ts +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -480
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -352
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.d.ts +0 -81
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +0 -19
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { ThemeIcon } from "../../../../../base/common/themables.js";
|
|
2
|
-
import { IDisposable } from "../../../../../base/common/lifecycle.js";
|
|
3
|
-
import { CancellationToken } from "../../../../../base/common/cancellation.js";
|
|
4
|
-
import { ICommandService } from "../../../../../platform/commands/common/commands.service.js";
|
|
5
|
-
import { RawContextKey } from "../../../../../platform/contextkey/common/contextkey.js";
|
|
6
|
-
import { ILogService } from "../../../../../platform/log/common/log.service.js";
|
|
7
|
-
import { IExtensionsWorkbenchService } from "../../../extensions/common/extensions.service.js";
|
|
8
|
-
export declare const ChatSetupDialogVisibleContext: RawContextKey<boolean>;
|
|
9
|
-
export type InstallChatClassification = {
|
|
10
|
-
owner: "bpasero";
|
|
11
|
-
comment: "Provides insight into chat installation.";
|
|
12
|
-
installResult: {
|
|
13
|
-
classification: "SystemMetaData";
|
|
14
|
-
purpose: "FeatureInsight";
|
|
15
|
-
comment: "Whether the extension was installed successfully, cancelled or failed to install.";
|
|
16
|
-
};
|
|
17
|
-
installDuration: {
|
|
18
|
-
classification: "SystemMetaData";
|
|
19
|
-
purpose: "FeatureInsight";
|
|
20
|
-
comment: "The duration it took to install the extension.";
|
|
21
|
-
};
|
|
22
|
-
signUpErrorCode: {
|
|
23
|
-
classification: "SystemMetaData";
|
|
24
|
-
purpose: "FeatureInsight";
|
|
25
|
-
comment: "The error code in case of an error signing up.";
|
|
26
|
-
};
|
|
27
|
-
provider: {
|
|
28
|
-
classification: "SystemMetaData";
|
|
29
|
-
purpose: "FeatureInsight";
|
|
30
|
-
comment: "The provider used for the chat installation.";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type InstallChatEvent = {
|
|
34
|
-
installResult: "installed" | "alreadyInstalled" | "cancelled" | "failedInstall" | "failedNotSignedIn" | "failedSignUp" | "failedNotTrusted" | "failedNoSession" | "failedMaybeLater" | "failedEnterpriseSetup";
|
|
35
|
-
installDuration: number;
|
|
36
|
-
signUpErrorCode: number | undefined;
|
|
37
|
-
provider: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
export declare enum ChatSetupAnonymous {
|
|
40
|
-
Disabled = 0,
|
|
41
|
-
EnabledWithDialog = 1,
|
|
42
|
-
EnabledWithoutDialog = 2
|
|
43
|
-
}
|
|
44
|
-
export declare enum ChatSetupStep {
|
|
45
|
-
Initial = 1,
|
|
46
|
-
SigningIn = 2,
|
|
47
|
-
Installing = 3
|
|
48
|
-
}
|
|
49
|
-
export declare enum ChatSetupStrategy {
|
|
50
|
-
Canceled = 0,
|
|
51
|
-
DefaultSetup = 1,
|
|
52
|
-
SetupWithoutEnterpriseProvider = 2,
|
|
53
|
-
SetupWithEnterpriseProvider = 3,
|
|
54
|
-
SetupWithGoogleProvider = 4,
|
|
55
|
-
SetupWithAppleProvider = 5,
|
|
56
|
-
SetupWithMicrosoftProvider = 6
|
|
57
|
-
}
|
|
58
|
-
export type ChatSetupResultValue = boolean | undefined;
|
|
59
|
-
export interface IChatSetupResult {
|
|
60
|
-
readonly success: ChatSetupResultValue;
|
|
61
|
-
readonly dialogSkipped: boolean;
|
|
62
|
-
readonly error?: Error;
|
|
63
|
-
readonly errorAlreadyHandled?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export declare class ChatSetupError extends Error {
|
|
66
|
-
readonly originalError: Error;
|
|
67
|
-
readonly userNotified: boolean;
|
|
68
|
-
constructor(originalError: Error, userNotified: boolean);
|
|
69
|
-
}
|
|
70
|
-
export interface IChatSetupRunOptions {
|
|
71
|
-
readonly disableChatViewReveal?: boolean;
|
|
72
|
-
readonly forceSignInDialog?: boolean;
|
|
73
|
-
readonly cancellationToken?: CancellationToken;
|
|
74
|
-
readonly additionalScopes?: readonly string[];
|
|
75
|
-
readonly forceAnonymous?: ChatSetupAnonymous;
|
|
76
|
-
readonly dialogIcon?: ThemeIcon;
|
|
77
|
-
readonly dialogTitle?: string;
|
|
78
|
-
readonly setupStrategy?: ChatSetupStrategy;
|
|
79
|
-
readonly disableCloseButton?: boolean;
|
|
80
|
-
readonly dialogExtraClasses?: readonly string[];
|
|
81
|
-
readonly allowContinueWithoutSignIn?: boolean;
|
|
82
|
-
readonly renderDialogFooter?: (container: HTMLElement) => IDisposable | undefined;
|
|
83
|
-
readonly onDidDismissDialog?: () => void;
|
|
84
|
-
readonly onSignInStarted?: (cancel: () => void) => void;
|
|
85
|
-
}
|
|
86
|
-
export interface IChatSetupCommandOptions extends IChatSetupRunOptions {
|
|
87
|
-
readonly inputValue?: string;
|
|
88
|
-
readonly returnResult?: boolean;
|
|
89
|
-
}
|
|
90
|
-
export declare function refreshTokens(commandService: ICommandService): void;
|
|
91
|
-
/**
|
|
92
|
-
* Builds a redirect URL that GitHub will use to return the user to VS Code
|
|
93
|
-
* after completing a plan upgrade. The redirect goes through `vscode.dev/redirect`
|
|
94
|
-
* which triggers the native protocol handler back into the desktop app.
|
|
95
|
-
*
|
|
96
|
-
* @param baseUpgradeUrl The direct GitHub upgrade URL (from `resolveGitHubUrl`).
|
|
97
|
-
* @param urlProtocol The VS Code URL protocol scheme (e.g. `vscode`, `vscode-insiders`, `code-oss`).
|
|
98
|
-
* @param quality The product quality (`stable`, `insider`, or `undefined` for OSS).
|
|
99
|
-
* @returns The upgrade URL with a `return_to` query parameter appended.
|
|
100
|
-
*/
|
|
101
|
-
export declare function buildUpgradeUrlWithRedirect(baseUpgradeUrl: string, urlProtocol: string, quality: string | undefined): string;
|
|
102
|
-
/**
|
|
103
|
-
* Ensures the authentication provider extension is enabled.
|
|
104
|
-
* If the extension is found locally but disabled, it will be
|
|
105
|
-
* re-enabled and running extensions will be updated.
|
|
106
|
-
*
|
|
107
|
-
* @returns `true` if the extension was re-enabled, `false` otherwise.
|
|
108
|
-
*/
|
|
109
|
-
export declare function maybeEnableAuthExtension(extensionsWorkbenchService: IExtensionsWorkbenchService, logService: ILogService): Promise<boolean>;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RawContextKey } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
3
|
-
import { ExtensionIdentifier } from '../../../../../platform/extensions/common/extensions.js';
|
|
4
|
-
import product from '../../../../../platform/product/common/product.js';
|
|
5
|
-
import { localize } from '../../../../../nls.js';
|
|
6
|
-
import { EnablementState } from '../../../../services/extensionManagement/common/extensionManagement.js';
|
|
7
|
-
|
|
8
|
-
const defaultChat = {
|
|
9
|
-
chatExtensionId: product.defaultChatAgent?.chatExtensionId ?? "",
|
|
10
|
-
chatRefreshTokenCommand: product.defaultChatAgent?.chatRefreshTokenCommand ?? "",
|
|
11
|
-
providerExtensionId: product.defaultChatAgent?.providerExtensionId ?? ""
|
|
12
|
-
};
|
|
13
|
-
const ChatSetupDialogVisibleContext = ( new RawContextKey("chatSetupDialogVisible", false));
|
|
14
|
-
var ChatSetupAnonymous;
|
|
15
|
-
(function(ChatSetupAnonymous) {
|
|
16
|
-
ChatSetupAnonymous[ChatSetupAnonymous["Disabled"] = 0] = "Disabled";
|
|
17
|
-
ChatSetupAnonymous[ChatSetupAnonymous["EnabledWithDialog"] = 1] = "EnabledWithDialog";
|
|
18
|
-
ChatSetupAnonymous[ChatSetupAnonymous["EnabledWithoutDialog"] = 2] = "EnabledWithoutDialog";
|
|
19
|
-
})(ChatSetupAnonymous || (ChatSetupAnonymous = {}));
|
|
20
|
-
var ChatSetupStep;
|
|
21
|
-
(function(ChatSetupStep) {
|
|
22
|
-
ChatSetupStep[ChatSetupStep["Initial"] = 1] = "Initial";
|
|
23
|
-
ChatSetupStep[ChatSetupStep["SigningIn"] = 2] = "SigningIn";
|
|
24
|
-
ChatSetupStep[ChatSetupStep["Installing"] = 3] = "Installing";
|
|
25
|
-
})(ChatSetupStep || (ChatSetupStep = {}));
|
|
26
|
-
var ChatSetupStrategy;
|
|
27
|
-
(function(ChatSetupStrategy) {
|
|
28
|
-
ChatSetupStrategy[ChatSetupStrategy["Canceled"] = 0] = "Canceled";
|
|
29
|
-
ChatSetupStrategy[ChatSetupStrategy["DefaultSetup"] = 1] = "DefaultSetup";
|
|
30
|
-
ChatSetupStrategy[ChatSetupStrategy["SetupWithoutEnterpriseProvider"] = 2] = "SetupWithoutEnterpriseProvider";
|
|
31
|
-
ChatSetupStrategy[ChatSetupStrategy["SetupWithEnterpriseProvider"] = 3] = "SetupWithEnterpriseProvider";
|
|
32
|
-
ChatSetupStrategy[ChatSetupStrategy["SetupWithGoogleProvider"] = 4] = "SetupWithGoogleProvider";
|
|
33
|
-
ChatSetupStrategy[ChatSetupStrategy["SetupWithAppleProvider"] = 5] = "SetupWithAppleProvider";
|
|
34
|
-
ChatSetupStrategy[ChatSetupStrategy["SetupWithMicrosoftProvider"] = 6] = "SetupWithMicrosoftProvider";
|
|
35
|
-
})(ChatSetupStrategy || (ChatSetupStrategy = {}));
|
|
36
|
-
class ChatSetupError extends Error {
|
|
37
|
-
constructor(originalError, userNotified) {
|
|
38
|
-
super(originalError.message, {
|
|
39
|
-
cause: originalError
|
|
40
|
-
});
|
|
41
|
-
this.originalError = originalError;
|
|
42
|
-
this.userNotified = userNotified;
|
|
43
|
-
this.name = originalError.name;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function refreshTokens(commandService) {
|
|
47
|
-
commandService.executeCommand(defaultChat.chatRefreshTokenCommand).catch(() => {});
|
|
48
|
-
}
|
|
49
|
-
function buildUpgradeUrlWithRedirect(baseUpgradeUrl, urlProtocol, quality) {
|
|
50
|
-
const vscodeUri = `${urlProtocol}://${defaultChat.chatExtensionId}/upgrade-success`;
|
|
51
|
-
const redirectHost = quality === "stable" ? "vscode.dev" : "insiders.vscode.dev";
|
|
52
|
-
const returnTo = `https://${redirectHost}/redirect?url=${encodeURIComponent(vscodeUri)}`;
|
|
53
|
-
const separator = baseUpgradeUrl.includes("?") ? "&" : "?";
|
|
54
|
-
return `${baseUpgradeUrl}${separator}return_to=${encodeURIComponent(returnTo)}`;
|
|
55
|
-
}
|
|
56
|
-
async function maybeEnableAuthExtension(extensionsWorkbenchService, logService) {
|
|
57
|
-
if (!defaultChat.providerExtensionId) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
const providerExtension = extensionsWorkbenchService.local.find(
|
|
61
|
-
e => ExtensionIdentifier.equals(e.identifier.id, defaultChat.providerExtensionId)
|
|
62
|
-
);
|
|
63
|
-
if (!providerExtension) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
if (providerExtension.enablementState === EnablementState.DisabledGlobally || providerExtension.enablementState === EnablementState.DisabledWorkspace) {
|
|
67
|
-
logService.info(
|
|
68
|
-
`[chat setup] auth provider extension '${defaultChat.providerExtensionId}' is disabled, re-enabling it`
|
|
69
|
-
);
|
|
70
|
-
try {
|
|
71
|
-
await extensionsWorkbenchService.setEnablement([providerExtension], EnablementState.EnabledGlobally);
|
|
72
|
-
await extensionsWorkbenchService.updateRunningExtensions(( localize(8587, "Enabling GitHub Authentication")));
|
|
73
|
-
return true;
|
|
74
|
-
} catch (error) {
|
|
75
|
-
logService.error(
|
|
76
|
-
`[chat setup] failed to re-enable auth provider extension '${defaultChat.providerExtensionId}'`,
|
|
77
|
-
error
|
|
78
|
-
);
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export { ChatSetupAnonymous, ChatSetupDialogVisibleContext, ChatSetupError, ChatSetupStep, ChatSetupStrategy, buildUpgradeUrlWithRedirect, maybeEnableAuthExtension, refreshTokens };
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { IStringDictionary } from "../../../../../../base/common/collections.js";
|
|
2
|
-
import { IMarkdownString } from "../../../../../../base/common/htmlContent.js";
|
|
3
|
-
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
4
|
-
import { URI } from "../../../../../../base/common/uri.js";
|
|
5
|
-
import { ILogService } from "../../../../../../platform/log/common/log.service.js";
|
|
6
|
-
import { IStorageService } from "../../../../../../platform/storage/common/storage.service.js";
|
|
7
|
-
import { ILanguageModelChatMetadataAndIdentifier } from "../../../common/languageModels.js";
|
|
8
|
-
import { IChatInputNotificationService } from "./chatInputNotificationService.service.js";
|
|
9
|
-
export declare enum ChatInputNotificationSeverity {
|
|
10
|
-
Info = 0,
|
|
11
|
-
Warning = 1,
|
|
12
|
-
Error = 2
|
|
13
|
-
}
|
|
14
|
-
export declare enum ChatInputNotificationActionKind {
|
|
15
|
-
Command = "command",
|
|
16
|
-
OpenModelPicker = "openModelPicker",
|
|
17
|
-
SwitchToModel = "switchToModel"
|
|
18
|
-
}
|
|
19
|
-
interface IChatInputNotificationActionBase {
|
|
20
|
-
readonly label: string;
|
|
21
|
-
readonly keepOpen?: boolean;
|
|
22
|
-
/** Stable id reported to telemetry, so two actions of the same kind can be told apart. */
|
|
23
|
-
readonly telemetryActionId?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IChatInputNotificationCommandAction extends IChatInputNotificationActionBase {
|
|
26
|
-
readonly kind: ChatInputNotificationActionKind.Command;
|
|
27
|
-
readonly commandId: string;
|
|
28
|
-
readonly commandArgs?: unknown[];
|
|
29
|
-
}
|
|
30
|
-
export interface IChatInputNotificationOpenModelPickerAction extends IChatInputNotificationActionBase {
|
|
31
|
-
readonly kind: ChatInputNotificationActionKind.OpenModelPicker;
|
|
32
|
-
}
|
|
33
|
-
export interface IChatInputNotificationSwitchToModelAction extends IChatInputNotificationActionBase {
|
|
34
|
-
readonly kind: ChatInputNotificationActionKind.SwitchToModel;
|
|
35
|
-
/** Matches the target against models available to the rendering input. */
|
|
36
|
-
readonly matchesModel: (model: ILanguageModelChatMetadataAndIdentifier) => boolean;
|
|
37
|
-
/** Applied to the target model once switched. Keys its schema does not declare are dropped. */
|
|
38
|
-
readonly config?: IStringDictionary<unknown>;
|
|
39
|
-
/** Requires the target to match exactly one model, rather than taking the first match. */
|
|
40
|
-
readonly requireUniqueModel?: boolean;
|
|
41
|
-
}
|
|
42
|
-
export type IChatInputNotificationAction = IChatInputNotificationCommandAction | IChatInputNotificationOpenModelPickerAction | IChatInputNotificationSwitchToModelAction;
|
|
43
|
-
export interface IChatInputNotificationMuteAction {
|
|
44
|
-
/** Command executed when the user clicks the mute (bell-slash) button. */
|
|
45
|
-
readonly commandId: string;
|
|
46
|
-
readonly commandArgs?: unknown[];
|
|
47
|
-
/** Tooltip and accessible label for the mute button. */
|
|
48
|
-
readonly tooltip: string;
|
|
49
|
-
}
|
|
50
|
-
/** Input state used to choose notification content. */
|
|
51
|
-
export interface IChatInputNotificationModelState {
|
|
52
|
-
readonly currentModel: ILanguageModelChatMetadataAndIdentifier | undefined;
|
|
53
|
-
readonly models: readonly ILanguageModelChatMetadataAndIdentifier[];
|
|
54
|
-
}
|
|
55
|
-
export interface IChatInputNotificationContext {
|
|
56
|
-
readonly sessionType: string | undefined;
|
|
57
|
-
readonly sessionResource: URI | undefined;
|
|
58
|
-
readonly deferredNotificationsEnabled: boolean;
|
|
59
|
-
readonly isTransientChat: boolean;
|
|
60
|
-
readonly sessionStarted: boolean;
|
|
61
|
-
readonly modelState: IChatInputNotificationModelState;
|
|
62
|
-
}
|
|
63
|
-
/** A complete notification body selected for one input. */
|
|
64
|
-
export interface IChatInputNotificationBody {
|
|
65
|
-
readonly description: string | IMarkdownString | undefined;
|
|
66
|
-
readonly actions: readonly IChatInputNotificationAction[];
|
|
67
|
-
}
|
|
68
|
-
export interface IChatInputNotification {
|
|
69
|
-
readonly id: string;
|
|
70
|
-
readonly telemetryId?: string;
|
|
71
|
-
readonly severity: ChatInputNotificationSeverity;
|
|
72
|
-
readonly message: string | IMarkdownString;
|
|
73
|
-
readonly description: string | IMarkdownString | undefined;
|
|
74
|
-
readonly actions: readonly IChatInputNotificationAction[];
|
|
75
|
-
/** Controls whether this notification applies to an input. */
|
|
76
|
-
readonly when?: (context: IChatInputNotificationContext) => boolean;
|
|
77
|
-
/** Resolves the description and actions for an input. */
|
|
78
|
-
readonly resolveBody?: (context: IChatInputNotificationContext) => IChatInputNotificationBody;
|
|
79
|
-
readonly dismissible: boolean;
|
|
80
|
-
readonly autoDismissOnMessage: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Optional allow-list of chat session types that should display this
|
|
83
|
-
* notification. When undefined, the notification renders in every chat
|
|
84
|
-
* input. When set, only chat inputs whose current session type is in the
|
|
85
|
-
* list will render it.
|
|
86
|
-
*/
|
|
87
|
-
readonly sessionTypes?: readonly string[];
|
|
88
|
-
/** Optional allow-list of concrete chat session resources that should display this notification. */
|
|
89
|
-
readonly sessionResources?: readonly URI[];
|
|
90
|
-
/**
|
|
91
|
-
* Optional "mute" affordance rendered as a bell-slash icon button next to
|
|
92
|
-
* the dismiss (X) button. Use for a "stop showing this entirely" action
|
|
93
|
-
* that is distinct from a one-off dismissal. Omit to hide the button.
|
|
94
|
-
*/
|
|
95
|
-
readonly mute?: IChatInputNotificationMuteAction;
|
|
96
|
-
}
|
|
97
|
-
/** Creates a matcher for a fixed model identifier. */
|
|
98
|
-
export declare function matchesModelIdentifier(identifier: string): (model: ILanguageModelChatMetadataAndIdentifier) => boolean;
|
|
99
|
-
/** Resolves one complete notification body for an input. */
|
|
100
|
-
export declare function resolveChatInputNotificationBody(notification: IChatInputNotification, context: IChatInputNotificationContext, onError: (error: unknown) => void): IChatInputNotificationBody | undefined;
|
|
101
|
-
/** Returns the text signature used to de-duplicate announcements. */
|
|
102
|
-
export declare function getChatInputNotificationAnnouncementSignature(notification: IChatInputNotification, body: IChatInputNotificationBody): string;
|
|
103
|
-
/** Returns whether a notification applies to the concrete model-target session type. */
|
|
104
|
-
export declare function isChatInputNotificationApplicableToSessionType(notification: IChatInputNotification, sessionType: string | undefined): boolean;
|
|
105
|
-
export declare function isChatInputNotificationApplicableToSession(notification: IChatInputNotification, sessionType: string | undefined, sessionResource: URI | undefined): boolean;
|
|
106
|
-
export declare class ChatInputNotificationService extends Disposable implements IChatInputNotificationService {
|
|
107
|
-
private readonly _logService;
|
|
108
|
-
readonly _serviceBrand: undefined;
|
|
109
|
-
private readonly _notifications;
|
|
110
|
-
private readonly _dismissed;
|
|
111
|
-
/** Insertion order tracking — higher index = more recently set. */
|
|
112
|
-
private readonly _insertionOrder;
|
|
113
|
-
private _insertionCounter;
|
|
114
|
-
private readonly _onDidChange;
|
|
115
|
-
readonly onDidChange: import("../../../../../../base/common/event.js").Event<void>;
|
|
116
|
-
private readonly _onDidDismiss;
|
|
117
|
-
readonly onDidDismiss: import("../../../../../../base/common/event.js").Event<string>;
|
|
118
|
-
private readonly _announcedById;
|
|
119
|
-
constructor(_logService: ILogService);
|
|
120
|
-
setNotification(notification: IChatInputNotification): void;
|
|
121
|
-
refresh(): void;
|
|
122
|
-
deleteNotification(id: string): void;
|
|
123
|
-
dismissNotification(id: string): void;
|
|
124
|
-
getActiveNotification(filter?: (notification: IChatInputNotification) => boolean): IChatInputNotification | undefined;
|
|
125
|
-
handleMessageSent(context?: IChatInputNotificationContext): void;
|
|
126
|
-
private _fireDidChange;
|
|
127
|
-
announceRendered(notification: IChatInputNotification | undefined, body?: IChatInputNotificationBody): void;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Reads the ids a user has dismissed for good, kept in application storage so a dismissal in one
|
|
131
|
-
* window applies to every other. Returns an empty set for absent or corrupt data.
|
|
132
|
-
*
|
|
133
|
-
* The set is stored under one key, so two windows dismissing different notices in the same
|
|
134
|
-
* instant can leave the later write without the earlier id. Re-reading before each write keeps
|
|
135
|
-
* that to a genuine race, and the cost is only that a notice may appear once more.
|
|
136
|
-
*/
|
|
137
|
-
export declare function readDismissedNotificationIds(storageService: IStorageService, key: string): Set<string>;
|
|
138
|
-
/** Records one id as dismissed for good. */
|
|
139
|
-
export declare function addDismissedNotificationId(storageService: IStorageService, key: string, id: string): void;
|
|
140
|
-
export {};
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { status } from '../../../../../../base/browser/ui/aria/aria.js';
|
|
4
|
-
import { renderAsPlaintext } from '../../../../../../base/browser/markdownRenderer.js';
|
|
5
|
-
import { Emitter } from '../../../../../../base/common/event.js';
|
|
6
|
-
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
7
|
-
import { isEqual } from '../../../../../../base/common/resources.js';
|
|
8
|
-
import '../../../../../../platform/instantiation/common/extensions.js';
|
|
9
|
-
import { ILogService } from '../../../../../../platform/log/common/log.service.js';
|
|
10
|
-
import { StorageScope, StorageTarget } from '../../../../../../platform/storage/common/storage.js';
|
|
11
|
-
import '../../../../../../platform/instantiation/common/instantiation.js';
|
|
12
|
-
|
|
13
|
-
var ChatInputNotificationSeverity;
|
|
14
|
-
(function(ChatInputNotificationSeverity) {
|
|
15
|
-
ChatInputNotificationSeverity[ChatInputNotificationSeverity["Info"] = 0] = "Info";
|
|
16
|
-
ChatInputNotificationSeverity[ChatInputNotificationSeverity["Warning"] = 1] = "Warning";
|
|
17
|
-
ChatInputNotificationSeverity[ChatInputNotificationSeverity["Error"] = 2] = "Error";
|
|
18
|
-
})(ChatInputNotificationSeverity || (ChatInputNotificationSeverity = {}));
|
|
19
|
-
var ChatInputNotificationActionKind;
|
|
20
|
-
(function(ChatInputNotificationActionKind) {
|
|
21
|
-
ChatInputNotificationActionKind["Command"] = "command";
|
|
22
|
-
ChatInputNotificationActionKind["OpenModelPicker"] = "openModelPicker";
|
|
23
|
-
ChatInputNotificationActionKind["SwitchToModel"] = "switchToModel";
|
|
24
|
-
})(ChatInputNotificationActionKind || (ChatInputNotificationActionKind = {}));
|
|
25
|
-
function matchesModelIdentifier(identifier) {
|
|
26
|
-
return model => model.identifier === identifier;
|
|
27
|
-
}
|
|
28
|
-
function evaluateChatInputNotificationPredicate(predicate, onError) {
|
|
29
|
-
try {
|
|
30
|
-
return predicate();
|
|
31
|
-
} catch (error) {
|
|
32
|
-
onError(error);
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function resolveChatInputNotificationBody(notification, context, onError) {
|
|
37
|
-
if (!evaluateChatInputNotificationPredicate(() => notification.when?.(context) ?? true, onError)) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
if (!notification.resolveBody) {
|
|
41
|
-
return notification;
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
return notification.resolveBody(context);
|
|
45
|
-
} catch (error) {
|
|
46
|
-
onError(error);
|
|
47
|
-
return notification;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function getChatInputNotificationAnnouncementSignature(notification, body) {
|
|
51
|
-
const message = typeof notification.message === "string" ? notification.message : notification.message.value;
|
|
52
|
-
const description = typeof body.description === "string" ? body.description : body.description?.value ?? "";
|
|
53
|
-
return `${notification.id}\u0000${message}\u0000${description}`;
|
|
54
|
-
}
|
|
55
|
-
function isChatInputNotificationApplicableToSessionType(notification, sessionType) {
|
|
56
|
-
return !notification.sessionTypes?.length || (!!sessionType && notification.sessionTypes.includes(sessionType));
|
|
57
|
-
}
|
|
58
|
-
function isChatInputNotificationApplicableToSession(notification, sessionType, sessionResource) {
|
|
59
|
-
return isChatInputNotificationApplicableToSessionType(notification, sessionType) && (!notification.sessionResources?.length || (!!sessionResource && ( notification.sessionResources.some(resource => isEqual(resource, sessionResource)))));
|
|
60
|
-
}
|
|
61
|
-
let ChatInputNotificationService = class ChatInputNotificationService extends Disposable {
|
|
62
|
-
constructor(_logService) {
|
|
63
|
-
super();
|
|
64
|
-
this._logService = _logService;
|
|
65
|
-
this._notifications = ( new Map());
|
|
66
|
-
this._dismissed = ( new Set());
|
|
67
|
-
this._insertionOrder = ( new Map());
|
|
68
|
-
this._insertionCounter = 0;
|
|
69
|
-
this._onDidChange = this._register(( new Emitter()));
|
|
70
|
-
this.onDidChange = this._onDidChange.event;
|
|
71
|
-
this._onDidDismiss = this._register(( new Emitter()));
|
|
72
|
-
this.onDidDismiss = this._onDidDismiss.event;
|
|
73
|
-
this._announcedById = ( new Map());
|
|
74
|
-
}
|
|
75
|
-
setNotification(notification) {
|
|
76
|
-
this._notifications.set(notification.id, notification);
|
|
77
|
-
this._dismissed.delete(notification.id);
|
|
78
|
-
this._insertionOrder.set(notification.id, this._insertionCounter++);
|
|
79
|
-
this._fireDidChange();
|
|
80
|
-
}
|
|
81
|
-
refresh() {
|
|
82
|
-
this._fireDidChange();
|
|
83
|
-
}
|
|
84
|
-
deleteNotification(id) {
|
|
85
|
-
if (this._notifications.delete(id)) {
|
|
86
|
-
this._dismissed.delete(id);
|
|
87
|
-
this._insertionOrder.delete(id);
|
|
88
|
-
this._announcedById.delete(id);
|
|
89
|
-
this._fireDidChange();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
dismissNotification(id) {
|
|
93
|
-
if (( this._notifications.has(id)) && !( this._dismissed.has(id))) {
|
|
94
|
-
this._dismissed.add(id);
|
|
95
|
-
this._announcedById.delete(id);
|
|
96
|
-
this._onDidDismiss.fire(id);
|
|
97
|
-
this._fireDidChange();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
getActiveNotification(filter) {
|
|
101
|
-
let best;
|
|
102
|
-
let bestOrder = -1;
|
|
103
|
-
for (const notification of ( this._notifications.values())) {
|
|
104
|
-
if (( this._dismissed.has(notification.id))) {
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
if (filter && !filter(notification)) {
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
const order = this._insertionOrder.get(notification.id) ?? 0;
|
|
111
|
-
if (!best || notification.severity > best.severity || (notification.severity === best.severity && order > bestOrder)) {
|
|
112
|
-
best = notification;
|
|
113
|
-
bestOrder = order;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return best;
|
|
117
|
-
}
|
|
118
|
-
handleMessageSent(context) {
|
|
119
|
-
let changed = false;
|
|
120
|
-
for (const notification of ( this._notifications.values())) {
|
|
121
|
-
if (!notification.autoDismissOnMessage || ( this._dismissed.has(notification.id))) {
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
if (context && !isChatInputNotificationApplicableToSession(notification, context.sessionType, context.sessionResource)) {
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
if (context && !evaluateChatInputNotificationPredicate(
|
|
128
|
-
() => notification.when?.(context) ?? true,
|
|
129
|
-
error => this._logService.error("[ChatInputNotificationService] Failed to evaluate notification", error)
|
|
130
|
-
)) {
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
this._dismissed.add(notification.id);
|
|
134
|
-
this._announcedById.delete(notification.id);
|
|
135
|
-
changed = true;
|
|
136
|
-
}
|
|
137
|
-
if (changed) {
|
|
138
|
-
this._fireDidChange();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
_fireDidChange() {
|
|
142
|
-
this._onDidChange.fire();
|
|
143
|
-
}
|
|
144
|
-
announceRendered(notification, body) {
|
|
145
|
-
if (!notification) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const resolvedBody = body ?? notification;
|
|
149
|
-
const signature = getChatInputNotificationAnnouncementSignature(notification, resolvedBody);
|
|
150
|
-
if (this._announcedById.get(notification.id) === signature) {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
this._announcedById.set(notification.id, signature);
|
|
154
|
-
const message = renderAsPlaintext(notification.message);
|
|
155
|
-
const description = resolvedBody.description ? renderAsPlaintext(resolvedBody.description) : "";
|
|
156
|
-
const text = description ? `${message}. ${description}` : message;
|
|
157
|
-
status(text);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
ChatInputNotificationService = ( __decorate([( __param(0, ILogService))], ChatInputNotificationService));
|
|
161
|
-
function readDismissedNotificationIds(storageService, key) {
|
|
162
|
-
const raw = storageService.get(key, StorageScope.APPLICATION);
|
|
163
|
-
try {
|
|
164
|
-
const parsed = raw ? JSON.parse(raw) : undefined;
|
|
165
|
-
return ( new Set(
|
|
166
|
-
Array.isArray(parsed) ? parsed.filter(value => typeof value === "string") : []
|
|
167
|
-
));
|
|
168
|
-
} catch {
|
|
169
|
-
return ( new Set());
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
function addDismissedNotificationId(storageService, key, id) {
|
|
173
|
-
const dismissed = readDismissedNotificationIds(storageService, key);
|
|
174
|
-
if (( dismissed.has(id))) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
dismissed.add(id);
|
|
178
|
-
storageService.store(
|
|
179
|
-
key,
|
|
180
|
-
JSON.stringify([...dismissed]),
|
|
181
|
-
StorageScope.APPLICATION,
|
|
182
|
-
StorageTarget.USER
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export { ChatInputNotificationActionKind, ChatInputNotificationService, ChatInputNotificationSeverity, addDismissedNotificationId, getChatInputNotificationAnnouncementSignature, isChatInputNotificationApplicableToSession, isChatInputNotificationApplicableToSessionType, matchesModelIdentifier, readDismissedNotificationIds, resolveChatInputNotificationBody };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const addDynamicVariableActionId = "workbench.action.chat.addDynamicVariable";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from "../../../../../base/common/cancellation.js";
|
|
2
|
-
import { ThemeIcon } from "../../../../../base/common/themables.js";
|
|
3
|
-
import { URI } from "../../../../../base/common/uri.js";
|
|
4
|
-
import { IRange } from "../../../../../editor/common/core/range.js";
|
|
5
|
-
import { Location } from "../../../../../editor/common/languages.js";
|
|
6
|
-
import { IChatModel } from "../model/chatModel.js";
|
|
7
|
-
import { IChatContentReference, IChatProgressMessage } from "../chatService/chatService.js";
|
|
8
|
-
import { IDiagnosticVariableEntryFilterData, StringChatContextValue, type IChatRequestVariableEntry } from "./chatVariableEntries.js";
|
|
9
|
-
export interface IChatVariableData {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
icon?: ThemeIcon;
|
|
13
|
-
fullName?: string;
|
|
14
|
-
description: string;
|
|
15
|
-
modelDescription?: string;
|
|
16
|
-
canTakeArgument?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface IChatRequestProblemsVariable {
|
|
19
|
-
id: "vscode.problems";
|
|
20
|
-
filter: IDiagnosticVariableEntryFilterData;
|
|
21
|
-
}
|
|
22
|
-
export declare const isIChatRequestProblemsVariable: (obj: unknown) => obj is IChatRequestProblemsVariable;
|
|
23
|
-
export type IChatRequestVariableValue = string | URI | Location | Uint8Array | IChatRequestProblemsVariable | StringChatContextValue | unknown;
|
|
24
|
-
export type IChatVariableResolverProgress = IChatContentReference | IChatProgressMessage;
|
|
25
|
-
export interface IChatVariableResolver {
|
|
26
|
-
(messageText: string, arg: string | undefined, model: IChatModel, progress: (part: IChatVariableResolverProgress) => void, token: CancellationToken): Promise<IChatRequestVariableValue | undefined>;
|
|
27
|
-
}
|
|
28
|
-
export interface IDynamicVariable {
|
|
29
|
-
range: IRange;
|
|
30
|
-
id: string;
|
|
31
|
-
fullName?: string;
|
|
32
|
-
icon?: ThemeIcon;
|
|
33
|
-
modelDescription?: string;
|
|
34
|
-
isFile?: boolean;
|
|
35
|
-
isDirectory?: boolean;
|
|
36
|
-
isAttachmentReference?: boolean;
|
|
37
|
-
data: IChatRequestVariableValue;
|
|
38
|
-
/**
|
|
39
|
-
* Implementation-defined metadata that flows through to the resulting
|
|
40
|
-
* {@link IChatRequestVariableEntry} and any {@link MessageAttachment}
|
|
41
|
-
* derived from it. Used to round-trip provider-specific data attached
|
|
42
|
-
* to chat input completions.
|
|
43
|
-
*/
|
|
44
|
-
_meta?: Record<string, unknown>;
|
|
45
|
-
}
|
|
46
|
-
export declare function toAttachedContextDynamicVariable(entry: IChatRequestVariableEntry, range: IRange): IDynamicVariable;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function toAttachedContextDynamicVariable(entry, range) {
|
|
4
|
-
return {
|
|
5
|
-
id: entry.id,
|
|
6
|
-
fullName: entry.name,
|
|
7
|
-
icon: entry.icon,
|
|
8
|
-
modelDescription: entry.modelDescription,
|
|
9
|
-
isFile: entry.kind === 'file',
|
|
10
|
-
isDirectory: entry.kind === 'directory',
|
|
11
|
-
isAttachmentReference: true,
|
|
12
|
-
range,
|
|
13
|
-
data: undefined,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { toAttachedContextDynamicVariable };
|