@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,472 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { Emitter, PauseableEmitter } from '../../../../../base/common/event.js';
|
|
4
|
-
import { dispose } from '../../../../../base/common/lifecycle.js';
|
|
5
|
-
import '../../../../../base/common/observableInternal/index.js';
|
|
6
|
-
import { generateUuid } from '../../../../../base/common/uuid.js';
|
|
7
|
-
import { ICodeEditorService } from '../../../../../editor/browser/services/codeEditorService.service.js';
|
|
8
|
-
import { PrefixSumComputer } from '../../../../../editor/common/model/prefixSumComputer.js';
|
|
9
|
-
import { ITextModelService } from '../../../../../editor/common/services/resolverService.service.js';
|
|
10
|
-
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
11
|
-
import { IUndoRedoService } from '../../../../../platform/undoRedo/common/undoRedo.service.js';
|
|
12
|
-
import { CellLayoutState, CellEditState } from '../notebookBrowser.js';
|
|
13
|
-
import { CellOutputViewModel } from './cellOutputViewModel.js';
|
|
14
|
-
import { CellKind } from '../../common/notebookCommon.js';
|
|
15
|
-
import { INotebookService } from '../../common/notebookService.service.js';
|
|
16
|
-
import { BaseCellViewModel } from './baseCellViewModel.js';
|
|
17
|
-
import { IInlineChatSessionService } from '../../../inlineChat/browser/inlineChatSessionService.service.js';
|
|
18
|
-
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
19
|
-
|
|
20
|
-
const outputDisplayLimit = 500;
|
|
21
|
-
let CodeCellViewModel = class CodeCellViewModel extends BaseCellViewModel {
|
|
22
|
-
set editorHeight(height) {
|
|
23
|
-
if (this._editorHeight === height) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this._editorHeight = height;
|
|
27
|
-
this.layoutChange({
|
|
28
|
-
editorHeight: true
|
|
29
|
-
}, "CodeCellViewModel#editorHeight");
|
|
30
|
-
}
|
|
31
|
-
get editorHeight() {
|
|
32
|
-
throw ( new Error("editorHeight is write-only"));
|
|
33
|
-
}
|
|
34
|
-
set chatHeight(height) {
|
|
35
|
-
if (this._chatHeight === height) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
this._chatHeight = height;
|
|
39
|
-
this.layoutChange({
|
|
40
|
-
chatHeight: true
|
|
41
|
-
}, "CodeCellViewModel#chatHeight");
|
|
42
|
-
}
|
|
43
|
-
get chatHeight() {
|
|
44
|
-
return this._chatHeight;
|
|
45
|
-
}
|
|
46
|
-
get outputIsHovered() {
|
|
47
|
-
return this._hoveringOutput;
|
|
48
|
-
}
|
|
49
|
-
set outputIsHovered(v) {
|
|
50
|
-
this._hoveringOutput = v;
|
|
51
|
-
this._onDidChangeState.fire({
|
|
52
|
-
outputIsHoveredChanged: true
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
get outputIsFocused() {
|
|
56
|
-
return this._focusOnOutput;
|
|
57
|
-
}
|
|
58
|
-
set outputIsFocused(v) {
|
|
59
|
-
this._focusOnOutput = v;
|
|
60
|
-
this._onDidChangeState.fire({
|
|
61
|
-
outputIsFocusedChanged: true
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
get inputInOutputIsFocused() {
|
|
65
|
-
return this._focusInputInOutput;
|
|
66
|
-
}
|
|
67
|
-
set inputInOutputIsFocused(v) {
|
|
68
|
-
this._focusInputInOutput = v;
|
|
69
|
-
}
|
|
70
|
-
get outputMinHeight() {
|
|
71
|
-
return this._outputMinHeight;
|
|
72
|
-
}
|
|
73
|
-
set outputMinHeight(newMin) {
|
|
74
|
-
this._outputMinHeight = newMin;
|
|
75
|
-
}
|
|
76
|
-
get layoutInfo() {
|
|
77
|
-
return this._layoutInfo;
|
|
78
|
-
}
|
|
79
|
-
get outputsViewModels() {
|
|
80
|
-
return this._outputViewModels;
|
|
81
|
-
}
|
|
82
|
-
constructor(
|
|
83
|
-
viewType,
|
|
84
|
-
model,
|
|
85
|
-
initialNotebookLayoutInfo,
|
|
86
|
-
viewContext,
|
|
87
|
-
configurationService,
|
|
88
|
-
_notebookService,
|
|
89
|
-
modelService,
|
|
90
|
-
undoRedoService,
|
|
91
|
-
codeEditorService,
|
|
92
|
-
inlineChatSessionService
|
|
93
|
-
) {
|
|
94
|
-
super(
|
|
95
|
-
viewType,
|
|
96
|
-
model,
|
|
97
|
-
generateUuid(),
|
|
98
|
-
viewContext,
|
|
99
|
-
configurationService,
|
|
100
|
-
modelService,
|
|
101
|
-
undoRedoService,
|
|
102
|
-
codeEditorService,
|
|
103
|
-
inlineChatSessionService
|
|
104
|
-
);
|
|
105
|
-
this.viewContext = viewContext;
|
|
106
|
-
this._notebookService = _notebookService;
|
|
107
|
-
this.cellKind = CellKind.Code;
|
|
108
|
-
this._onLayoutInfoRead = this._register(( new Emitter()));
|
|
109
|
-
this.onLayoutInfoRead = this._onLayoutInfoRead.event;
|
|
110
|
-
this._onDidStartExecution = this._register(( new Emitter()));
|
|
111
|
-
this.onDidStartExecution = this._onDidStartExecution.event;
|
|
112
|
-
this._onDidStopExecution = this._register(( new Emitter()));
|
|
113
|
-
this.onDidStopExecution = this._onDidStopExecution.event;
|
|
114
|
-
this._onDidChangeOutputs = this._register(( new Emitter()));
|
|
115
|
-
this.onDidChangeOutputs = this._onDidChangeOutputs.event;
|
|
116
|
-
this._onDidRemoveOutputs = this._register(( new Emitter()));
|
|
117
|
-
this.onDidRemoveOutputs = this._onDidRemoveOutputs.event;
|
|
118
|
-
this._outputCollection = [];
|
|
119
|
-
this._outputsTop = null;
|
|
120
|
-
this._pauseableEmitter = this._register(( new PauseableEmitter()));
|
|
121
|
-
this.onDidChangeLayout = this._pauseableEmitter.event;
|
|
122
|
-
this._editorHeight = 0;
|
|
123
|
-
this._chatHeight = 0;
|
|
124
|
-
this._hoveringOutput = false;
|
|
125
|
-
this._focusOnOutput = false;
|
|
126
|
-
this._focusInputInOutput = false;
|
|
127
|
-
this._outputMinHeight = 0;
|
|
128
|
-
this.executionErrorDiagnostic = observableValue("excecutionError", undefined);
|
|
129
|
-
this._hasFindResult = this._register(( new Emitter()));
|
|
130
|
-
this.hasFindResult = this._hasFindResult.event;
|
|
131
|
-
this._outputViewModels = ( this.model.outputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService))));
|
|
132
|
-
this._register(this.model.onDidChangeOutputs(splice => {
|
|
133
|
-
const removedOutputs = [];
|
|
134
|
-
let outputLayoutChange = false;
|
|
135
|
-
for (let i = splice.start; i < splice.start + splice.deleteCount; i++) {
|
|
136
|
-
if (this._outputCollection[i] !== undefined && this._outputCollection[i] !== 0) {
|
|
137
|
-
outputLayoutChange = true;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
this._outputCollection.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(() => 0)));
|
|
141
|
-
removedOutputs.push(
|
|
142
|
-
...this._outputViewModels.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService)))))
|
|
143
|
-
);
|
|
144
|
-
this._outputsTop = null;
|
|
145
|
-
this._onDidChangeOutputs.fire(splice);
|
|
146
|
-
this._onDidRemoveOutputs.fire(removedOutputs);
|
|
147
|
-
if (outputLayoutChange) {
|
|
148
|
-
this.layoutChange({
|
|
149
|
-
outputHeight: true
|
|
150
|
-
}, "CodeCellViewModel#model.onDidChangeOutputs");
|
|
151
|
-
}
|
|
152
|
-
if (!this._outputCollection.length) {
|
|
153
|
-
this.executionErrorDiagnostic.set(undefined, undefined);
|
|
154
|
-
}
|
|
155
|
-
dispose(removedOutputs);
|
|
156
|
-
}));
|
|
157
|
-
this._outputCollection = ( new Array(this.model.outputs.length));
|
|
158
|
-
const layoutConfiguration = this.viewContext.notebookOptions.getLayoutConfiguration();
|
|
159
|
-
this._layoutInfo = {
|
|
160
|
-
fontInfo: initialNotebookLayoutInfo?.fontInfo || null,
|
|
161
|
-
editorHeight: 0,
|
|
162
|
-
editorWidth: initialNotebookLayoutInfo ? this.viewContext.notebookOptions.computeCodeCellEditorWidth(initialNotebookLayoutInfo.width) : 0,
|
|
163
|
-
chatHeight: 0,
|
|
164
|
-
statusBarHeight: 0,
|
|
165
|
-
commentOffset: 0,
|
|
166
|
-
commentHeight: 0,
|
|
167
|
-
outputContainerOffset: 0,
|
|
168
|
-
outputTotalHeight: 0,
|
|
169
|
-
outputShowMoreContainerHeight: 0,
|
|
170
|
-
outputShowMoreContainerOffset: 0,
|
|
171
|
-
totalHeight: this.computeTotalHeight(17, 0, 0, 0),
|
|
172
|
-
codeIndicatorHeight: 0,
|
|
173
|
-
outputIndicatorHeight: 0,
|
|
174
|
-
bottomToolbarOffset: 0,
|
|
175
|
-
layoutState: CellLayoutState.Uninitialized,
|
|
176
|
-
estimatedHasHorizontalScrolling: false,
|
|
177
|
-
outlineWidth: 1,
|
|
178
|
-
topMargin: layoutConfiguration.cellTopMargin,
|
|
179
|
-
bottomMargin: layoutConfiguration.cellBottomMargin
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
updateExecutionState(e) {
|
|
183
|
-
if (e.changed) {
|
|
184
|
-
this.executionErrorDiagnostic.set(undefined, undefined);
|
|
185
|
-
this._onDidStartExecution.fire(e);
|
|
186
|
-
} else {
|
|
187
|
-
this._onDidStopExecution.fire(e);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
updateOptions(e) {
|
|
191
|
-
super.updateOptions(e);
|
|
192
|
-
if (e.cellStatusBarVisibility || e.insertToolbarPosition || e.cellToolbarLocation) {
|
|
193
|
-
this.layoutChange({});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
pauseLayout() {
|
|
197
|
-
this._pauseableEmitter.pause();
|
|
198
|
-
}
|
|
199
|
-
resumeLayout() {
|
|
200
|
-
this._pauseableEmitter.resume();
|
|
201
|
-
}
|
|
202
|
-
layoutChange(state, source) {
|
|
203
|
-
this._ensureOutputsTop();
|
|
204
|
-
const notebookLayoutConfiguration = this.viewContext.notebookOptions.getLayoutConfiguration();
|
|
205
|
-
const bottomToolbarDimensions = this.viewContext.notebookOptions.computeBottomToolbarDimensions(this.viewType);
|
|
206
|
-
const outputShowMoreContainerHeight = state.outputShowMoreContainerHeight ? state.outputShowMoreContainerHeight : this._layoutInfo.outputShowMoreContainerHeight;
|
|
207
|
-
const outputTotalHeight = Math.max(
|
|
208
|
-
this._outputMinHeight,
|
|
209
|
-
this.isOutputCollapsed ? notebookLayoutConfiguration.collapsedIndicatorHeight : this._outputsTop.getTotalSum()
|
|
210
|
-
);
|
|
211
|
-
const commentHeight = state.commentHeight ? this._commentHeight : this._layoutInfo.commentHeight;
|
|
212
|
-
const originalLayout = this.layoutInfo;
|
|
213
|
-
if (!this.isInputCollapsed) {
|
|
214
|
-
let newState;
|
|
215
|
-
let editorHeight;
|
|
216
|
-
let totalHeight;
|
|
217
|
-
let hasHorizontalScrolling = false;
|
|
218
|
-
const chatHeight = state.chatHeight ? this._chatHeight : this._layoutInfo.chatHeight;
|
|
219
|
-
if (!state.editorHeight && this._layoutInfo.layoutState === CellLayoutState.FromCache && !state.outputHeight) {
|
|
220
|
-
const estimate = this.estimateEditorHeight(state.font?.lineHeight ?? this._layoutInfo.fontInfo?.lineHeight);
|
|
221
|
-
editorHeight = estimate.editorHeight;
|
|
222
|
-
hasHorizontalScrolling = estimate.hasHorizontalScrolling;
|
|
223
|
-
totalHeight = this._layoutInfo.totalHeight;
|
|
224
|
-
newState = CellLayoutState.FromCache;
|
|
225
|
-
} else if (state.editorHeight || this._layoutInfo.layoutState === CellLayoutState.Measured) {
|
|
226
|
-
editorHeight = this._editorHeight;
|
|
227
|
-
totalHeight = this.computeTotalHeight(
|
|
228
|
-
this._editorHeight,
|
|
229
|
-
outputTotalHeight,
|
|
230
|
-
outputShowMoreContainerHeight,
|
|
231
|
-
chatHeight
|
|
232
|
-
);
|
|
233
|
-
newState = CellLayoutState.Measured;
|
|
234
|
-
hasHorizontalScrolling = this._layoutInfo.estimatedHasHorizontalScrolling;
|
|
235
|
-
} else {
|
|
236
|
-
const estimate = this.estimateEditorHeight(state.font?.lineHeight ?? this._layoutInfo.fontInfo?.lineHeight);
|
|
237
|
-
editorHeight = estimate.editorHeight;
|
|
238
|
-
hasHorizontalScrolling = estimate.hasHorizontalScrolling;
|
|
239
|
-
totalHeight = this.computeTotalHeight(editorHeight, outputTotalHeight, outputShowMoreContainerHeight, chatHeight);
|
|
240
|
-
newState = CellLayoutState.Estimated;
|
|
241
|
-
}
|
|
242
|
-
const statusBarHeight = this.viewContext.notebookOptions.computeEditorStatusbarHeight(this.internalMetadata, this.uri);
|
|
243
|
-
const codeIndicatorHeight = editorHeight + statusBarHeight;
|
|
244
|
-
const outputIndicatorHeight = outputTotalHeight + outputShowMoreContainerHeight;
|
|
245
|
-
const outputContainerOffset =
|
|
246
|
-
notebookLayoutConfiguration.editorToolbarHeight + notebookLayoutConfiguration.cellTopMargin + chatHeight + editorHeight + statusBarHeight;
|
|
247
|
-
const outputShowMoreContainerOffset = totalHeight - bottomToolbarDimensions.bottomToolbarGap - bottomToolbarDimensions.bottomToolbarHeight / 2 - outputShowMoreContainerHeight;
|
|
248
|
-
const bottomToolbarOffset = this.viewContext.notebookOptions.computeBottomToolbarOffset(totalHeight, this.viewType);
|
|
249
|
-
const editorWidth = state.outerWidth !== undefined ? this.viewContext.notebookOptions.computeCodeCellEditorWidth(state.outerWidth) : this._layoutInfo?.editorWidth;
|
|
250
|
-
this._layoutInfo = {
|
|
251
|
-
fontInfo: state.font ?? this._layoutInfo.fontInfo ?? null,
|
|
252
|
-
chatHeight,
|
|
253
|
-
editorHeight,
|
|
254
|
-
editorWidth,
|
|
255
|
-
statusBarHeight,
|
|
256
|
-
outputContainerOffset,
|
|
257
|
-
outputTotalHeight,
|
|
258
|
-
outputShowMoreContainerHeight,
|
|
259
|
-
outputShowMoreContainerOffset,
|
|
260
|
-
commentOffset: outputContainerOffset + outputTotalHeight,
|
|
261
|
-
commentHeight,
|
|
262
|
-
totalHeight,
|
|
263
|
-
codeIndicatorHeight,
|
|
264
|
-
outputIndicatorHeight,
|
|
265
|
-
bottomToolbarOffset,
|
|
266
|
-
layoutState: newState,
|
|
267
|
-
estimatedHasHorizontalScrolling: hasHorizontalScrolling,
|
|
268
|
-
topMargin: notebookLayoutConfiguration.cellTopMargin,
|
|
269
|
-
bottomMargin: notebookLayoutConfiguration.cellBottomMargin,
|
|
270
|
-
outlineWidth: 1
|
|
271
|
-
};
|
|
272
|
-
} else {
|
|
273
|
-
const codeIndicatorHeight = notebookLayoutConfiguration.collapsedIndicatorHeight;
|
|
274
|
-
const outputIndicatorHeight = outputTotalHeight + outputShowMoreContainerHeight;
|
|
275
|
-
const chatHeight = state.chatHeight ? this._chatHeight : this._layoutInfo.chatHeight;
|
|
276
|
-
const outputContainerOffset = notebookLayoutConfiguration.cellTopMargin + notebookLayoutConfiguration.collapsedIndicatorHeight;
|
|
277
|
-
const totalHeight =
|
|
278
|
-
notebookLayoutConfiguration.cellTopMargin + notebookLayoutConfiguration.collapsedIndicatorHeight + notebookLayoutConfiguration.cellBottomMargin + bottomToolbarDimensions.bottomToolbarGap + chatHeight + commentHeight + outputTotalHeight + outputShowMoreContainerHeight;
|
|
279
|
-
const outputShowMoreContainerOffset = totalHeight - bottomToolbarDimensions.bottomToolbarGap - bottomToolbarDimensions.bottomToolbarHeight / 2 - outputShowMoreContainerHeight;
|
|
280
|
-
const bottomToolbarOffset = this.viewContext.notebookOptions.computeBottomToolbarOffset(totalHeight, this.viewType);
|
|
281
|
-
const editorWidth = state.outerWidth !== undefined ? this.viewContext.notebookOptions.computeCodeCellEditorWidth(state.outerWidth) : this._layoutInfo?.editorWidth;
|
|
282
|
-
this._layoutInfo = {
|
|
283
|
-
fontInfo: state.font ?? this._layoutInfo.fontInfo ?? null,
|
|
284
|
-
editorHeight: this._layoutInfo.editorHeight,
|
|
285
|
-
editorWidth,
|
|
286
|
-
chatHeight: chatHeight,
|
|
287
|
-
statusBarHeight: 0,
|
|
288
|
-
outputContainerOffset,
|
|
289
|
-
outputTotalHeight,
|
|
290
|
-
outputShowMoreContainerHeight,
|
|
291
|
-
outputShowMoreContainerOffset,
|
|
292
|
-
commentOffset: outputContainerOffset + outputTotalHeight,
|
|
293
|
-
commentHeight,
|
|
294
|
-
totalHeight,
|
|
295
|
-
codeIndicatorHeight,
|
|
296
|
-
outputIndicatorHeight,
|
|
297
|
-
bottomToolbarOffset,
|
|
298
|
-
layoutState: this._layoutInfo.layoutState,
|
|
299
|
-
estimatedHasHorizontalScrolling: false,
|
|
300
|
-
outlineWidth: 1,
|
|
301
|
-
topMargin: notebookLayoutConfiguration.cellTopMargin,
|
|
302
|
-
bottomMargin: notebookLayoutConfiguration.cellBottomMargin
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
this._fireOnDidChangeLayout({
|
|
306
|
-
...state,
|
|
307
|
-
totalHeight: this.layoutInfo.totalHeight !== originalLayout.totalHeight,
|
|
308
|
-
source
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
_fireOnDidChangeLayout(state) {
|
|
312
|
-
this._pauseableEmitter.fire(state);
|
|
313
|
-
}
|
|
314
|
-
restoreEditorViewState(editorViewStates, totalHeight) {
|
|
315
|
-
super.restoreEditorViewState(editorViewStates);
|
|
316
|
-
if (totalHeight !== undefined && this._layoutInfo.layoutState !== CellLayoutState.Measured) {
|
|
317
|
-
this._layoutInfo = {
|
|
318
|
-
...this._layoutInfo,
|
|
319
|
-
totalHeight: totalHeight,
|
|
320
|
-
layoutState: CellLayoutState.FromCache
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
getDynamicHeight() {
|
|
325
|
-
this._onLayoutInfoRead.fire();
|
|
326
|
-
return this._layoutInfo.totalHeight;
|
|
327
|
-
}
|
|
328
|
-
getHeight(lineHeight) {
|
|
329
|
-
if (this._layoutInfo.layoutState === CellLayoutState.Uninitialized) {
|
|
330
|
-
const estimate = this.estimateEditorHeight(lineHeight);
|
|
331
|
-
return this.computeTotalHeight(estimate.editorHeight, 0, 0, 0);
|
|
332
|
-
} else {
|
|
333
|
-
return this._layoutInfo.totalHeight;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
estimateEditorHeight(lineHeight = 20) {
|
|
337
|
-
let hasHorizontalScrolling = false;
|
|
338
|
-
const cellEditorOptions = this.viewContext.getBaseCellEditorOptions(this.language);
|
|
339
|
-
if (this.layoutInfo.fontInfo && cellEditorOptions.value.wordWrap === "off") {
|
|
340
|
-
for (let i = 0; i < this.lineCount; i++) {
|
|
341
|
-
const max = this.textBuffer.getLineLastNonWhitespaceColumn(i + 1);
|
|
342
|
-
const estimatedWidth = max * (this.layoutInfo.fontInfo.typicalHalfwidthCharacterWidth + this.layoutInfo.fontInfo.letterSpacing);
|
|
343
|
-
if (estimatedWidth > this.layoutInfo.editorWidth) {
|
|
344
|
-
hasHorizontalScrolling = true;
|
|
345
|
-
break;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
const verticalScrollbarHeight = hasHorizontalScrolling ? 12 : 0;
|
|
350
|
-
const editorPadding = this.viewContext.notebookOptions.computeEditorPadding(this.internalMetadata, this.uri);
|
|
351
|
-
const editorHeight =
|
|
352
|
-
this.lineCount * lineHeight + editorPadding.top + editorPadding.bottom + verticalScrollbarHeight;
|
|
353
|
-
return {
|
|
354
|
-
editorHeight,
|
|
355
|
-
hasHorizontalScrolling
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
computeTotalHeight(
|
|
359
|
-
editorHeight,
|
|
360
|
-
outputsTotalHeight,
|
|
361
|
-
outputShowMoreContainerHeight,
|
|
362
|
-
chatHeight
|
|
363
|
-
) {
|
|
364
|
-
const layoutConfiguration = this.viewContext.notebookOptions.getLayoutConfiguration();
|
|
365
|
-
const {
|
|
366
|
-
bottomToolbarGap
|
|
367
|
-
} = this.viewContext.notebookOptions.computeBottomToolbarDimensions(this.viewType);
|
|
368
|
-
return layoutConfiguration.editorToolbarHeight + layoutConfiguration.cellTopMargin + chatHeight + editorHeight + this.viewContext.notebookOptions.computeEditorStatusbarHeight(this.internalMetadata, this.uri) + this._commentHeight + outputsTotalHeight + outputShowMoreContainerHeight + bottomToolbarGap + layoutConfiguration.cellBottomMargin;
|
|
369
|
-
}
|
|
370
|
-
onDidChangeTextModelContent() {
|
|
371
|
-
if (this.getEditState() !== CellEditState.Editing) {
|
|
372
|
-
this.updateEditState(CellEditState.Editing, "onDidChangeTextModelContent");
|
|
373
|
-
this._onDidChangeState.fire({
|
|
374
|
-
contentChanged: true
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
onDeselect() {
|
|
379
|
-
this.updateEditState(CellEditState.Preview, "onDeselect");
|
|
380
|
-
}
|
|
381
|
-
updateOutputShowMoreContainerHeight(height) {
|
|
382
|
-
this.layoutChange({
|
|
383
|
-
outputShowMoreContainerHeight: height
|
|
384
|
-
}, "CodeCellViewModel#updateOutputShowMoreContainerHeight");
|
|
385
|
-
}
|
|
386
|
-
updateOutputMinHeight(height) {
|
|
387
|
-
this.outputMinHeight = height;
|
|
388
|
-
}
|
|
389
|
-
unlockOutputHeight() {
|
|
390
|
-
this.outputMinHeight = 0;
|
|
391
|
-
this.layoutChange({
|
|
392
|
-
outputHeight: true
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
updateOutputHeight(index, height, source) {
|
|
396
|
-
if (index >= this._outputCollection.length) {
|
|
397
|
-
throw ( new Error("Output index out of range!"));
|
|
398
|
-
}
|
|
399
|
-
this._ensureOutputsTop();
|
|
400
|
-
try {
|
|
401
|
-
if (index === 0 || height > 0) {
|
|
402
|
-
this._outputViewModels[index].setVisible(true);
|
|
403
|
-
} else if (height === 0) {
|
|
404
|
-
this._outputViewModels[index].setVisible(false);
|
|
405
|
-
}
|
|
406
|
-
} catch (e) {
|
|
407
|
-
const errorMessage = `Failed to update output height for cell ${this.handle}, output ${index}. ` + `this.outputCollection.length: ${this._outputCollection.length}, this._outputViewModels.length: ${this._outputViewModels.length}`;
|
|
408
|
-
throw ( new Error(`${errorMessage}.\n Error: ${e.message}`));
|
|
409
|
-
}
|
|
410
|
-
if (this._outputViewModels[index].visible.get() && height < 28) {
|
|
411
|
-
height = 28;
|
|
412
|
-
}
|
|
413
|
-
this._outputCollection[index] = height;
|
|
414
|
-
if (this._outputsTop.setValue(index, height)) {
|
|
415
|
-
this.layoutChange({
|
|
416
|
-
outputHeight: true
|
|
417
|
-
}, source);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
getOutputOffsetInContainer(index) {
|
|
421
|
-
this._ensureOutputsTop();
|
|
422
|
-
if (index >= this._outputCollection.length) {
|
|
423
|
-
throw ( new Error("Output index out of range!"));
|
|
424
|
-
}
|
|
425
|
-
return this._outputsTop.getPrefixSum(index - 1);
|
|
426
|
-
}
|
|
427
|
-
getOutputOffset(index) {
|
|
428
|
-
return this.layoutInfo.outputContainerOffset + this.getOutputOffsetInContainer(index);
|
|
429
|
-
}
|
|
430
|
-
spliceOutputHeights(start, deleteCnt, heights) {
|
|
431
|
-
this._ensureOutputsTop();
|
|
432
|
-
this._outputsTop.removeValues(start, deleteCnt);
|
|
433
|
-
if (heights.length) {
|
|
434
|
-
const values = ( new Uint32Array(heights.length));
|
|
435
|
-
for (let i = 0; i < heights.length; i++) {
|
|
436
|
-
values[i] = heights[i];
|
|
437
|
-
}
|
|
438
|
-
this._outputsTop.insertValues(start, values);
|
|
439
|
-
}
|
|
440
|
-
this.layoutChange({
|
|
441
|
-
outputHeight: true
|
|
442
|
-
}, "CodeCellViewModel#spliceOutputs");
|
|
443
|
-
}
|
|
444
|
-
_ensureOutputsTop() {
|
|
445
|
-
if (!this._outputsTop) {
|
|
446
|
-
const values = ( new Uint32Array(this._outputCollection.length));
|
|
447
|
-
for (let i = 0; i < this._outputCollection.length; i++) {
|
|
448
|
-
values[i] = this._outputCollection[i];
|
|
449
|
-
}
|
|
450
|
-
this._outputsTop = ( new PrefixSumComputer(values));
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
startFind(value, options) {
|
|
454
|
-
const matches = super.cellStartFind(value, options);
|
|
455
|
-
if (matches === null) {
|
|
456
|
-
return null;
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
cell: this,
|
|
460
|
-
contentMatches: matches
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
dispose() {
|
|
464
|
-
super.dispose();
|
|
465
|
-
this._outputCollection = [];
|
|
466
|
-
this._outputsTop = null;
|
|
467
|
-
dispose(this._outputViewModels);
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
CodeCellViewModel = ( __decorate([( __param(4, IConfigurationService)), ( __param(5, INotebookService)), ( __param(6, ITextModelService)), ( __param(7, IUndoRedoService)), ( __param(8, ICodeEditorService)), ( __param(9, IInlineChatSessionService))], CodeCellViewModel));
|
|
471
|
-
|
|
472
|
-
export { CodeCellViewModel, outputDisplayLimit };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { NotebookCellStateChangedEvent, NotebookLayoutChangedEvent, NotebookMetadataChangedEvent, NotebookViewEvent } from "../notebookViewEvents.js";
|
|
3
|
-
export declare class NotebookEventDispatcher extends Disposable {
|
|
4
|
-
private readonly _onDidChangeLayout;
|
|
5
|
-
readonly onDidChangeLayout: import("../../../../../base/common/event.js").Event<NotebookLayoutChangedEvent>;
|
|
6
|
-
private readonly _onDidChangeMetadata;
|
|
7
|
-
readonly onDidChangeMetadata: import("../../../../../base/common/event.js").Event<NotebookMetadataChangedEvent>;
|
|
8
|
-
private readonly _onDidChangeCellState;
|
|
9
|
-
readonly onDidChangeCellState: import("../../../../../base/common/event.js").Event<NotebookCellStateChangedEvent>;
|
|
10
|
-
emit(events: NotebookViewEvent[]): void;
|
|
11
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Emitter } from '../../../../../base/common/event.js';
|
|
3
|
-
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
4
|
-
import { NotebookViewEventType } from '../notebookViewEvents.js';
|
|
5
|
-
|
|
6
|
-
class NotebookEventDispatcher extends Disposable {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this._onDidChangeLayout = this._register(( new Emitter()));
|
|
10
|
-
this.onDidChangeLayout = this._onDidChangeLayout.event;
|
|
11
|
-
this._onDidChangeMetadata = this._register(( new Emitter()));
|
|
12
|
-
this.onDidChangeMetadata = this._onDidChangeMetadata.event;
|
|
13
|
-
this._onDidChangeCellState = this._register(( new Emitter()));
|
|
14
|
-
this.onDidChangeCellState = this._onDidChangeCellState.event;
|
|
15
|
-
}
|
|
16
|
-
emit(events) {
|
|
17
|
-
for (let i = 0, len = events.length; i < len; i++) {
|
|
18
|
-
const e = events[i];
|
|
19
|
-
switch (e.type) {
|
|
20
|
-
case NotebookViewEventType.LayoutChanged:
|
|
21
|
-
this._onDidChangeLayout.fire(e);
|
|
22
|
-
break;
|
|
23
|
-
case NotebookViewEventType.MetadataChanged:
|
|
24
|
-
this._onDidChangeMetadata.fire(e);
|
|
25
|
-
break;
|
|
26
|
-
case NotebookViewEventType.CellStateChanged:
|
|
27
|
-
this._onDidChangeCellState.fire(e);
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { NotebookEventDispatcher };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Event } from "../../../../../base/common/event.js";
|
|
2
|
-
import { IDisposable } from "../../../../../base/common/lifecycle.js";
|
|
3
|
-
import { FoldingRegion, FoldingRegions } from "../../../../../editor/contrib/folding/browser/foldingRanges.js";
|
|
4
|
-
import { INotebookViewModel } from "../notebookBrowser.js";
|
|
5
|
-
import { ICellRange } from "../../common/notebookRange.js";
|
|
6
|
-
type RegionFilter = (r: FoldingRegion) => boolean;
|
|
7
|
-
type RegionFilterWithLevel = (r: FoldingRegion, level: number) => boolean;
|
|
8
|
-
export declare class FoldingModel implements IDisposable {
|
|
9
|
-
private _viewModel;
|
|
10
|
-
private readonly _viewModelStore;
|
|
11
|
-
private _regions;
|
|
12
|
-
get regions(): FoldingRegions;
|
|
13
|
-
private readonly _onDidFoldingRegionChanges;
|
|
14
|
-
readonly onDidFoldingRegionChanged: Event<void>;
|
|
15
|
-
private _foldingRangeDecorationIds;
|
|
16
|
-
constructor();
|
|
17
|
-
dispose(): void;
|
|
18
|
-
detachViewModel(): void;
|
|
19
|
-
attachViewModel(model: INotebookViewModel): void;
|
|
20
|
-
getRegionAtLine(lineNumber: number): FoldingRegion | null;
|
|
21
|
-
getRegionsInside(region: FoldingRegion | null, filter?: RegionFilter | RegionFilterWithLevel): FoldingRegion[];
|
|
22
|
-
getAllRegionsAtLine(lineNumber: number, filter?: (r: FoldingRegion, level: number) => boolean): FoldingRegion[];
|
|
23
|
-
setCollapsed(index: number, newState: boolean): void;
|
|
24
|
-
recompute(): void;
|
|
25
|
-
getMemento(): ICellRange[];
|
|
26
|
-
applyMemento(state: ICellRange[]): boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare function updateFoldingStateAtIndex(foldingModel: FoldingModel, index: number, collapsed: boolean): void;
|
|
29
|
-
export declare function getMarkdownHeadersInCell(cellContent: string): Iterable<{
|
|
30
|
-
readonly depth: number;
|
|
31
|
-
readonly text: string;
|
|
32
|
-
}>;
|
|
33
|
-
export {};
|