@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,102 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container {
|
|
7
|
-
width: 100%;
|
|
8
|
-
display: none;
|
|
9
|
-
margin-top: 2px;
|
|
10
|
-
margin-bottom: 2px;
|
|
11
|
-
contain: style;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item {
|
|
15
|
-
height: 22px;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container > .monaco-scrollable-element {
|
|
23
|
-
flex: 1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container > .monaco-scrollable-element .notebook-toolbar-left {
|
|
27
|
-
padding: 0px 0px 0px 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .notebook-toolbar-right {
|
|
31
|
-
display: flex;
|
|
32
|
-
padding: 0px 0px 0px 0px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item .kernel-label {
|
|
36
|
-
background-size: 16px;
|
|
37
|
-
padding: 0px 5px 0px 3px;
|
|
38
|
-
border-radius: 5px;
|
|
39
|
-
font-size: 13px;
|
|
40
|
-
height: 22px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .notebook-toolbar-left .monaco-action-bar li a[tabindex="0"]:focus {
|
|
44
|
-
outline: none !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .notebook-toolbar-left .monaco-action-bar li:has(a:focus) {
|
|
48
|
-
outline-width: 1px;
|
|
49
|
-
outline-style: solid;
|
|
50
|
-
outline-offset: -1px;
|
|
51
|
-
outline-color: var(--vscode-focusBorder);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .notebook-toolbar-left .monaco-action-bar .action-item .action-label.separator {
|
|
56
|
-
margin: 5px 0px !important;
|
|
57
|
-
padding: 0px !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item:not(.disabled):hover {
|
|
61
|
-
background-color: var(--vscode-toolbar-hoverBackground);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item .action-label {
|
|
65
|
-
background-size: 16px;
|
|
66
|
-
padding-left: 2px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.monaco-workbench .notebook-action-view-item .action-label {
|
|
70
|
-
display: inline-flex;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.monaco-workbench .notebook-action-view-item-unified .monaco-dropdown {
|
|
74
|
-
pointer-events: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item .notebook-label {
|
|
78
|
-
background-size: 16px;
|
|
79
|
-
padding: 0px 5px 0px 2px;
|
|
80
|
-
border-radius: 5px;
|
|
81
|
-
background-color: unset;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item.disabled .notebook-label {
|
|
85
|
-
opacity: 0.4;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar:not(.vertical) .action-item.active .action-label:not(.disabled) {
|
|
89
|
-
background-color: unset;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar:not(.vertical) .action-label:not(.disabled):hover {
|
|
93
|
-
background-color: unset;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar:not(.vertical) .action-item.active {
|
|
97
|
-
background-color: var(--vscode-toolbar-activeBackground);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.monaco-workbench .notebookOverlay .notebook-toolbar-container .monaco-action-bar .action-item .codicon-notebook-state-error {
|
|
101
|
-
color: var(--vscode-notebookStatusErrorIcon-foreground);
|
|
102
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IListAccessibilityProvider } from "../../../../base/browser/ui/list/listWidget.js";
|
|
2
|
-
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
3
|
-
import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js";
|
|
4
|
-
import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js";
|
|
5
|
-
import { AccessibilityVerbositySettingId } from "../../accessibility/browser/accessibilityConfiguration.js";
|
|
6
|
-
import { CellViewModel, NotebookViewModel } from "./viewModel/notebookViewModelImpl.js";
|
|
7
|
-
import { INotebookExecutionStateService } from "../common/notebookExecutionStateService.service.js";
|
|
8
|
-
import { IAccessibilityService } from "../../../../platform/accessibility/common/accessibility.service.js";
|
|
9
|
-
export declare class NotebookAccessibilityProvider extends Disposable implements IListAccessibilityProvider<CellViewModel> {
|
|
10
|
-
private readonly viewModel;
|
|
11
|
-
private readonly isReplHistory;
|
|
12
|
-
private readonly notebookExecutionStateService;
|
|
13
|
-
private readonly keybindingService;
|
|
14
|
-
private readonly configurationService;
|
|
15
|
-
private readonly accessibilityService;
|
|
16
|
-
private readonly _onDidAriaLabelChange;
|
|
17
|
-
private readonly onDidAriaLabelChange;
|
|
18
|
-
constructor(viewModel: () => NotebookViewModel | undefined, isReplHistory: boolean, notebookExecutionStateService: INotebookExecutionStateService, keybindingService: IKeybindingService, configurationService: IConfigurationService, accessibilityService: IAccessibilityService);
|
|
19
|
-
private shouldReadCellOutputs;
|
|
20
|
-
get verbositySettingId(): AccessibilityVerbositySettingId.Notebook | AccessibilityVerbositySettingId.ReplEditor;
|
|
21
|
-
getAriaLabel(element: CellViewModel): import("../../../../base/common/observable.js").IObservable<string>;
|
|
22
|
-
private createItemLabel;
|
|
23
|
-
private getLabel;
|
|
24
|
-
private get widgetAriaLabelName();
|
|
25
|
-
getWidgetAriaLabel(): string;
|
|
26
|
-
private mergeEvents;
|
|
27
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { Emitter, Event } from '../../../../base/common/event.js';
|
|
4
|
-
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
5
|
-
import '../../../../base/common/observableInternal/index.js';
|
|
6
|
-
import { localize } from '../../../../nls.js';
|
|
7
|
-
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
8
|
-
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
|
|
9
|
-
import { AccessibilityVerbositySettingId } from '../../accessibility/browser/accessibilityConfiguration.js';
|
|
10
|
-
import { AccessibilityCommandId } from '../../accessibility/common/accessibilityCommands.js';
|
|
11
|
-
import { CellKind, NotebookCellExecutionState } from '../common/notebookCommon.js';
|
|
12
|
-
import { NotebookExecutionType } from '../common/notebookExecutionStateService.js';
|
|
13
|
-
import { INotebookExecutionStateService } from '../common/notebookExecutionStateService.service.js';
|
|
14
|
-
import { getAllOutputsText } from './viewModel/cellOutputTextHelper.js';
|
|
15
|
-
import { IAccessibilityService } from '../../../../platform/accessibility/common/accessibility.service.js';
|
|
16
|
-
import { alert } from '../../../../base/browser/ui/aria/aria.js';
|
|
17
|
-
import { observableFromEvent } from '../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
18
|
-
|
|
19
|
-
let NotebookAccessibilityProvider = class NotebookAccessibilityProvider extends Disposable {
|
|
20
|
-
constructor(
|
|
21
|
-
viewModel,
|
|
22
|
-
isReplHistory,
|
|
23
|
-
notebookExecutionStateService,
|
|
24
|
-
keybindingService,
|
|
25
|
-
configurationService,
|
|
26
|
-
accessibilityService
|
|
27
|
-
) {
|
|
28
|
-
super();
|
|
29
|
-
this.viewModel = viewModel;
|
|
30
|
-
this.isReplHistory = isReplHistory;
|
|
31
|
-
this.notebookExecutionStateService = notebookExecutionStateService;
|
|
32
|
-
this.keybindingService = keybindingService;
|
|
33
|
-
this.configurationService = configurationService;
|
|
34
|
-
this.accessibilityService = accessibilityService;
|
|
35
|
-
this._onDidAriaLabelChange = this._register(( new Emitter()));
|
|
36
|
-
this.onDidAriaLabelChange = this._onDidAriaLabelChange.event;
|
|
37
|
-
this._register(Event.debounce(
|
|
38
|
-
this.notebookExecutionStateService.onDidChangeExecution,
|
|
39
|
-
(last, e) => this.mergeEvents(last, e),
|
|
40
|
-
100
|
|
41
|
-
)(updates => {
|
|
42
|
-
if (!updates.length) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const viewModel = this.viewModel();
|
|
46
|
-
if (viewModel) {
|
|
47
|
-
for (const update of updates) {
|
|
48
|
-
const cellModel = viewModel.getCellByHandle(update.cellHandle);
|
|
49
|
-
if (cellModel) {
|
|
50
|
-
this._onDidAriaLabelChange.fire(cellModel);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
const lastUpdate = updates[updates.length - 1];
|
|
54
|
-
if (this.shouldReadCellOutputs(lastUpdate.state)) {
|
|
55
|
-
const cell = viewModel.getCellByHandle(lastUpdate.cellHandle);
|
|
56
|
-
if (cell && cell.outputsViewModels.length) {
|
|
57
|
-
const text = getAllOutputsText(viewModel.notebookDocument, cell, true);
|
|
58
|
-
alert(text);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}, this));
|
|
63
|
-
}
|
|
64
|
-
shouldReadCellOutputs(state) {
|
|
65
|
-
return (
|
|
66
|
-
state === undefined && this.isReplHistory && this.accessibilityService.isScreenReaderOptimized() && this.configurationService.getValue("accessibility.replEditor.readLastExecutionOutput")
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
get verbositySettingId() {
|
|
70
|
-
return this.isReplHistory ? AccessibilityVerbositySettingId.ReplEditor : AccessibilityVerbositySettingId.Notebook;
|
|
71
|
-
}
|
|
72
|
-
getAriaLabel(element) {
|
|
73
|
-
const event = Event.filter(this.onDidAriaLabelChange, e => e === element);
|
|
74
|
-
return observableFromEvent(this, event, () => {
|
|
75
|
-
const viewModel = this.viewModel();
|
|
76
|
-
if (!viewModel) {
|
|
77
|
-
return "";
|
|
78
|
-
}
|
|
79
|
-
const index = viewModel.getCellIndex(element);
|
|
80
|
-
if (index >= 0) {
|
|
81
|
-
return this.getLabel(element);
|
|
82
|
-
}
|
|
83
|
-
return "";
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
createItemLabel(executionLabel, cellKind) {
|
|
87
|
-
return this.isReplHistory ? `cell${executionLabel}` : `${cellKind === CellKind.Markup ? "markdown" : "code"} cell${executionLabel}`;
|
|
88
|
-
}
|
|
89
|
-
getLabel(element) {
|
|
90
|
-
const executionState = this.notebookExecutionStateService.getCellExecution(element.uri)?.state;
|
|
91
|
-
const executionLabel = executionState === NotebookCellExecutionState.Executing ? ", executing" : executionState === NotebookCellExecutionState.Pending ? ", pending" : "";
|
|
92
|
-
return this.createItemLabel(executionLabel, element.cellKind);
|
|
93
|
-
}
|
|
94
|
-
get widgetAriaLabelName() {
|
|
95
|
-
return this.isReplHistory ? ( localize(14704, "REPL Editor History")) : ( localize(14705, "Notebook"));
|
|
96
|
-
}
|
|
97
|
-
getWidgetAriaLabel() {
|
|
98
|
-
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
99
|
-
if (this.configurationService.getValue(this.verbositySettingId)) {
|
|
100
|
-
return keybinding ? ( localize(
|
|
101
|
-
14706,
|
|
102
|
-
"{0}\nUse {1} for accessibility help",
|
|
103
|
-
this.widgetAriaLabelName,
|
|
104
|
-
keybinding
|
|
105
|
-
)) : ( localize(
|
|
106
|
-
14707,
|
|
107
|
-
"{0}\nRun the Open Accessibility Help command for more information",
|
|
108
|
-
this.widgetAriaLabelName
|
|
109
|
-
));
|
|
110
|
-
}
|
|
111
|
-
return this.widgetAriaLabelName;
|
|
112
|
-
}
|
|
113
|
-
mergeEvents(last, e) {
|
|
114
|
-
const viewModel = this.viewModel();
|
|
115
|
-
const result = last || [];
|
|
116
|
-
if (viewModel && e.type === NotebookExecutionType.cell && e.affectsNotebook(viewModel.uri)) {
|
|
117
|
-
const index = result.findIndex(update => update.cellHandle === e.cellHandle);
|
|
118
|
-
if (index >= 0) {
|
|
119
|
-
result.splice(index, 1);
|
|
120
|
-
}
|
|
121
|
-
result.push({
|
|
122
|
-
cellHandle: e.cellHandle,
|
|
123
|
-
state: e.changed?.state
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
return result;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
NotebookAccessibilityProvider = ( __decorate([( __param(2, INotebookExecutionStateService)), ( __param(3, IKeybindingService)), ( __param(4, IConfigurationService)), ( __param(5, IAccessibilityService))], NotebookAccessibilityProvider));
|
|
130
|
-
|
|
131
|
-
export { NotebookAccessibilityProvider };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
2
|
-
import { ICellViewModel } from "./notebookBrowser.js";
|
|
3
|
-
import { NotebookEditorWidget } from "./notebookEditorWidget.js";
|
|
4
|
-
import { INotebookCellList } from "./view/notebookRenderingCommon.js";
|
|
5
|
-
import { INotebookLoggingService } from "../common/notebookLoggingService.service.js";
|
|
6
|
-
export declare class NotebookCellLayoutManager extends Disposable {
|
|
7
|
-
private notebookWidget;
|
|
8
|
-
private _list;
|
|
9
|
-
private loggingService;
|
|
10
|
-
private _pendingLayouts;
|
|
11
|
-
private _layoutDisposables;
|
|
12
|
-
private readonly _layoutStack;
|
|
13
|
-
private _isDisposed;
|
|
14
|
-
constructor(notebookWidget: NotebookEditorWidget, _list: INotebookCellList, loggingService: INotebookLoggingService);
|
|
15
|
-
private checkStackDepth;
|
|
16
|
-
layoutNotebookCell(cell: ICellViewModel, height: number): Promise<void>;
|
|
17
|
-
dispose(): void;
|
|
18
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { DeferredPromise } from '../../../../base/common/async.js';
|
|
3
|
-
import { Disposable, toDisposable } from '../../../../base/common/lifecycle.js';
|
|
4
|
-
import { scheduleAtNextAnimationFrame, getWindow } from '../../../../base/browser/dom.js';
|
|
5
|
-
|
|
6
|
-
class NotebookCellLayoutManager extends Disposable {
|
|
7
|
-
constructor(notebookWidget, _list, loggingService) {
|
|
8
|
-
super();
|
|
9
|
-
this.notebookWidget = notebookWidget;
|
|
10
|
-
this._list = _list;
|
|
11
|
-
this.loggingService = loggingService;
|
|
12
|
-
this._pendingLayouts = ( new WeakMap());
|
|
13
|
-
this._layoutDisposables = ( new Set());
|
|
14
|
-
this._layoutStack = [];
|
|
15
|
-
this._isDisposed = false;
|
|
16
|
-
}
|
|
17
|
-
checkStackDepth() {
|
|
18
|
-
if (this._layoutStack.length > 30) {
|
|
19
|
-
const layoutTrace = this._layoutStack.join(" -> ");
|
|
20
|
-
throw ( new Error("NotebookCellLayoutManager: layout stack is too deep: " + layoutTrace));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async layoutNotebookCell(cell, height) {
|
|
24
|
-
const layoutTag = `cell:${cell.handle}, height:${height}`;
|
|
25
|
-
this.loggingService.debug("cell layout", layoutTag);
|
|
26
|
-
const viewIndex = this._list.getViewIndex(cell);
|
|
27
|
-
if (viewIndex === undefined) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (this._pendingLayouts?.has(cell)) {
|
|
31
|
-
const oldPendingLayout = this._pendingLayouts.get(cell);
|
|
32
|
-
oldPendingLayout.dispose();
|
|
33
|
-
this._layoutDisposables.delete(oldPendingLayout);
|
|
34
|
-
}
|
|
35
|
-
const deferred = ( new DeferredPromise());
|
|
36
|
-
const doLayout = () => {
|
|
37
|
-
const pendingLayout = this._pendingLayouts?.get(cell);
|
|
38
|
-
this._pendingLayouts?.delete(cell);
|
|
39
|
-
this._layoutStack.push(layoutTag);
|
|
40
|
-
try {
|
|
41
|
-
if (this._isDisposed) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (!this.notebookWidget.viewModel?.hasCell(cell)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (this._list.getViewIndex(cell) === undefined) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (this._list.elementHeight(cell) === height) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.checkStackDepth();
|
|
54
|
-
if (!this.notebookWidget.hasEditorFocus()) {
|
|
55
|
-
const cellIndex = this.notebookWidget.viewModel?.getCellIndex(cell);
|
|
56
|
-
const visibleRanges = this.notebookWidget.visibleRanges;
|
|
57
|
-
if (
|
|
58
|
-
cellIndex !== undefined && visibleRanges && visibleRanges.length && visibleRanges[0].start === cellIndex && this._list.scrollTop > this.notebookWidget.getAbsoluteTopOfElement(cell)) {
|
|
59
|
-
return this._list.updateElementHeight2(cell, height, Math.min(cellIndex + 1, this.notebookWidget.getLength() - 1));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
this._list.updateElementHeight2(cell, height);
|
|
63
|
-
} finally {
|
|
64
|
-
this._layoutStack.pop();
|
|
65
|
-
deferred.complete(undefined);
|
|
66
|
-
if (pendingLayout) {
|
|
67
|
-
pendingLayout.dispose();
|
|
68
|
-
this._layoutDisposables.delete(pendingLayout);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
if (this._list.inRenderingTransaction) {
|
|
73
|
-
const layoutDisposable = scheduleAtNextAnimationFrame(getWindow(this.notebookWidget.getDomNode()), doLayout);
|
|
74
|
-
const disposable = toDisposable(() => {
|
|
75
|
-
layoutDisposable.dispose();
|
|
76
|
-
deferred.complete(undefined);
|
|
77
|
-
});
|
|
78
|
-
this._pendingLayouts?.set(cell, disposable);
|
|
79
|
-
this._layoutDisposables.add(disposable);
|
|
80
|
-
} else {
|
|
81
|
-
doLayout();
|
|
82
|
-
}
|
|
83
|
-
return deferred.p;
|
|
84
|
-
}
|
|
85
|
-
dispose() {
|
|
86
|
-
super.dispose();
|
|
87
|
-
this._isDisposed = true;
|
|
88
|
-
this._layoutDisposables.forEach(d => d.dispose());
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { NotebookCellLayoutManager };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import * as DOM from "../../../../base/browser/dom.js";
|
|
2
|
-
import { IActionViewItem } from "../../../../base/browser/ui/actionbar/actionbar.js";
|
|
3
|
-
import { IAction } from "../../../../base/common/actions.js";
|
|
4
|
-
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
5
|
-
import { Emitter, Event } from "../../../../base/common/event.js";
|
|
6
|
-
import { ITextResourceConfigurationService } from "../../../../editor/common/services/textResourceConfiguration.service.js";
|
|
7
|
-
import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
|
|
8
|
-
import { IDialogService } from "../../../../platform/dialogs/common/dialogs.service.js";
|
|
9
|
-
import { IFileService } from "../../../../platform/files/common/files.service.js";
|
|
10
|
-
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
11
|
-
import { IStorageService } from "../../../../platform/storage/common/storage.service.js";
|
|
12
|
-
import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js";
|
|
13
|
-
import { IThemeService } from "../../../../platform/theme/common/themeService.service.js";
|
|
14
|
-
import { EditorPane } from "../../../browser/parts/editor/editorPane.js";
|
|
15
|
-
import { IEditorOpenContext, IEditorPane, IEditorPaneScrollPosition, IEditorPaneSelection, IEditorPaneSelectionChangeEvent, IEditorPaneWithScrolling } from "../../../common/editor.js";
|
|
16
|
-
import { INotebookEditorOptions, INotebookEditorPane, INotebookEditorViewState } from "./notebookBrowser.js";
|
|
17
|
-
import { INotebookEditorService } from "./services/notebookEditorService.service.js";
|
|
18
|
-
import { NotebookEditorWidget } from "./notebookEditorWidget.js";
|
|
19
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
20
|
-
import { NotebookEditorInput } from "../common/notebookEditorInput.js";
|
|
21
|
-
import { IEditorGroup } from "../../../services/editor/common/editorGroupsService.js";
|
|
22
|
-
import { IEditorGroupsService } from "../../../services/editor/common/editorGroupsService.service.js";
|
|
23
|
-
import { IEditorService } from "../../../services/editor/common/editorService.service.js";
|
|
24
|
-
import { IWorkbenchEnvironmentService } from "../../../services/environment/common/environmentService.service.js";
|
|
25
|
-
import { IEditorProgressService } from "../../../../platform/progress/common/progress.service.js";
|
|
26
|
-
import { INotebookService } from "../common/notebookService.service.js";
|
|
27
|
-
import { IExtensionsWorkbenchService } from "../../extensions/common/extensions.service.js";
|
|
28
|
-
import { IWorkingCopyBackupService } from "../../../services/workingCopy/common/workingCopyBackup.service.js";
|
|
29
|
-
import { ILogService } from "../../../../platform/log/common/log.service.js";
|
|
30
|
-
import { IPreferencesService } from "../../../services/preferences/common/preferences.service.js";
|
|
31
|
-
import { IActionViewItemOptions } from "../../../../base/browser/ui/actionbar/actionViewItems.js";
|
|
32
|
-
import { ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
33
|
-
export declare class NotebookEditor extends EditorPane implements INotebookEditorPane, IEditorPaneWithScrolling {
|
|
34
|
-
private readonly _instantiationService;
|
|
35
|
-
private readonly _storageService;
|
|
36
|
-
private readonly _editorService;
|
|
37
|
-
private readonly _editorGroupService;
|
|
38
|
-
private readonly _notebookWidgetService;
|
|
39
|
-
private readonly _contextKeyService;
|
|
40
|
-
private readonly _fileService;
|
|
41
|
-
private readonly _editorProgressService;
|
|
42
|
-
private readonly _notebookService;
|
|
43
|
-
private readonly _extensionsWorkbenchService;
|
|
44
|
-
private readonly _workingCopyBackupService;
|
|
45
|
-
private readonly logService;
|
|
46
|
-
private readonly _preferencesService;
|
|
47
|
-
private readonly _dialogService;
|
|
48
|
-
private readonly _environmentService;
|
|
49
|
-
static readonly ID: string;
|
|
50
|
-
private readonly _editorMemento;
|
|
51
|
-
private readonly _groupListener;
|
|
52
|
-
private readonly _widgetDisposableStore;
|
|
53
|
-
private _widget;
|
|
54
|
-
private _rootElement;
|
|
55
|
-
private _pagePosition?;
|
|
56
|
-
private readonly _inputListener;
|
|
57
|
-
private readonly _onDidFocusWidget;
|
|
58
|
-
get onDidFocus(): Event<void>;
|
|
59
|
-
private readonly _onDidBlurWidget;
|
|
60
|
-
get onDidBlur(): Event<void>;
|
|
61
|
-
private readonly _onDidChangeModel;
|
|
62
|
-
readonly onDidChangeModel: Event<void>;
|
|
63
|
-
private readonly _onDidChangeSelection;
|
|
64
|
-
readonly onDidChangeSelection: Event<IEditorPaneSelectionChangeEvent>;
|
|
65
|
-
protected readonly _onDidChangeScroll: Emitter<void>;
|
|
66
|
-
readonly onDidChangeScroll: Event<void>;
|
|
67
|
-
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, _instantiationService: IInstantiationService, _storageService: IStorageService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _notebookWidgetService: INotebookEditorService, _contextKeyService: IContextKeyService, _fileService: IFileService, configurationService: ITextResourceConfigurationService, _editorProgressService: IEditorProgressService, _notebookService: INotebookService, _extensionsWorkbenchService: IExtensionsWorkbenchService, _workingCopyBackupService: IWorkingCopyBackupService, logService: ILogService, _preferencesService: IPreferencesService, _dialogService: IDialogService, _environmentService: IWorkbenchEnvironmentService);
|
|
68
|
-
private _onDidChangeFileSystemProvider;
|
|
69
|
-
private _onDidChangeInputCapabilities;
|
|
70
|
-
private _updateReadonly;
|
|
71
|
-
get textModel(): NotebookTextModel | undefined;
|
|
72
|
-
get minimumWidth(): number;
|
|
73
|
-
get maximumWidth(): number;
|
|
74
|
-
set minimumWidth(value: number);
|
|
75
|
-
set maximumWidth(value: number);
|
|
76
|
-
get scopedContextKeyService(): IContextKeyService | undefined;
|
|
77
|
-
protected createEditor(parent: HTMLElement): void;
|
|
78
|
-
getActionViewItem(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
|
|
79
|
-
getControl(): NotebookEditorWidget | undefined;
|
|
80
|
-
setVisible(visible: boolean): void;
|
|
81
|
-
protected setEditorVisible(visible: boolean): void;
|
|
82
|
-
focus(): void;
|
|
83
|
-
hasFocus(): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* When running serverless on the web (i.e. in the browser with no remote server
|
|
86
|
-
* connected), prompt the user to confirm that they really want to open the notebook.
|
|
87
|
-
* The confirmation is only shown the first time a given notebook is opened in the
|
|
88
|
-
* session (so switching back to an already-open notebook does not re-prompt), and the
|
|
89
|
-
* choice can be remembered for the whole workspace via a "Don't ask again" checkbox.
|
|
90
|
-
*/
|
|
91
|
-
private _confirmOpenOnWebHost;
|
|
92
|
-
setInput(input: NotebookEditorInput, options: INotebookEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken, noRetry?: boolean): Promise<void>;
|
|
93
|
-
private _handlePerfMark;
|
|
94
|
-
clearInput(): void;
|
|
95
|
-
setOptions(options: INotebookEditorOptions | undefined): void;
|
|
96
|
-
protected saveState(): void;
|
|
97
|
-
getViewState(): INotebookEditorViewState | undefined;
|
|
98
|
-
getSelection(): IEditorPaneSelection | undefined;
|
|
99
|
-
getScrollPosition(): IEditorPaneScrollPosition;
|
|
100
|
-
setScrollPosition(scrollPosition: IEditorPaneScrollPosition): void;
|
|
101
|
-
private _saveEditorViewState;
|
|
102
|
-
private _loadNotebookEditorViewState;
|
|
103
|
-
layout(dimension: DOM.Dimension, position: DOM.IDomPosition): void;
|
|
104
|
-
}
|
|
105
|
-
export declare function isNotebookContainingCellEditor(editor: IEditorPane | undefined, codeEditor: ICodeEditor): boolean;
|