@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,59 +0,0 @@
|
|
|
1
|
-
import { IRange } from "../../../../../base/common/range.js";
|
|
2
|
-
import { ListView } from "../../../../../base/browser/ui/list/listView.js";
|
|
3
|
-
import { IItem, IRangeMap } from "../../../../../base/browser/ui/list/rangeMap.js";
|
|
4
|
-
import { ConstantTimePrefixSumComputer } from "../../../../../editor/common/model/prefixSumComputer.js";
|
|
5
|
-
export interface IWhitespace {
|
|
6
|
-
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* To insert whitespace before the first item, use afterPosition 0.
|
|
9
|
-
* In other cases, afterPosition is 1-based.
|
|
10
|
-
*/
|
|
11
|
-
afterPosition: number;
|
|
12
|
-
size: number;
|
|
13
|
-
priority: number;
|
|
14
|
-
}
|
|
15
|
-
export declare class NotebookCellsLayout implements IRangeMap {
|
|
16
|
-
private _items;
|
|
17
|
-
private _whitespace;
|
|
18
|
-
protected _prefixSumComputer: ConstantTimePrefixSumComputer;
|
|
19
|
-
private _size;
|
|
20
|
-
private _paddingTop;
|
|
21
|
-
get paddingTop(): number;
|
|
22
|
-
set paddingTop(paddingTop: number);
|
|
23
|
-
get count(): number;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the sum of the sizes of all items in the range map.
|
|
26
|
-
*/
|
|
27
|
-
get size(): number;
|
|
28
|
-
constructor(topPadding?: number);
|
|
29
|
-
getWhitespaces(): IWhitespace[];
|
|
30
|
-
restoreWhitespace(items: IWhitespace[]): void;
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
|
-
splice(index: number, deleteCount: number, items?: IItem[] | undefined): void;
|
|
34
|
-
insertWhitespace(id: string, afterPosition: number, size: number): void;
|
|
35
|
-
changeOneWhitespace(id: string, afterPosition: number, size: number): void;
|
|
36
|
-
removeWhitespace(id: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* find position of whitespace
|
|
39
|
-
* @param id: id of the whitespace
|
|
40
|
-
* @returns: position in the list view
|
|
41
|
-
*/
|
|
42
|
-
getWhitespacePosition(id: string): number;
|
|
43
|
-
indexAt(position: number): number;
|
|
44
|
-
indexAfter(position: number): number;
|
|
45
|
-
positionAt(index: number): number;
|
|
46
|
-
}
|
|
47
|
-
export declare class NotebookCellListView<T> extends ListView<T> {
|
|
48
|
-
private _lastWhitespaceId;
|
|
49
|
-
private _renderingStack;
|
|
50
|
-
get inRenderingTransaction(): boolean;
|
|
51
|
-
get notebookRangeMap(): NotebookCellsLayout;
|
|
52
|
-
protected render(previousRenderRange: IRange, renderTop: number, renderHeight: number, renderLeft: number | undefined, scrollWidth: number | undefined, updateItemsInDOM?: boolean): void;
|
|
53
|
-
protected _rerender(renderTop: number, renderHeight: number, inSmoothScrolling?: boolean | undefined): void;
|
|
54
|
-
protected createRangeMap(paddingTop: number): IRangeMap;
|
|
55
|
-
insertWhitespace(afterPosition: number, size: number): string;
|
|
56
|
-
changeOneWhitespace(id: string, newAfterPosition: number, newSize: number): void;
|
|
57
|
-
removeWhitespace(id: string): void;
|
|
58
|
-
getWhitespacePosition(id: string): number;
|
|
59
|
-
}
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ListView } from '../../../../../base/browser/ui/list/listView.js';
|
|
3
|
-
import { ConstantTimePrefixSumComputer } from '../../../../../editor/common/model/prefixSumComputer.js';
|
|
4
|
-
|
|
5
|
-
class NotebookCellsLayout {
|
|
6
|
-
get paddingTop() {
|
|
7
|
-
return this._paddingTop;
|
|
8
|
-
}
|
|
9
|
-
set paddingTop(paddingTop) {
|
|
10
|
-
this._size = this._size + paddingTop - this._paddingTop;
|
|
11
|
-
this._paddingTop = paddingTop;
|
|
12
|
-
}
|
|
13
|
-
get count() {
|
|
14
|
-
return this._items.length;
|
|
15
|
-
}
|
|
16
|
-
get size() {
|
|
17
|
-
return this._size;
|
|
18
|
-
}
|
|
19
|
-
constructor(topPadding) {
|
|
20
|
-
this._items = [];
|
|
21
|
-
this._whitespace = [];
|
|
22
|
-
this._prefixSumComputer = ( new ConstantTimePrefixSumComputer([]));
|
|
23
|
-
this._size = 0;
|
|
24
|
-
this._paddingTop = 0;
|
|
25
|
-
this._paddingTop = topPadding ?? 0;
|
|
26
|
-
this._size = this._paddingTop;
|
|
27
|
-
}
|
|
28
|
-
getWhitespaces() {
|
|
29
|
-
return this._whitespace;
|
|
30
|
-
}
|
|
31
|
-
restoreWhitespace(items) {
|
|
32
|
-
this._whitespace = items;
|
|
33
|
-
this._size = this._paddingTop + this._items.reduce((total, item) => total + item.size, 0) + this._whitespace.reduce((total, ws) => total + ws.size, 0);
|
|
34
|
-
}
|
|
35
|
-
splice(index, deleteCount, items) {
|
|
36
|
-
const inserts = items ?? [];
|
|
37
|
-
this._items.splice(index, deleteCount, ...inserts);
|
|
38
|
-
this._size = this._paddingTop + this._items.reduce((total, item) => total + item.size, 0) + this._whitespace.reduce((total, ws) => total + ws.size, 0);
|
|
39
|
-
this._prefixSumComputer.removeValues(index, deleteCount);
|
|
40
|
-
const newSizes = [];
|
|
41
|
-
for (let i = 0; i < inserts.length; i++) {
|
|
42
|
-
const insertIndex = i + index;
|
|
43
|
-
const existingWhitespaces = this._whitespace.filter(ws => ws.afterPosition === insertIndex + 1);
|
|
44
|
-
if (existingWhitespaces.length > 0) {
|
|
45
|
-
newSizes.push(
|
|
46
|
-
inserts[i].size + existingWhitespaces.reduce((acc, ws) => acc + ws.size, 0)
|
|
47
|
-
);
|
|
48
|
-
} else {
|
|
49
|
-
newSizes.push(inserts[i].size);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
this._prefixSumComputer.insertValues(index, newSizes);
|
|
53
|
-
for (let i = index; i < this._items.length; i++) {
|
|
54
|
-
const existingWhitespaces = this._whitespace.filter(ws => ws.afterPosition === i + 1);
|
|
55
|
-
if (existingWhitespaces.length > 0) {
|
|
56
|
-
this._prefixSumComputer.setValue(
|
|
57
|
-
i,
|
|
58
|
-
this._items[i].size + existingWhitespaces.reduce((acc, ws) => acc + ws.size, 0)
|
|
59
|
-
);
|
|
60
|
-
} else {
|
|
61
|
-
this._prefixSumComputer.setValue(i, this._items[i].size);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
insertWhitespace(id, afterPosition, size) {
|
|
66
|
-
let priority = 0;
|
|
67
|
-
const existingWhitespaces = this._whitespace.filter(ws => ws.afterPosition === afterPosition);
|
|
68
|
-
if (existingWhitespaces.length > 0) {
|
|
69
|
-
priority = Math.max(...( existingWhitespaces.map(ws => ws.priority))) + 1;
|
|
70
|
-
}
|
|
71
|
-
this._whitespace.push({
|
|
72
|
-
id,
|
|
73
|
-
afterPosition: afterPosition,
|
|
74
|
-
size,
|
|
75
|
-
priority
|
|
76
|
-
});
|
|
77
|
-
this._size += size;
|
|
78
|
-
this._whitespace.sort((a, b) => {
|
|
79
|
-
if (a.afterPosition === b.afterPosition) {
|
|
80
|
-
return a.priority - b.priority;
|
|
81
|
-
}
|
|
82
|
-
return a.afterPosition - b.afterPosition;
|
|
83
|
-
});
|
|
84
|
-
if (afterPosition > 0) {
|
|
85
|
-
const index = afterPosition - 1;
|
|
86
|
-
const itemSize = this._items[index].size;
|
|
87
|
-
const accSize = itemSize + size;
|
|
88
|
-
this._prefixSumComputer.setValue(index, accSize);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
changeOneWhitespace(id, afterPosition, size) {
|
|
92
|
-
const whitespaceIndex = this._whitespace.findIndex(ws => ws.id === id);
|
|
93
|
-
if (whitespaceIndex !== -1) {
|
|
94
|
-
const whitespace = this._whitespace[whitespaceIndex];
|
|
95
|
-
const oldAfterPosition = whitespace.afterPosition;
|
|
96
|
-
whitespace.afterPosition = afterPosition;
|
|
97
|
-
const oldSize = whitespace.size;
|
|
98
|
-
const delta = size - oldSize;
|
|
99
|
-
whitespace.size = size;
|
|
100
|
-
this._size += delta;
|
|
101
|
-
if (oldAfterPosition > 0 && oldAfterPosition <= this._items.length) {
|
|
102
|
-
const index = oldAfterPosition - 1;
|
|
103
|
-
const itemSize = this._items[index].size;
|
|
104
|
-
const accSize = itemSize;
|
|
105
|
-
this._prefixSumComputer.setValue(index, accSize);
|
|
106
|
-
}
|
|
107
|
-
if (afterPosition > 0 && afterPosition <= this._items.length) {
|
|
108
|
-
const index = afterPosition - 1;
|
|
109
|
-
const itemSize = this._items[index].size;
|
|
110
|
-
const accSize = itemSize + size;
|
|
111
|
-
this._prefixSumComputer.setValue(index, accSize);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
removeWhitespace(id) {
|
|
116
|
-
const whitespaceIndex = this._whitespace.findIndex(ws => ws.id === id);
|
|
117
|
-
if (whitespaceIndex !== -1) {
|
|
118
|
-
const whitespace = this._whitespace[whitespaceIndex];
|
|
119
|
-
this._whitespace.splice(whitespaceIndex, 1);
|
|
120
|
-
this._size -= whitespace.size;
|
|
121
|
-
if (whitespace.afterPosition > 0) {
|
|
122
|
-
const index = whitespace.afterPosition - 1;
|
|
123
|
-
const itemSize = this._items[index].size;
|
|
124
|
-
const remainingWhitespaces = this._whitespace.filter(ws => ws.afterPosition === whitespace.afterPosition);
|
|
125
|
-
const accSize = itemSize + remainingWhitespaces.reduce((acc, ws) => acc + ws.size, 0);
|
|
126
|
-
this._prefixSumComputer.setValue(index, accSize);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
getWhitespacePosition(id) {
|
|
131
|
-
const whitespace = this._whitespace.find(ws => ws.id === id);
|
|
132
|
-
if (!whitespace) {
|
|
133
|
-
throw ( new Error("Whitespace not found"));
|
|
134
|
-
}
|
|
135
|
-
const afterPosition = whitespace.afterPosition;
|
|
136
|
-
if (afterPosition === 0) {
|
|
137
|
-
const whitespaces = this._whitespace.filter(
|
|
138
|
-
ws => ws.afterPosition === afterPosition && ws.priority < whitespace.priority
|
|
139
|
-
);
|
|
140
|
-
return whitespaces.reduce((acc, ws) => acc + ws.size, 0) + this.paddingTop;
|
|
141
|
-
}
|
|
142
|
-
const whitespaceBeforeFirstItem = this._whitespace.filter(ws => ws.afterPosition === 0).reduce((acc, ws) => acc + ws.size, 0);
|
|
143
|
-
const index = afterPosition - 1;
|
|
144
|
-
const previousItemPosition = this._prefixSumComputer.getPrefixSum(index);
|
|
145
|
-
const previousItemSize = this._items[index].size;
|
|
146
|
-
return previousItemPosition + previousItemSize + whitespaceBeforeFirstItem + this.paddingTop;
|
|
147
|
-
}
|
|
148
|
-
indexAt(position) {
|
|
149
|
-
if (position < 0) {
|
|
150
|
-
return -1;
|
|
151
|
-
}
|
|
152
|
-
const whitespaceBeforeFirstItem = this._whitespace.filter(ws => ws.afterPosition === 0).reduce((acc, ws) => acc + ws.size, 0);
|
|
153
|
-
const offset = position - (this._paddingTop + whitespaceBeforeFirstItem);
|
|
154
|
-
if (offset <= 0) {
|
|
155
|
-
return 0;
|
|
156
|
-
}
|
|
157
|
-
if (offset >= (this._size - this._paddingTop - whitespaceBeforeFirstItem)) {
|
|
158
|
-
return this.count;
|
|
159
|
-
}
|
|
160
|
-
return this._prefixSumComputer.getIndexOf(Math.trunc(offset)).index;
|
|
161
|
-
}
|
|
162
|
-
indexAfter(position) {
|
|
163
|
-
const index = this.indexAt(position);
|
|
164
|
-
return Math.min(index + 1, this._items.length);
|
|
165
|
-
}
|
|
166
|
-
positionAt(index) {
|
|
167
|
-
if (index < 0) {
|
|
168
|
-
return -1;
|
|
169
|
-
}
|
|
170
|
-
if (this.count === 0) {
|
|
171
|
-
return -1;
|
|
172
|
-
}
|
|
173
|
-
if (index >= this.count) {
|
|
174
|
-
return -1;
|
|
175
|
-
}
|
|
176
|
-
const whitespaceBeforeFirstItem = this._whitespace.filter(ws => ws.afterPosition === 0).reduce((acc, ws) => acc + ws.size, 0);
|
|
177
|
-
return this._prefixSumComputer.getPrefixSum(index ) + this._paddingTop + whitespaceBeforeFirstItem;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
class NotebookCellListView extends ListView {
|
|
181
|
-
constructor() {
|
|
182
|
-
super(...arguments);
|
|
183
|
-
this._lastWhitespaceId = 0;
|
|
184
|
-
this._renderingStack = 0;
|
|
185
|
-
}
|
|
186
|
-
get inRenderingTransaction() {
|
|
187
|
-
return this._renderingStack > 0;
|
|
188
|
-
}
|
|
189
|
-
get notebookRangeMap() {
|
|
190
|
-
return this.rangeMap;
|
|
191
|
-
}
|
|
192
|
-
render(
|
|
193
|
-
previousRenderRange,
|
|
194
|
-
renderTop,
|
|
195
|
-
renderHeight,
|
|
196
|
-
renderLeft,
|
|
197
|
-
scrollWidth,
|
|
198
|
-
updateItemsInDOM
|
|
199
|
-
) {
|
|
200
|
-
this._renderingStack++;
|
|
201
|
-
super.render(
|
|
202
|
-
previousRenderRange,
|
|
203
|
-
renderTop,
|
|
204
|
-
renderHeight,
|
|
205
|
-
renderLeft,
|
|
206
|
-
scrollWidth,
|
|
207
|
-
updateItemsInDOM
|
|
208
|
-
);
|
|
209
|
-
this._renderingStack--;
|
|
210
|
-
}
|
|
211
|
-
_rerender(renderTop, renderHeight, inSmoothScrolling) {
|
|
212
|
-
this._renderingStack++;
|
|
213
|
-
super._rerender(renderTop, renderHeight, inSmoothScrolling);
|
|
214
|
-
this._renderingStack--;
|
|
215
|
-
}
|
|
216
|
-
createRangeMap(paddingTop) {
|
|
217
|
-
const existingMap = this.rangeMap;
|
|
218
|
-
if (existingMap) {
|
|
219
|
-
const layout = ( new NotebookCellsLayout(paddingTop));
|
|
220
|
-
layout.restoreWhitespace(existingMap.getWhitespaces());
|
|
221
|
-
return layout;
|
|
222
|
-
} else {
|
|
223
|
-
return ( new NotebookCellsLayout(paddingTop));
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
insertWhitespace(afterPosition, size) {
|
|
227
|
-
const scrollTop = this.scrollTop;
|
|
228
|
-
const id = `${++this._lastWhitespaceId}`;
|
|
229
|
-
const previousRenderRange = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight);
|
|
230
|
-
const elementPosition = this.elementTop(afterPosition);
|
|
231
|
-
const aboveScrollTop = scrollTop > elementPosition;
|
|
232
|
-
this.notebookRangeMap.insertWhitespace(id, afterPosition, size);
|
|
233
|
-
const newScrolltop = aboveScrollTop ? scrollTop + size : scrollTop;
|
|
234
|
-
this.render(
|
|
235
|
-
previousRenderRange,
|
|
236
|
-
newScrolltop,
|
|
237
|
-
this.lastRenderHeight,
|
|
238
|
-
undefined,
|
|
239
|
-
undefined,
|
|
240
|
-
false
|
|
241
|
-
);
|
|
242
|
-
this._rerender(newScrolltop, this.renderHeight, false);
|
|
243
|
-
this.eventuallyUpdateScrollDimensions();
|
|
244
|
-
return id;
|
|
245
|
-
}
|
|
246
|
-
changeOneWhitespace(id, newAfterPosition, newSize) {
|
|
247
|
-
const scrollTop = this.scrollTop;
|
|
248
|
-
const previousRenderRange = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight);
|
|
249
|
-
const currentPosition = this.notebookRangeMap.getWhitespacePosition(id);
|
|
250
|
-
if (currentPosition > scrollTop) {
|
|
251
|
-
this.notebookRangeMap.changeOneWhitespace(id, newAfterPosition, newSize);
|
|
252
|
-
this.render(
|
|
253
|
-
previousRenderRange,
|
|
254
|
-
scrollTop,
|
|
255
|
-
this.lastRenderHeight,
|
|
256
|
-
undefined,
|
|
257
|
-
undefined,
|
|
258
|
-
false
|
|
259
|
-
);
|
|
260
|
-
this._rerender(scrollTop, this.renderHeight, false);
|
|
261
|
-
this.eventuallyUpdateScrollDimensions();
|
|
262
|
-
} else {
|
|
263
|
-
this.notebookRangeMap.changeOneWhitespace(id, newAfterPosition, newSize);
|
|
264
|
-
this.eventuallyUpdateScrollDimensions();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
removeWhitespace(id) {
|
|
268
|
-
const scrollTop = this.scrollTop;
|
|
269
|
-
const previousRenderRange = this.getRenderRange(this.lastRenderTop, this.lastRenderHeight);
|
|
270
|
-
this.notebookRangeMap.removeWhitespace(id);
|
|
271
|
-
this.render(
|
|
272
|
-
previousRenderRange,
|
|
273
|
-
scrollTop,
|
|
274
|
-
this.lastRenderHeight,
|
|
275
|
-
undefined,
|
|
276
|
-
undefined,
|
|
277
|
-
false
|
|
278
|
-
);
|
|
279
|
-
this._rerender(scrollTop, this.renderHeight, false);
|
|
280
|
-
this.eventuallyUpdateScrollDimensions();
|
|
281
|
-
}
|
|
282
|
-
getWhitespacePosition(id) {
|
|
283
|
-
return this.notebookRangeMap.getWhitespacePosition(id);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export { NotebookCellListView, NotebookCellsLayout };
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { FastDomNode } from "../../../../../base/browser/fastDomNode.js";
|
|
2
|
-
import { IMouseWheelEvent } from "../../../../../base/browser/mouseEvent.js";
|
|
3
|
-
import { IListContextMenuEvent, IListEvent, IListMouseEvent } from "../../../../../base/browser/ui/list/list.js";
|
|
4
|
-
import { IListStyles } from "../../../../../base/browser/ui/list/listWidget.js";
|
|
5
|
-
import { Event } from "../../../../../base/common/event.js";
|
|
6
|
-
import { DisposableStore } from "../../../../../base/common/lifecycle.js";
|
|
7
|
-
import { ScrollEvent } from "../../../../../base/common/scrollable.js";
|
|
8
|
-
import { ICodeEditor } from "../../../../../editor/browser/editorBrowser.js";
|
|
9
|
-
import { Range } from "../../../../../editor/common/core/range.js";
|
|
10
|
-
import { Selection } from "../../../../../editor/common/core/selection.js";
|
|
11
|
-
import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
|
|
12
|
-
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
13
|
-
import { IWorkbenchListOptionsUpdate } from "../../../../../platform/list/browser/listService.js";
|
|
14
|
-
import { CellRevealRangeType, CellRevealType, ICellOutputViewModel, ICellViewModel, INotebookCellOverlayChangeAccessor, INotebookViewZoneChangeAccessor } from "../notebookBrowser.js";
|
|
15
|
-
import { CellPartsCollection } from "./cellPart.js";
|
|
16
|
-
import { CellViewModel, NotebookViewModel } from "../viewModel/notebookViewModelImpl.js";
|
|
17
|
-
import { ICellRange } from "../../common/notebookRange.js";
|
|
18
|
-
export interface INotebookCellList extends ICoordinatesConverter {
|
|
19
|
-
isDisposed: boolean;
|
|
20
|
-
inRenderingTransaction: boolean;
|
|
21
|
-
viewModel: NotebookViewModel | null;
|
|
22
|
-
webviewElement: FastDomNode<HTMLElement> | null;
|
|
23
|
-
readonly contextKeyService: IContextKeyService;
|
|
24
|
-
element(index: number): ICellViewModel | undefined;
|
|
25
|
-
elementAt(position: number): ICellViewModel | undefined;
|
|
26
|
-
elementHeight(element: ICellViewModel): number;
|
|
27
|
-
readonly onWillScroll: Event<ScrollEvent>;
|
|
28
|
-
readonly onDidScroll: Event<ScrollEvent>;
|
|
29
|
-
readonly onDidChangeFocus: Event<IListEvent<ICellViewModel>>;
|
|
30
|
-
readonly onDidChangeContentHeight: Event<number>;
|
|
31
|
-
readonly onDidChangeVisibleRanges: Event<void>;
|
|
32
|
-
visibleRanges: ICellRange[];
|
|
33
|
-
scrollTop: number;
|
|
34
|
-
scrollHeight: number;
|
|
35
|
-
scrollLeft: number;
|
|
36
|
-
length: number;
|
|
37
|
-
rowsContainer: HTMLElement;
|
|
38
|
-
scrollableElement: HTMLElement;
|
|
39
|
-
ariaLabel: string;
|
|
40
|
-
readonly onDidRemoveOutputs: Event<readonly ICellOutputViewModel[]>;
|
|
41
|
-
readonly onDidHideOutputs: Event<readonly ICellOutputViewModel[]>;
|
|
42
|
-
readonly onDidRemoveCellsFromView: Event<readonly ICellViewModel[]>;
|
|
43
|
-
readonly onMouseUp: Event<IListMouseEvent<CellViewModel>>;
|
|
44
|
-
readonly onMouseDown: Event<IListMouseEvent<CellViewModel>>;
|
|
45
|
-
readonly onContextMenu: Event<IListContextMenuEvent<CellViewModel>>;
|
|
46
|
-
detachViewModel(): void;
|
|
47
|
-
attachViewModel(viewModel: NotebookViewModel): void;
|
|
48
|
-
attachWebview(element: HTMLElement): void;
|
|
49
|
-
clear(): void;
|
|
50
|
-
focusElement(element: ICellViewModel): void;
|
|
51
|
-
selectElements(elements: ICellViewModel[]): void;
|
|
52
|
-
getFocusedElements(): ICellViewModel[];
|
|
53
|
-
getSelectedElements(): ICellViewModel[];
|
|
54
|
-
scrollToBottom(): void;
|
|
55
|
-
revealCell(cell: ICellViewModel, revealType: CellRevealType): Promise<void>;
|
|
56
|
-
revealCells(range: ICellRange): void;
|
|
57
|
-
revealRangeInCell(cell: ICellViewModel, range: Selection | Range, revealType: CellRevealRangeType): Promise<void>;
|
|
58
|
-
revealCellOffsetInCenter(element: ICellViewModel, offset: number): void;
|
|
59
|
-
revealOffsetInCenterIfOutsideViewport(offset: number): void;
|
|
60
|
-
setHiddenAreas(_ranges: ICellRange[], triggerViewUpdate: boolean): boolean;
|
|
61
|
-
changeViewZones(callback: (accessor: INotebookViewZoneChangeAccessor) => void): void;
|
|
62
|
-
changeCellOverlays(callback: (accessor: INotebookCellOverlayChangeAccessor) => void): void;
|
|
63
|
-
getViewZoneLayoutInfo(viewZoneId: string): {
|
|
64
|
-
height: number;
|
|
65
|
-
top: number;
|
|
66
|
-
} | null;
|
|
67
|
-
domElementOfElement(element: ICellViewModel): HTMLElement | null;
|
|
68
|
-
focusView(): void;
|
|
69
|
-
triggerScrollFromMouseWheelEvent(browserEvent: IMouseWheelEvent): void;
|
|
70
|
-
updateElementHeight2(element: ICellViewModel, size: number, anchorElementIndex?: number | null): void;
|
|
71
|
-
domFocus(): void;
|
|
72
|
-
focusContainer(clearSelection: boolean): void;
|
|
73
|
-
setCellEditorSelection(element: ICellViewModel, range: Range): void;
|
|
74
|
-
style(styles: IListStyles): void;
|
|
75
|
-
getRenderHeight(): number;
|
|
76
|
-
getScrollHeight(): number;
|
|
77
|
-
updateOptions(options: IWorkbenchListOptionsUpdate): void;
|
|
78
|
-
layout(height?: number, width?: number): void;
|
|
79
|
-
dispose(): void;
|
|
80
|
-
}
|
|
81
|
-
export interface BaseCellRenderTemplate {
|
|
82
|
-
readonly rootContainer: HTMLElement;
|
|
83
|
-
readonly editorPart: HTMLElement;
|
|
84
|
-
readonly cellInputCollapsedContainer: HTMLElement;
|
|
85
|
-
readonly instantiationService: IInstantiationService;
|
|
86
|
-
readonly container: HTMLElement;
|
|
87
|
-
readonly cellContainer: HTMLElement;
|
|
88
|
-
readonly templateDisposables: DisposableStore;
|
|
89
|
-
readonly elementDisposables: DisposableStore;
|
|
90
|
-
currentRenderedCell?: ICellViewModel;
|
|
91
|
-
cellParts: CellPartsCollection;
|
|
92
|
-
toJSON: () => object;
|
|
93
|
-
}
|
|
94
|
-
export interface MarkdownCellRenderTemplate extends BaseCellRenderTemplate {
|
|
95
|
-
readonly editorContainer: HTMLElement;
|
|
96
|
-
readonly foldingIndicator: HTMLElement;
|
|
97
|
-
currentEditor?: ICodeEditor;
|
|
98
|
-
}
|
|
99
|
-
export interface CodeCellRenderTemplate extends BaseCellRenderTemplate {
|
|
100
|
-
outputContainer: FastDomNode<HTMLElement>;
|
|
101
|
-
cellOutputCollapsedContainer: HTMLElement;
|
|
102
|
-
outputShowMoreContainer: FastDomNode<HTMLElement>;
|
|
103
|
-
focusSinkElement: HTMLElement;
|
|
104
|
-
editor: ICodeEditor;
|
|
105
|
-
}
|
|
106
|
-
export interface ICoordinatesConverter {
|
|
107
|
-
getCellViewScrollTop(cell: ICellViewModel): number;
|
|
108
|
-
getCellViewScrollBottom(cell: ICellViewModel): number;
|
|
109
|
-
getViewIndex(cell: ICellViewModel): number | undefined;
|
|
110
|
-
getViewIndex2(modelIndex: number): number | undefined;
|
|
111
|
-
getModelIndex(cell: CellViewModel): number | undefined;
|
|
112
|
-
getModelIndex2(viewIndex: number): number | undefined;
|
|
113
|
-
getVisibleRangesPlusViewportAboveAndBelow(): ICellRange[];
|
|
114
|
-
modelIndexIsVisible(modelIndex: number): boolean;
|
|
115
|
-
convertModelIndexToViewIndex(modelIndex: number): number;
|
|
116
|
-
}
|
|
117
|
-
export declare const collapsedCellTTPolicy: Pick<TrustedTypePolicy, "createHTML" | "name"> | undefined;
|