@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,23 +0,0 @@
|
|
|
1
|
-
import { ActionViewItem, IActionViewItemOptions } from "../../../../../base/browser/ui/actionbar/actionViewItems.js";
|
|
2
|
-
import { IAction } from "../../../../../base/common/actions.js";
|
|
3
|
-
import { Event } from "../../../../../base/common/event.js";
|
|
4
|
-
import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
|
|
5
|
-
import { INotebookEditor } from "../notebookBrowser.js";
|
|
6
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
7
|
-
import { INotebookKernelHistoryService } from "../../common/notebookKernelService.service.js";
|
|
8
|
-
import { INotebookKernelService } from "../../common/notebookKernelService.service.js";
|
|
9
|
-
export declare class NotebooKernelActionViewItem extends ActionViewItem {
|
|
10
|
-
private readonly _editor;
|
|
11
|
-
private readonly _notebookKernelService;
|
|
12
|
-
private readonly _notebookKernelHistoryService;
|
|
13
|
-
private _kernelLabel?;
|
|
14
|
-
constructor(actualAction: IAction, _editor: {
|
|
15
|
-
onDidChangeModel: Event<void>;
|
|
16
|
-
textModel: NotebookTextModel | undefined;
|
|
17
|
-
scopedContextKeyService?: IContextKeyService;
|
|
18
|
-
} | INotebookEditor, options: IActionViewItemOptions, _notebookKernelService: INotebookKernelService, _notebookKernelHistoryService: INotebookKernelHistoryService);
|
|
19
|
-
render(container: HTMLElement): void;
|
|
20
|
-
protected updateLabel(): void;
|
|
21
|
-
protected _update(): void;
|
|
22
|
-
private _resetAction;
|
|
23
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { ActionViewItem } from '../../../../../base/browser/ui/actionbar/actionViewItems.js';
|
|
4
|
-
import { Action } from '../../../../../base/common/actions.js';
|
|
5
|
-
import { localize, localize2 } from '../../../../../nls.js';
|
|
6
|
-
import { registerAction2, Action2, MenuId } from '../../../../../platform/actions/common/actions.js';
|
|
7
|
-
import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
8
|
-
import { ExtensionIdentifier } from '../../../../../platform/extensions/common/extensions.js';
|
|
9
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
10
|
-
import { ThemeIcon } from '../../../../../base/common/themables.js';
|
|
11
|
-
import { NOTEBOOK_ACTIONS_CATEGORY, SELECT_KERNEL_ID } from '../controller/coreActions.js';
|
|
12
|
-
import { getNotebookEditorFromEditorPane } from '../notebookBrowser.js';
|
|
13
|
-
import { selectKernelIcon } from '../notebookIcons.js';
|
|
14
|
-
import { KernelPickerMRUStrategy } from './notebookKernelQuickPickStrategy.js';
|
|
15
|
-
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_KERNEL_COUNT } from '../../common/notebookContextKeys.js';
|
|
16
|
-
import { INotebookKernelService, INotebookKernelHistoryService } from '../../common/notebookKernelService.service.js';
|
|
17
|
-
import { IEditorService } from '../../../../services/editor/common/editorService.service.js';
|
|
18
|
-
import { createElement } from '../../../../../base/browser/dom.js';
|
|
19
|
-
|
|
20
|
-
function getEditorFromContext(editorService, context) {
|
|
21
|
-
let editor;
|
|
22
|
-
if (context !== undefined && "notebookEditorId" in context) {
|
|
23
|
-
const editorId = context.notebookEditorId;
|
|
24
|
-
const matchingEditor = editorService.visibleEditorPanes.find(editorPane => {
|
|
25
|
-
const notebookEditor = getNotebookEditorFromEditorPane(editorPane);
|
|
26
|
-
return notebookEditor?.getId() === editorId;
|
|
27
|
-
});
|
|
28
|
-
editor = getNotebookEditorFromEditorPane(matchingEditor);
|
|
29
|
-
} else if (context !== undefined && "notebookEditor" in context) {
|
|
30
|
-
editor = context?.notebookEditor;
|
|
31
|
-
} else {
|
|
32
|
-
editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
33
|
-
}
|
|
34
|
-
return editor;
|
|
35
|
-
}
|
|
36
|
-
function shouldSkip(selected, controllerId, extensionId, context) {
|
|
37
|
-
return !!(selected && (
|
|
38
|
-
(context && "skipIfAlreadySelected" in context && context.skipIfAlreadySelected) || (controllerId && selected.id === controllerId && ExtensionIdentifier.equals(selected.extension, extensionId))));
|
|
39
|
-
}
|
|
40
|
-
registerAction2(class extends Action2 {
|
|
41
|
-
constructor() {
|
|
42
|
-
super({
|
|
43
|
-
id: SELECT_KERNEL_ID,
|
|
44
|
-
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
45
|
-
title: ( localize2(14863, "Select Notebook Kernel")),
|
|
46
|
-
icon: selectKernelIcon,
|
|
47
|
-
f1: true,
|
|
48
|
-
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
49
|
-
menu: [{
|
|
50
|
-
id: MenuId.EditorTitle,
|
|
51
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, ( ContextKeyExpr.notEquals("config.notebook.globalToolbar", true)))),
|
|
52
|
-
group: "navigation",
|
|
53
|
-
order: -10
|
|
54
|
-
}, {
|
|
55
|
-
id: MenuId.NotebookToolbar,
|
|
56
|
-
when: ( ContextKeyExpr.equals("config.notebook.globalToolbar", true)),
|
|
57
|
-
group: "status",
|
|
58
|
-
order: -10
|
|
59
|
-
}, {
|
|
60
|
-
id: MenuId.InteractiveToolbar,
|
|
61
|
-
when: ( NOTEBOOK_KERNEL_COUNT.notEqualsTo(0)),
|
|
62
|
-
group: "status",
|
|
63
|
-
order: -10
|
|
64
|
-
}],
|
|
65
|
-
metadata: {
|
|
66
|
-
description: ( localize(14864, "Notebook Kernel Args")),
|
|
67
|
-
args: [{
|
|
68
|
-
name: "kernelInfo",
|
|
69
|
-
description: "The kernel info",
|
|
70
|
-
schema: {
|
|
71
|
-
"type": "object",
|
|
72
|
-
"required": ["id", "extension"],
|
|
73
|
-
"properties": {
|
|
74
|
-
"id": {
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"extension": {
|
|
78
|
-
"type": "string"
|
|
79
|
-
},
|
|
80
|
-
"notebookEditorId": {
|
|
81
|
-
"type": "string"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}]
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async run(accessor, context) {
|
|
90
|
-
const instantiationService = accessor.get(IInstantiationService);
|
|
91
|
-
const editorService = accessor.get(IEditorService);
|
|
92
|
-
const editor = getEditorFromContext(editorService, context);
|
|
93
|
-
if (!editor || !editor.hasModel()) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
let controllerId = context && "id" in context ? context.id : undefined;
|
|
97
|
-
let extensionId = context && "extension" in context ? context.extension : undefined;
|
|
98
|
-
if (controllerId && (typeof controllerId !== "string" || typeof extensionId !== "string")) {
|
|
99
|
-
controllerId = undefined;
|
|
100
|
-
extensionId = undefined;
|
|
101
|
-
}
|
|
102
|
-
const notebook = editor.textModel;
|
|
103
|
-
const notebookKernelService = accessor.get(INotebookKernelService);
|
|
104
|
-
const {
|
|
105
|
-
selected
|
|
106
|
-
} = notebookKernelService.getMatchingKernel(notebook);
|
|
107
|
-
if (shouldSkip(selected, controllerId, extensionId, context)) {
|
|
108
|
-
return true;
|
|
109
|
-
}
|
|
110
|
-
const wantedKernelId = controllerId ? `${extensionId}/${controllerId}` : undefined;
|
|
111
|
-
const strategy = instantiationService.createInstance(KernelPickerMRUStrategy);
|
|
112
|
-
return strategy.showQuickPick(editor, wantedKernelId);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
let NotebooKernelActionViewItem = class NotebooKernelActionViewItem extends ActionViewItem {
|
|
116
|
-
constructor(
|
|
117
|
-
actualAction,
|
|
118
|
-
_editor,
|
|
119
|
-
options,
|
|
120
|
-
_notebookKernelService,
|
|
121
|
-
_notebookKernelHistoryService
|
|
122
|
-
) {
|
|
123
|
-
const action = ( new Action(
|
|
124
|
-
"fakeAction",
|
|
125
|
-
undefined,
|
|
126
|
-
ThemeIcon.asClassName(selectKernelIcon),
|
|
127
|
-
true,
|
|
128
|
-
event => actualAction.run(event)
|
|
129
|
-
));
|
|
130
|
-
super(undefined, action, {
|
|
131
|
-
...options,
|
|
132
|
-
label: false,
|
|
133
|
-
icon: true
|
|
134
|
-
});
|
|
135
|
-
this._editor = _editor;
|
|
136
|
-
this._notebookKernelService = _notebookKernelService;
|
|
137
|
-
this._notebookKernelHistoryService = _notebookKernelHistoryService;
|
|
138
|
-
this._register(action);
|
|
139
|
-
this._register(_editor.onDidChangeModel(this._update, this));
|
|
140
|
-
this._register(_notebookKernelService.onDidAddKernel(this._update, this));
|
|
141
|
-
this._register(_notebookKernelService.onDidRemoveKernel(this._update, this));
|
|
142
|
-
this._register(_notebookKernelService.onDidChangeNotebookAffinity(this._update, this));
|
|
143
|
-
this._register(_notebookKernelService.onDidChangeSelectedNotebooks(this._update, this));
|
|
144
|
-
this._register(_notebookKernelService.onDidChangeSourceActions(this._update, this));
|
|
145
|
-
this._register(_notebookKernelService.onDidChangeKernelDetectionTasks(this._update, this));
|
|
146
|
-
}
|
|
147
|
-
render(container) {
|
|
148
|
-
this._update();
|
|
149
|
-
super.render(container);
|
|
150
|
-
container.classList.add("kernel-action-view-item");
|
|
151
|
-
this._kernelLabel = createElement("a");
|
|
152
|
-
container.appendChild(this._kernelLabel);
|
|
153
|
-
this.updateLabel();
|
|
154
|
-
}
|
|
155
|
-
updateLabel() {
|
|
156
|
-
if (this._kernelLabel) {
|
|
157
|
-
this._kernelLabel.classList.add("kernel-label");
|
|
158
|
-
this._kernelLabel.innerText = this._action.label;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
_update() {
|
|
162
|
-
const notebook = this._editor.textModel;
|
|
163
|
-
if (!notebook) {
|
|
164
|
-
this._resetAction();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
KernelPickerMRUStrategy.updateKernelStatusAction(
|
|
168
|
-
notebook,
|
|
169
|
-
this._action,
|
|
170
|
-
this._notebookKernelService,
|
|
171
|
-
this._notebookKernelHistoryService
|
|
172
|
-
);
|
|
173
|
-
this.updateClass();
|
|
174
|
-
}
|
|
175
|
-
_resetAction() {
|
|
176
|
-
this._action.enabled = false;
|
|
177
|
-
this._action.label = "";
|
|
178
|
-
this._action.class = "";
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
NotebooKernelActionViewItem = ( __decorate([( __param(3, INotebookKernelService)), ( __param(4, INotebookKernelHistoryService))], NotebooKernelActionViewItem));
|
|
182
|
-
|
|
183
|
-
export { NotebooKernelActionViewItem };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Themable } from "../../../../../platform/theme/common/themeService.js";
|
|
2
|
-
import { IThemeService } from "../../../../../platform/theme/common/themeService.service.js";
|
|
3
|
-
import { INotebookEditorDelegate } from "../notebookBrowser.js";
|
|
4
|
-
export declare class NotebookOverviewRuler extends Themable {
|
|
5
|
-
readonly notebookEditor: INotebookEditorDelegate;
|
|
6
|
-
private readonly _domNode;
|
|
7
|
-
private _lanes;
|
|
8
|
-
constructor(notebookEditor: INotebookEditorDelegate, container: HTMLElement, themeService: IThemeService);
|
|
9
|
-
layout(): void;
|
|
10
|
-
private _render;
|
|
11
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { createElement, getWindow } from '../../../../../base/browser/dom.js';
|
|
4
|
-
import { createFastDomNode } from '../../../../../base/browser/fastDomNode.js';
|
|
5
|
-
import { PixelRatio } from '../../../../../base/browser/pixelRatio.js';
|
|
6
|
-
import { Themable } from '../../../../../platform/theme/common/themeService.js';
|
|
7
|
-
import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
|
|
8
|
-
import { NotebookOverviewRulerLane } from '../notebookBrowser.js';
|
|
9
|
-
|
|
10
|
-
let NotebookOverviewRuler = class NotebookOverviewRuler extends Themable {
|
|
11
|
-
constructor(notebookEditor, container, themeService) {
|
|
12
|
-
super(themeService);
|
|
13
|
-
this.notebookEditor = notebookEditor;
|
|
14
|
-
this._lanes = 3;
|
|
15
|
-
this._domNode = createFastDomNode(createElement("canvas"));
|
|
16
|
-
this._domNode.setPosition("relative");
|
|
17
|
-
this._domNode.setLayerHinting(true);
|
|
18
|
-
this._domNode.setContain("strict");
|
|
19
|
-
container.appendChild(this._domNode.domNode);
|
|
20
|
-
this._register(notebookEditor.onDidChangeDecorations(() => {
|
|
21
|
-
this.layout();
|
|
22
|
-
}));
|
|
23
|
-
this._register(
|
|
24
|
-
PixelRatio.getInstance(getWindow(this._domNode.domNode)).onDidChange(() => {
|
|
25
|
-
this.layout();
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
layout() {
|
|
30
|
-
const width = 10;
|
|
31
|
-
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
32
|
-
const scrollHeight = layoutInfo.scrollHeight;
|
|
33
|
-
const height = layoutInfo.height;
|
|
34
|
-
const ratio = PixelRatio.getInstance(getWindow(this._domNode.domNode)).value;
|
|
35
|
-
this._domNode.setWidth(width);
|
|
36
|
-
this._domNode.setHeight(height);
|
|
37
|
-
this._domNode.domNode.width = width * ratio;
|
|
38
|
-
this._domNode.domNode.height = height * ratio;
|
|
39
|
-
const ctx = this._domNode.domNode.getContext("2d");
|
|
40
|
-
ctx.clearRect(0, 0, width * ratio, height * ratio);
|
|
41
|
-
this._render(ctx, width * ratio, height * ratio, scrollHeight * ratio, ratio);
|
|
42
|
-
}
|
|
43
|
-
_render(ctx, width, height, scrollHeight, ratio) {
|
|
44
|
-
const viewModel = this.notebookEditor.getViewModel();
|
|
45
|
-
const fontInfo = this.notebookEditor.getLayoutInfo().fontInfo;
|
|
46
|
-
const laneWidth = width / this._lanes;
|
|
47
|
-
let currentFrom = 0;
|
|
48
|
-
if (viewModel) {
|
|
49
|
-
for (let i = 0; i < viewModel.viewCells.length; i++) {
|
|
50
|
-
const viewCell = viewModel.viewCells[i];
|
|
51
|
-
const textBuffer = viewCell.textBuffer;
|
|
52
|
-
const decorations = viewCell.getCellDecorations();
|
|
53
|
-
const cellHeight = (viewCell.layoutInfo.totalHeight / scrollHeight) * ratio * height;
|
|
54
|
-
decorations.filter(decoration => decoration.overviewRuler).forEach(decoration => {
|
|
55
|
-
const overviewRuler = decoration.overviewRuler;
|
|
56
|
-
const fillStyle = this.getColor(overviewRuler.color) ?? "#000000";
|
|
57
|
-
const lineHeight = Math.min(
|
|
58
|
-
fontInfo.lineHeight,
|
|
59
|
-
(viewCell.layoutInfo.editorHeight / scrollHeight / textBuffer.getLineCount()) * ratio * height
|
|
60
|
-
);
|
|
61
|
-
const lineNumbers = ( overviewRuler.modelRanges.map(range => range.startLineNumber)).reduce((previous, current) => {
|
|
62
|
-
if (previous.length === 0) {
|
|
63
|
-
previous.push(current);
|
|
64
|
-
} else {
|
|
65
|
-
const last = previous[previous.length - 1];
|
|
66
|
-
if (last !== current) {
|
|
67
|
-
previous.push(current);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return previous;
|
|
71
|
-
}, []);
|
|
72
|
-
let x = 0;
|
|
73
|
-
switch (overviewRuler.position) {
|
|
74
|
-
case NotebookOverviewRulerLane.Left:
|
|
75
|
-
x = 0;
|
|
76
|
-
break;
|
|
77
|
-
case NotebookOverviewRulerLane.Center:
|
|
78
|
-
x = laneWidth;
|
|
79
|
-
break;
|
|
80
|
-
case NotebookOverviewRulerLane.Right:
|
|
81
|
-
x = laneWidth * 2;
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
const width = overviewRuler.position === NotebookOverviewRulerLane.Full ? laneWidth * 3 : laneWidth;
|
|
85
|
-
for (let i = 0; i < lineNumbers.length; i++) {
|
|
86
|
-
ctx.fillStyle = fillStyle;
|
|
87
|
-
const lineNumber = lineNumbers[i];
|
|
88
|
-
const offset = (lineNumber - 1) * lineHeight;
|
|
89
|
-
ctx.fillRect(x, currentFrom + offset, width, lineHeight);
|
|
90
|
-
}
|
|
91
|
-
if (overviewRuler.includeOutput) {
|
|
92
|
-
ctx.fillStyle = fillStyle;
|
|
93
|
-
const outputOffset = (viewCell.layoutInfo.editorHeight / scrollHeight) * ratio * height;
|
|
94
|
-
const decorationHeight = (fontInfo.lineHeight / scrollHeight) * ratio * height;
|
|
95
|
-
ctx.fillRect(laneWidth, currentFrom + outputOffset, laneWidth, decorationHeight);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
currentFrom += cellHeight;
|
|
99
|
-
}
|
|
100
|
-
const overviewRulerDecorations = viewModel.getOverviewRulerDecorations();
|
|
101
|
-
for (let i = 0; i < overviewRulerDecorations.length; i++) {
|
|
102
|
-
const decoration = overviewRulerDecorations[i];
|
|
103
|
-
if (!decoration.options.overviewRuler) {
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
const viewZoneInfo = this.notebookEditor.getViewZoneLayoutInfo(decoration.viewZoneId);
|
|
107
|
-
if (!viewZoneInfo) {
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
const fillStyle = this.getColor(decoration.options.overviewRuler.color) ?? "#000000";
|
|
111
|
-
let x = 0;
|
|
112
|
-
switch (decoration.options.overviewRuler.position) {
|
|
113
|
-
case NotebookOverviewRulerLane.Left:
|
|
114
|
-
x = 0;
|
|
115
|
-
break;
|
|
116
|
-
case NotebookOverviewRulerLane.Center:
|
|
117
|
-
x = laneWidth;
|
|
118
|
-
break;
|
|
119
|
-
case NotebookOverviewRulerLane.Right:
|
|
120
|
-
x = laneWidth * 2;
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
const width = decoration.options.overviewRuler.position === NotebookOverviewRulerLane.Full ? laneWidth * 3 : laneWidth;
|
|
124
|
-
ctx.fillStyle = fillStyle;
|
|
125
|
-
const viewZoneHeight = (viewZoneInfo.height / scrollHeight) * ratio * height;
|
|
126
|
-
const viewZoneTop = (viewZoneInfo.top / scrollHeight) * ratio * height;
|
|
127
|
-
ctx.fillRect(x, viewZoneTop, width, viewZoneHeight);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
NotebookOverviewRuler = ( __decorate([( __param(2, IThemeService))], NotebookOverviewRuler));
|
|
133
|
-
|
|
134
|
-
export { NotebookOverviewRuler };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { IMenuService } from "../../../../../platform/actions/common/actions.service.js";
|
|
3
|
-
import { IContextMenuService } from "../../../../../platform/contextview/browser/contextView.service.js";
|
|
4
|
-
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
5
|
-
import { INotebookEditorDelegate } from "../notebookBrowser.js";
|
|
6
|
-
import { NotebookOptions } from "../notebookOptions.js";
|
|
7
|
-
export declare class ListTopCellToolbar extends Disposable {
|
|
8
|
-
protected readonly notebookEditor: INotebookEditorDelegate;
|
|
9
|
-
private readonly notebookOptions;
|
|
10
|
-
protected readonly instantiationService: IInstantiationService;
|
|
11
|
-
protected readonly contextMenuService: IContextMenuService;
|
|
12
|
-
protected readonly menuService: IMenuService;
|
|
13
|
-
private readonly topCellToolbarContainer;
|
|
14
|
-
private topCellToolbar;
|
|
15
|
-
private readonly viewZone;
|
|
16
|
-
private readonly _modelDisposables;
|
|
17
|
-
constructor(notebookEditor: INotebookEditorDelegate, notebookOptions: NotebookOptions, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, menuService: IMenuService);
|
|
18
|
-
private updateTopToolbar;
|
|
19
|
-
private updateClass;
|
|
20
|
-
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { $, clearNode } from '../../../../../base/browser/dom.js';
|
|
4
|
-
import { Disposable, MutableDisposable, DisposableStore } from '../../../../../base/common/lifecycle.js';
|
|
5
|
-
import { MenuWorkbenchToolBar, HiddenItemStrategy } from '../../../../../platform/actions/browser/toolbar.js';
|
|
6
|
-
import { MenuItemAction } from '../../../../../platform/actions/common/actions.js';
|
|
7
|
-
import { IMenuService } from '../../../../../platform/actions/common/actions.service.js';
|
|
8
|
-
import { IContextMenuService } from '../../../../../platform/contextview/browser/contextView.service.js';
|
|
9
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
10
|
-
import { CodiconActionViewItem } from '../view/cellParts/cellActionView.js';
|
|
11
|
-
|
|
12
|
-
let ListTopCellToolbar = class ListTopCellToolbar extends Disposable {
|
|
13
|
-
constructor(
|
|
14
|
-
notebookEditor,
|
|
15
|
-
notebookOptions,
|
|
16
|
-
instantiationService,
|
|
17
|
-
contextMenuService,
|
|
18
|
-
menuService
|
|
19
|
-
) {
|
|
20
|
-
super();
|
|
21
|
-
this.notebookEditor = notebookEditor;
|
|
22
|
-
this.notebookOptions = notebookOptions;
|
|
23
|
-
this.instantiationService = instantiationService;
|
|
24
|
-
this.contextMenuService = contextMenuService;
|
|
25
|
-
this.menuService = menuService;
|
|
26
|
-
this.viewZone = this._register(( new MutableDisposable()));
|
|
27
|
-
this._modelDisposables = this._register(( new DisposableStore()));
|
|
28
|
-
this.topCellToolbarContainer = $("div");
|
|
29
|
-
this.topCellToolbar = $(".cell-list-top-cell-toolbar-container");
|
|
30
|
-
this.topCellToolbarContainer.appendChild(this.topCellToolbar);
|
|
31
|
-
this._register(this.notebookEditor.onDidAttachViewModel(() => {
|
|
32
|
-
this.updateTopToolbar();
|
|
33
|
-
}));
|
|
34
|
-
this._register(this.notebookOptions.onDidChangeOptions(e => {
|
|
35
|
-
if (e.insertToolbarAlignment || e.insertToolbarPosition || e.cellToolbarLocation) {
|
|
36
|
-
this.updateTopToolbar();
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
updateTopToolbar() {
|
|
41
|
-
const layoutInfo = this.notebookOptions.getLayoutConfiguration();
|
|
42
|
-
this.viewZone.value = ( new DisposableStore());
|
|
43
|
-
if (layoutInfo.insertToolbarPosition === "hidden" || layoutInfo.insertToolbarPosition === "notebookToolbar") {
|
|
44
|
-
const height = this.notebookOptions.computeTopInsertToolbarHeight(this.notebookEditor.textModel?.viewType);
|
|
45
|
-
if (height !== 0) {
|
|
46
|
-
this.notebookEditor.changeViewZones(accessor => {
|
|
47
|
-
const id = accessor.addZone({
|
|
48
|
-
afterModelPosition: 0,
|
|
49
|
-
heightInPx: height,
|
|
50
|
-
domNode: $("div")
|
|
51
|
-
});
|
|
52
|
-
accessor.layoutZone(id);
|
|
53
|
-
this.viewZone.value?.add({
|
|
54
|
-
dispose: () => {
|
|
55
|
-
if (!this.notebookEditor.isDisposed) {
|
|
56
|
-
this.notebookEditor.changeViewZones(accessor => {
|
|
57
|
-
accessor.removeZone(id);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
this.notebookEditor.changeViewZones(accessor => {
|
|
67
|
-
const height = this.notebookOptions.computeTopInsertToolbarHeight(this.notebookEditor.textModel?.viewType);
|
|
68
|
-
const id = accessor.addZone({
|
|
69
|
-
afterModelPosition: 0,
|
|
70
|
-
heightInPx: height,
|
|
71
|
-
domNode: this.topCellToolbarContainer
|
|
72
|
-
});
|
|
73
|
-
accessor.layoutZone(id);
|
|
74
|
-
this.viewZone.value?.add({
|
|
75
|
-
dispose: () => {
|
|
76
|
-
if (!this.notebookEditor.isDisposed) {
|
|
77
|
-
this.notebookEditor.changeViewZones(accessor => {
|
|
78
|
-
accessor.removeZone(id);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
clearNode(this.topCellToolbar);
|
|
84
|
-
const toolbar = this.instantiationService.createInstance(
|
|
85
|
-
MenuWorkbenchToolBar,
|
|
86
|
-
this.topCellToolbar,
|
|
87
|
-
this.notebookEditor.creationOptions.menuIds.cellTopInsertToolbar,
|
|
88
|
-
{
|
|
89
|
-
actionViewItemProvider: (action, options) => {
|
|
90
|
-
if (action instanceof MenuItemAction) {
|
|
91
|
-
const item = this.instantiationService.createInstance(CodiconActionViewItem, action, {
|
|
92
|
-
hoverDelegate: options.hoverDelegate
|
|
93
|
-
});
|
|
94
|
-
return item;
|
|
95
|
-
}
|
|
96
|
-
return undefined;
|
|
97
|
-
},
|
|
98
|
-
menuOptions: {
|
|
99
|
-
shouldForwardArgs: true
|
|
100
|
-
},
|
|
101
|
-
toolbarOptions: {
|
|
102
|
-
primaryGroup: g => /^inline/.test(g)
|
|
103
|
-
},
|
|
104
|
-
hiddenItemStrategy: HiddenItemStrategy.Ignore
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
if (this.notebookEditor.hasModel()) {
|
|
108
|
-
toolbar.context = {
|
|
109
|
-
notebookEditor: this.notebookEditor
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
this.viewZone.value?.add(toolbar);
|
|
113
|
-
this.viewZone.value?.add(this.notebookEditor.onDidChangeModel(() => {
|
|
114
|
-
this._modelDisposables.clear();
|
|
115
|
-
if (this.notebookEditor.hasModel()) {
|
|
116
|
-
this._modelDisposables.add(this.notebookEditor.onDidChangeViewCells(() => {
|
|
117
|
-
this.updateClass();
|
|
118
|
-
}));
|
|
119
|
-
this.updateClass();
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
this.updateClass();
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
updateClass() {
|
|
126
|
-
if (this.notebookEditor.hasModel() && this.notebookEditor.getLength() === 0) {
|
|
127
|
-
this.topCellToolbar.classList.add("emptyNotebook");
|
|
128
|
-
} else {
|
|
129
|
-
this.topCellToolbar.classList.remove("emptyNotebook");
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
ListTopCellToolbar = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextMenuService)), ( __param(4, IMenuService))], ListTopCellToolbar));
|
|
134
|
-
|
|
135
|
-
export { ListTopCellToolbar };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FastDomNode } from "../../../../../base/browser/fastDomNode.js";
|
|
2
|
-
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
3
|
-
import { INotebookViewCellsUpdateEvent, INotebookViewZoneChangeAccessor } from "../notebookBrowser.js";
|
|
4
|
-
import { NotebookCellListView } from "../view/notebookCellListView.js";
|
|
5
|
-
import { ICoordinatesConverter } from "../view/notebookRenderingCommon.js";
|
|
6
|
-
import { CellViewModel } from "../viewModel/notebookViewModelImpl.js";
|
|
7
|
-
export declare class NotebookViewZones extends Disposable {
|
|
8
|
-
private readonly listView;
|
|
9
|
-
private readonly coordinator;
|
|
10
|
-
private _zones;
|
|
11
|
-
domNode: FastDomNode<HTMLElement>;
|
|
12
|
-
constructor(listView: NotebookCellListView<CellViewModel>, coordinator: ICoordinatesConverter);
|
|
13
|
-
changeViewZones(callback: (changeAccessor: INotebookViewZoneChangeAccessor) => void): boolean;
|
|
14
|
-
getViewZoneLayoutInfo(viewZoneId: string): {
|
|
15
|
-
height: number;
|
|
16
|
-
top: number;
|
|
17
|
-
} | null;
|
|
18
|
-
onCellsChanged(e: INotebookViewCellsUpdateEvent): void;
|
|
19
|
-
onHiddenRangesChange(): void;
|
|
20
|
-
private _updateWhitespace;
|
|
21
|
-
layout(): void;
|
|
22
|
-
private _addZone;
|
|
23
|
-
private _removeZone;
|
|
24
|
-
private _layoutZone;
|
|
25
|
-
private _isInHiddenRanges;
|
|
26
|
-
dispose(): void;
|
|
27
|
-
}
|