@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,183 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { Disposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
4
|
-
import '../../../../../../base/common/observableInternal/index.js';
|
|
5
|
-
import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
|
|
6
|
-
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
7
|
-
import { CellFocusMode, CellEditState } from '../../notebookBrowser.js';
|
|
8
|
-
import { CellContentPart } from '../cellPart.js';
|
|
9
|
-
import { CodeCellViewModel } from '../../viewModel/codeCellViewModel.js';
|
|
10
|
-
import { MarkupCellViewModel } from '../../viewModel/markupCellViewModel.js';
|
|
11
|
-
import { NotebookCellExecutionState } from '../../../common/notebookCommon.js';
|
|
12
|
-
import { NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_LINE_NUMBERS, NOTEBOOK_CELL_RESOURCE, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS } from '../../../common/notebookContextKeys.js';
|
|
13
|
-
import { NotebookExecutionType } from '../../../common/notebookExecutionStateService.js';
|
|
14
|
-
import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
|
|
15
|
-
import { autorun } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
16
|
-
|
|
17
|
-
let CellContextKeyPart = class CellContextKeyPart extends CellContentPart {
|
|
18
|
-
constructor(notebookEditor, instantiationService) {
|
|
19
|
-
super();
|
|
20
|
-
this.instantiationService = instantiationService;
|
|
21
|
-
this.cellContextKeyManager = this._register(
|
|
22
|
-
this.instantiationService.createInstance(CellContextKeyManager, notebookEditor, undefined)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
didRenderCell(element) {
|
|
26
|
-
this.cellContextKeyManager.updateForElement(element);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
CellContextKeyPart = ( __decorate([( __param(1, IInstantiationService))], CellContextKeyPart));
|
|
30
|
-
let CellContextKeyManager = class CellContextKeyManager extends Disposable {
|
|
31
|
-
constructor(
|
|
32
|
-
notebookEditor,
|
|
33
|
-
element,
|
|
34
|
-
_contextKeyService,
|
|
35
|
-
_notebookExecutionStateService
|
|
36
|
-
) {
|
|
37
|
-
super();
|
|
38
|
-
this.notebookEditor = notebookEditor;
|
|
39
|
-
this.element = element;
|
|
40
|
-
this._contextKeyService = _contextKeyService;
|
|
41
|
-
this._notebookExecutionStateService = _notebookExecutionStateService;
|
|
42
|
-
this.elementDisposables = this._register(( new DisposableStore()));
|
|
43
|
-
this._contextKeyService.bufferChangeEvents(() => {
|
|
44
|
-
this.cellType = NOTEBOOK_CELL_TYPE.bindTo(this._contextKeyService);
|
|
45
|
-
this.cellEditable = NOTEBOOK_CELL_EDITABLE.bindTo(this._contextKeyService);
|
|
46
|
-
this.cellFocused = NOTEBOOK_CELL_FOCUSED.bindTo(this._contextKeyService);
|
|
47
|
-
this.cellEditorFocused = NOTEBOOK_CELL_EDITOR_FOCUSED.bindTo(this._contextKeyService);
|
|
48
|
-
this.markdownEditMode = NOTEBOOK_CELL_MARKDOWN_EDIT_MODE.bindTo(this._contextKeyService);
|
|
49
|
-
this.cellRunState = NOTEBOOK_CELL_EXECUTION_STATE.bindTo(this._contextKeyService);
|
|
50
|
-
this.cellExecuting = NOTEBOOK_CELL_EXECUTING.bindTo(this._contextKeyService);
|
|
51
|
-
this.cellHasOutputs = NOTEBOOK_CELL_HAS_OUTPUTS.bindTo(this._contextKeyService);
|
|
52
|
-
this.cellContentCollapsed = NOTEBOOK_CELL_INPUT_COLLAPSED.bindTo(this._contextKeyService);
|
|
53
|
-
this.cellOutputCollapsed = NOTEBOOK_CELL_OUTPUT_COLLAPSED.bindTo(this._contextKeyService);
|
|
54
|
-
this.cellLineNumbers = NOTEBOOK_CELL_LINE_NUMBERS.bindTo(this._contextKeyService);
|
|
55
|
-
this.cellResource = NOTEBOOK_CELL_RESOURCE.bindTo(this._contextKeyService);
|
|
56
|
-
this.cellHasErrorDiagnostics = NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS.bindTo(this._contextKeyService);
|
|
57
|
-
if (element) {
|
|
58
|
-
this.updateForElement(element);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
this._register(this._notebookExecutionStateService.onDidChangeExecution(e => {
|
|
62
|
-
if (e.type === NotebookExecutionType.cell && this.element && e.affectsCell(this.element.uri)) {
|
|
63
|
-
this.updateForExecutionState();
|
|
64
|
-
}
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
updateForElement(element) {
|
|
68
|
-
this.elementDisposables.clear();
|
|
69
|
-
this.element = element;
|
|
70
|
-
if (!element) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
this.elementDisposables.add(element.onDidChangeState(e => this.onDidChangeState(e)));
|
|
74
|
-
if (element instanceof CodeCellViewModel) {
|
|
75
|
-
this.elementDisposables.add(element.onDidChangeOutputs(() => this.updateForOutputs()));
|
|
76
|
-
this.elementDisposables.add(autorun(reader => {
|
|
77
|
-
this.cellHasErrorDiagnostics.set(!!reader.readObservable(element.executionErrorDiagnostic));
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
this.elementDisposables.add(
|
|
81
|
-
this.notebookEditor.onDidChangeActiveCell(() => this.updateForFocusState())
|
|
82
|
-
);
|
|
83
|
-
if (this.element instanceof MarkupCellViewModel) {
|
|
84
|
-
this.cellType.set("markup");
|
|
85
|
-
} else if (this.element instanceof CodeCellViewModel) {
|
|
86
|
-
this.cellType.set("code");
|
|
87
|
-
}
|
|
88
|
-
this._contextKeyService.bufferChangeEvents(() => {
|
|
89
|
-
this.updateForFocusState();
|
|
90
|
-
this.updateForExecutionState();
|
|
91
|
-
this.updateForEditState();
|
|
92
|
-
this.updateForCollapseState();
|
|
93
|
-
this.updateForOutputs();
|
|
94
|
-
this.cellLineNumbers.set(this.element.lineNumbers);
|
|
95
|
-
this.cellResource.set(( this.element.uri.toString()));
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
onDidChangeState(e) {
|
|
99
|
-
this._contextKeyService.bufferChangeEvents(() => {
|
|
100
|
-
if (e.internalMetadataChanged) {
|
|
101
|
-
this.updateForExecutionState();
|
|
102
|
-
}
|
|
103
|
-
if (e.editStateChanged) {
|
|
104
|
-
this.updateForEditState();
|
|
105
|
-
}
|
|
106
|
-
if (e.focusModeChanged) {
|
|
107
|
-
this.updateForFocusState();
|
|
108
|
-
}
|
|
109
|
-
if (e.cellLineNumberChanged) {
|
|
110
|
-
this.cellLineNumbers.set(this.element.lineNumbers);
|
|
111
|
-
}
|
|
112
|
-
if (e.inputCollapsedChanged || e.outputCollapsedChanged) {
|
|
113
|
-
this.updateForCollapseState();
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
updateForFocusState() {
|
|
118
|
-
if (!this.element) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const activeCell = this.notebookEditor.getActiveCell();
|
|
122
|
-
this.cellFocused.set(this.notebookEditor.getActiveCell() === this.element);
|
|
123
|
-
if (activeCell === this.element) {
|
|
124
|
-
this.cellEditorFocused.set(this.element.focusMode === CellFocusMode.Editor);
|
|
125
|
-
} else {
|
|
126
|
-
this.cellEditorFocused.set(false);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
updateForExecutionState() {
|
|
130
|
-
if (!this.element) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
const internalMetadata = this.element.internalMetadata;
|
|
134
|
-
this.cellEditable.set(!this.notebookEditor.isReadOnly);
|
|
135
|
-
const exeState = this._notebookExecutionStateService.getCellExecution(this.element.uri);
|
|
136
|
-
if (this.element instanceof MarkupCellViewModel) {
|
|
137
|
-
this.cellRunState.reset();
|
|
138
|
-
this.cellExecuting.reset();
|
|
139
|
-
} else if (exeState?.state === NotebookCellExecutionState.Executing) {
|
|
140
|
-
this.cellRunState.set("executing");
|
|
141
|
-
this.cellExecuting.set(true);
|
|
142
|
-
} else if (exeState?.state === NotebookCellExecutionState.Pending || exeState?.state === NotebookCellExecutionState.Unconfirmed) {
|
|
143
|
-
this.cellRunState.set("pending");
|
|
144
|
-
this.cellExecuting.set(true);
|
|
145
|
-
} else if (internalMetadata.lastRunSuccess === true) {
|
|
146
|
-
this.cellRunState.set("succeeded");
|
|
147
|
-
this.cellExecuting.set(false);
|
|
148
|
-
} else if (internalMetadata.lastRunSuccess === false) {
|
|
149
|
-
this.cellRunState.set("failed");
|
|
150
|
-
this.cellExecuting.set(false);
|
|
151
|
-
} else {
|
|
152
|
-
this.cellRunState.set("idle");
|
|
153
|
-
this.cellExecuting.set(false);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
updateForEditState() {
|
|
157
|
-
if (!this.element) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
if (this.element instanceof MarkupCellViewModel) {
|
|
161
|
-
this.markdownEditMode.set(this.element.getEditState() === CellEditState.Editing);
|
|
162
|
-
} else {
|
|
163
|
-
this.markdownEditMode.set(false);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
updateForCollapseState() {
|
|
167
|
-
if (!this.element) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
this.cellContentCollapsed.set(!!this.element.isInputCollapsed);
|
|
171
|
-
this.cellOutputCollapsed.set(!!this.element.isOutputCollapsed);
|
|
172
|
-
}
|
|
173
|
-
updateForOutputs() {
|
|
174
|
-
if (this.element instanceof CodeCellViewModel) {
|
|
175
|
-
this.cellHasOutputs.set(this.element.outputsViewModels.length > 0);
|
|
176
|
-
} else {
|
|
177
|
-
this.cellHasOutputs.set(false);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
CellContextKeyManager = ( __decorate([( __param(2, IContextKeyService)), ( __param(3, INotebookExecutionStateService))], CellContextKeyManager));
|
|
182
|
-
|
|
183
|
-
export { CellContextKeyManager, CellContextKeyPart };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
|
|
2
|
-
import { CellContentPart } from "../cellPart.js";
|
|
3
|
-
export declare class CellDecorations extends CellContentPart {
|
|
4
|
-
readonly notebookEditor: INotebookEditorDelegate;
|
|
5
|
-
readonly rootContainer: HTMLElement;
|
|
6
|
-
readonly decorationContainer: HTMLElement;
|
|
7
|
-
constructor(notebookEditor: INotebookEditorDelegate, rootContainer: HTMLElement, decorationContainer: HTMLElement);
|
|
8
|
-
didRenderCell(element: ICellViewModel): void;
|
|
9
|
-
private registerDecorations;
|
|
10
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { $ } from '../../../../../../base/browser/dom.js';
|
|
3
|
-
import { CellContentPart } from '../cellPart.js';
|
|
4
|
-
|
|
5
|
-
class CellDecorations extends CellContentPart {
|
|
6
|
-
constructor(notebookEditor, rootContainer, decorationContainer) {
|
|
7
|
-
super();
|
|
8
|
-
this.notebookEditor = notebookEditor;
|
|
9
|
-
this.rootContainer = rootContainer;
|
|
10
|
-
this.decorationContainer = decorationContainer;
|
|
11
|
-
}
|
|
12
|
-
didRenderCell(element) {
|
|
13
|
-
const removedClassNames = [];
|
|
14
|
-
this.rootContainer.classList.forEach(className => {
|
|
15
|
-
if (/^nb\-.*$/.test(className)) {
|
|
16
|
-
removedClassNames.push(className);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
removedClassNames.forEach(className => {
|
|
20
|
-
this.rootContainer.classList.remove(className);
|
|
21
|
-
});
|
|
22
|
-
this.decorationContainer.innerText = '';
|
|
23
|
-
const generateCellTopDecorations = () => {
|
|
24
|
-
this.decorationContainer.innerText = '';
|
|
25
|
-
element.getCellDecorations().filter(options => options.topClassName !== undefined).forEach(options => {
|
|
26
|
-
this.decorationContainer.append($(`.${options.topClassName}`));
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
this.cellDisposables.add(element.onCellDecorationsChanged((e) => {
|
|
30
|
-
const modified = e.added.find(e => e.topClassName) || e.removed.find(e => e.topClassName);
|
|
31
|
-
if (modified) {
|
|
32
|
-
generateCellTopDecorations();
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
generateCellTopDecorations();
|
|
36
|
-
this.registerDecorations();
|
|
37
|
-
}
|
|
38
|
-
registerDecorations() {
|
|
39
|
-
if (!this.currentCell) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
this.cellDisposables.add(this.currentCell.onCellDecorationsChanged((e) => {
|
|
43
|
-
e.added.forEach(options => {
|
|
44
|
-
if (options.className && this.currentCell) {
|
|
45
|
-
this.rootContainer.classList.add(options.className);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
e.removed.forEach(options => {
|
|
49
|
-
if (options.className && this.currentCell) {
|
|
50
|
-
this.rootContainer.classList.remove(options.className);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}));
|
|
54
|
-
this.currentCell.getCellDecorations().forEach(options => {
|
|
55
|
-
if (options.className && this.currentCell) {
|
|
56
|
-
this.rootContainer.classList.add(options.className);
|
|
57
|
-
this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.className], [], this.currentCell.cellKind);
|
|
58
|
-
}
|
|
59
|
-
if (options.outputClassName && this.currentCell) {
|
|
60
|
-
this.notebookEditor.deltaCellContainerClassNames(this.currentCell.id, [options.outputClassName], [], this.currentCell.cellKind);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { CellDecorations };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
|
|
3
|
-
import { CellViewModelStateChangeEvent } from "../../notebookViewEvents.js";
|
|
4
|
-
import { CellContentPart } from "../cellPart.js";
|
|
5
|
-
import { BaseCellRenderTemplate, INotebookCellList } from "../notebookRenderingCommon.js";
|
|
6
|
-
type DragImageProvider = () => HTMLElement;
|
|
7
|
-
export declare class CellDragAndDropPart extends CellContentPart {
|
|
8
|
-
private readonly container;
|
|
9
|
-
constructor(container: HTMLElement);
|
|
10
|
-
didRenderCell(element: ICellViewModel): void;
|
|
11
|
-
updateState(element: ICellViewModel, e: CellViewModelStateChangeEvent): void;
|
|
12
|
-
private update;
|
|
13
|
-
}
|
|
14
|
-
export declare class CellDragAndDropController extends Disposable {
|
|
15
|
-
private notebookEditor;
|
|
16
|
-
private readonly notebookListContainer;
|
|
17
|
-
private currentDraggedCell;
|
|
18
|
-
private draggedCells;
|
|
19
|
-
private listInsertionIndicator;
|
|
20
|
-
private list;
|
|
21
|
-
private isScrolling;
|
|
22
|
-
private readonly scrollingDelayer;
|
|
23
|
-
private readonly listOnWillScrollListener;
|
|
24
|
-
constructor(notebookEditor: INotebookEditorDelegate, notebookListContainer: HTMLElement);
|
|
25
|
-
setList(value: INotebookCellList): void;
|
|
26
|
-
private setInsertIndicatorVisibility;
|
|
27
|
-
private toCellDragEvent;
|
|
28
|
-
clearGlobalDragState(): void;
|
|
29
|
-
private onGlobalDragStart;
|
|
30
|
-
private onGlobalDragEnd;
|
|
31
|
-
private onCellDragover;
|
|
32
|
-
private updateInsertIndicator;
|
|
33
|
-
private getDropInsertDirection;
|
|
34
|
-
private onCellDrop;
|
|
35
|
-
private getCellRangeAroundDragTarget;
|
|
36
|
-
private _dropImpl;
|
|
37
|
-
private onCellDragLeave;
|
|
38
|
-
private dragCleanup;
|
|
39
|
-
registerDragHandle(templateData: BaseCellRenderTemplate, cellRoot: HTMLElement, dragHandles: HTMLElement[], dragImageProvider: DragImageProvider): void;
|
|
40
|
-
startExplicitDrag(cell: ICellViewModel, _dragOffsetY: number): void;
|
|
41
|
-
explicitDrag(cell: ICellViewModel, dragOffsetY: number): void;
|
|
42
|
-
endExplicitDrag(_cell: ICellViewModel): void;
|
|
43
|
-
explicitDrop(cell: ICellViewModel, ctx: {
|
|
44
|
-
dragOffsetY: number;
|
|
45
|
-
ctrlKey: boolean;
|
|
46
|
-
altKey: boolean;
|
|
47
|
-
}): void;
|
|
48
|
-
private getExplicitDragDropDirection;
|
|
49
|
-
dispose(): void;
|
|
50
|
-
}
|
|
51
|
-
export declare function performCellDropEdits(editor: INotebookEditorDelegate, draggedCell: ICellViewModel, dropDirection: "above" | "below", draggedOverCell: ICellViewModel): void;
|
|
52
|
-
export {};
|