@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,591 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { PixelRatio } from '../../../../base/browser/pixelRatio.js';
|
|
4
|
-
import { Emitter } from '../../../../base/common/event.js';
|
|
5
|
-
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
6
|
-
import '../../../../base/common/observableInternal/index.js';
|
|
7
|
-
import { isObject } from '../../../../base/common/types.js';
|
|
8
|
-
import { FontMeasurements } from '../../../../editor/browser/config/fontMeasurements.js';
|
|
9
|
-
import { ICodeEditorService } from '../../../../editor/browser/services/codeEditorService.service.js';
|
|
10
|
-
import { createBareFontInfoFromRawSettings } from '../../../../editor/common/config/fontInfoFromSettings.js';
|
|
11
|
-
import { ConfigurationTarget } from '../../../../platform/configuration/common/configuration.js';
|
|
12
|
-
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
13
|
-
import { NotebookSetting } from '../common/notebookCommon.js';
|
|
14
|
-
import { INotebookExecutionStateService } from '../common/notebookExecutionStateService.service.js';
|
|
15
|
-
import { observableValue } from '../../../../base/common/observableInternal/observables/observableValue.js';
|
|
16
|
-
|
|
17
|
-
const SCROLLABLE_ELEMENT_PADDING_TOP = 18;
|
|
18
|
-
const OutputInnerContainerTopPadding = 4;
|
|
19
|
-
const defaultConfigConstants = ( Object.freeze({
|
|
20
|
-
codeCellLeftMargin: 28,
|
|
21
|
-
cellRunGutter: 32,
|
|
22
|
-
markdownCellTopMargin: 8,
|
|
23
|
-
markdownCellBottomMargin: 8,
|
|
24
|
-
markdownCellLeftMargin: 0,
|
|
25
|
-
markdownCellGutter: 32,
|
|
26
|
-
focusIndicatorLeftMargin: 4
|
|
27
|
-
}));
|
|
28
|
-
const compactConfigConstants = ( Object.freeze({
|
|
29
|
-
codeCellLeftMargin: 8,
|
|
30
|
-
cellRunGutter: 36,
|
|
31
|
-
markdownCellTopMargin: 6,
|
|
32
|
-
markdownCellBottomMargin: 6,
|
|
33
|
-
markdownCellLeftMargin: 8,
|
|
34
|
-
markdownCellGutter: 36,
|
|
35
|
-
focusIndicatorLeftMargin: 4
|
|
36
|
-
}));
|
|
37
|
-
let NotebookOptions = class NotebookOptions extends Disposable {
|
|
38
|
-
constructor(
|
|
39
|
-
targetWindow,
|
|
40
|
-
isReadonly,
|
|
41
|
-
overrides,
|
|
42
|
-
configurationService,
|
|
43
|
-
notebookExecutionStateService,
|
|
44
|
-
codeEditorService
|
|
45
|
-
) {
|
|
46
|
-
super();
|
|
47
|
-
this.targetWindow = targetWindow;
|
|
48
|
-
this.isReadonly = isReadonly;
|
|
49
|
-
this.overrides = overrides;
|
|
50
|
-
this.configurationService = configurationService;
|
|
51
|
-
this.notebookExecutionStateService = notebookExecutionStateService;
|
|
52
|
-
this.codeEditorService = codeEditorService;
|
|
53
|
-
this._onDidChangeOptions = this._register(( new Emitter()));
|
|
54
|
-
this.onDidChangeOptions = this._onDidChangeOptions.event;
|
|
55
|
-
this._editorTopPadding = 12;
|
|
56
|
-
this.previousModelToCompare = observableValue("previousModelToCompare", undefined);
|
|
57
|
-
const showCellStatusBar = this.configurationService.getValue(NotebookSetting.showCellStatusBar);
|
|
58
|
-
const globalToolbar = overrides?.globalToolbar ?? this.configurationService.getValue(NotebookSetting.globalToolbar) ?? true;
|
|
59
|
-
const stickyScrollEnabled = overrides?.stickyScrollEnabled ?? this.configurationService.getValue(NotebookSetting.stickyScrollEnabled) ?? false;
|
|
60
|
-
const stickyScrollMode = this._computeStickyScrollModeOption();
|
|
61
|
-
const consolidatedOutputButton = this.configurationService.getValue(NotebookSetting.consolidatedOutputButton) ?? true;
|
|
62
|
-
const consolidatedRunButton = this.configurationService.getValue(NotebookSetting.consolidatedRunButton) ?? false;
|
|
63
|
-
const dragAndDropEnabled = overrides?.dragAndDropEnabled ?? this.configurationService.getValue(NotebookSetting.dragAndDropEnabled) ?? true;
|
|
64
|
-
const cellToolbarLocation = this.configurationService.getValue(NotebookSetting.cellToolbarLocation) ?? {
|
|
65
|
-
"default": "right"
|
|
66
|
-
};
|
|
67
|
-
const cellToolbarInteraction = overrides?.cellToolbarInteraction ?? this.configurationService.getValue(NotebookSetting.cellToolbarVisibility);
|
|
68
|
-
const compactView = this.configurationService.getValue(NotebookSetting.compactView) ?? true;
|
|
69
|
-
const focusIndicator = this._computeFocusIndicatorOption();
|
|
70
|
-
const insertToolbarPosition = this._computeInsertToolbarPositionOption(this.isReadonly);
|
|
71
|
-
const insertToolbarAlignment = this._computeInsertToolbarAlignmentOption();
|
|
72
|
-
const showFoldingControls = this._computeShowFoldingControlsOption();
|
|
73
|
-
const fontSize = this.configurationService.getValue("editor.fontSize");
|
|
74
|
-
const markupFontSize = this.configurationService.getValue(NotebookSetting.markupFontSize);
|
|
75
|
-
const markdownLineHeight = this.configurationService.getValue(NotebookSetting.markdownLineHeight);
|
|
76
|
-
let editorOptionsCustomizations = this.configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations) ?? {};
|
|
77
|
-
editorOptionsCustomizations = isObject(editorOptionsCustomizations) ? editorOptionsCustomizations : {};
|
|
78
|
-
const interactiveWindowCollapseCodeCells = this.configurationService.getValue(NotebookSetting.interactiveWindowCollapseCodeCells);
|
|
79
|
-
const outputLineHeightSettingValue = this.configurationService.getValue(NotebookSetting.outputLineHeight);
|
|
80
|
-
const outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize) || fontSize;
|
|
81
|
-
const outputFontFamily = this.configurationService.getValue(NotebookSetting.outputFontFamily);
|
|
82
|
-
const outputScrolling = this.configurationService.getValue(NotebookSetting.outputScrolling);
|
|
83
|
-
const outputLineHeight = this._computeOutputLineHeight(outputLineHeightSettingValue, outputFontSize);
|
|
84
|
-
const outputWordWrap = this.configurationService.getValue(NotebookSetting.outputWordWrap);
|
|
85
|
-
const outputLineLimit = this.configurationService.getValue(NotebookSetting.textOutputLineLimit) ?? 30;
|
|
86
|
-
const linkifyFilePaths = this.configurationService.getValue(NotebookSetting.LinkifyOutputFilePaths) ?? true;
|
|
87
|
-
const minimalErrors = this.configurationService.getValue(NotebookSetting.minimalErrorRendering);
|
|
88
|
-
const markupFontFamily = this.configurationService.getValue(NotebookSetting.markupFontFamily);
|
|
89
|
-
const editorTopPadding = this._computeEditorTopPadding();
|
|
90
|
-
this._layoutConfiguration = {
|
|
91
|
-
...(compactView ? compactConfigConstants : defaultConfigConstants),
|
|
92
|
-
cellTopMargin: 6,
|
|
93
|
-
cellBottomMargin: 6,
|
|
94
|
-
cellRightMargin: 16,
|
|
95
|
-
cellStatusBarHeight: 22,
|
|
96
|
-
cellOutputPadding: 8,
|
|
97
|
-
markdownPreviewPadding: 8,
|
|
98
|
-
editorToolbarHeight: 0,
|
|
99
|
-
editorTopPadding: editorTopPadding,
|
|
100
|
-
editorBottomPadding: 4,
|
|
101
|
-
editorBottomPaddingWithoutStatusBar: 12,
|
|
102
|
-
collapsedIndicatorHeight: 28,
|
|
103
|
-
showCellStatusBar,
|
|
104
|
-
globalToolbar,
|
|
105
|
-
stickyScrollEnabled,
|
|
106
|
-
stickyScrollMode,
|
|
107
|
-
consolidatedOutputButton,
|
|
108
|
-
consolidatedRunButton,
|
|
109
|
-
dragAndDropEnabled,
|
|
110
|
-
cellToolbarLocation,
|
|
111
|
-
cellToolbarInteraction,
|
|
112
|
-
compactView,
|
|
113
|
-
focusIndicator,
|
|
114
|
-
insertToolbarPosition,
|
|
115
|
-
insertToolbarAlignment,
|
|
116
|
-
showFoldingControls,
|
|
117
|
-
fontSize,
|
|
118
|
-
outputFontSize,
|
|
119
|
-
outputFontFamily,
|
|
120
|
-
outputLineHeight,
|
|
121
|
-
markupFontSize,
|
|
122
|
-
markdownLineHeight,
|
|
123
|
-
editorOptionsCustomizations,
|
|
124
|
-
focusIndicatorGap: 3,
|
|
125
|
-
interactiveWindowCollapseCodeCells,
|
|
126
|
-
markdownFoldHintHeight: 22,
|
|
127
|
-
outputScrolling: outputScrolling,
|
|
128
|
-
outputWordWrap: outputWordWrap,
|
|
129
|
-
outputLineLimit: outputLineLimit,
|
|
130
|
-
outputLinkifyFilePaths: linkifyFilePaths,
|
|
131
|
-
outputMinimalError: minimalErrors,
|
|
132
|
-
markupFontFamily,
|
|
133
|
-
disableRulers: overrides?.disableRulers
|
|
134
|
-
};
|
|
135
|
-
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
136
|
-
this._updateConfiguration(e);
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
updateOptions(isReadonly) {
|
|
140
|
-
if (this.isReadonly !== isReadonly) {
|
|
141
|
-
this.isReadonly = isReadonly;
|
|
142
|
-
this._updateConfiguration({
|
|
143
|
-
affectsConfiguration(configuration) {
|
|
144
|
-
return configuration === NotebookSetting.insertToolbarLocation;
|
|
145
|
-
},
|
|
146
|
-
source: ConfigurationTarget.DEFAULT,
|
|
147
|
-
affectedKeys: ( new Set([NotebookSetting.insertToolbarLocation])),
|
|
148
|
-
change: {
|
|
149
|
-
keys: [NotebookSetting.insertToolbarLocation],
|
|
150
|
-
overrides: []
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
_computeEditorTopPadding() {
|
|
156
|
-
let decorationTriggeredAdjustment = false;
|
|
157
|
-
const updateEditorTopPadding = top => {
|
|
158
|
-
this._editorTopPadding = top;
|
|
159
|
-
const configuration = Object.assign({}, this._layoutConfiguration);
|
|
160
|
-
configuration.editorTopPadding = this._editorTopPadding;
|
|
161
|
-
this._layoutConfiguration = configuration;
|
|
162
|
-
this._onDidChangeOptions.fire({
|
|
163
|
-
editorTopPadding: true
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
const decorationCheckSet = ( new Set());
|
|
167
|
-
const onDidAddDecorationType = e => {
|
|
168
|
-
if (decorationTriggeredAdjustment) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
if (( decorationCheckSet.has(e))) {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
try {
|
|
175
|
-
const options = this.codeEditorService.resolveDecorationOptions(e, true);
|
|
176
|
-
if (options.afterContentClassName || options.beforeContentClassName) {
|
|
177
|
-
const cssRules = this.codeEditorService.resolveDecorationCSSRules(e);
|
|
178
|
-
if (cssRules !== null) {
|
|
179
|
-
for (let i = 0; i < cssRules.length; i++) {
|
|
180
|
-
if ((cssRules[i].selectorText.endsWith("::after") || cssRules[i].selectorText.endsWith("::after")) && cssRules[i].cssText.indexOf("top:") > -1) {
|
|
181
|
-
const editorOptions = this.configurationService.getValue("editor");
|
|
182
|
-
updateEditorTopPadding(
|
|
183
|
-
createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(this.targetWindow).value).lineHeight + 2
|
|
184
|
-
);
|
|
185
|
-
decorationTriggeredAdjustment = true;
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
decorationCheckSet.add(e);
|
|
192
|
-
} catch (_ex) {}
|
|
193
|
-
};
|
|
194
|
-
this._register(this.codeEditorService.onDecorationTypeRegistered(onDidAddDecorationType));
|
|
195
|
-
this.codeEditorService.listDecorationTypes().forEach(onDidAddDecorationType);
|
|
196
|
-
return this._editorTopPadding;
|
|
197
|
-
}
|
|
198
|
-
_computeOutputLineHeight(lineHeight, outputFontSize) {
|
|
199
|
-
const minimumLineHeight = 9;
|
|
200
|
-
if (lineHeight === 0) {
|
|
201
|
-
const editorOptions = this.configurationService.getValue("editor");
|
|
202
|
-
const fontInfo = FontMeasurements.readFontInfo(
|
|
203
|
-
this.targetWindow,
|
|
204
|
-
createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(this.targetWindow).value)
|
|
205
|
-
);
|
|
206
|
-
lineHeight = fontInfo.lineHeight;
|
|
207
|
-
} else if (lineHeight < minimumLineHeight) {
|
|
208
|
-
let fontSize = outputFontSize;
|
|
209
|
-
if (fontSize === 0) {
|
|
210
|
-
fontSize = this.configurationService.getValue("editor.fontSize");
|
|
211
|
-
}
|
|
212
|
-
lineHeight = lineHeight * fontSize;
|
|
213
|
-
}
|
|
214
|
-
lineHeight = Math.round(lineHeight);
|
|
215
|
-
if (lineHeight < minimumLineHeight) {
|
|
216
|
-
lineHeight = minimumLineHeight;
|
|
217
|
-
}
|
|
218
|
-
return lineHeight;
|
|
219
|
-
}
|
|
220
|
-
_updateConfiguration(e) {
|
|
221
|
-
const cellStatusBarVisibility = e.affectsConfiguration(NotebookSetting.showCellStatusBar);
|
|
222
|
-
const cellToolbarLocation = e.affectsConfiguration(NotebookSetting.cellToolbarLocation);
|
|
223
|
-
const cellToolbarInteraction = e.affectsConfiguration(NotebookSetting.cellToolbarVisibility);
|
|
224
|
-
const compactView = e.affectsConfiguration(NotebookSetting.compactView);
|
|
225
|
-
const focusIndicator = e.affectsConfiguration(NotebookSetting.focusIndicator);
|
|
226
|
-
const insertToolbarPosition = e.affectsConfiguration(NotebookSetting.insertToolbarLocation);
|
|
227
|
-
const insertToolbarAlignment = e.affectsConfiguration(NotebookSetting.experimentalInsertToolbarAlignment);
|
|
228
|
-
const globalToolbar = e.affectsConfiguration(NotebookSetting.globalToolbar);
|
|
229
|
-
const stickyScrollEnabled = e.affectsConfiguration(NotebookSetting.stickyScrollEnabled);
|
|
230
|
-
const stickyScrollMode = e.affectsConfiguration(NotebookSetting.stickyScrollMode);
|
|
231
|
-
const consolidatedOutputButton = e.affectsConfiguration(NotebookSetting.consolidatedOutputButton);
|
|
232
|
-
const consolidatedRunButton = e.affectsConfiguration(NotebookSetting.consolidatedRunButton);
|
|
233
|
-
const showFoldingControls = e.affectsConfiguration(NotebookSetting.showFoldingControls);
|
|
234
|
-
const dragAndDropEnabled = e.affectsConfiguration(NotebookSetting.dragAndDropEnabled);
|
|
235
|
-
const fontSize = e.affectsConfiguration("editor.fontSize");
|
|
236
|
-
const outputFontSize = e.affectsConfiguration(NotebookSetting.outputFontSize);
|
|
237
|
-
const markupFontSize = e.affectsConfiguration(NotebookSetting.markupFontSize);
|
|
238
|
-
const markdownLineHeight = e.affectsConfiguration(NotebookSetting.markdownLineHeight);
|
|
239
|
-
const fontFamily = e.affectsConfiguration("editor.fontFamily");
|
|
240
|
-
const outputFontFamily = e.affectsConfiguration(NotebookSetting.outputFontFamily);
|
|
241
|
-
const editorOptionsCustomizations = e.affectsConfiguration(NotebookSetting.cellEditorOptionsCustomizations);
|
|
242
|
-
const interactiveWindowCollapseCodeCells = e.affectsConfiguration(NotebookSetting.interactiveWindowCollapseCodeCells);
|
|
243
|
-
const outputLineHeight = e.affectsConfiguration(NotebookSetting.outputLineHeight);
|
|
244
|
-
const outputScrolling = e.affectsConfiguration(NotebookSetting.outputScrolling);
|
|
245
|
-
const outputWordWrap = e.affectsConfiguration(NotebookSetting.outputWordWrap);
|
|
246
|
-
const outputLinkifyFilePaths = e.affectsConfiguration(NotebookSetting.LinkifyOutputFilePaths);
|
|
247
|
-
const minimalError = e.affectsConfiguration(NotebookSetting.minimalErrorRendering);
|
|
248
|
-
const markupFontFamily = e.affectsConfiguration(NotebookSetting.markupFontFamily);
|
|
249
|
-
if (!cellStatusBarVisibility && !cellToolbarLocation && !cellToolbarInteraction && !compactView && !focusIndicator && !insertToolbarPosition && !insertToolbarAlignment && !globalToolbar && !stickyScrollEnabled && !stickyScrollMode && !consolidatedOutputButton && !consolidatedRunButton && !showFoldingControls && !dragAndDropEnabled && !fontSize && !outputFontSize && !markupFontSize && !markdownLineHeight && !fontFamily && !outputFontFamily && !editorOptionsCustomizations && !interactiveWindowCollapseCodeCells && !outputLineHeight && !outputScrolling && !outputWordWrap && !outputLinkifyFilePaths && !minimalError && !markupFontFamily) {
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
let configuration = Object.assign({}, this._layoutConfiguration);
|
|
253
|
-
if (cellStatusBarVisibility) {
|
|
254
|
-
configuration.showCellStatusBar = this.configurationService.getValue(NotebookSetting.showCellStatusBar);
|
|
255
|
-
}
|
|
256
|
-
if (cellToolbarLocation) {
|
|
257
|
-
configuration.cellToolbarLocation = this.configurationService.getValue(NotebookSetting.cellToolbarLocation) ?? {
|
|
258
|
-
"default": "right"
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
if (cellToolbarInteraction && !this.overrides?.cellToolbarInteraction) {
|
|
262
|
-
configuration.cellToolbarInteraction = this.configurationService.getValue(NotebookSetting.cellToolbarVisibility);
|
|
263
|
-
}
|
|
264
|
-
if (focusIndicator) {
|
|
265
|
-
configuration.focusIndicator = this._computeFocusIndicatorOption();
|
|
266
|
-
}
|
|
267
|
-
if (compactView) {
|
|
268
|
-
const compactViewValue = this.configurationService.getValue(NotebookSetting.compactView) ?? true;
|
|
269
|
-
configuration = Object.assign(configuration, {
|
|
270
|
-
...(compactViewValue ? compactConfigConstants : defaultConfigConstants)
|
|
271
|
-
});
|
|
272
|
-
configuration.compactView = compactViewValue;
|
|
273
|
-
}
|
|
274
|
-
if (insertToolbarAlignment) {
|
|
275
|
-
configuration.insertToolbarAlignment = this._computeInsertToolbarAlignmentOption();
|
|
276
|
-
}
|
|
277
|
-
if (insertToolbarPosition) {
|
|
278
|
-
configuration.insertToolbarPosition = this._computeInsertToolbarPositionOption(this.isReadonly);
|
|
279
|
-
}
|
|
280
|
-
if (globalToolbar && this.overrides?.globalToolbar === undefined) {
|
|
281
|
-
configuration.globalToolbar = this.configurationService.getValue(NotebookSetting.globalToolbar) ?? true;
|
|
282
|
-
}
|
|
283
|
-
if (stickyScrollEnabled && this.overrides?.stickyScrollEnabled === undefined) {
|
|
284
|
-
configuration.stickyScrollEnabled = this.configurationService.getValue(NotebookSetting.stickyScrollEnabled) ?? false;
|
|
285
|
-
}
|
|
286
|
-
if (stickyScrollMode) {
|
|
287
|
-
configuration.stickyScrollMode = this.configurationService.getValue(NotebookSetting.stickyScrollMode) ?? "flat";
|
|
288
|
-
}
|
|
289
|
-
if (consolidatedOutputButton) {
|
|
290
|
-
configuration.consolidatedOutputButton = this.configurationService.getValue(NotebookSetting.consolidatedOutputButton) ?? true;
|
|
291
|
-
}
|
|
292
|
-
if (consolidatedRunButton) {
|
|
293
|
-
configuration.consolidatedRunButton = this.configurationService.getValue(NotebookSetting.consolidatedRunButton) ?? true;
|
|
294
|
-
}
|
|
295
|
-
if (showFoldingControls) {
|
|
296
|
-
configuration.showFoldingControls = this._computeShowFoldingControlsOption();
|
|
297
|
-
}
|
|
298
|
-
if (dragAndDropEnabled) {
|
|
299
|
-
configuration.dragAndDropEnabled = this.configurationService.getValue(NotebookSetting.dragAndDropEnabled) ?? true;
|
|
300
|
-
}
|
|
301
|
-
if (fontSize) {
|
|
302
|
-
configuration.fontSize = this.configurationService.getValue("editor.fontSize");
|
|
303
|
-
}
|
|
304
|
-
if (outputFontSize || fontSize) {
|
|
305
|
-
configuration.outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize) || configuration.fontSize;
|
|
306
|
-
}
|
|
307
|
-
if (markupFontSize) {
|
|
308
|
-
configuration.markupFontSize = this.configurationService.getValue(NotebookSetting.markupFontSize);
|
|
309
|
-
}
|
|
310
|
-
if (markdownLineHeight) {
|
|
311
|
-
configuration.markdownLineHeight = this.configurationService.getValue(NotebookSetting.markdownLineHeight);
|
|
312
|
-
}
|
|
313
|
-
if (outputFontFamily) {
|
|
314
|
-
configuration.outputFontFamily = this.configurationService.getValue(NotebookSetting.outputFontFamily);
|
|
315
|
-
}
|
|
316
|
-
if (editorOptionsCustomizations) {
|
|
317
|
-
configuration.editorOptionsCustomizations = this.configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
|
|
318
|
-
}
|
|
319
|
-
if (interactiveWindowCollapseCodeCells) {
|
|
320
|
-
configuration.interactiveWindowCollapseCodeCells = this.configurationService.getValue(NotebookSetting.interactiveWindowCollapseCodeCells);
|
|
321
|
-
}
|
|
322
|
-
if (outputLineHeight || fontSize || outputFontSize) {
|
|
323
|
-
const lineHeight = this.configurationService.getValue(NotebookSetting.outputLineHeight);
|
|
324
|
-
configuration.outputLineHeight = this._computeOutputLineHeight(lineHeight, configuration.outputFontSize);
|
|
325
|
-
}
|
|
326
|
-
if (outputWordWrap) {
|
|
327
|
-
configuration.outputWordWrap = this.configurationService.getValue(NotebookSetting.outputWordWrap);
|
|
328
|
-
}
|
|
329
|
-
if (outputScrolling) {
|
|
330
|
-
configuration.outputScrolling = this.configurationService.getValue(NotebookSetting.outputScrolling);
|
|
331
|
-
}
|
|
332
|
-
if (outputLinkifyFilePaths) {
|
|
333
|
-
configuration.outputLinkifyFilePaths = this.configurationService.getValue(NotebookSetting.LinkifyOutputFilePaths);
|
|
334
|
-
}
|
|
335
|
-
if (minimalError) {
|
|
336
|
-
configuration.outputMinimalError = this.configurationService.getValue(NotebookSetting.minimalErrorRendering);
|
|
337
|
-
}
|
|
338
|
-
if (markupFontFamily) {
|
|
339
|
-
configuration.markupFontFamily = this.configurationService.getValue(NotebookSetting.markupFontFamily);
|
|
340
|
-
}
|
|
341
|
-
this._layoutConfiguration = ( Object.freeze(configuration));
|
|
342
|
-
this._onDidChangeOptions.fire({
|
|
343
|
-
cellStatusBarVisibility,
|
|
344
|
-
cellToolbarLocation,
|
|
345
|
-
cellToolbarInteraction,
|
|
346
|
-
compactView,
|
|
347
|
-
focusIndicator,
|
|
348
|
-
insertToolbarPosition,
|
|
349
|
-
insertToolbarAlignment,
|
|
350
|
-
globalToolbar,
|
|
351
|
-
stickyScrollEnabled,
|
|
352
|
-
stickyScrollMode,
|
|
353
|
-
showFoldingControls,
|
|
354
|
-
consolidatedOutputButton,
|
|
355
|
-
consolidatedRunButton,
|
|
356
|
-
dragAndDropEnabled,
|
|
357
|
-
fontSize,
|
|
358
|
-
outputFontSize,
|
|
359
|
-
markupFontSize,
|
|
360
|
-
markdownLineHeight,
|
|
361
|
-
fontFamily,
|
|
362
|
-
outputFontFamily,
|
|
363
|
-
editorOptionsCustomizations,
|
|
364
|
-
interactiveWindowCollapseCodeCells,
|
|
365
|
-
outputLineHeight,
|
|
366
|
-
outputScrolling,
|
|
367
|
-
outputWordWrap,
|
|
368
|
-
outputLinkifyFilePaths,
|
|
369
|
-
minimalError,
|
|
370
|
-
markupFontFamily
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
_computeInsertToolbarPositionOption(isReadOnly) {
|
|
374
|
-
return isReadOnly ? "hidden" : this.configurationService.getValue(NotebookSetting.insertToolbarLocation) ?? "both";
|
|
375
|
-
}
|
|
376
|
-
_computeInsertToolbarAlignmentOption() {
|
|
377
|
-
return this.configurationService.getValue(NotebookSetting.experimentalInsertToolbarAlignment) ?? "center";
|
|
378
|
-
}
|
|
379
|
-
_computeShowFoldingControlsOption() {
|
|
380
|
-
return this.configurationService.getValue(NotebookSetting.showFoldingControls) ?? "mouseover";
|
|
381
|
-
}
|
|
382
|
-
_computeFocusIndicatorOption() {
|
|
383
|
-
return this.configurationService.getValue(NotebookSetting.focusIndicator) ?? "gutter";
|
|
384
|
-
}
|
|
385
|
-
_computeStickyScrollModeOption() {
|
|
386
|
-
return this.configurationService.getValue(NotebookSetting.stickyScrollMode) ?? "flat";
|
|
387
|
-
}
|
|
388
|
-
getCellCollapseDefault() {
|
|
389
|
-
return this._layoutConfiguration.interactiveWindowCollapseCodeCells === "never" ? {
|
|
390
|
-
codeCell: {
|
|
391
|
-
inputCollapsed: false
|
|
392
|
-
}
|
|
393
|
-
} : {
|
|
394
|
-
codeCell: {
|
|
395
|
-
inputCollapsed: true
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
getLayoutConfiguration() {
|
|
400
|
-
return this._layoutConfiguration;
|
|
401
|
-
}
|
|
402
|
-
getDisplayOptions() {
|
|
403
|
-
return this._layoutConfiguration;
|
|
404
|
-
}
|
|
405
|
-
getCellEditorContainerLeftMargin() {
|
|
406
|
-
const {
|
|
407
|
-
codeCellLeftMargin,
|
|
408
|
-
cellRunGutter
|
|
409
|
-
} = this._layoutConfiguration;
|
|
410
|
-
return codeCellLeftMargin + cellRunGutter;
|
|
411
|
-
}
|
|
412
|
-
computeCollapsedMarkdownCellHeight(viewType) {
|
|
413
|
-
const {
|
|
414
|
-
bottomToolbarGap
|
|
415
|
-
} = this.computeBottomToolbarDimensions(viewType);
|
|
416
|
-
return this._layoutConfiguration.markdownCellTopMargin + this._layoutConfiguration.collapsedIndicatorHeight + bottomToolbarGap + this._layoutConfiguration.markdownCellBottomMargin;
|
|
417
|
-
}
|
|
418
|
-
computeBottomToolbarOffset(totalHeight, viewType) {
|
|
419
|
-
const {
|
|
420
|
-
bottomToolbarGap,
|
|
421
|
-
bottomToolbarHeight
|
|
422
|
-
} = this.computeBottomToolbarDimensions(viewType);
|
|
423
|
-
return totalHeight - bottomToolbarGap - bottomToolbarHeight / 2;
|
|
424
|
-
}
|
|
425
|
-
computeCodeCellEditorWidth(outerWidth) {
|
|
426
|
-
return outerWidth - (this._layoutConfiguration.codeCellLeftMargin + this._layoutConfiguration.cellRunGutter + this._layoutConfiguration.cellRightMargin);
|
|
427
|
-
}
|
|
428
|
-
computeMarkdownCellEditorWidth(outerWidth) {
|
|
429
|
-
return outerWidth - this._layoutConfiguration.markdownCellGutter - this._layoutConfiguration.markdownCellLeftMargin - this._layoutConfiguration.cellRightMargin;
|
|
430
|
-
}
|
|
431
|
-
computeStatusBarHeight() {
|
|
432
|
-
return this._layoutConfiguration.cellStatusBarHeight;
|
|
433
|
-
}
|
|
434
|
-
_computeBottomToolbarDimensions(compactView, insertToolbarPosition, insertToolbarAlignment, cellToolbar) {
|
|
435
|
-
if (insertToolbarAlignment === "left" || cellToolbar !== "hidden") {
|
|
436
|
-
return {
|
|
437
|
-
bottomToolbarGap: 18,
|
|
438
|
-
bottomToolbarHeight: 18
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
if (insertToolbarPosition === "betweenCells" || insertToolbarPosition === "both") {
|
|
442
|
-
return compactView ? {
|
|
443
|
-
bottomToolbarGap: 12,
|
|
444
|
-
bottomToolbarHeight: 20
|
|
445
|
-
} : {
|
|
446
|
-
bottomToolbarGap: 20,
|
|
447
|
-
bottomToolbarHeight: 20
|
|
448
|
-
};
|
|
449
|
-
} else {
|
|
450
|
-
return {
|
|
451
|
-
bottomToolbarGap: 0,
|
|
452
|
-
bottomToolbarHeight: 0
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
computeBottomToolbarDimensions(viewType) {
|
|
457
|
-
const configuration = this._layoutConfiguration;
|
|
458
|
-
const cellToolbarPosition = this.computeCellToolbarLocation(viewType);
|
|
459
|
-
const {
|
|
460
|
-
bottomToolbarGap,
|
|
461
|
-
bottomToolbarHeight
|
|
462
|
-
} = this._computeBottomToolbarDimensions(
|
|
463
|
-
configuration.compactView,
|
|
464
|
-
configuration.insertToolbarPosition,
|
|
465
|
-
configuration.insertToolbarAlignment,
|
|
466
|
-
cellToolbarPosition
|
|
467
|
-
);
|
|
468
|
-
return {
|
|
469
|
-
bottomToolbarGap,
|
|
470
|
-
bottomToolbarHeight
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
computeCellToolbarLocation(viewType) {
|
|
474
|
-
const cellToolbarLocation = this._layoutConfiguration.cellToolbarLocation;
|
|
475
|
-
if (typeof cellToolbarLocation === "string") {
|
|
476
|
-
if (cellToolbarLocation === "left" || cellToolbarLocation === "right" || cellToolbarLocation === "hidden") {
|
|
477
|
-
return cellToolbarLocation;
|
|
478
|
-
}
|
|
479
|
-
} else {
|
|
480
|
-
if (viewType) {
|
|
481
|
-
const notebookSpecificSetting = cellToolbarLocation[viewType] ?? cellToolbarLocation["default"];
|
|
482
|
-
let cellToolbarLocationForCurrentView = "right";
|
|
483
|
-
switch (notebookSpecificSetting) {
|
|
484
|
-
case "left":
|
|
485
|
-
cellToolbarLocationForCurrentView = "left";
|
|
486
|
-
break;
|
|
487
|
-
case "right":
|
|
488
|
-
cellToolbarLocationForCurrentView = "right";
|
|
489
|
-
break;
|
|
490
|
-
case "hidden":
|
|
491
|
-
cellToolbarLocationForCurrentView = "hidden";
|
|
492
|
-
break;
|
|
493
|
-
default:
|
|
494
|
-
cellToolbarLocationForCurrentView = "right";
|
|
495
|
-
break;
|
|
496
|
-
}
|
|
497
|
-
return cellToolbarLocationForCurrentView;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return "right";
|
|
501
|
-
}
|
|
502
|
-
computeTopInsertToolbarHeight(viewType) {
|
|
503
|
-
if (this._layoutConfiguration.insertToolbarPosition === "betweenCells" || this._layoutConfiguration.insertToolbarPosition === "both") {
|
|
504
|
-
return SCROLLABLE_ELEMENT_PADDING_TOP;
|
|
505
|
-
}
|
|
506
|
-
const cellToolbarLocation = this.computeCellToolbarLocation(viewType);
|
|
507
|
-
if (cellToolbarLocation === "left" || cellToolbarLocation === "right") {
|
|
508
|
-
return SCROLLABLE_ELEMENT_PADDING_TOP;
|
|
509
|
-
}
|
|
510
|
-
return 0;
|
|
511
|
-
}
|
|
512
|
-
computeEditorPadding(internalMetadata, cellUri) {
|
|
513
|
-
return {
|
|
514
|
-
top: this._editorTopPadding,
|
|
515
|
-
bottom: this.statusBarIsVisible(internalMetadata, cellUri) ? this._layoutConfiguration.editorBottomPadding : this._layoutConfiguration.editorBottomPaddingWithoutStatusBar
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
computeEditorStatusbarHeight(internalMetadata, cellUri) {
|
|
519
|
-
return this.statusBarIsVisible(internalMetadata, cellUri) ? this.computeStatusBarHeight() : 0;
|
|
520
|
-
}
|
|
521
|
-
statusBarIsVisible(internalMetadata, cellUri) {
|
|
522
|
-
const exe = this.notebookExecutionStateService.getCellExecution(cellUri);
|
|
523
|
-
if (this._layoutConfiguration.showCellStatusBar === "visible") {
|
|
524
|
-
return true;
|
|
525
|
-
} else if (this._layoutConfiguration.showCellStatusBar === "visibleAfterExecute") {
|
|
526
|
-
return typeof internalMetadata.lastRunSuccess === "boolean" || exe !== undefined;
|
|
527
|
-
} else {
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
computeWebviewOptions() {
|
|
532
|
-
return {
|
|
533
|
-
outputNodePadding: this._layoutConfiguration.cellOutputPadding,
|
|
534
|
-
outputNodeLeftPadding: this._layoutConfiguration.cellOutputPadding,
|
|
535
|
-
previewNodePadding: this._layoutConfiguration.markdownPreviewPadding,
|
|
536
|
-
markdownLeftMargin: this._layoutConfiguration.markdownCellGutter + this._layoutConfiguration.markdownCellLeftMargin,
|
|
537
|
-
leftMargin: this._layoutConfiguration.codeCellLeftMargin,
|
|
538
|
-
rightMargin: this._layoutConfiguration.cellRightMargin,
|
|
539
|
-
runGutter: this._layoutConfiguration.cellRunGutter,
|
|
540
|
-
dragAndDropEnabled: this._layoutConfiguration.dragAndDropEnabled,
|
|
541
|
-
fontSize: this._layoutConfiguration.fontSize,
|
|
542
|
-
outputFontSize: this._layoutConfiguration.outputFontSize,
|
|
543
|
-
outputFontFamily: this._layoutConfiguration.outputFontFamily,
|
|
544
|
-
markupFontSize: this._layoutConfiguration.markupFontSize,
|
|
545
|
-
markdownLineHeight: this._layoutConfiguration.markdownLineHeight,
|
|
546
|
-
outputLineHeight: this._layoutConfiguration.outputLineHeight,
|
|
547
|
-
outputScrolling: this._layoutConfiguration.outputScrolling,
|
|
548
|
-
outputWordWrap: this._layoutConfiguration.outputWordWrap,
|
|
549
|
-
outputLineLimit: this._layoutConfiguration.outputLineLimit,
|
|
550
|
-
outputLinkifyFilePaths: this._layoutConfiguration.outputLinkifyFilePaths,
|
|
551
|
-
minimalError: this._layoutConfiguration.outputMinimalError,
|
|
552
|
-
markupFontFamily: this._layoutConfiguration.markupFontFamily
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
computeDiffWebviewOptions() {
|
|
556
|
-
return {
|
|
557
|
-
outputNodePadding: this._layoutConfiguration.cellOutputPadding,
|
|
558
|
-
outputNodeLeftPadding: 0,
|
|
559
|
-
previewNodePadding: this._layoutConfiguration.markdownPreviewPadding,
|
|
560
|
-
markdownLeftMargin: 0,
|
|
561
|
-
leftMargin: 32,
|
|
562
|
-
rightMargin: 0,
|
|
563
|
-
runGutter: 0,
|
|
564
|
-
dragAndDropEnabled: false,
|
|
565
|
-
fontSize: this._layoutConfiguration.fontSize,
|
|
566
|
-
outputFontSize: this._layoutConfiguration.outputFontSize,
|
|
567
|
-
outputFontFamily: this._layoutConfiguration.outputFontFamily,
|
|
568
|
-
markupFontSize: this._layoutConfiguration.markupFontSize,
|
|
569
|
-
markdownLineHeight: this._layoutConfiguration.markdownLineHeight,
|
|
570
|
-
outputLineHeight: this._layoutConfiguration.outputLineHeight,
|
|
571
|
-
outputScrolling: this._layoutConfiguration.outputScrolling,
|
|
572
|
-
outputWordWrap: this._layoutConfiguration.outputWordWrap,
|
|
573
|
-
outputLineLimit: this._layoutConfiguration.outputLineLimit,
|
|
574
|
-
outputLinkifyFilePaths: false,
|
|
575
|
-
minimalError: false,
|
|
576
|
-
markupFontFamily: this._layoutConfiguration.markupFontFamily
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
computeIndicatorPosition(totalHeight, foldHintHeight, viewType) {
|
|
580
|
-
const {
|
|
581
|
-
bottomToolbarGap
|
|
582
|
-
} = this.computeBottomToolbarDimensions(viewType);
|
|
583
|
-
return {
|
|
584
|
-
bottomIndicatorTop: totalHeight - bottomToolbarGap - this._layoutConfiguration.cellBottomMargin - foldHintHeight,
|
|
585
|
-
verticalIndicatorHeight: totalHeight - bottomToolbarGap - foldHintHeight
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
NotebookOptions = ( __decorate([( __param(3, IConfigurationService)), ( __param(4, INotebookExecutionStateService)), ( __param(5, ICodeEditorService))], NotebookOptions));
|
|
590
|
-
|
|
591
|
-
export { NotebookOptions, OutputInnerContainerTopPadding };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { FontInfo } from "../../../../editor/common/config/fontInfo.js";
|
|
2
|
-
import { NotebookCellTextModel } from "../common/model/notebookCellTextModel.js";
|
|
3
|
-
import { NotebookDocumentMetadata } from "../common/notebookCommon.js";
|
|
4
|
-
export interface NotebookLayoutInfo {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
scrollHeight: number;
|
|
8
|
-
fontInfo: FontInfo;
|
|
9
|
-
stickyHeight: number;
|
|
10
|
-
listViewOffsetTop: number;
|
|
11
|
-
}
|
|
12
|
-
export interface CellViewModelStateChangeEvent {
|
|
13
|
-
readonly metadataChanged?: boolean;
|
|
14
|
-
readonly internalMetadataChanged?: boolean;
|
|
15
|
-
readonly selectionChanged?: boolean;
|
|
16
|
-
readonly focusModeChanged?: boolean;
|
|
17
|
-
readonly editStateChanged?: boolean;
|
|
18
|
-
readonly languageChanged?: boolean;
|
|
19
|
-
readonly foldingStateChanged?: boolean;
|
|
20
|
-
readonly contentChanged?: boolean;
|
|
21
|
-
readonly outputIsHoveredChanged?: boolean;
|
|
22
|
-
readonly outputIsFocusedChanged?: boolean;
|
|
23
|
-
readonly cellIsHoveredChanged?: boolean;
|
|
24
|
-
readonly cellLineNumberChanged?: boolean;
|
|
25
|
-
readonly inputCollapsedChanged?: boolean;
|
|
26
|
-
readonly outputCollapsedChanged?: boolean;
|
|
27
|
-
readonly dragStateChanged?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface NotebookLayoutChangeEvent {
|
|
30
|
-
width?: boolean;
|
|
31
|
-
height?: boolean;
|
|
32
|
-
fontInfo?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare enum NotebookViewEventType {
|
|
35
|
-
LayoutChanged = 1,
|
|
36
|
-
MetadataChanged = 2,
|
|
37
|
-
CellStateChanged = 3
|
|
38
|
-
}
|
|
39
|
-
export declare class NotebookLayoutChangedEvent {
|
|
40
|
-
readonly source: NotebookLayoutChangeEvent;
|
|
41
|
-
readonly value: NotebookLayoutInfo;
|
|
42
|
-
readonly type = NotebookViewEventType.LayoutChanged;
|
|
43
|
-
constructor(source: NotebookLayoutChangeEvent, value: NotebookLayoutInfo);
|
|
44
|
-
}
|
|
45
|
-
export declare class NotebookMetadataChangedEvent {
|
|
46
|
-
readonly source: NotebookDocumentMetadata;
|
|
47
|
-
readonly type = NotebookViewEventType.MetadataChanged;
|
|
48
|
-
constructor(source: NotebookDocumentMetadata);
|
|
49
|
-
}
|
|
50
|
-
export declare class NotebookCellStateChangedEvent {
|
|
51
|
-
readonly source: CellViewModelStateChangeEvent;
|
|
52
|
-
readonly cell: NotebookCellTextModel;
|
|
53
|
-
readonly type = NotebookViewEventType.CellStateChanged;
|
|
54
|
-
constructor(source: CellViewModelStateChangeEvent, cell: NotebookCellTextModel);
|
|
55
|
-
}
|
|
56
|
-
export type NotebookViewEvent = NotebookLayoutChangedEvent | NotebookMetadataChangedEvent | NotebookCellStateChangedEvent;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var NotebookViewEventType;
|
|
4
|
-
(function (NotebookViewEventType) {
|
|
5
|
-
NotebookViewEventType[NotebookViewEventType["LayoutChanged"] = 1] = "LayoutChanged";
|
|
6
|
-
NotebookViewEventType[NotebookViewEventType["MetadataChanged"] = 2] = "MetadataChanged";
|
|
7
|
-
NotebookViewEventType[NotebookViewEventType["CellStateChanged"] = 3] = "CellStateChanged";
|
|
8
|
-
})(NotebookViewEventType || (NotebookViewEventType = {}));
|
|
9
|
-
class NotebookLayoutChangedEvent {
|
|
10
|
-
constructor(source, value) {
|
|
11
|
-
this.source = source;
|
|
12
|
-
this.value = value;
|
|
13
|
-
this.type = NotebookViewEventType.LayoutChanged;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
class NotebookMetadataChangedEvent {
|
|
17
|
-
constructor(source) {
|
|
18
|
-
this.source = source;
|
|
19
|
-
this.type = NotebookViewEventType.MetadataChanged;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class NotebookCellStateChangedEvent {
|
|
23
|
-
constructor(source, cell) {
|
|
24
|
-
this.source = source;
|
|
25
|
-
this.cell = cell;
|
|
26
|
-
this.type = NotebookViewEventType.CellStateChanged;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { NotebookCellStateChangedEvent, NotebookLayoutChangedEvent, NotebookMetadataChangedEvent, NotebookViewEventType };
|