@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,37 +0,0 @@
|
|
|
1
|
-
import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
|
|
2
|
-
import { INotebookEditorDelegate } from "../notebookBrowser.js";
|
|
3
|
-
import { INotebookExecutionStateService } from "../../common/notebookExecutionStateService.service.js";
|
|
4
|
-
import { INotebookKernelService } from "../../common/notebookKernelService.service.js";
|
|
5
|
-
import { IExtensionService } from "../../../../services/extensions/common/extensions.service.js";
|
|
6
|
-
export declare class NotebookEditorContextKeys {
|
|
7
|
-
private readonly _editor;
|
|
8
|
-
private readonly _notebookKernelService;
|
|
9
|
-
private readonly _extensionService;
|
|
10
|
-
private readonly _notebookExecutionStateService;
|
|
11
|
-
private readonly _notebookKernel;
|
|
12
|
-
private readonly _notebookKernelCount;
|
|
13
|
-
private readonly _notebookKernelSourceCount;
|
|
14
|
-
private readonly _notebookKernelSelected;
|
|
15
|
-
private readonly _interruptibleKernel;
|
|
16
|
-
private readonly _hasVariableProvider;
|
|
17
|
-
private readonly _someCellRunning;
|
|
18
|
-
private readonly _kernelRunning;
|
|
19
|
-
private readonly _hasOutputs;
|
|
20
|
-
private readonly _useConsolidatedOutputButton;
|
|
21
|
-
private readonly _viewType;
|
|
22
|
-
private readonly _missingKernelExtension;
|
|
23
|
-
private readonly _cellToolbarLocation;
|
|
24
|
-
private readonly _lastCellFailed;
|
|
25
|
-
private readonly _disposables;
|
|
26
|
-
private readonly _viewModelDisposables;
|
|
27
|
-
private readonly _cellOutputsListeners;
|
|
28
|
-
private readonly _selectedKernelDisposables;
|
|
29
|
-
constructor(_editor: INotebookEditorDelegate, _notebookKernelService: INotebookKernelService, contextKeyService: IContextKeyService, _extensionService: IExtensionService, _notebookExecutionStateService: INotebookExecutionStateService);
|
|
30
|
-
dispose(): void;
|
|
31
|
-
private _handleDidChangeModel;
|
|
32
|
-
private _updateForExecution;
|
|
33
|
-
private _updateForLastRunFailState;
|
|
34
|
-
private _updateForInstalledExtension;
|
|
35
|
-
private _updateKernelContext;
|
|
36
|
-
private _updateForNotebookOptions;
|
|
37
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { scheduleAtNextAnimationFrame, getWindow } from '../../../../../base/browser/dom.js';
|
|
4
|
-
import { DisposableStore, dispose } from '../../../../../base/common/lifecycle.js';
|
|
5
|
-
import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
|
|
6
|
-
import { KERNEL_EXTENSIONS } from '../notebookBrowser.js';
|
|
7
|
-
import { NOTEBOOK_KERNEL, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SELECTED, NOTEBOOK_INTERRUPTIBLE_KERNEL, KERNEL_HAS_VARIABLE_PROVIDER, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_HAS_OUTPUTS, NOTEBOOK_VIEW_TYPE, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_CELL_TOOLBAR_LOCATION, NOTEBOOK_LAST_CELL_FAILED } from '../../common/notebookContextKeys.js';
|
|
8
|
-
import { NotebookExecutionType } from '../../common/notebookExecutionStateService.js';
|
|
9
|
-
import { INotebookExecutionStateService } from '../../common/notebookExecutionStateService.service.js';
|
|
10
|
-
import { INotebookKernelService } from '../../common/notebookKernelService.service.js';
|
|
11
|
-
import { IExtensionService } from '../../../../services/extensions/common/extensions.service.js';
|
|
12
|
-
|
|
13
|
-
let NotebookEditorContextKeys = class NotebookEditorContextKeys {
|
|
14
|
-
constructor(
|
|
15
|
-
_editor,
|
|
16
|
-
_notebookKernelService,
|
|
17
|
-
contextKeyService,
|
|
18
|
-
_extensionService,
|
|
19
|
-
_notebookExecutionStateService
|
|
20
|
-
) {
|
|
21
|
-
this._editor = _editor;
|
|
22
|
-
this._notebookKernelService = _notebookKernelService;
|
|
23
|
-
this._extensionService = _extensionService;
|
|
24
|
-
this._notebookExecutionStateService = _notebookExecutionStateService;
|
|
25
|
-
this._disposables = ( new DisposableStore());
|
|
26
|
-
this._viewModelDisposables = ( new DisposableStore());
|
|
27
|
-
this._cellOutputsListeners = [];
|
|
28
|
-
this._selectedKernelDisposables = ( new DisposableStore());
|
|
29
|
-
this._notebookKernel = NOTEBOOK_KERNEL.bindTo(contextKeyService);
|
|
30
|
-
this._notebookKernelCount = NOTEBOOK_KERNEL_COUNT.bindTo(contextKeyService);
|
|
31
|
-
this._notebookKernelSelected = NOTEBOOK_KERNEL_SELECTED.bindTo(contextKeyService);
|
|
32
|
-
this._interruptibleKernel = NOTEBOOK_INTERRUPTIBLE_KERNEL.bindTo(contextKeyService);
|
|
33
|
-
this._hasVariableProvider = KERNEL_HAS_VARIABLE_PROVIDER.bindTo(contextKeyService);
|
|
34
|
-
this._someCellRunning = NOTEBOOK_HAS_RUNNING_CELL.bindTo(contextKeyService);
|
|
35
|
-
this._kernelRunning = NOTEBOOK_HAS_SOMETHING_RUNNING.bindTo(contextKeyService);
|
|
36
|
-
this._useConsolidatedOutputButton = NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON.bindTo(contextKeyService);
|
|
37
|
-
this._hasOutputs = NOTEBOOK_HAS_OUTPUTS.bindTo(contextKeyService);
|
|
38
|
-
this._viewType = NOTEBOOK_VIEW_TYPE.bindTo(contextKeyService);
|
|
39
|
-
this._missingKernelExtension = NOTEBOOK_MISSING_KERNEL_EXTENSION.bindTo(contextKeyService);
|
|
40
|
-
this._notebookKernelSourceCount = NOTEBOOK_KERNEL_SOURCE_COUNT.bindTo(contextKeyService);
|
|
41
|
-
this._cellToolbarLocation = NOTEBOOK_CELL_TOOLBAR_LOCATION.bindTo(contextKeyService);
|
|
42
|
-
this._lastCellFailed = NOTEBOOK_LAST_CELL_FAILED.bindTo(contextKeyService);
|
|
43
|
-
this._handleDidChangeModel();
|
|
44
|
-
this._updateForNotebookOptions();
|
|
45
|
-
this._disposables.add(_editor.onDidChangeModel(this._handleDidChangeModel, this));
|
|
46
|
-
this._disposables.add(_notebookKernelService.onDidAddKernel(this._updateKernelContext, this));
|
|
47
|
-
this._disposables.add(
|
|
48
|
-
_notebookKernelService.onDidChangeSelectedNotebooks(this._updateKernelContext, this)
|
|
49
|
-
);
|
|
50
|
-
this._disposables.add(
|
|
51
|
-
_notebookKernelService.onDidChangeSourceActions(this._updateKernelContext, this)
|
|
52
|
-
);
|
|
53
|
-
this._disposables.add(
|
|
54
|
-
_editor.notebookOptions.onDidChangeOptions(this._updateForNotebookOptions, this)
|
|
55
|
-
);
|
|
56
|
-
this._disposables.add(
|
|
57
|
-
_extensionService.onDidChangeExtensions(this._updateForInstalledExtension, this)
|
|
58
|
-
);
|
|
59
|
-
this._disposables.add(
|
|
60
|
-
_notebookExecutionStateService.onDidChangeExecution(this._updateForExecution, this)
|
|
61
|
-
);
|
|
62
|
-
this._disposables.add(
|
|
63
|
-
_notebookExecutionStateService.onDidChangeLastRunFailState(this._updateForLastRunFailState, this)
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
dispose() {
|
|
67
|
-
this._disposables.dispose();
|
|
68
|
-
this._viewModelDisposables.dispose();
|
|
69
|
-
this._selectedKernelDisposables.dispose();
|
|
70
|
-
this._notebookKernelCount.reset();
|
|
71
|
-
this._notebookKernelSourceCount.reset();
|
|
72
|
-
this._interruptibleKernel.reset();
|
|
73
|
-
this._hasVariableProvider.reset();
|
|
74
|
-
this._someCellRunning.reset();
|
|
75
|
-
this._kernelRunning.reset();
|
|
76
|
-
this._viewType.reset();
|
|
77
|
-
dispose(this._cellOutputsListeners);
|
|
78
|
-
this._cellOutputsListeners.length = 0;
|
|
79
|
-
}
|
|
80
|
-
_handleDidChangeModel() {
|
|
81
|
-
this._updateKernelContext();
|
|
82
|
-
this._updateForNotebookOptions();
|
|
83
|
-
this._viewModelDisposables.clear();
|
|
84
|
-
dispose(this._cellOutputsListeners);
|
|
85
|
-
this._cellOutputsListeners.length = 0;
|
|
86
|
-
if (!this._editor.hasModel()) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const recomputeOutputsExistence = () => {
|
|
90
|
-
let hasOutputs = false;
|
|
91
|
-
if (this._editor.hasModel()) {
|
|
92
|
-
for (let i = 0; i < this._editor.getLength(); i++) {
|
|
93
|
-
if (this._editor.cellAt(i).outputsViewModels.length > 0) {
|
|
94
|
-
hasOutputs = true;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
this._hasOutputs.set(hasOutputs);
|
|
100
|
-
};
|
|
101
|
-
const layoutDisposable = this._viewModelDisposables.add(( new DisposableStore()));
|
|
102
|
-
const addCellOutputsListener = c => {
|
|
103
|
-
return c.model.onDidChangeOutputs(() => {
|
|
104
|
-
layoutDisposable.clear();
|
|
105
|
-
layoutDisposable.add(
|
|
106
|
-
scheduleAtNextAnimationFrame(getWindow(this._editor.getDomNode()), () => {
|
|
107
|
-
recomputeOutputsExistence();
|
|
108
|
-
})
|
|
109
|
-
);
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
for (let i = 0; i < this._editor.getLength(); i++) {
|
|
113
|
-
const cell = this._editor.cellAt(i);
|
|
114
|
-
this._cellOutputsListeners.push(addCellOutputsListener(cell));
|
|
115
|
-
}
|
|
116
|
-
recomputeOutputsExistence();
|
|
117
|
-
this._updateForInstalledExtension();
|
|
118
|
-
this._viewModelDisposables.add(this._editor.onDidChangeViewCells(e => {
|
|
119
|
-
[...e.splices].reverse().forEach(splice => {
|
|
120
|
-
const [start, deleted, newCells] = splice;
|
|
121
|
-
const deletedCellOutputStates = this._cellOutputsListeners.splice(start, deleted, ...( newCells.map(addCellOutputsListener)));
|
|
122
|
-
dispose(deletedCellOutputStates);
|
|
123
|
-
});
|
|
124
|
-
}));
|
|
125
|
-
this._viewType.set(this._editor.textModel.viewType);
|
|
126
|
-
}
|
|
127
|
-
_updateForExecution(e) {
|
|
128
|
-
if (this._editor.textModel) {
|
|
129
|
-
const notebookExe = this._notebookExecutionStateService.getExecution(this._editor.textModel.uri);
|
|
130
|
-
const notebookCellExe = this._notebookExecutionStateService.getCellExecutionsForNotebook(this._editor.textModel.uri);
|
|
131
|
-
this._kernelRunning.set(notebookCellExe.length > 0 || !!notebookExe);
|
|
132
|
-
if (e.type === NotebookExecutionType.cell) {
|
|
133
|
-
this._someCellRunning.set(notebookCellExe.length > 0);
|
|
134
|
-
}
|
|
135
|
-
} else {
|
|
136
|
-
this._kernelRunning.set(false);
|
|
137
|
-
if (e.type === NotebookExecutionType.cell) {
|
|
138
|
-
this._someCellRunning.set(false);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
_updateForLastRunFailState(e) {
|
|
143
|
-
if (e.notebook === this._editor.textModel?.uri) {
|
|
144
|
-
this._lastCellFailed.set(e.visible);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
async _updateForInstalledExtension() {
|
|
148
|
-
if (!this._editor.hasModel()) {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
const viewType = this._editor.textModel.viewType;
|
|
152
|
-
const kernelExtensionId = KERNEL_EXTENSIONS.get(viewType);
|
|
153
|
-
this._missingKernelExtension.set(
|
|
154
|
-
!!kernelExtensionId && !(await this._extensionService.getExtension(kernelExtensionId))
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
_updateKernelContext() {
|
|
158
|
-
if (!this._editor.hasModel()) {
|
|
159
|
-
this._notebookKernelCount.reset();
|
|
160
|
-
this._notebookKernelSourceCount.reset();
|
|
161
|
-
this._interruptibleKernel.reset();
|
|
162
|
-
this._hasVariableProvider.reset();
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
const {
|
|
166
|
-
selected,
|
|
167
|
-
all
|
|
168
|
-
} = this._notebookKernelService.getMatchingKernel(this._editor.textModel);
|
|
169
|
-
const sourceActions = this._notebookKernelService.getSourceActions(this._editor.textModel, this._editor.scopedContextKeyService);
|
|
170
|
-
this._notebookKernelCount.set(all.length);
|
|
171
|
-
this._notebookKernelSourceCount.set(sourceActions.length);
|
|
172
|
-
this._interruptibleKernel.set(selected?.implementsInterrupt ?? false);
|
|
173
|
-
this._hasVariableProvider.set(selected?.hasVariableProvider ?? false);
|
|
174
|
-
this._notebookKernelSelected.set(Boolean(selected));
|
|
175
|
-
this._notebookKernel.set(selected?.id ?? "");
|
|
176
|
-
this._selectedKernelDisposables.clear();
|
|
177
|
-
if (selected) {
|
|
178
|
-
this._selectedKernelDisposables.add(selected.onDidChange(() => {
|
|
179
|
-
this._interruptibleKernel.set(selected?.implementsInterrupt ?? false);
|
|
180
|
-
}));
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
_updateForNotebookOptions() {
|
|
184
|
-
const layout = this._editor.notebookOptions.getDisplayOptions();
|
|
185
|
-
this._useConsolidatedOutputButton.set(layout.consolidatedOutputButton);
|
|
186
|
-
this._cellToolbarLocation.set(
|
|
187
|
-
this._editor.notebookOptions.computeCellToolbarLocation(this._editor.textModel?.viewType)
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
NotebookEditorContextKeys = ( __decorate([( __param(1, INotebookKernelService)), ( __param(2, IContextKeyService)), ( __param(3, IExtensionService)), ( __param(4, INotebookExecutionStateService))], NotebookEditorContextKeys));
|
|
192
|
-
|
|
193
|
-
export { NotebookEditorContextKeys };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { INotebookEditorDelegate } from "../notebookBrowser.js";
|
|
3
|
-
export declare class NotebookHorizontalTracker extends Disposable {
|
|
4
|
-
private readonly _notebookEditor;
|
|
5
|
-
private readonly _listViewScrollablement;
|
|
6
|
-
constructor(_notebookEditor: INotebookEditorDelegate, _listViewScrollablement: HTMLElement);
|
|
7
|
-
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { addDisposableListener, EventType, getWindow } from '../../../../../base/browser/dom.js';
|
|
3
|
-
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
4
|
-
import { isMacintosh, isChrome } from '../../../../../base/common/platform.js';
|
|
5
|
-
|
|
6
|
-
class NotebookHorizontalTracker extends Disposable {
|
|
7
|
-
constructor(_notebookEditor, _listViewScrollablement) {
|
|
8
|
-
super();
|
|
9
|
-
this._notebookEditor = _notebookEditor;
|
|
10
|
-
this._listViewScrollablement = _listViewScrollablement;
|
|
11
|
-
this._register(addDisposableListener(this._listViewScrollablement, EventType.MOUSE_WHEEL, (event) => {
|
|
12
|
-
let deltaX = event.deltaX;
|
|
13
|
-
let deltaY = event.deltaY;
|
|
14
|
-
let wheelDeltaX = event.wheelDeltaX;
|
|
15
|
-
let wheelDeltaY = event.wheelDeltaY;
|
|
16
|
-
const wheelDelta = event.wheelDelta;
|
|
17
|
-
const shiftConvert = !isMacintosh && event.shiftKey;
|
|
18
|
-
if (shiftConvert && !deltaX) {
|
|
19
|
-
deltaX = deltaY;
|
|
20
|
-
deltaY = 0;
|
|
21
|
-
wheelDeltaX = wheelDeltaY;
|
|
22
|
-
wheelDeltaY = 0;
|
|
23
|
-
}
|
|
24
|
-
if (deltaX === 0) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const hoveringOnEditor = this._notebookEditor.codeEditors.find(editor => {
|
|
28
|
-
const editorLayout = editor[1].getLayoutInfo();
|
|
29
|
-
if (editorLayout.contentWidth === editorLayout.width) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
const editorDOM = editor[1].getDomNode();
|
|
33
|
-
if (editorDOM && editorDOM.contains(event.target)) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
});
|
|
38
|
-
if (!hoveringOnEditor) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const targetWindow = getWindow(event);
|
|
42
|
-
const evt = {
|
|
43
|
-
deltaMode: event.deltaMode,
|
|
44
|
-
deltaX: deltaX,
|
|
45
|
-
deltaY: 0,
|
|
46
|
-
deltaZ: 0,
|
|
47
|
-
wheelDelta: wheelDelta && isChrome ? (wheelDelta / targetWindow.devicePixelRatio) : wheelDelta,
|
|
48
|
-
wheelDeltaX: wheelDeltaX && isChrome ? (wheelDeltaX / targetWindow.devicePixelRatio) : wheelDeltaX,
|
|
49
|
-
wheelDeltaY: 0,
|
|
50
|
-
detail: event.detail,
|
|
51
|
-
shiftKey: event.shiftKey,
|
|
52
|
-
type: event.type,
|
|
53
|
-
defaultPrevented: false,
|
|
54
|
-
preventDefault: () => { },
|
|
55
|
-
stopPropagation: () => { }
|
|
56
|
-
};
|
|
57
|
-
hoveringOnEditor[1].delegateScrollFromMouseWheelEvent(evt);
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { NotebookHorizontalTracker };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { IAction } from "../../../../../base/common/actions.js";
|
|
2
|
-
import { Command } from "../../../../../editor/common/languages.js";
|
|
3
|
-
import { ICommandService } from "../../../../../platform/commands/common/commands.service.js";
|
|
4
|
-
import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
|
|
5
|
-
import { ILabelService } from "../../../../../platform/label/common/label.service.js";
|
|
6
|
-
import { ILogService } from "../../../../../platform/log/common/log.service.js";
|
|
7
|
-
import { IProductService } from "../../../../../platform/product/common/productService.service.js";
|
|
8
|
-
import { IQuickPickItem, QuickPickInput } from "../../../../../platform/quickinput/common/quickInput.js";
|
|
9
|
-
import { IQuickInputService } from "../../../../../platform/quickinput/common/quickInput.service.js";
|
|
10
|
-
import { IExtensionsWorkbenchService } from "../../../extensions/common/extensions.service.js";
|
|
11
|
-
import { IActiveNotebookEditor } from "../notebookBrowser.js";
|
|
12
|
-
import { NotebookEditorWidget } from "../notebookEditorWidget.js";
|
|
13
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
14
|
-
import { INotebookKernel, INotebookKernelMatchResult, ISourceAction } from "../../common/notebookKernelService.js";
|
|
15
|
-
import { INotebookKernelHistoryService } from "../../common/notebookKernelService.service.js";
|
|
16
|
-
import { INotebookKernelService } from "../../common/notebookKernelService.service.js";
|
|
17
|
-
import { IExtensionService } from "../../../../services/extensions/common/extensions.service.js";
|
|
18
|
-
import { IOpenerService } from "../../../../../platform/opener/common/opener.service.js";
|
|
19
|
-
import { INotebookTextModel } from "../../common/notebookCommon.js";
|
|
20
|
-
import { IExtensionManagementServerService } from "../../../../services/extensionManagement/common/extensionManagement.service.js";
|
|
21
|
-
type KernelPick = IQuickPickItem & {
|
|
22
|
-
kernel: INotebookKernel;
|
|
23
|
-
};
|
|
24
|
-
type GroupedKernelsPick = IQuickPickItem & {
|
|
25
|
-
kernels: INotebookKernel[];
|
|
26
|
-
source: string;
|
|
27
|
-
};
|
|
28
|
-
type SourcePick = IQuickPickItem & {
|
|
29
|
-
action: ISourceAction;
|
|
30
|
-
};
|
|
31
|
-
type InstallExtensionPick = IQuickPickItem & {
|
|
32
|
-
extensionIds: string[];
|
|
33
|
-
};
|
|
34
|
-
type SearchMarketplacePick = IQuickPickItem & {
|
|
35
|
-
id: "install";
|
|
36
|
-
};
|
|
37
|
-
type KernelSourceQuickPickItem = IQuickPickItem & {
|
|
38
|
-
command: Command;
|
|
39
|
-
documentation?: string;
|
|
40
|
-
};
|
|
41
|
-
type KernelQuickPickItem = (IQuickPickItem & {
|
|
42
|
-
autoRun?: boolean;
|
|
43
|
-
}) | SearchMarketplacePick | InstallExtensionPick | KernelPick | GroupedKernelsPick | SourcePick | KernelSourceQuickPickItem;
|
|
44
|
-
export type KernelQuickPickContext = {
|
|
45
|
-
id: string;
|
|
46
|
-
extension: string;
|
|
47
|
-
} | {
|
|
48
|
-
notebookEditorId: string;
|
|
49
|
-
} | {
|
|
50
|
-
id: string;
|
|
51
|
-
extension: string;
|
|
52
|
-
notebookEditorId: string;
|
|
53
|
-
} | {
|
|
54
|
-
ui?: boolean;
|
|
55
|
-
notebookEditor?: NotebookEditorWidget;
|
|
56
|
-
skipIfAlreadySelected?: boolean;
|
|
57
|
-
};
|
|
58
|
-
export interface IKernelPickerStrategy {
|
|
59
|
-
showQuickPick(editor: IActiveNotebookEditor, wantedKernelId?: string): Promise<boolean>;
|
|
60
|
-
}
|
|
61
|
-
declare abstract class KernelPickerStrategyBase implements IKernelPickerStrategy {
|
|
62
|
-
protected readonly _notebookKernelService: INotebookKernelService;
|
|
63
|
-
protected readonly _productService: IProductService;
|
|
64
|
-
protected readonly _quickInputService: IQuickInputService;
|
|
65
|
-
protected readonly _labelService: ILabelService;
|
|
66
|
-
protected readonly _logService: ILogService;
|
|
67
|
-
protected readonly _extensionWorkbenchService: IExtensionsWorkbenchService;
|
|
68
|
-
protected readonly _extensionService: IExtensionService;
|
|
69
|
-
protected readonly _commandService: ICommandService;
|
|
70
|
-
protected readonly _extensionManagementServerService: IExtensionManagementServerService;
|
|
71
|
-
constructor(_notebookKernelService: INotebookKernelService, _productService: IProductService, _quickInputService: IQuickInputService, _labelService: ILabelService, _logService: ILogService, _extensionWorkbenchService: IExtensionsWorkbenchService, _extensionService: IExtensionService, _commandService: ICommandService, _extensionManagementServerService: IExtensionManagementServerService);
|
|
72
|
-
showQuickPick(editor: IActiveNotebookEditor, wantedId?: string, skipAutoRun?: boolean): Promise<boolean>;
|
|
73
|
-
protected _getMatchingResult(notebook: NotebookTextModel): INotebookKernelMatchResult;
|
|
74
|
-
protected abstract _getKernelPickerQuickPickItems(notebookTextModel: NotebookTextModel, matchResult: INotebookKernelMatchResult, notebookKernelService: INotebookKernelService, scopedContextKeyService: IContextKeyService): QuickPickInput<KernelQuickPickItem>[];
|
|
75
|
-
protected _handleQuickPick(editor: IActiveNotebookEditor, pick: KernelQuickPickItem, quickPickItems: KernelQuickPickItem[]): Promise<boolean>;
|
|
76
|
-
protected _selecteKernel(notebook: NotebookTextModel, kernel: INotebookKernel): void;
|
|
77
|
-
protected _showKernelExtension(extensionWorkbenchService: IExtensionsWorkbenchService, extensionService: IExtensionService, extensionManagementServerService: IExtensionManagementServerService, viewType: string, extIds: string[], isInsiders?: boolean): Promise<void>;
|
|
78
|
-
private _showInstallKernelExtensionRecommendation;
|
|
79
|
-
protected _getKernelRecommendationsQuickPickItems(notebookTextModel: NotebookTextModel, extensionWorkbenchService: IExtensionsWorkbenchService): Promise<QuickPickInput<SearchMarketplacePick | InstallExtensionPick>[] | undefined>;
|
|
80
|
-
/**
|
|
81
|
-
* Examine the most common language in the notebook
|
|
82
|
-
* @param notebookTextModel The notebook text model
|
|
83
|
-
* @returns What the suggested language is for the notebook. Used for kernal installing
|
|
84
|
-
*/
|
|
85
|
-
private getSuggestedLanguage;
|
|
86
|
-
/**
|
|
87
|
-
* Given a language and notebook view type suggest a kernel for installation
|
|
88
|
-
* @param language The language to find a suggested kernel extension for
|
|
89
|
-
* @returns A recommednation object for the recommended extension, else undefined
|
|
90
|
-
*/
|
|
91
|
-
private getSuggestedKernelFromLanguage;
|
|
92
|
-
}
|
|
93
|
-
export declare class KernelPickerMRUStrategy extends KernelPickerStrategyBase {
|
|
94
|
-
private readonly _notebookKernelHistoryService;
|
|
95
|
-
private readonly _openerService;
|
|
96
|
-
constructor(_notebookKernelService: INotebookKernelService, _productService: IProductService, _quickInputService: IQuickInputService, _labelService: ILabelService, _logService: ILogService, _extensionWorkbenchService: IExtensionsWorkbenchService, _extensionService: IExtensionService, _extensionManagementServerService: IExtensionManagementServerService, _commandService: ICommandService, _notebookKernelHistoryService: INotebookKernelHistoryService, _openerService: IOpenerService);
|
|
97
|
-
protected _getKernelPickerQuickPickItems(notebookTextModel: NotebookTextModel, matchResult: INotebookKernelMatchResult, notebookKernelService: INotebookKernelService, scopedContextKeyService: IContextKeyService): QuickPickInput<KernelQuickPickItem>[];
|
|
98
|
-
protected _selecteKernel(notebook: NotebookTextModel, kernel: INotebookKernel): void;
|
|
99
|
-
protected _getMatchingResult(notebook: NotebookTextModel): INotebookKernelMatchResult;
|
|
100
|
-
protected _handleQuickPick(editor: IActiveNotebookEditor, pick: KernelQuickPickItem, items: KernelQuickPickItem[]): Promise<boolean>;
|
|
101
|
-
private displaySelectAnotherQuickPick;
|
|
102
|
-
private _calculdateKernelSources;
|
|
103
|
-
private _selectOneKernel;
|
|
104
|
-
private _executeCommand;
|
|
105
|
-
static updateKernelStatusAction(notebook: NotebookTextModel, action: IAction, notebookKernelService: INotebookKernelService, notebookKernelHistoryService: INotebookKernelHistoryService): void;
|
|
106
|
-
static resolveKernel(notebook: INotebookTextModel, notebookKernelService: INotebookKernelService, notebookKernelHistoryService: INotebookKernelHistoryService, commandService: ICommandService): Promise<INotebookKernel | undefined>;
|
|
107
|
-
}
|
|
108
|
-
export {};
|