@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,99 +0,0 @@
|
|
|
1
|
-
import { Disposable, DisposableStore } from "../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { ICellViewModel } from "../notebookBrowser.js";
|
|
3
|
-
import { CellViewModelStateChangeEvent } from "../notebookViewEvents.js";
|
|
4
|
-
import { ICellExecutionStateChangedEvent } from "../../common/notebookExecutionStateService.js";
|
|
5
|
-
/**
|
|
6
|
-
* A content part is a non-floating element that is rendered inside a cell.
|
|
7
|
-
* The rendering of the content part is synchronous to avoid flickering.
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class CellContentPart extends Disposable {
|
|
10
|
-
protected currentCell: ICellViewModel | undefined;
|
|
11
|
-
protected readonly cellDisposables: DisposableStore;
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
* Prepare model for cell part rendering
|
|
15
|
-
* No DOM operations recommended within this operation
|
|
16
|
-
*/
|
|
17
|
-
prepareRenderCell(element: ICellViewModel): void;
|
|
18
|
-
/**
|
|
19
|
-
* Update the DOM for the cell `element`
|
|
20
|
-
*/
|
|
21
|
-
renderCell(element: ICellViewModel): void;
|
|
22
|
-
didRenderCell(element: ICellViewModel): void;
|
|
23
|
-
/**
|
|
24
|
-
* Dispose any disposables generated from `didRenderCell`
|
|
25
|
-
*/
|
|
26
|
-
unrenderCell(element: ICellViewModel): void;
|
|
27
|
-
/**
|
|
28
|
-
* Perform DOM read operations to prepare for the list/cell layout update.
|
|
29
|
-
*/
|
|
30
|
-
prepareLayout(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Update internal DOM (top positions) per cell layout info change
|
|
33
|
-
* Note that a cell part doesn't need to call `DOM.scheduleNextFrame`,
|
|
34
|
-
* the list view will ensure that layout call is invoked in the right frame
|
|
35
|
-
*/
|
|
36
|
-
updateInternalLayoutNow(element: ICellViewModel): void;
|
|
37
|
-
/**
|
|
38
|
-
* Update per cell state change
|
|
39
|
-
*/
|
|
40
|
-
updateState(element: ICellViewModel, e: CellViewModelStateChangeEvent): void;
|
|
41
|
-
/**
|
|
42
|
-
* Update per execution state change.
|
|
43
|
-
*/
|
|
44
|
-
updateForExecutionState(element: ICellViewModel, e: ICellExecutionStateChangedEvent): void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* An overlay part renders on top of other components.
|
|
48
|
-
* The rendering of the overlay part might be postponed to the next animation frame to avoid forced reflow.
|
|
49
|
-
*/
|
|
50
|
-
export declare abstract class CellOverlayPart extends Disposable {
|
|
51
|
-
protected currentCell: ICellViewModel | undefined;
|
|
52
|
-
protected readonly cellDisposables: DisposableStore;
|
|
53
|
-
constructor();
|
|
54
|
-
/**
|
|
55
|
-
* Prepare model for cell part rendering
|
|
56
|
-
* No DOM operations recommended within this operation
|
|
57
|
-
*/
|
|
58
|
-
prepareRenderCell(element: ICellViewModel): void;
|
|
59
|
-
/**
|
|
60
|
-
* Update the DOM for the cell `element`
|
|
61
|
-
*/
|
|
62
|
-
renderCell(element: ICellViewModel): void;
|
|
63
|
-
didRenderCell(element: ICellViewModel): void;
|
|
64
|
-
/**
|
|
65
|
-
* Dispose any disposables generated from `didRenderCell`
|
|
66
|
-
*/
|
|
67
|
-
unrenderCell(element: ICellViewModel): void;
|
|
68
|
-
/**
|
|
69
|
-
* Update internal DOM (top positions) per cell layout info change
|
|
70
|
-
* Note that a cell part doesn't need to call `DOM.scheduleNextFrame`,
|
|
71
|
-
* the list view will ensure that layout call is invoked in the right frame
|
|
72
|
-
*/
|
|
73
|
-
updateInternalLayoutNow(element: ICellViewModel): void;
|
|
74
|
-
/**
|
|
75
|
-
* Update per cell state change
|
|
76
|
-
*/
|
|
77
|
-
updateState(element: ICellViewModel, e: CellViewModelStateChangeEvent): void;
|
|
78
|
-
/**
|
|
79
|
-
* Update per execution state change.
|
|
80
|
-
*/
|
|
81
|
-
updateForExecutionState(element: ICellViewModel, e: ICellExecutionStateChangedEvent): void;
|
|
82
|
-
}
|
|
83
|
-
export declare class CellPartsCollection extends Disposable {
|
|
84
|
-
private readonly targetWindow;
|
|
85
|
-
private readonly contentParts;
|
|
86
|
-
private readonly overlayParts;
|
|
87
|
-
private readonly _scheduledOverlayRendering;
|
|
88
|
-
private readonly _scheduledOverlayUpdateState;
|
|
89
|
-
private readonly _scheduledOverlayUpdateExecutionState;
|
|
90
|
-
constructor(targetWindow: Window, contentParts: readonly CellContentPart[], overlayParts: readonly CellOverlayPart[]);
|
|
91
|
-
concatContentPart(other: readonly CellContentPart[], targetWindow: Window): CellPartsCollection;
|
|
92
|
-
concatOverlayPart(other: readonly CellOverlayPart[], targetWindow: Window): CellPartsCollection;
|
|
93
|
-
scheduleRenderCell(element: ICellViewModel): void;
|
|
94
|
-
unrenderCell(element: ICellViewModel): void;
|
|
95
|
-
updateInternalLayoutNow(viewCell: ICellViewModel): void;
|
|
96
|
-
prepareLayout(): void;
|
|
97
|
-
updateState(viewCell: ICellViewModel, e: CellViewModelStateChangeEvent): void;
|
|
98
|
-
updateForExecutionState(viewCell: ICellViewModel, e: ICellExecutionStateChangedEvent): void;
|
|
99
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { modify } from '../../../../../base/browser/dom.js';
|
|
3
|
-
import { onUnexpectedError } from '../../../../../base/common/errors.js';
|
|
4
|
-
import { Disposable, DisposableStore, MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
5
|
-
|
|
6
|
-
class CellContentPart extends Disposable {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.cellDisposables = this._register(( new DisposableStore()));
|
|
10
|
-
}
|
|
11
|
-
prepareRenderCell(element) {}
|
|
12
|
-
renderCell(element) {
|
|
13
|
-
this.currentCell = element;
|
|
14
|
-
safeInvokeNoArg(() => this.didRenderCell(element));
|
|
15
|
-
}
|
|
16
|
-
didRenderCell(element) {}
|
|
17
|
-
unrenderCell(element) {
|
|
18
|
-
this.currentCell = undefined;
|
|
19
|
-
this.cellDisposables.clear();
|
|
20
|
-
}
|
|
21
|
-
prepareLayout() {}
|
|
22
|
-
updateInternalLayoutNow(element) {}
|
|
23
|
-
updateState(element, e) {}
|
|
24
|
-
updateForExecutionState(element, e) {}
|
|
25
|
-
}
|
|
26
|
-
class CellOverlayPart extends Disposable {
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
this.cellDisposables = this._register(( new DisposableStore()));
|
|
30
|
-
}
|
|
31
|
-
prepareRenderCell(element) {}
|
|
32
|
-
renderCell(element) {
|
|
33
|
-
this.currentCell = element;
|
|
34
|
-
this.didRenderCell(element);
|
|
35
|
-
}
|
|
36
|
-
didRenderCell(element) {}
|
|
37
|
-
unrenderCell(element) {
|
|
38
|
-
this.currentCell = undefined;
|
|
39
|
-
this.cellDisposables.clear();
|
|
40
|
-
}
|
|
41
|
-
updateInternalLayoutNow(element) {}
|
|
42
|
-
updateState(element, e) {}
|
|
43
|
-
updateForExecutionState(element, e) {}
|
|
44
|
-
}
|
|
45
|
-
function safeInvokeNoArg(func) {
|
|
46
|
-
try {
|
|
47
|
-
return func();
|
|
48
|
-
} catch (e) {
|
|
49
|
-
onUnexpectedError(e);
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
class CellPartsCollection extends Disposable {
|
|
54
|
-
constructor(targetWindow, contentParts, overlayParts) {
|
|
55
|
-
super();
|
|
56
|
-
this.targetWindow = targetWindow;
|
|
57
|
-
this.contentParts = contentParts;
|
|
58
|
-
this.overlayParts = overlayParts;
|
|
59
|
-
this._scheduledOverlayRendering = this._register(( new MutableDisposable()));
|
|
60
|
-
this._scheduledOverlayUpdateState = this._register(( new MutableDisposable()));
|
|
61
|
-
this._scheduledOverlayUpdateExecutionState = this._register(( new MutableDisposable()));
|
|
62
|
-
}
|
|
63
|
-
concatContentPart(other, targetWindow) {
|
|
64
|
-
return ( new CellPartsCollection(targetWindow, this.contentParts.concat(other), this.overlayParts));
|
|
65
|
-
}
|
|
66
|
-
concatOverlayPart(other, targetWindow) {
|
|
67
|
-
return ( new CellPartsCollection(targetWindow, this.contentParts, this.overlayParts.concat(other)));
|
|
68
|
-
}
|
|
69
|
-
scheduleRenderCell(element) {
|
|
70
|
-
for (const part of this.contentParts) {
|
|
71
|
-
safeInvokeNoArg(() => part.prepareRenderCell(element));
|
|
72
|
-
}
|
|
73
|
-
for (const part of this.overlayParts) {
|
|
74
|
-
safeInvokeNoArg(() => part.prepareRenderCell(element));
|
|
75
|
-
}
|
|
76
|
-
for (const part of this.contentParts) {
|
|
77
|
-
safeInvokeNoArg(() => part.renderCell(element));
|
|
78
|
-
}
|
|
79
|
-
this._scheduledOverlayRendering.value = modify(this.targetWindow, () => {
|
|
80
|
-
for (const part of this.overlayParts) {
|
|
81
|
-
safeInvokeNoArg(() => part.renderCell(element));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
unrenderCell(element) {
|
|
86
|
-
for (const part of this.contentParts) {
|
|
87
|
-
safeInvokeNoArg(() => part.unrenderCell(element));
|
|
88
|
-
}
|
|
89
|
-
this._scheduledOverlayRendering.value = undefined;
|
|
90
|
-
this._scheduledOverlayUpdateState.value = undefined;
|
|
91
|
-
this._scheduledOverlayUpdateExecutionState.value = undefined;
|
|
92
|
-
for (const part of this.overlayParts) {
|
|
93
|
-
safeInvokeNoArg(() => part.unrenderCell(element));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
updateInternalLayoutNow(viewCell) {
|
|
97
|
-
for (const part of this.contentParts) {
|
|
98
|
-
safeInvokeNoArg(() => part.updateInternalLayoutNow(viewCell));
|
|
99
|
-
}
|
|
100
|
-
for (const part of this.overlayParts) {
|
|
101
|
-
safeInvokeNoArg(() => part.updateInternalLayoutNow(viewCell));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
prepareLayout() {
|
|
105
|
-
for (const part of this.contentParts) {
|
|
106
|
-
safeInvokeNoArg(() => part.prepareLayout());
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
updateState(viewCell, e) {
|
|
110
|
-
for (const part of this.contentParts) {
|
|
111
|
-
safeInvokeNoArg(() => part.updateState(viewCell, e));
|
|
112
|
-
}
|
|
113
|
-
this._scheduledOverlayUpdateState.value = modify(this.targetWindow, () => {
|
|
114
|
-
for (const part of this.overlayParts) {
|
|
115
|
-
safeInvokeNoArg(() => part.updateState(viewCell, e));
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
updateForExecutionState(viewCell, e) {
|
|
120
|
-
for (const part of this.contentParts) {
|
|
121
|
-
safeInvokeNoArg(() => part.updateForExecutionState(viewCell, e));
|
|
122
|
-
}
|
|
123
|
-
this._scheduledOverlayUpdateExecutionState.value = modify(this.targetWindow, () => {
|
|
124
|
-
for (const part of this.overlayParts) {
|
|
125
|
-
safeInvokeNoArg(() => part.updateForExecutionState(viewCell, e));
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export { CellContentPart, CellOverlayPart, CellPartsCollection };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as DOM from "../../../../../../base/browser/dom.js";
|
|
2
|
-
import { IActionViewItemProvider } from "../../../../../../base/browser/ui/actionbar/actionbar.js";
|
|
3
|
-
import { IActionProvider } from "../../../../../../base/browser/ui/dropdown/dropdown.js";
|
|
4
|
-
import { IMenuEntryActionViewItemOptions, MenuEntryActionViewItem, SubmenuEntryActionViewItem } from "../../../../../../platform/actions/browser/menuEntryActionViewItem.js";
|
|
5
|
-
import { SubmenuItemAction } from "../../../../../../platform/actions/common/actions.js";
|
|
6
|
-
import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js";
|
|
7
|
-
import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
|
|
8
|
-
import { IThemeService } from "../../../../../../platform/theme/common/themeService.service.js";
|
|
9
|
-
import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js";
|
|
10
|
-
export declare class CodiconActionViewItem extends MenuEntryActionViewItem {
|
|
11
|
-
protected updateLabel(): void;
|
|
12
|
-
}
|
|
13
|
-
export declare class ActionViewWithLabel extends MenuEntryActionViewItem {
|
|
14
|
-
private _actionLabel?;
|
|
15
|
-
render(container: HTMLElement): void;
|
|
16
|
-
protected updateLabel(): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class UnifiedSubmenuActionView extends SubmenuEntryActionViewItem {
|
|
19
|
-
private readonly _renderLabel;
|
|
20
|
-
readonly subActionProvider: IActionProvider;
|
|
21
|
-
readonly subActionViewItemProvider: IActionViewItemProvider | undefined;
|
|
22
|
-
private readonly _hoverService;
|
|
23
|
-
private _actionLabel?;
|
|
24
|
-
private _hover?;
|
|
25
|
-
private _primaryAction;
|
|
26
|
-
constructor(action: SubmenuItemAction, options: IMenuEntryActionViewItemOptions | undefined, _renderLabel: boolean, subActionProvider: IActionProvider, subActionViewItemProvider: IActionViewItemProvider | undefined, _keybindingService: IKeybindingService, _contextMenuService: IContextMenuService, _themeService: IThemeService, _hoverService: IHoverService);
|
|
27
|
-
render(container: HTMLElement): void;
|
|
28
|
-
onClick(event: DOM.EventLike, preserveFocus?: boolean): void;
|
|
29
|
-
protected updateLabel(): void;
|
|
30
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { reset, createElement, EventType, addDisposableListener, EventHelper } from '../../../../../../base/browser/dom.js';
|
|
4
|
-
import { isUndefinedOrNull } from '../../../../../../base/common/types.js';
|
|
5
|
-
import { EventType as EventType$1 } from '../../../../../../base/browser/touch.js';
|
|
6
|
-
import { getDefaultHoverDelegate } from '../../../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
7
|
-
import { renderLabelWithIcons } from '../../../../../../base/browser/ui/iconLabel/iconLabels.js';
|
|
8
|
-
import { ThemeIcon } from '../../../../../../base/common/themables.js';
|
|
9
|
-
import { MenuEntryActionViewItem, SubmenuEntryActionViewItem } from '../../../../../../platform/actions/browser/menuEntryActionViewItem.js';
|
|
10
|
-
import { MenuItemAction } from '../../../../../../platform/actions/common/actions.js';
|
|
11
|
-
import { IContextMenuService } from '../../../../../../platform/contextview/browser/contextView.service.js';
|
|
12
|
-
import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
|
|
13
|
-
import { IThemeService } from '../../../../../../platform/theme/common/themeService.service.js';
|
|
14
|
-
import { IHoverService } from '../../../../../../platform/hover/browser/hover.service.js';
|
|
15
|
-
|
|
16
|
-
class CodiconActionViewItem extends MenuEntryActionViewItem {
|
|
17
|
-
updateLabel() {
|
|
18
|
-
if (this.options.label && this.label) {
|
|
19
|
-
reset(this.label, ...renderLabelWithIcons(this._commandAction.label ?? ""));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
class ActionViewWithLabel extends MenuEntryActionViewItem {
|
|
24
|
-
render(container) {
|
|
25
|
-
super.render(container);
|
|
26
|
-
container.classList.add("notebook-action-view-item");
|
|
27
|
-
this._actionLabel = createElement("a");
|
|
28
|
-
container.appendChild(this._actionLabel);
|
|
29
|
-
this.updateLabel();
|
|
30
|
-
}
|
|
31
|
-
updateLabel() {
|
|
32
|
-
if (this._actionLabel) {
|
|
33
|
-
this._actionLabel.classList.add("notebook-label");
|
|
34
|
-
this._actionLabel.innerText = this._action.label;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
let UnifiedSubmenuActionView = class UnifiedSubmenuActionView extends SubmenuEntryActionViewItem {
|
|
39
|
-
constructor(
|
|
40
|
-
action,
|
|
41
|
-
options,
|
|
42
|
-
_renderLabel,
|
|
43
|
-
subActionProvider,
|
|
44
|
-
subActionViewItemProvider,
|
|
45
|
-
_keybindingService,
|
|
46
|
-
_contextMenuService,
|
|
47
|
-
_themeService,
|
|
48
|
-
_hoverService
|
|
49
|
-
) {
|
|
50
|
-
super(action, {
|
|
51
|
-
...options,
|
|
52
|
-
hoverDelegate: options?.hoverDelegate ?? getDefaultHoverDelegate("element")
|
|
53
|
-
}, _keybindingService, _contextMenuService, _themeService);
|
|
54
|
-
this._renderLabel = _renderLabel;
|
|
55
|
-
this.subActionProvider = subActionProvider;
|
|
56
|
-
this.subActionViewItemProvider = subActionViewItemProvider;
|
|
57
|
-
this._hoverService = _hoverService;
|
|
58
|
-
}
|
|
59
|
-
render(container) {
|
|
60
|
-
super.render(container);
|
|
61
|
-
container.classList.add("notebook-action-view-item");
|
|
62
|
-
container.classList.add("notebook-action-view-item-unified");
|
|
63
|
-
this._actionLabel = createElement("a");
|
|
64
|
-
container.appendChild(this._actionLabel);
|
|
65
|
-
this._hover = this._register(this._hoverService.setupManagedHover(
|
|
66
|
-
this.options.hoverDelegate ?? getDefaultHoverDelegate("element"),
|
|
67
|
-
this._actionLabel,
|
|
68
|
-
""
|
|
69
|
-
));
|
|
70
|
-
this.updateLabel();
|
|
71
|
-
for (const event of [EventType.CLICK, EventType.MOUSE_DOWN, EventType$1.Tap]) {
|
|
72
|
-
this._register(addDisposableListener(container, event, e => this.onClick(e, true)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
onClick(event, preserveFocus = false) {
|
|
76
|
-
EventHelper.stop(event, true);
|
|
77
|
-
const context = isUndefinedOrNull(this._context) ? this.options?.useEventAsContext ? event : {
|
|
78
|
-
preserveFocus
|
|
79
|
-
} : this._context;
|
|
80
|
-
this.actionRunner.run(this._primaryAction ?? this._action, context);
|
|
81
|
-
}
|
|
82
|
-
updateLabel() {
|
|
83
|
-
const actions = this.subActionProvider.getActions();
|
|
84
|
-
if (this._actionLabel) {
|
|
85
|
-
const primaryAction = actions[0];
|
|
86
|
-
this._primaryAction = primaryAction;
|
|
87
|
-
if (primaryAction && primaryAction instanceof MenuItemAction) {
|
|
88
|
-
const element = this.element;
|
|
89
|
-
if (element && primaryAction.item.icon && ThemeIcon.isThemeIcon(primaryAction.item.icon)) {
|
|
90
|
-
const iconClasses = ThemeIcon.asClassNameArray(primaryAction.item.icon);
|
|
91
|
-
element.classList.forEach(cl => {
|
|
92
|
-
if (cl.startsWith("codicon-")) {
|
|
93
|
-
element.classList.remove(cl);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
element.classList.add(...iconClasses);
|
|
97
|
-
}
|
|
98
|
-
if (this._renderLabel) {
|
|
99
|
-
this._actionLabel.classList.add("notebook-label");
|
|
100
|
-
this._actionLabel.innerText = this._action.label;
|
|
101
|
-
this._hover?.update(primaryAction.tooltip.length ? primaryAction.tooltip : primaryAction.label);
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
if (this._renderLabel) {
|
|
105
|
-
this._actionLabel.classList.add("notebook-label");
|
|
106
|
-
this._actionLabel.innerText = this._action.label;
|
|
107
|
-
this._hover?.update(this._action.tooltip.length ? this._action.tooltip : this._action.label);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
UnifiedSubmenuActionView = ( __decorate([( __param(5, IKeybindingService)), ( __param(6, IContextMenuService)), ( __param(7, IThemeService)), ( __param(8, IHoverService))], UnifiedSubmenuActionView));
|
|
114
|
-
|
|
115
|
-
export { ActionViewWithLabel, CodiconActionViewItem, UnifiedSubmenuActionView };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
|
|
2
|
-
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
3
|
-
import { IThemeService } from "../../../../../../platform/theme/common/themeService.service.js";
|
|
4
|
-
import { ICommentService } from "../../../../comments/browser/commentService.service.js";
|
|
5
|
-
import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
|
|
6
|
-
import { CellContentPart } from "../cellPart.js";
|
|
7
|
-
export declare class CellComments extends CellContentPart {
|
|
8
|
-
private readonly notebookEditor;
|
|
9
|
-
private readonly container;
|
|
10
|
-
private readonly contextKeyService;
|
|
11
|
-
private readonly themeService;
|
|
12
|
-
private readonly commentService;
|
|
13
|
-
private readonly instantiationService;
|
|
14
|
-
private readonly _commentThreadWidgets;
|
|
15
|
-
private currentElement;
|
|
16
|
-
constructor(notebookEditor: INotebookEditorDelegate, container: HTMLElement, contextKeyService: IContextKeyService, themeService: IThemeService, commentService: ICommentService, instantiationService: IInstantiationService);
|
|
17
|
-
private initialize;
|
|
18
|
-
private _createCommentTheadWidget;
|
|
19
|
-
private _bindListeners;
|
|
20
|
-
private _updateThread;
|
|
21
|
-
private _calculateCommentThreadHeight;
|
|
22
|
-
private _updateHeight;
|
|
23
|
-
private _getCommentThreadsForCell;
|
|
24
|
-
private _applyTheme;
|
|
25
|
-
didRenderCell(element: ICellViewModel): void;
|
|
26
|
-
prepareLayout(): void;
|
|
27
|
-
updateInternalLayoutNow(element: ICellViewModel): void;
|
|
28
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { coalesce } from '../../../../../../base/common/arrays.js';
|
|
4
|
-
import { DisposableMap, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
5
|
-
import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
|
|
6
|
-
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
7
|
-
import { IThemeService } from '../../../../../../platform/theme/common/themeService.service.js';
|
|
8
|
-
import { ICommentService } from '../../../../comments/browser/commentService.service.js';
|
|
9
|
-
import { CommentThreadWidget } from '../../../../comments/browser/commentThreadWidget.js';
|
|
10
|
-
import { CellContentPart } from '../cellPart.js';
|
|
11
|
-
|
|
12
|
-
let CellComments = class CellComments extends CellContentPart {
|
|
13
|
-
constructor(
|
|
14
|
-
notebookEditor,
|
|
15
|
-
container,
|
|
16
|
-
contextKeyService,
|
|
17
|
-
themeService,
|
|
18
|
-
commentService,
|
|
19
|
-
instantiationService
|
|
20
|
-
) {
|
|
21
|
-
super();
|
|
22
|
-
this.notebookEditor = notebookEditor;
|
|
23
|
-
this.container = container;
|
|
24
|
-
this.contextKeyService = contextKeyService;
|
|
25
|
-
this.themeService = themeService;
|
|
26
|
-
this.commentService = commentService;
|
|
27
|
-
this.instantiationService = instantiationService;
|
|
28
|
-
this.container.classList.add("review-widget");
|
|
29
|
-
this._register(this._commentThreadWidgets = ( new DisposableMap()));
|
|
30
|
-
this._register(this.themeService.onDidColorThemeChange(this._applyTheme, this));
|
|
31
|
-
this._applyTheme();
|
|
32
|
-
}
|
|
33
|
-
async initialize(element) {
|
|
34
|
-
if (this.currentElement === element) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.currentElement = element;
|
|
38
|
-
await this._updateThread();
|
|
39
|
-
}
|
|
40
|
-
async _createCommentTheadWidget(owner, commentThread) {
|
|
41
|
-
const widgetDisposables = ( new DisposableStore());
|
|
42
|
-
const widget = this.instantiationService.createInstance(
|
|
43
|
-
CommentThreadWidget,
|
|
44
|
-
this.container,
|
|
45
|
-
this.notebookEditor,
|
|
46
|
-
owner,
|
|
47
|
-
this.notebookEditor.textModel.uri,
|
|
48
|
-
this.contextKeyService,
|
|
49
|
-
this.instantiationService,
|
|
50
|
-
commentThread,
|
|
51
|
-
undefined,
|
|
52
|
-
undefined,
|
|
53
|
-
{},
|
|
54
|
-
undefined,
|
|
55
|
-
{
|
|
56
|
-
actionRunner: () => {},
|
|
57
|
-
collapse: async () => {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
widgetDisposables.add(widget);
|
|
63
|
-
this._commentThreadWidgets.set(commentThread.threadId, {
|
|
64
|
-
widget,
|
|
65
|
-
dispose: () => widgetDisposables.dispose()
|
|
66
|
-
});
|
|
67
|
-
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
68
|
-
await widget.display(layoutInfo.fontInfo.lineHeight, true);
|
|
69
|
-
this._applyTheme();
|
|
70
|
-
widgetDisposables.add(widget.onDidResize(() => {
|
|
71
|
-
if (this.currentElement) {
|
|
72
|
-
this.currentElement.commentHeight = this._calculateCommentThreadHeight(widget.getDimensions().height);
|
|
73
|
-
}
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
_bindListeners() {
|
|
77
|
-
this.cellDisposables.add(
|
|
78
|
-
this.commentService.onDidUpdateCommentThreads(async () => this._updateThread())
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
async _updateThread() {
|
|
82
|
-
if (!this.currentElement) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const infos = await this._getCommentThreadsForCell(this.currentElement);
|
|
86
|
-
const widgetsToDelete = ( new Set(( this._commentThreadWidgets.keys())));
|
|
87
|
-
const layoutInfo = this.currentElement.layoutInfo;
|
|
88
|
-
this.container.style.top = `${layoutInfo.commentOffset}px`;
|
|
89
|
-
for (const info of infos) {
|
|
90
|
-
if (!info) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
for (const thread of info.threads) {
|
|
94
|
-
widgetsToDelete.delete(thread.threadId);
|
|
95
|
-
const widget = this._commentThreadWidgets.get(thread.threadId)?.widget;
|
|
96
|
-
if (widget) {
|
|
97
|
-
await widget.updateCommentThread(thread);
|
|
98
|
-
} else {
|
|
99
|
-
await this._createCommentTheadWidget(info.uniqueOwner, thread);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
for (const threadId of widgetsToDelete) {
|
|
104
|
-
this._commentThreadWidgets.deleteAndDispose(threadId);
|
|
105
|
-
}
|
|
106
|
-
this._updateHeight();
|
|
107
|
-
}
|
|
108
|
-
_calculateCommentThreadHeight(bodyHeight) {
|
|
109
|
-
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
110
|
-
const headHeight = Math.ceil(layoutInfo.fontInfo.lineHeight * 1.2);
|
|
111
|
-
const lineHeight = layoutInfo.fontInfo.lineHeight;
|
|
112
|
-
const arrowHeight = Math.round(lineHeight / 3);
|
|
113
|
-
const frameThickness = Math.round(lineHeight / 9) * 2;
|
|
114
|
-
const computedHeight = headHeight + bodyHeight + arrowHeight + frameThickness + 8 ;
|
|
115
|
-
return computedHeight;
|
|
116
|
-
}
|
|
117
|
-
_updateHeight() {
|
|
118
|
-
if (!this.currentElement) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
let height = 0;
|
|
122
|
-
for (const {
|
|
123
|
-
widget
|
|
124
|
-
} of ( this._commentThreadWidgets.values())) {
|
|
125
|
-
height += this._calculateCommentThreadHeight(widget.getDimensions().height);
|
|
126
|
-
}
|
|
127
|
-
this.currentElement.commentHeight = height;
|
|
128
|
-
}
|
|
129
|
-
async _getCommentThreadsForCell(element) {
|
|
130
|
-
if (this.notebookEditor.hasModel()) {
|
|
131
|
-
return coalesce(await this.commentService.getNotebookComments(element.uri));
|
|
132
|
-
}
|
|
133
|
-
return [];
|
|
134
|
-
}
|
|
135
|
-
_applyTheme() {
|
|
136
|
-
const fontInfo = this.notebookEditor.getLayoutInfo().fontInfo;
|
|
137
|
-
for (const {
|
|
138
|
-
widget
|
|
139
|
-
} of ( this._commentThreadWidgets.values())) {
|
|
140
|
-
widget.applyTheme(fontInfo);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
didRenderCell(element) {
|
|
144
|
-
this.initialize(element);
|
|
145
|
-
this._bindListeners();
|
|
146
|
-
}
|
|
147
|
-
prepareLayout() {
|
|
148
|
-
this._updateHeight();
|
|
149
|
-
}
|
|
150
|
-
updateInternalLayoutNow(element) {
|
|
151
|
-
if (this.currentElement) {
|
|
152
|
-
this.container.style.top = `${element.layoutInfo.commentOffset}px`;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
CellComments = ( __decorate([( __param(2, IContextKeyService)), ( __param(3, IThemeService)), ( __param(4, ICommentService)), ( __param(5, IInstantiationService))], CellComments));
|
|
157
|
-
|
|
158
|
-
export { CellComments };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
|
|
3
|
-
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
4
|
-
import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
|
|
5
|
-
import { CellContentPart } from "../cellPart.js";
|
|
6
|
-
import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
|
|
7
|
-
export declare class CellContextKeyPart extends CellContentPart {
|
|
8
|
-
private readonly instantiationService;
|
|
9
|
-
private cellContextKeyManager;
|
|
10
|
-
constructor(notebookEditor: INotebookEditorDelegate, instantiationService: IInstantiationService);
|
|
11
|
-
didRenderCell(element: ICellViewModel): void;
|
|
12
|
-
}
|
|
13
|
-
export declare class CellContextKeyManager extends Disposable {
|
|
14
|
-
private readonly notebookEditor;
|
|
15
|
-
private element;
|
|
16
|
-
private readonly _contextKeyService;
|
|
17
|
-
private readonly _notebookExecutionStateService;
|
|
18
|
-
private cellType;
|
|
19
|
-
private cellEditable;
|
|
20
|
-
private cellFocused;
|
|
21
|
-
private cellEditorFocused;
|
|
22
|
-
private cellRunState;
|
|
23
|
-
private cellExecuting;
|
|
24
|
-
private cellHasOutputs;
|
|
25
|
-
private cellContentCollapsed;
|
|
26
|
-
private cellOutputCollapsed;
|
|
27
|
-
private cellLineNumbers;
|
|
28
|
-
private cellResource;
|
|
29
|
-
private cellHasErrorDiagnostics;
|
|
30
|
-
private markdownEditMode;
|
|
31
|
-
private readonly elementDisposables;
|
|
32
|
-
constructor(notebookEditor: INotebookEditorDelegate, element: ICellViewModel | undefined, _contextKeyService: IContextKeyService, _notebookExecutionStateService: INotebookExecutionStateService);
|
|
33
|
-
updateForElement(element: ICellViewModel | undefined): void;
|
|
34
|
-
private onDidChangeState;
|
|
35
|
-
private updateForFocusState;
|
|
36
|
-
private updateForExecutionState;
|
|
37
|
-
private updateForEditState;
|
|
38
|
-
private updateForCollapseState;
|
|
39
|
-
private updateForOutputs;
|
|
40
|
-
}
|