@codingame/monaco-vscode-api 23.2.2 → 24.1.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/extensions.js +0 -1
- package/missing-services.js +127 -38
- package/package.json +9 -9
- package/service-override/tools/editor.d.ts +292 -0
- package/service-override/tools/editor.js +690 -0
- package/service-override/tools/url.d.ts +1 -0
- package/service-override/tools/url.js +12 -0
- package/service-override/tools/views.d.ts +105 -0
- package/service-override/tools/views.js +295 -0
- package/services.d.ts +9 -7
- package/services.js +10 -8
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/broadcast.d.ts +14 -0
- package/vscode/src/vs/base/browser/broadcast.js +56 -0
- package/vscode/src/vs/base/browser/browser.d.ts +3 -2
- package/vscode/src/vs/base/browser/browser.js +1 -1
- package/vscode/src/vs/base/browser/canIUse.js +5 -5
- package/vscode/src/vs/base/browser/deviceAccess.d.ts +37 -0
- package/vscode/src/vs/base/browser/deviceAccess.js +63 -0
- package/vscode/src/vs/base/browser/dom.d.ts +4 -4
- package/vscode/src/vs/base/browser/dom.js +33 -38
- package/vscode/src/vs/base/browser/indexedDB.d.ts +19 -0
- package/vscode/src/vs/base/browser/indexedDB.js +149 -0
- package/vscode/src/vs/base/browser/keyboardEvent.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +2 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +29 -13
- package/vscode/src/vs/base/browser/mouseEvent.js +2 -1
- package/vscode/src/vs/base/browser/pixelRatio.js +5 -5
- package/vscode/src/vs/base/browser/touch.js +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/aria/aria.js +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css +36 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +70 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +302 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.d.ts +44 -0
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +180 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/codicons/codiconStyles.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.css +246 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.d.ts +91 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +456 -0
- package/vscode/src/vs/base/browser/ui/dnd/dnd.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +395 -0
- package/vscode/src/vs/base/browser/ui/grid/grid.js +506 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.css +16 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +593 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +1115 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +0 -13
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.d.ts +9 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +27 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css +43 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.d.ts +42 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +244 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +8 -1
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css +4 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +7 -2
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +1 -4
- package/vscode/src/vs/base/browser/ui/menu/menu.js +14 -12
- package/vscode/src/vs/base/browser/ui/menu/menubar.css +112 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.d.ts +79 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +850 -0
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.js +1 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/sash/sash.js +1 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +6 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +12 -32
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +9 -16
- package/vscode/src/vs/base/browser/ui/severityIcon/severityIcon.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.css +153 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +127 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +475 -0
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +1 -1
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +9 -4
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +36 -14
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +12 -10
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +10 -10
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +1 -0
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.d.ts +5 -5
- package/vscode/src/vs/base/browser/ui/tree/dataTree.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +6 -6
- package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.d.ts +7 -0
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +17 -0
- package/vscode/src/vs/base/common/arrays.d.ts +11 -1
- package/vscode/src/vs/base/common/assert.d.ts +1 -0
- package/vscode/src/vs/base/common/async.d.ts +4 -0
- package/vscode/src/vs/base/common/async.js +34 -0
- package/vscode/src/vs/base/common/buffer.js +1 -1
- package/vscode/src/vs/base/common/cancellation.d.ts +1 -1
- package/vscode/src/vs/base/common/codicons.d.ts +9 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +9 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +9 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -1
- package/vscode/src/vs/base/common/controlFlow.d.ts +21 -0
- package/vscode/src/vs/base/common/controlFlow.js +51 -0
- package/vscode/src/vs/base/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/base/common/equals.d.ts +5 -4
- package/vscode/src/vs/base/common/event.js +33 -16
- package/vscode/src/vs/base/common/filters.d.ts +1 -0
- package/vscode/src/vs/base/common/filters.js +22 -3
- package/vscode/src/vs/base/common/fuzzyScorer.d.ts +85 -0
- package/vscode/src/vs/base/common/fuzzyScorer.js +487 -0
- package/vscode/src/vs/base/common/hotReload.d.ts +1 -0
- package/vscode/src/vs/base/common/htmlContent.d.ts +2 -1
- package/vscode/src/vs/base/common/htmlContent.js +6 -3
- package/vscode/src/vs/base/common/iterator.d.ts +2 -2
- package/vscode/src/vs/base/common/iterator.js +1 -1
- package/vscode/src/vs/base/common/jsonEdit.d.ts +7 -0
- package/vscode/src/vs/base/common/jsonEdit.js +169 -0
- package/vscode/src/vs/base/common/jsonFormatter.d.ts +53 -0
- package/vscode/src/vs/base/common/jsonFormatter.js +197 -0
- package/vscode/src/vs/base/common/jsonc.d.ts +18 -0
- package/vscode/src/vs/base/common/jsonc.js +37 -0
- package/vscode/src/vs/base/common/keyCodes.d.ts +1 -0
- package/vscode/src/vs/base/common/keyCodes.js +8 -7
- package/vscode/src/vs/base/common/keybindingParser.d.ts +6 -0
- package/vscode/src/vs/base/common/keybindingParser.js +90 -0
- package/vscode/src/vs/base/common/lifecycle.d.ts +5 -1
- package/vscode/src/vs/base/common/lifecycle.js +10 -6
- package/vscode/src/vs/base/common/linkedList.d.ts +1 -0
- package/vscode/src/vs/base/common/linkedList.js +9 -0
- package/vscode/src/vs/base/common/map.d.ts +4 -4
- package/vscode/src/vs/base/common/map.js +8 -5
- package/vscode/src/vs/base/common/normalization.d.ts +10 -0
- package/vscode/src/vs/base/common/normalization.js +42 -0
- package/vscode/src/vs/base/common/oauth.d.ts +1 -1
- package/vscode/src/vs/base/common/oauth.js +39 -20
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -4
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +5 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +43 -11
- package/vscode/src/vs/base/common/observableInternal/map.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +10 -4
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +17 -6
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +1 -4
- package/vscode/src/vs/base/common/observableInternal/utils/utils.d.ts +5 -3
- package/vscode/src/vs/base/common/observableInternal/utils/utils.js +48 -7
- package/vscode/src/vs/base/common/paging.d.ts +102 -0
- package/vscode/src/vs/base/common/paging.js +187 -0
- package/vscode/src/vs/base/common/platform.d.ts +0 -1
- package/vscode/src/vs/base/common/processes.d.ts +93 -0
- package/vscode/src/vs/base/common/processes.js +40 -0
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/resourceTree.d.ts +43 -0
- package/vscode/src/vs/base/common/resourceTree.js +138 -0
- package/vscode/src/vs/base/common/strings.d.ts +2 -2
- package/vscode/src/vs/base/common/strings.js +27 -20
- package/vscode/src/vs/base/common/tfIdf.d.ts +54 -0
- package/vscode/src/vs/base/common/tfIdf.js +140 -0
- package/vscode/src/vs/base/common/types.d.ts +11 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +14 -10
- package/vscode/src/vs/base/common/yaml.d.ts +74 -0
- package/vscode/src/vs/base/common/yaml.js +605 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.d.ts +257 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +710 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +276 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +799 -0
- package/vscode/src/vs/base/parts/request/common/request.d.ts +41 -0
- package/vscode/src/vs/base/parts/request/common/request.js +17 -0
- package/vscode/src/vs/editor/browser/config/elementSizeObserver.js +5 -5
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
- package/vscode/src/vs/editor/browser/config/tabFocus.d.ts +2 -1
- package/vscode/src/vs/editor/browser/config/tabFocus.js +4 -2
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +9 -2
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.js +37 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +12 -31
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +1 -2
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +7 -10
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.d.ts +3 -3
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +7 -26
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextRegistry.d.ts +9 -0
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextRegistry.js +21 -0
- package/vscode/src/vs/editor/browser/coreCommands.js +1 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +6 -1
- package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/gpuDisposable.js +3 -2
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +2 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +16 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +36 -0
- package/vscode/src/vs/editor/browser/services/codeEditorService.service.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/contribution.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +7 -4
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +30 -14
- package/vscode/src/vs/editor/browser/services/openerService.js +4 -1
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.js +1 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view.js +11 -2
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +5 -2
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +9 -4
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -5
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +2 -4
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/domReadingContext.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +7 -15
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -8
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +2 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +18 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.d.ts +6 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +2 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/editorMarkdownCodeBlockRenderer.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.d.ts +3 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +17 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.d.ts +51 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +264 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.d.ts +22 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.d.ts +54 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +120 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.d.ts +46 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +78 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.d.ts +86 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +476 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.d.ts +16 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.js +49 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css +189 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/workbenchUIElementFactory.d.ts +17 -0
- package/vscode/src/vs/editor/common/commands/replaceCommand.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +3 -2
- package/vscode/src/vs/editor/common/config/editorOptions.js +378 -360
- package/vscode/src/vs/editor/common/core/2d/rect.d.ts +7 -0
- package/vscode/src/vs/editor/common/core/2d/rect.js +25 -0
- package/vscode/src/vs/editor/common/core/2d/size.d.ts +18 -0
- package/vscode/src/vs/editor/common/core/2d/size.js +46 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +76 -72
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +12 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +366 -0
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.js +6 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +5 -2
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +24 -10
- package/vscode/src/vs/editor/common/editorContextKeys.js +47 -47
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +29 -3
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/services/languagesAssociations.js +6 -8
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +1 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +48 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +9 -1
- package/vscode/src/vs/editor/common/textModelEditSource.js +3 -1
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +3 -3
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +7 -7
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +7 -7
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +39 -23
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerBody.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +16 -0
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +17 -17
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/find/browser/findWidgetSearchHistory.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +2 -2
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -21
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +21 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +15 -15
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +6 -12
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.js +9 -8
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +25 -25
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.js +15 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +3 -3
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +54 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +29 -24
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/InlineSuggestAlternativeAction.d.ts +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/InlineSuggestAlternativeAction.js +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/editKind.d.ts +60 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/editKind.js +178 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionIsVisible.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionIsVisible.js +38 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +11 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +136 -86
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +66 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +38 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +164 -114
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +42 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +133 -64
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.d.ts +40 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +382 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +42 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +107 -60
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +24 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +34 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +106 -64
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +8 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +12 -24
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +15 -40
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +10 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +23 -17
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +184 -142
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +35 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +45 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.d.ts +7 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +29 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/debugVisualization.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +5 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +18 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +8 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +20 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +199 -37
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/jumpToView.d.ts +27 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/jumpToView.js +181 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.d.ts +58 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +404 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js +313 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +21 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/flexBoxLayout.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/flexBoxLayout.js +80 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/towersLayout.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/towersLayout.js +23 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +11 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +52 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +35 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/{inlineCompletionsView.d.ts → inlineSuggestionsView.d.ts} +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineSuggestionsView.js +184 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +1 -1
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +3 -3
- package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +2 -2
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +19 -19
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.d.ts +69 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +120 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.d.ts +30 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +188 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.d.ts +57 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +344 -0
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.d.ts +5 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +21 -13
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +34 -34
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +2 -2
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +30 -30
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +10 -10
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +4 -4
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/services/standaloneWebWorkerService.d.ts +7 -0
- package/vscode/src/vs/editor/standalone/browser/services/standaloneWebWorkerService.js +44 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +16 -22
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +10 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +6 -3
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.d.ts +12 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +28 -0
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +5 -5
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +7 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +8 -8
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +40 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +154 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +10 -10
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +16 -3
- package/vscode/src/vs/platform/actions/common/actions.js +13 -3
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +14 -4
- package/vscode/src/vs/platform/backup/common/backup.d.ts +13 -0
- package/vscode/src/vs/platform/backup/common/backup.js +10 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +11 -13
- package/vscode/src/vs/platform/configuration/common/configuration.js +9 -6
- package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +4 -4
- package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +13 -11
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +21 -10
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +4 -4
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/configuration/common/configurations.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +3 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/contextview/browser/contextViewService.d.ts +1 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +9 -0
- package/vscode/src/vs/{workbench/services/accounts → platform/defaultAccount}/common/defaultAccount.service.js +1 -1
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- package/vscode/src/vs/platform/dialogs/browser/dialog.d.ts +10 -0
- package/vscode/src/vs/platform/dialogs/browser/dialog.js +56 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +285 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +138 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/environmentService.d.ts +80 -0
- package/vscode/src/vs/platform/environment/common/environmentService.js +17 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.d.ts +38 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +145 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +22 -21
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +14 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.d.ts +39 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +175 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.d.ts +3 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +10 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.d.ts +13 -0
- package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +82 -0
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.d.ts +19 -0
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +25 -0
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
- package/vscode/src/vs/platform/externalServices/common/serviceMachineId.d.ts +4 -0
- package/vscode/src/vs/platform/externalServices/common/serviceMachineId.js +31 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +1 -1
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +60 -0
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +222 -0
- package/vscode/src/vs/platform/files/common/watcher.d.ts +1 -1
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverService.js +18 -9
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +2 -2
- package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +0 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +1 -8
- package/vscode/src/vs/platform/ipc/common/services.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.d.ts +65 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +74 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.d.ts +1 -1
- package/vscode/src/vs/platform/label/common/label.d.ts +24 -0
- package/vscode/src/vs/platform/label/common/label.js +10 -0
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +20 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +80 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.d.ts +6 -0
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +13 -0
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.d.ts +12 -0
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +64 -0
- package/vscode/src/vs/platform/list/browser/listService.d.ts +12 -12
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/browser/log.d.ts +27 -0
- package/vscode/src/vs/platform/log/browser/log.js +28 -0
- package/vscode/src/vs/platform/log/common/bufferLog.d.ts +12 -0
- package/vscode/src/vs/platform/log/common/bufferLog.js +39 -0
- package/vscode/src/vs/platform/log/common/log.js +7 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.d.ts +195 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.js +40 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +2 -2
- package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.d.ts +54 -0
- package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.js +14 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +1 -1
- package/vscode/src/vs/platform/native/common/native.d.ts +195 -0
- package/vscode/src/vs/platform/native/common/native.js +10 -0
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/observableMemento.d.ts +33 -0
- package/vscode/src/vs/platform/observable/common/observableMemento.js +67 -0
- package/vscode/src/vs/platform/opener/browser/link.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +10 -4
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.d.ts +120 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +228 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +11 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +33 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.d.ts +12 -0
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +108 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +4 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +80 -36
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +11 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +22 -9
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +2 -2
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.d.ts +171 -0
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +659 -0
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +20 -20
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +3 -3
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +9 -5
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.d.ts +19 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +45 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +315 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.js +19 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +126 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +498 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.d.ts +124 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +310 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +80 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +770 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.d.ts +15 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +33 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.d.ts +21 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +60 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/promptTypeDetectionCapability.d.ts +10 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/promptTypeDetectionCapability.js +20 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.d.ts +23 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.js +87 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.d.ts +41 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +214 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariableShared.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -9
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -2
- package/vscode/src/vs/platform/terminal/common/terminalDataBuffering.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.d.ts +23 -0
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +86 -0
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.d.ts +14 -0
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +440 -0
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.d.ts +8 -0
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +104 -0
- package/vscode/src/vs/platform/terminal/common/terminalStrings.d.ts +15 -0
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +19 -0
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.d.ts +104 -0
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +497 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +2 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.d.ts +147 -0
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +472 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -1
- package/vscode/src/vs/platform/tunnel/common/tunnel.service.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +27 -17
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractJsonSynchronizer.d.ts +43 -0
- package/vscode/src/vs/platform/userDataSync/common/abstractJsonSynchronizer.js +200 -0
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.d.ts +177 -0
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +759 -0
- package/vscode/src/vs/platform/userDataSync/common/content.d.ts +5 -0
- package/vscode/src/vs/platform/userDataSync/common/content.js +12 -0
- package/vscode/src/vs/platform/userDataSync/common/extensionsMerge.d.ts +16 -0
- package/vscode/src/vs/platform/userDataSync/common/extensionsMerge.js +332 -0
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.d.ts +100 -0
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +549 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateMerge.d.ts +20 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateMerge.js +103 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.d.ts +109 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +446 -0
- package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.d.ts +7 -0
- package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +278 -0
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.d.ts +54 -0
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +327 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.d.ts +18 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +517 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.d.ts +65 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +342 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.d.ts +16 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +128 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsSync.d.ts +49 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +479 -0
- package/vscode/src/vs/platform/userDataSync/common/tasksSync.d.ts +32 -0
- package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +81 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +7 -7
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.d.ts +50 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +186 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.d.ts +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.d.ts +102 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +743 -0
- package/vscode/src/vs/platform/webContentExtractor/common/webContentExtractor.d.ts +4 -0
- package/vscode/src/vs/platform/webWorker/browser/webWorkerDescriptor.d.ts +13 -0
- package/vscode/src/vs/platform/webWorker/browser/webWorkerDescriptor.js +11 -0
- package/vscode/src/vs/platform/webWorker/browser/webWorkerService.service.d.ts +9 -0
- package/vscode/src/vs/platform/webWorker/browser/webWorkerService.service.js +6 -0
- package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.d.ts +24 -0
- package/vscode/src/vs/{base/browser/webWorkerFactory.js → platform/webWorker/browser/webWorkerServiceImpl.js} +58 -71
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +65 -0
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +217 -0
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +10 -4
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +69 -32
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +22 -8
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +11 -7
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +49 -27
- package/vscode/src/vs/workbench/api/common/extHostChatContext.d.ts +9 -3
- package/vscode/src/vs/workbench/api/common/extHostChatContext.js +70 -25
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +3 -3
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +65 -11
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +8 -5
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +9 -4
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +39 -8
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +5 -4
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +65 -2
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +165 -95
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.d.ts +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +11 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +11 -14
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +21 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +16 -5
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +25 -6
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +17 -5
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +4 -4
- package/vscode/src/vs/workbench/api/common/extensionHostMain.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +53 -45
- package/vscode/src/vs/workbench/browser/actions/layoutActions.d.ts +87 -0
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +1333 -0
- package/vscode/src/vs/workbench/browser/actions/media/actions.css +4 -3
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +19 -0
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +95 -0
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.d.ts +26 -0
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +122 -0
- package/vscode/src/vs/workbench/browser/actions/windowActions.d.ts +26 -0
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +453 -0
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +356 -0
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.d.ts +5 -0
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +241 -0
- package/vscode/src/vs/workbench/browser/composite.d.ts +156 -0
- package/vscode/src/vs/workbench/browser/composite.js +146 -0
- package/vscode/src/vs/workbench/browser/dnd.d.ts +138 -0
- package/vscode/src/vs/workbench/browser/dnd.js +545 -0
- package/vscode/src/vs/workbench/browser/editor.d.ts +56 -0
- package/vscode/src/vs/workbench/browser/editor.js +167 -0
- package/vscode/src/vs/workbench/browser/labels.d.ts +116 -0
- package/vscode/src/vs/workbench/browser/labels.js +525 -0
- package/vscode/src/vs/workbench/browser/media/part.css +97 -0
- package/vscode/src/vs/workbench/browser/media/style.css +309 -0
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +76 -0
- package/vscode/src/vs/workbench/browser/panecomposite.js +163 -0
- package/vscode/src/vs/workbench/browser/part.d.ts +92 -0
- package/vscode/src/vs/workbench/browser/part.js +189 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +60 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +560 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css +210 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css +65 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.d.ts +8 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +252 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.d.ts +42 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +209 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css +102 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBar.d.ts +102 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +637 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +176 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +576 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +93 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +344 -0
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.d.ts +62 -0
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +374 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.d.ts +18 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +41 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.d.ts +23 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +58 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.d.ts +49 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +295 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.d.ts +91 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +833 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.d.ts +39 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +146 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.d.ts +72 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +427 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.d.ts +10 -0
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +244 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution._autosave.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution._autosave.js +5 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.d.ts +499 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +2168 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.d.ts +42 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +222 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.d.ts +62 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +1174 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.d.ts +13 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.js +137 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.d.ts +27 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +519 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.d.ts +215 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1448 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.d.ts +26 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +167 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +139 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +247 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.d.ts +95 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +336 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +198 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1082 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +137 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +584 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.d.ts +63 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +246 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.d.ts +42 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +223 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +1286 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.d.ts +122 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +345 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.d.ts +53 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +161 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.d.ts +67 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +139 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.d.ts +50 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +358 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css +65 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css +55 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +187 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorplaceholder.css +64 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css +10 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorstatus.css +51 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css +47 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css +47 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-dark.svg +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-hcDark.svg +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-hcLight.svg +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-light.svg +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +560 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/sidebysideeditor.css +9 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css +119 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.d.ts +133 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1789 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.d.ts +43 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +165 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.d.ts +27 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +65 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.d.ts +109 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +391 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.d.ts +43 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +261 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.d.ts +29 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +84 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.d.ts +61 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +319 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.d.ts +104 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +254 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.d.ts +41 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +157 -0
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.d.ts +115 -0
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +645 -0
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css +18 -0
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css +340 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css +14 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css +67 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css +145 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css +70 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.d.ts +71 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +150 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.d.ts +10 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +63 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.d.ts +50 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +295 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.d.ts +37 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +269 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.d.ts +41 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +208 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.d.ts +22 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +172 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.d.ts +60 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +445 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.d.ts +72 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +413 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +109 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +690 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +139 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +508 -0
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css +100 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.d.ts +25 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +356 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +188 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css +121 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +56 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +253 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/menubarControl.css +63 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +112 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +692 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +12 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +227 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.d.ts +80 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +324 -0
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.d.ts +28 -0
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +96 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css +87 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css +340 -0
- package/vscode/src/vs/workbench/browser/parts/views/treeView.d.ts +223 -0
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1891 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +54 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +218 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.d.ts +27 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.js +68 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +156 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +693 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +127 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1070 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +118 -0
- package/vscode/src/vs/workbench/browser/quickaccess.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/quickaccess.js +88 -0
- package/vscode/src/vs/workbench/browser/style.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/style.js +57 -0
- package/vscode/src/vs/workbench/browser/window.d.ts +52 -0
- package/vscode/src/vs/workbench/browser/window.js +357 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +1483 -0
- package/vscode/src/vs/workbench/common/activity.d.ts +2 -0
- package/vscode/src/vs/workbench/common/activity.js +6 -0
- package/vscode/src/vs/workbench/common/component.d.ts +16 -0
- package/vscode/src/vs/workbench/common/component.js +31 -0
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/binaryEditorModel.d.ts +32 -0
- package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +42 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.d.ts +202 -0
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +804 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.d.ts +59 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +114 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +47 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +167 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +53 -0
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +160 -0
- package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.d.ts +14 -0
- package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +27 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/memento.d.ts +18 -0
- package/vscode/src/vs/workbench/common/memento.js +116 -0
- package/vscode/src/vs/workbench/common/notifications.d.ts +238 -0
- package/vscode/src/vs/workbench/common/notifications.js +496 -0
- package/vscode/src/vs/workbench/common/resources.d.ts +23 -0
- package/vscode/src/vs/workbench/common/resources.js +168 -0
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +168 -160
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +89 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/common/callHierarchy.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +141 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +1573 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCloseNotification.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCloseNotification.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +362 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +181 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +27 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +377 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatElicitationRequestPart.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatElicitationRequestPart.js +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.service.d.ts → chatStatus/chatStatusItemService.service.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +201 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/imageUtils.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/imageUtils.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chat.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chat.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +281 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +429 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/{services → contrib}/chat/common/chatContext.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +13 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +96 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +43 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +49 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +742 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1449 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +147 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +357 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +151 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +235 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +262 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +107 -27
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +34 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +28 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +17 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatUri.d.ts +9 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatUri.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +17 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +281 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +366 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +18 -4
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +18 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +42 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +30 -23
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +14 -10
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -9
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatStreamStats.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatStreamStats.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +336 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +41 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +159 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +26 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +34 -32
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +26 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css +113 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.d.ts +76 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +358 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css +79 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +568 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +236 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +94 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css +30 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +334 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +49 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +79 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +124 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +671 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +331 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +81 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +267 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +128 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +110 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +284 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +474 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +6 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +1373 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +20 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +129 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +459 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +537 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +219 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css +177 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css +634 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +108 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +58 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +75 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +5 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +360 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.d.ts +88 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +184 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +799 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +530 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1742 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +193 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +380 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +349 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +323 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +1054 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +74 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +854 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +176 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +419 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +75 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +103 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +132 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +315 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/all.png.js +12 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css +70 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css +12 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/continue-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css +52 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/pause-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css +146 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/restart-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/run-with-debugging-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/stepinto-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/stepout-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/stepover-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/stop-tb.png +0 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1079 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +53 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +134 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +361 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +713 -0
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +18 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +476 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1693 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +34 -0
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +84 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +393 -0
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.d.ts +76 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +448 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +79 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +61 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.d.ts +83 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +1127 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +49 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +671 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +412 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +18 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +230 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +2060 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.d.ts +608 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +3155 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +44 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +63 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +84 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +61 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +192 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +94 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +406 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +969 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.d.ts +233 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +1432 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.d.ts +209 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +1009 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +311 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +2976 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +337 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +30 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +30 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css +281 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css +147 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +908 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionManagement.css +12 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +204 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css +89 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-dark.svg +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-hc.svg +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading.svg +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css +86 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +27 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +39 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +153 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +76 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +56 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +46 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +108 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +45 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +5 -8
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +68 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +167 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +74 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +76 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.d.ts +74 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +338 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +241 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +102 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +401 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +32 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +303 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +700 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.d.ts +141 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +1243 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +194 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +474 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +692 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +427 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +61 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory.js +15 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +112 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/media/explorerviewlet.css +108 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +104 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +86 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +888 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.d.ts +262 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +1728 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css +108 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +815 -0
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +162 -0
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +54 -0
- package/vscode/src/vs/workbench/contrib/files/common/explorerFileNestingTrie.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +222 -0
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.d.ts +119 -0
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +397 -0
- package/vscode/src/vs/workbench/contrib/files/common/files.d.ts +155 -0
- package/vscode/src/vs/workbench/contrib/files/common/files.js +237 -0
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +43 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +25 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +276 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.js +42 -0
- package/vscode/src/vs/workbench/contrib/markdown/common/markedKatexExtension.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/markdown/common/markedKatexExtension.js +97 -0
- package/vscode/src/vs/workbench/contrib/markers/common/markers.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/markers/common/markers.js +42 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.d.ts +83 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +496 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpCommandIds.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpCommandIds.js +32 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +279 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +35 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypesUtils.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypesUtils.js +87 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +1120 -268
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +178 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +418 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +12 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +66 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +57 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +51 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +263 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.d.ts +98 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +624 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.d.ts +133 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +314 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +47 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +189 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +81 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +106 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +270 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +35 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +8 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +361 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +41 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +182 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +322 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +59 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +86 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +131 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +420 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css +160 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.d.ts +138 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +758 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +340 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +273 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.d.ts +91 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +343 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +261 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +657 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css +347 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css +119 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css +79 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css +61 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditController.css +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditorOverlay.css +63 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css +79 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css +63 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css +79 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css +61 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +135 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +805 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +149 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.js +93 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +527 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +355 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2727 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +201 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +663 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +133 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +188 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +66 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +380 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +223 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +153 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +88 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +670 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +327 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +240 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +164 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +672 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +83 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +109 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +115 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +432 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +119 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1220 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +244 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.js +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +220 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1699 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +359 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.d.ts +432 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2361 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.d.ts +137 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +585 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +90 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +114 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +63 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +35 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.d.ts +89 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +460 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +34 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +261 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +265 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +845 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +411 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +601 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +172 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.d.ts +108 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +619 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +132 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +127 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +212 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +105 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +450 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +339 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +322 -0
- 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.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +73 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +20 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.d.ts +73 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +280 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css +52 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +23 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +492 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +304 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.d.ts +192 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +937 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +177 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +60 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css +112 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +863 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +24 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.d.ts +192 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1745 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +627 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +139 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +421 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +285 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/util.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/util.js +161 -0
- package/vscode/src/vs/workbench/contrib/scm/common/artifact.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/scm/common/history.js +6 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +113 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/scm.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.js +325 -0
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModelBase.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModelBase.js +8 -0
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.d.ts +97 -0
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +792 -0
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css +10 -0
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css +442 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.js +429 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.js +23 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +238 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +34 -0
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.d.ts +74 -0
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +222 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replace.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +457 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +355 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +293 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchCompare.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchCompare.js +119 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +53 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +30 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +57 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.d.ts +127 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +462 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.js +303 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.js +455 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/match.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/match.js +132 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/rangeDecorations.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/rangeDecorations.js +83 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.d.ts +231 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.js +117 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchViewModelWorkbenchService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/textSearchHeading.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/textSearchHeading.js +279 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.d.ts +250 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +2292 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.d.ts +148 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +678 -0
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +223 -0
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +88 -0
- package/vscode/src/vs/workbench/contrib/search/common/constants.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +87 -0
- package/vscode/src/vs/workbench/contrib/search/common/search.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/search/common/search.js +159 -0
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +46 -0
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +14 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css +188 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +194 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +328 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +139 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +274 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +22 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +108 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +28 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +50 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +205 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +32 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +110 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +20 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +819 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +137 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +42 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgets.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +258 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +422 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +354 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +290 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +107 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +55 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminal.accessibility.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminal.accessibility.js +15 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +28 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/common/terminalInitialHintConfiguration.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/common/terminalInitialHintConfiguration.js +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +419 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/common/terminal.find.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/common/terminal.find.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +30 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.js +34 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +279 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +31 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +105 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.d.ts +98 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +203 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.d.ts +277 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +413 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +51 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +143 -0
- package/vscode/src/vs/workbench/contrib/update/common/update.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/update/common/update.js +6 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.js +47 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +121 -0
- package/vscode/src/vs/workbench/contrib/url/common/trustedDomains.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/url/common/trustedDomains.js +42 -0
- package/vscode/src/vs/workbench/contrib/url/common/urlGlob.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/url/common/urlGlob.js +84 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +72 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.d.ts +257 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +73 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +42 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +171 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +115 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +233 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +11 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +10 -10
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +89 -30
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +25 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +137 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +41 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.js +48 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.d.ts +65 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +405 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +6 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +2 -1
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.d.ts +107 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +413 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +10 -17
- package/vscode/src/vs/workbench/services/configuration/common/configuration.d.ts +47 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.js +36 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.service.d.ts +30 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +7 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.d.ts +15 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.js +14 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +156 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +13 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/driver/browser/driver.d.ts +41 -0
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +226 -0
- package/vscode/src/vs/workbench/services/driver/common/driver.d.ts +44 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +111 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +787 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.d.ts +33 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +194 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +26 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.d.ts +41 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +133 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +8 -8
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +72 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +379 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +7 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +27 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +14 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.d.ts +39 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +282 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.d.ts +60 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +322 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +3 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.d.ts +42 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +269 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +22 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.js +47 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +86 -94
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +98 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +371 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +11 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +44 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.d.ts +72 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.js +23 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +46 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.d.ts +28 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +600 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +265 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferences.js +56 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.d.ts +27 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +74 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.d.ts +49 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +250 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +8 -11
- package/vscode/src/vs/workbench/services/search/common/ignoreFile.d.ts +29 -0
- package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +107 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.d.ts +7 -0
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +75 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +84 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +293 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.d.ts +18 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +78 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMHelper.d.ts +26 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +110 -0
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.d.ts +32 -0
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +194 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.d.ts +126 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +757 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.d.ts +97 -0
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +910 -0
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/plistParser.d.ts +4 -0
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +421 -0
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.d.ts +8 -0
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +123 -0
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.d.ts +5 -0
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +79 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +435 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +346 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.d.ts +48 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +159 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.d.ts +111 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +261 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userAttention/common/userAttentionService.service.d.ts +41 -0
- package/vscode/src/vs/workbench/services/userAttention/common/userAttentionService.service.js +6 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.d.ts +15 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +101 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +82 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +30 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.d.ts +2 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +94 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewsService.d.ts +77 -0
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +632 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +113 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.js +9 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.d.ts +55 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +81 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +320 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +718 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +172 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.js +11 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.d.ts +124 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +655 -0
- package/vscode-dts/vscode.d.ts +176 -151
- package/vscode-dts/vscode.proposed.chatContextProvider.d.ts +44 -10
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +5 -3
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +74 -1
- package/vscode-dts/vscode.proposed.chatReferenceDiagnostic.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +81 -8
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -10
- package/vscode-dts/vscode.proposed.fileSearchProvider2.d.ts +6 -1
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -2
- package/vscode-dts/vscode.proposed.mcpToolDefinitions.d.ts +10 -1
- package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +16 -9
- package/vscode-dts/vscode.proposed.quickPickItemResource.d.ts +6 -5
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +4 -1
- package/vscode-dts/vscode.proposed.quickPickPrompt.d.ts +6 -4
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +6 -1
- package/vscode-dts/vscode.proposed.scmArtifactProvider.d.ts +3 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +1 -1
- package/vscode/src/vs/base/browser/webWorkerFactory.d.ts +0 -14
- package/vscode/src/vs/base/common/skipList.d.ts +0 -35
- package/vscode/src/vs/base/common/skipList.js +0 -164
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +0 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +0 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.service.js +0 -6
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.service.d.ts +0 -9
|
@@ -0,0 +1,2727 @@
|
|
|
1
|
+
|
|
2
|
+
import { registerCss } from '../../../../../../../css.js';
|
|
3
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
+
import * as notebook from './media/notebook.css';
|
|
5
|
+
import * as notebookCellChat from './media/notebookCellChat.css';
|
|
6
|
+
import * as notebookCellEditorHint from './media/notebookCellEditorHint.css';
|
|
7
|
+
import * as notebookCellInsertToolbar from './media/notebookCellInsertToolbar.css';
|
|
8
|
+
import * as notebookCellStatusBar from './media/notebookCellStatusBar.css';
|
|
9
|
+
import * as notebookCellTitleToolbar from './media/notebookCellTitleToolbar.css';
|
|
10
|
+
import * as notebookFocusIndicator from './media/notebookFocusIndicator.css';
|
|
11
|
+
import * as notebookToolbar from './media/notebookToolbar.css';
|
|
12
|
+
import * as notebookDnd from './media/notebookDnd.css';
|
|
13
|
+
import * as notebookFolding from './media/notebookFolding.css';
|
|
14
|
+
import * as notebookCellOutput from './media/notebookCellOutput.css';
|
|
15
|
+
import * as notebookEditorStickyScroll from './media/notebookEditorStickyScroll.css';
|
|
16
|
+
import * as notebookKernelActionViewItem from './media/notebookKernelActionViewItem.css';
|
|
17
|
+
import * as notebookOutline from './media/notebookOutline.css';
|
|
18
|
+
import * as notebookChatEditController from './media/notebookChatEditController.css';
|
|
19
|
+
import * as notebookChatEditorOverlay from './media/notebookChatEditorOverlay.css';
|
|
20
|
+
import { $ as $$1, createElement, getWindow, append, addStandardDisposableGenericMouseDownListener, addStandardDisposableGenericMouseUpListener, trackFocus, runWhenWindowIdle, scheduleAtNextAnimationFrame, getActiveElement, size, isAncestorOfActiveElement } from '../../../../base/browser/dom.js';
|
|
21
|
+
import { createStyleSheet } from '../../../../base/browser/domStylesheets.js';
|
|
22
|
+
import { mainWindow } from '../../../../base/browser/window.js';
|
|
23
|
+
import { SequencerByKey } from '../../../../base/common/async.js';
|
|
24
|
+
import { Color, RGBA } from '../../../../base/common/color.js';
|
|
25
|
+
import { onUnexpectedError } from '../../../../base/common/errors.js';
|
|
26
|
+
import { Emitter, Event } from '../../../../base/common/event.js';
|
|
27
|
+
import { Disposable, DisposableStore, combinedDisposable, dispose } from '../../../../base/common/lifecycle.js';
|
|
28
|
+
import { setTimeout0 } from '../../../../base/common/platform.js';
|
|
29
|
+
import { isEqual, extname } from '../../../../base/common/resources.js';
|
|
30
|
+
import { generateUuid } from '../../../../base/common/uuid.js';
|
|
31
|
+
import { FontMeasurements } from '../../../../editor/browser/config/fontMeasurements.js';
|
|
32
|
+
import { createBareFontInfoFromRawSettings } from '../../../../editor/common/config/fontInfoFromSettings.js';
|
|
33
|
+
import { Range } from '../../../../editor/common/core/range.js';
|
|
34
|
+
import { SuggestController } from '../../../../editor/contrib/suggest/browser/suggestController.js';
|
|
35
|
+
import { localize } from '../../../../nls.js';
|
|
36
|
+
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
37
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
38
|
+
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
39
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
40
|
+
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
|
|
41
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
42
|
+
import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
|
|
43
|
+
import { ILayoutService } from '../../../../platform/layout/browser/layoutService.service.js';
|
|
44
|
+
import { registerZIndex, ZIndex } from '../../../../platform/layout/browser/zIndexRegistry.js';
|
|
45
|
+
import { IEditorProgressService } from '../../../../platform/progress/common/progress.service.js';
|
|
46
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
47
|
+
import { registerColor, transparent } from '../../../../platform/theme/common/colorUtils.js';
|
|
48
|
+
import { foreground, focusBorder, errorForeground, contrastBorder } from '../../../../platform/theme/common/colors/baseColors.js';
|
|
49
|
+
import '../../../../platform/theme/common/colors/chartsColors.js';
|
|
50
|
+
import '../../../../platform/theme/common/colors/editorColors.js';
|
|
51
|
+
import '../../../../platform/theme/common/colors/inputColors.js';
|
|
52
|
+
import { listInactiveSelectionBackground } from '../../../../platform/theme/common/colors/listColors.js';
|
|
53
|
+
import '../../../../platform/theme/common/colors/menuColors.js';
|
|
54
|
+
import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
55
|
+
import { scrollbarSliderBackground, scrollbarSliderHoverBackground, scrollbarSliderActiveBackground } from '../../../../platform/theme/common/colors/miscColors.js';
|
|
56
|
+
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
57
|
+
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
58
|
+
import { PANEL_BORDER, SIDE_BAR_BACKGROUND, EDITOR_PANE_BACKGROUND } from '../../../common/theme.js';
|
|
59
|
+
import { debugIconStartForeground } from '../../debug/browser/debugColors.js';
|
|
60
|
+
import { CellEditState, CellFocusMode, CellRevealType, CellRevealRangeType, ScrollToRevealBehavior, RenderOutputType } from './notebookBrowser.js';
|
|
61
|
+
import { NotebookEditorExtensionsRegistry } from './notebookEditorExtensions.js';
|
|
62
|
+
import { INotebookEditorService } from './services/notebookEditorService.service.js';
|
|
63
|
+
import { notebookDebug } from './notebookLogger.js';
|
|
64
|
+
import { NotebookLayoutChangedEvent } from './notebookViewEvents.js';
|
|
65
|
+
import { CellContextKeyManager } from './view/cellParts/cellContextKeys.js';
|
|
66
|
+
import { CellDragAndDropController } from './view/cellParts/cellDnd.js';
|
|
67
|
+
import { NotebookCellList, ListViewInfoAccessor, NOTEBOOK_WEBVIEW_BOUNDARY } from './view/notebookCellList.js';
|
|
68
|
+
import { BackLayerWebView } from './view/renderers/backLayerWebView.js';
|
|
69
|
+
import { CodeCellRenderer, MarkupCellRenderer, NotebookCellListDelegate } from './view/renderers/cellRenderer.js';
|
|
70
|
+
import { outputDisplayLimit, CodeCellViewModel } from './viewModel/codeCellViewModel.js';
|
|
71
|
+
import { NotebookEventDispatcher } from './viewModel/eventDispatcher.js';
|
|
72
|
+
import { MarkupCellViewModel } from './viewModel/markupCellViewModel.js';
|
|
73
|
+
import { NotebookViewModel } from './viewModel/notebookViewModelImpl.js';
|
|
74
|
+
import { ViewContext } from './viewModel/viewContext.js';
|
|
75
|
+
import { NotebookEditorWorkbenchToolbar } from './viewParts/notebookEditorToolbar.js';
|
|
76
|
+
import { NotebookEditorContextKeys } from './viewParts/notebookEditorWidgetContextKeys.js';
|
|
77
|
+
import { NotebookOverviewRuler } from './viewParts/notebookOverviewRuler.js';
|
|
78
|
+
import { ListTopCellToolbar } from './viewParts/notebookTopCellToolbar.js';
|
|
79
|
+
import { SelectionStateType, RENDERER_NOT_AVAILABLE, CellKind, NotebookFindScopeType, CellEditType } from '../common/notebookCommon.js';
|
|
80
|
+
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CURSOR_NAVIGATION_MODE } from '../common/notebookContextKeys.js';
|
|
81
|
+
import { INotebookExecutionService } from '../common/notebookExecutionService.service.js';
|
|
82
|
+
import { INotebookKernelService } from '../common/notebookKernelService.service.js';
|
|
83
|
+
import { NotebookOptions, OutputInnerContainerTopPadding } from './notebookOptions.js';
|
|
84
|
+
import { cellRangesToIndexes } from '../common/notebookRange.js';
|
|
85
|
+
import { INotebookRendererMessagingService } from '../common/notebookRendererMessagingService.service.js';
|
|
86
|
+
import { INotebookService } from '../common/notebookService.service.js';
|
|
87
|
+
import { EditorExtensionsRegistry } from '../../../../editor/browser/editorExtensions.js';
|
|
88
|
+
import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.service.js';
|
|
89
|
+
import { BaseCellEditorOptions } from './viewModel/cellEditorOptions.js';
|
|
90
|
+
import { FloatingEditorClickMenu } from '../../../browser/codeeditor.js';
|
|
91
|
+
import { CellFindMatchModel } from './contrib/find/findModel.js';
|
|
92
|
+
import { INotebookLoggingService } from '../common/notebookLoggingService.service.js';
|
|
93
|
+
import { Schemas } from '../../../../base/common/network.js';
|
|
94
|
+
import { DropIntoEditorController } from '../../../../editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js';
|
|
95
|
+
import { CopyPasteController } from '../../../../editor/contrib/dropOrPasteInto/browser/copyPasteController.js';
|
|
96
|
+
import { NotebookStickyScroll } from './viewParts/notebookEditorStickyScroll.js';
|
|
97
|
+
import { PixelRatio } from '../../../../base/browser/pixelRatio.js';
|
|
98
|
+
import { PreventDefaultContextMenuItemsContextKeyName } from '../../webview/browser/webview.contribution.js';
|
|
99
|
+
import { NotebookAccessibilityProvider } from './notebookAccessibilityProvider.js';
|
|
100
|
+
import { NotebookHorizontalTracker } from './viewParts/notebookHorizontalTracker.js';
|
|
101
|
+
import { NotebookCellEditorPool } from './view/notebookCellEditorPool.js';
|
|
102
|
+
import { InlineCompletionsController } from '../../../../editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js';
|
|
103
|
+
import { NotebookCellLayoutManager } from './notebookCellLayoutManager.js';
|
|
104
|
+
import { FloatingEditorToolbar } from '../../../../editor/contrib/floatingMenu/browser/floatingMenu.js';
|
|
105
|
+
|
|
106
|
+
registerCss(notebook);
|
|
107
|
+
registerCss(notebookCellChat);
|
|
108
|
+
registerCss(notebookCellEditorHint);
|
|
109
|
+
registerCss(notebookCellInsertToolbar);
|
|
110
|
+
registerCss(notebookCellStatusBar);
|
|
111
|
+
registerCss(notebookCellTitleToolbar);
|
|
112
|
+
registerCss(notebookFocusIndicator);
|
|
113
|
+
registerCss(notebookToolbar);
|
|
114
|
+
registerCss(notebookDnd);
|
|
115
|
+
registerCss(notebookFolding);
|
|
116
|
+
registerCss(notebookCellOutput);
|
|
117
|
+
registerCss(notebookEditorStickyScroll);
|
|
118
|
+
registerCss(notebookKernelActionViewItem);
|
|
119
|
+
registerCss(notebookOutline);
|
|
120
|
+
registerCss(notebookChatEditController);
|
|
121
|
+
registerCss(notebookChatEditorOverlay);
|
|
122
|
+
const $ = $$1;
|
|
123
|
+
function getDefaultNotebookCreationOptions() {
|
|
124
|
+
const skipContributions = [
|
|
125
|
+
'editor.contrib.review',
|
|
126
|
+
FloatingEditorClickMenu.ID,
|
|
127
|
+
FloatingEditorToolbar.ID,
|
|
128
|
+
'editor.contrib.dirtydiff',
|
|
129
|
+
'editor.contrib.testingOutputPeek',
|
|
130
|
+
'editor.contrib.testingDecorations',
|
|
131
|
+
'store.contrib.stickyScrollController',
|
|
132
|
+
'editor.contrib.findController',
|
|
133
|
+
'editor.contrib.emptyTextEditorHint'
|
|
134
|
+
];
|
|
135
|
+
const contributions = EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1);
|
|
136
|
+
return {
|
|
137
|
+
menuIds: {
|
|
138
|
+
notebookToolbar: MenuId.NotebookToolbar,
|
|
139
|
+
cellTitleToolbar: MenuId.NotebookCellTitle,
|
|
140
|
+
cellDeleteToolbar: MenuId.NotebookCellDelete,
|
|
141
|
+
cellInsertToolbar: MenuId.NotebookCellBetween,
|
|
142
|
+
cellTopInsertToolbar: MenuId.NotebookCellListTop,
|
|
143
|
+
cellExecuteToolbar: MenuId.NotebookCellExecute,
|
|
144
|
+
cellExecutePrimary: MenuId.NotebookCellExecutePrimary,
|
|
145
|
+
},
|
|
146
|
+
cellEditorContributions: contributions
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
150
|
+
get isVisible() {
|
|
151
|
+
return this._isVisible;
|
|
152
|
+
}
|
|
153
|
+
get isDisposed() {
|
|
154
|
+
return this._isDisposed;
|
|
155
|
+
}
|
|
156
|
+
set viewModel(newModel) {
|
|
157
|
+
this._onWillChangeModel.fire(this._notebookViewModel?.notebookDocument);
|
|
158
|
+
this._notebookViewModel = newModel;
|
|
159
|
+
this._onDidChangeModel.fire(newModel?.notebookDocument);
|
|
160
|
+
}
|
|
161
|
+
get viewModel() {
|
|
162
|
+
return this._notebookViewModel;
|
|
163
|
+
}
|
|
164
|
+
get textModel() {
|
|
165
|
+
return this._notebookViewModel?.notebookDocument;
|
|
166
|
+
}
|
|
167
|
+
get isReadOnly() {
|
|
168
|
+
return this._notebookViewModel?.options.isReadOnly ?? false;
|
|
169
|
+
}
|
|
170
|
+
get activeCodeEditor() {
|
|
171
|
+
if (this._isDisposed) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const [focused] = this._list.getFocusedElements();
|
|
175
|
+
return this._renderedEditors.get(focused);
|
|
176
|
+
}
|
|
177
|
+
get activeCellAndCodeEditor() {
|
|
178
|
+
if (this._isDisposed) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const [focused] = this._list.getFocusedElements();
|
|
182
|
+
const editor = this._renderedEditors.get(focused);
|
|
183
|
+
if (!editor) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
return [focused, editor];
|
|
187
|
+
}
|
|
188
|
+
get codeEditors() {
|
|
189
|
+
return [...this._renderedEditors];
|
|
190
|
+
}
|
|
191
|
+
get visibleRanges() {
|
|
192
|
+
return this._list ? (this._list.visibleRanges || []) : [];
|
|
193
|
+
}
|
|
194
|
+
get notebookOptions() {
|
|
195
|
+
return this._notebookOptions;
|
|
196
|
+
}
|
|
197
|
+
constructor(creationOptions, dimension, instantiationService, editorGroupsService, notebookRendererMessaging, notebookEditorService, notebookKernelService, _notebookService, configurationService, contextKeyService, layoutService, contextMenuService, telemetryService, notebookExecutionService, editorProgressService, logService) {
|
|
198
|
+
super();
|
|
199
|
+
this.creationOptions = creationOptions;
|
|
200
|
+
this.notebookRendererMessaging = notebookRendererMessaging;
|
|
201
|
+
this.notebookEditorService = notebookEditorService;
|
|
202
|
+
this.notebookKernelService = notebookKernelService;
|
|
203
|
+
this._notebookService = _notebookService;
|
|
204
|
+
this.configurationService = configurationService;
|
|
205
|
+
this.layoutService = layoutService;
|
|
206
|
+
this.contextMenuService = contextMenuService;
|
|
207
|
+
this.telemetryService = telemetryService;
|
|
208
|
+
this.notebookExecutionService = notebookExecutionService;
|
|
209
|
+
this.editorProgressService = editorProgressService;
|
|
210
|
+
this.logService = logService;
|
|
211
|
+
this._onDidChangeCellState = this._register(( new Emitter()));
|
|
212
|
+
this.onDidChangeCellState = this._onDidChangeCellState.event;
|
|
213
|
+
this._onDidChangeViewCells = this._register(( new Emitter()));
|
|
214
|
+
this.onDidChangeViewCells = this._onDidChangeViewCells.event;
|
|
215
|
+
this._onWillChangeModel = this._register(( new Emitter()));
|
|
216
|
+
this.onWillChangeModel = this._onWillChangeModel.event;
|
|
217
|
+
this._onDidChangeModel = this._register(( new Emitter()));
|
|
218
|
+
this.onDidChangeModel = this._onDidChangeModel.event;
|
|
219
|
+
this._onDidAttachViewModel = this._register(( new Emitter()));
|
|
220
|
+
this.onDidAttachViewModel = this._onDidAttachViewModel.event;
|
|
221
|
+
this._onDidChangeOptions = this._register(( new Emitter()));
|
|
222
|
+
this.onDidChangeOptions = this._onDidChangeOptions.event;
|
|
223
|
+
this._onDidChangeDecorations = this._register(( new Emitter()));
|
|
224
|
+
this.onDidChangeDecorations = this._onDidChangeDecorations.event;
|
|
225
|
+
this._onDidScroll = this._register(( new Emitter()));
|
|
226
|
+
this.onDidScroll = this._onDidScroll.event;
|
|
227
|
+
this._onDidChangeLayout = this._register(( new Emitter()));
|
|
228
|
+
this.onDidChangeLayout = this._onDidChangeLayout.event;
|
|
229
|
+
this._onDidChangeActiveCell = this._register(( new Emitter()));
|
|
230
|
+
this.onDidChangeActiveCell = this._onDidChangeActiveCell.event;
|
|
231
|
+
this._onDidChangeFocus = this._register(( new Emitter()));
|
|
232
|
+
this.onDidChangeFocus = this._onDidChangeFocus.event;
|
|
233
|
+
this._onDidChangeSelection = this._register(( new Emitter()));
|
|
234
|
+
this.onDidChangeSelection = this._onDidChangeSelection.event;
|
|
235
|
+
this._onDidChangeVisibleRanges = this._register(( new Emitter()));
|
|
236
|
+
this.onDidChangeVisibleRanges = this._onDidChangeVisibleRanges.event;
|
|
237
|
+
this._onDidFocusEmitter = this._register(( new Emitter()));
|
|
238
|
+
this.onDidFocusWidget = this._onDidFocusEmitter.event;
|
|
239
|
+
this._onDidBlurEmitter = this._register(( new Emitter()));
|
|
240
|
+
this.onDidBlurWidget = this._onDidBlurEmitter.event;
|
|
241
|
+
this._onDidChangeActiveEditor = this._register(( new Emitter()));
|
|
242
|
+
this.onDidChangeActiveEditor = this._onDidChangeActiveEditor.event;
|
|
243
|
+
this._onDidChangeActiveKernel = this._register(( new Emitter()));
|
|
244
|
+
this.onDidChangeActiveKernel = this._onDidChangeActiveKernel.event;
|
|
245
|
+
this._onMouseUp = this._register(( new Emitter()));
|
|
246
|
+
this.onMouseUp = this._onMouseUp.event;
|
|
247
|
+
this._onMouseDown = this._register(( new Emitter()));
|
|
248
|
+
this.onMouseDown = this._onMouseDown.event;
|
|
249
|
+
this._onDidReceiveMessage = this._register(( new Emitter()));
|
|
250
|
+
this.onDidReceiveMessage = this._onDidReceiveMessage.event;
|
|
251
|
+
this._onDidRenderOutput = this._register(( new Emitter()));
|
|
252
|
+
this.onDidRenderOutput = this._onDidRenderOutput.event;
|
|
253
|
+
this._onDidRemoveOutput = this._register(( new Emitter()));
|
|
254
|
+
this.onDidRemoveOutput = this._onDidRemoveOutput.event;
|
|
255
|
+
this._onDidResizeOutputEmitter = this._register(( new Emitter()));
|
|
256
|
+
this.onDidResizeOutput = this._onDidResizeOutputEmitter.event;
|
|
257
|
+
this._webview = null;
|
|
258
|
+
this._webviewResolvePromise = null;
|
|
259
|
+
this._webviewTransparentCover = null;
|
|
260
|
+
this._listDelegate = null;
|
|
261
|
+
this._dndController = null;
|
|
262
|
+
this._listTopCellToolbar = null;
|
|
263
|
+
this._renderedEditors = ( new Map());
|
|
264
|
+
this._localStore = this._register(( new DisposableStore()));
|
|
265
|
+
this._localCellStateListeners = [];
|
|
266
|
+
this._shadowElementViewInfo = null;
|
|
267
|
+
this._contributions = ( new Map());
|
|
268
|
+
this._insetModifyQueueByOutputId = ( new SequencerByKey());
|
|
269
|
+
this._cellContextKeyManager = null;
|
|
270
|
+
this._uuid = generateUuid();
|
|
271
|
+
this._webviewFocused = false;
|
|
272
|
+
this._isVisible = false;
|
|
273
|
+
this._isDisposed = false;
|
|
274
|
+
this._baseCellEditorOptions = ( new Map());
|
|
275
|
+
this._debugFlag = false;
|
|
276
|
+
this._backgroundMarkdownRenderRunning = false;
|
|
277
|
+
this._lastCellWithEditorFocus = null;
|
|
278
|
+
this._pendingOutputHeightAcks = ( new Map());
|
|
279
|
+
this._dimension = dimension;
|
|
280
|
+
this.isReplHistory = creationOptions.isReplHistory ?? false;
|
|
281
|
+
this._readOnly = creationOptions.isReadOnly ?? false;
|
|
282
|
+
this._overlayContainer = createElement('div');
|
|
283
|
+
this.scopedContextKeyService = this._register(contextKeyService.createScoped(this._overlayContainer));
|
|
284
|
+
this.instantiationService = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
|
|
285
|
+
this._notebookOptions = creationOptions.options ??
|
|
286
|
+
this.instantiationService.createInstance(NotebookOptions, this.creationOptions?.codeWindow ?? mainWindow, this._readOnly, undefined);
|
|
287
|
+
this._register(this._notebookOptions);
|
|
288
|
+
const eventDispatcher = this._register(( new NotebookEventDispatcher()));
|
|
289
|
+
this._viewContext = ( new ViewContext(
|
|
290
|
+
this._notebookOptions,
|
|
291
|
+
eventDispatcher,
|
|
292
|
+
language => this.getBaseCellEditorOptions(language)
|
|
293
|
+
));
|
|
294
|
+
this._register(this._viewContext.eventDispatcher.onDidChangeLayout(() => {
|
|
295
|
+
this._onDidChangeLayout.fire();
|
|
296
|
+
}));
|
|
297
|
+
this._register(this._viewContext.eventDispatcher.onDidChangeCellState(e => {
|
|
298
|
+
this._onDidChangeCellState.fire(e);
|
|
299
|
+
}));
|
|
300
|
+
this._register(_notebookService.onDidChangeOutputRenderers(() => {
|
|
301
|
+
this._updateOutputRenderers();
|
|
302
|
+
}));
|
|
303
|
+
this._register(this.instantiationService.createInstance(NotebookEditorContextKeys, this));
|
|
304
|
+
this._register(notebookKernelService.onDidChangeSelectedNotebooks(e => {
|
|
305
|
+
if (isEqual(e.notebook, this.viewModel?.uri)) {
|
|
306
|
+
this._loadKernelPreloads();
|
|
307
|
+
this._onDidChangeActiveKernel.fire();
|
|
308
|
+
}
|
|
309
|
+
}));
|
|
310
|
+
this._scrollBeyondLastLine = this.configurationService.getValue('editor.scrollBeyondLastLine');
|
|
311
|
+
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
312
|
+
if (e.affectsConfiguration('editor.scrollBeyondLastLine')) {
|
|
313
|
+
this._scrollBeyondLastLine = this.configurationService.getValue('editor.scrollBeyondLastLine');
|
|
314
|
+
if (this._dimension && this._isVisible) {
|
|
315
|
+
this.layout(this._dimension);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}));
|
|
319
|
+
this._register(this._notebookOptions.onDidChangeOptions(e => {
|
|
320
|
+
if (e.cellStatusBarVisibility || e.cellToolbarLocation || e.cellToolbarInteraction) {
|
|
321
|
+
this._updateForNotebookConfiguration();
|
|
322
|
+
}
|
|
323
|
+
if (e.fontFamily) {
|
|
324
|
+
this._generateFontInfo();
|
|
325
|
+
}
|
|
326
|
+
if (e.compactView
|
|
327
|
+
|| e.focusIndicator
|
|
328
|
+
|| e.insertToolbarPosition
|
|
329
|
+
|| e.cellToolbarLocation
|
|
330
|
+
|| e.dragAndDropEnabled
|
|
331
|
+
|| e.fontSize
|
|
332
|
+
|| e.markupFontSize
|
|
333
|
+
|| e.markdownLineHeight
|
|
334
|
+
|| e.fontFamily
|
|
335
|
+
|| e.insertToolbarAlignment
|
|
336
|
+
|| e.outputFontSize
|
|
337
|
+
|| e.outputLineHeight
|
|
338
|
+
|| e.outputFontFamily
|
|
339
|
+
|| e.outputWordWrap
|
|
340
|
+
|| e.outputScrolling
|
|
341
|
+
|| e.outputLinkifyFilePaths
|
|
342
|
+
|| e.minimalError) {
|
|
343
|
+
this._styleElement?.remove();
|
|
344
|
+
this._createLayoutStyles();
|
|
345
|
+
this._webview?.updateOptions({
|
|
346
|
+
...this.notebookOptions.computeWebviewOptions(),
|
|
347
|
+
fontFamily: this._generateFontFamily()
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
if (this._dimension && this._isVisible) {
|
|
351
|
+
this.layout(this._dimension);
|
|
352
|
+
}
|
|
353
|
+
}));
|
|
354
|
+
const container = creationOptions.codeWindow ? this.layoutService.getContainer(creationOptions.codeWindow) : this.layoutService.mainContainer;
|
|
355
|
+
this._register(editorGroupsService.getPart(container).onDidScroll(e => {
|
|
356
|
+
if (!this._shadowElement || !this._isVisible) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
this.updateShadowElement(this._shadowElement, this._dimension);
|
|
360
|
+
this.layoutContainerOverShadowElement(this._dimension, this._position);
|
|
361
|
+
}));
|
|
362
|
+
this.notebookEditorService.addNotebookEditor(this);
|
|
363
|
+
const id = generateUuid();
|
|
364
|
+
this._overlayContainer.id = `notebook-${id}`;
|
|
365
|
+
this._overlayContainer.className = 'notebookOverlay';
|
|
366
|
+
this._overlayContainer.classList.add('notebook-editor');
|
|
367
|
+
this._overlayContainer.inert = true;
|
|
368
|
+
this._overlayContainer.style.visibility = 'hidden';
|
|
369
|
+
container.appendChild(this._overlayContainer);
|
|
370
|
+
this._createBody(this._overlayContainer);
|
|
371
|
+
this._generateFontInfo();
|
|
372
|
+
this._isVisible = true;
|
|
373
|
+
this._editorFocus = NOTEBOOK_EDITOR_FOCUSED.bindTo(this.scopedContextKeyService);
|
|
374
|
+
this._outputFocus = NOTEBOOK_OUTPUT_FOCUSED.bindTo(this.scopedContextKeyService);
|
|
375
|
+
this._outputInputFocus = NOTEBOOK_OUTPUT_INPUT_FOCUSED.bindTo(this.scopedContextKeyService);
|
|
376
|
+
this._editorEditable = NOTEBOOK_EDITOR_EDITABLE.bindTo(this.scopedContextKeyService);
|
|
377
|
+
this._cursorNavMode = NOTEBOOK_CURSOR_NAVIGATION_MODE.bindTo(this.scopedContextKeyService);
|
|
378
|
+
( new RawContextKey(PreventDefaultContextMenuItemsContextKeyName, false)).bindTo(this.scopedContextKeyService).set(true);
|
|
379
|
+
this._editorEditable.set(!creationOptions.isReadOnly);
|
|
380
|
+
let contributions;
|
|
381
|
+
if (Array.isArray(this.creationOptions.contributions)) {
|
|
382
|
+
contributions = this.creationOptions.contributions;
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
contributions = NotebookEditorExtensionsRegistry.getEditorContributions();
|
|
386
|
+
}
|
|
387
|
+
for (const desc of contributions) {
|
|
388
|
+
let contribution;
|
|
389
|
+
try {
|
|
390
|
+
contribution = this.instantiationService.createInstance(desc.ctor, this);
|
|
391
|
+
}
|
|
392
|
+
catch (err) {
|
|
393
|
+
onUnexpectedError(err);
|
|
394
|
+
}
|
|
395
|
+
if (contribution) {
|
|
396
|
+
if (!( this._contributions.has(desc.id))) {
|
|
397
|
+
this._contributions.set(desc.id, contribution);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
contribution.dispose();
|
|
401
|
+
throw ( new Error(`DUPLICATE notebook editor contribution: '${desc.id}'`));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
this._updateForNotebookConfiguration();
|
|
406
|
+
}
|
|
407
|
+
_debug(...args) {
|
|
408
|
+
if (!this._debugFlag) {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
notebookDebug(...args);
|
|
412
|
+
}
|
|
413
|
+
getId() {
|
|
414
|
+
return this._uuid;
|
|
415
|
+
}
|
|
416
|
+
getViewModel() {
|
|
417
|
+
return this.viewModel;
|
|
418
|
+
}
|
|
419
|
+
getLength() {
|
|
420
|
+
return this.viewModel?.length ?? 0;
|
|
421
|
+
}
|
|
422
|
+
getSelections() {
|
|
423
|
+
return this.viewModel?.getSelections() ?? [{ start: 0, end: 0 }];
|
|
424
|
+
}
|
|
425
|
+
setSelections(selections) {
|
|
426
|
+
if (!this.viewModel) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
const focus = this.viewModel.getFocus();
|
|
430
|
+
this.viewModel.updateSelectionsState({
|
|
431
|
+
kind: SelectionStateType.Index,
|
|
432
|
+
focus: focus,
|
|
433
|
+
selections: selections
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
getFocus() {
|
|
437
|
+
return this.viewModel?.getFocus() ?? { start: 0, end: 0 };
|
|
438
|
+
}
|
|
439
|
+
setFocus(focus) {
|
|
440
|
+
if (!this.viewModel) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const selections = this.viewModel.getSelections();
|
|
444
|
+
this.viewModel.updateSelectionsState({
|
|
445
|
+
kind: SelectionStateType.Index,
|
|
446
|
+
focus: focus,
|
|
447
|
+
selections: selections
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
getSelectionViewModels() {
|
|
451
|
+
if (!this.viewModel) {
|
|
452
|
+
return [];
|
|
453
|
+
}
|
|
454
|
+
const cellsSet = ( new Set());
|
|
455
|
+
return ( this.viewModel.getSelections().map(range => this.viewModel.viewCells.slice(range.start, range.end))).reduce((a, b) => {
|
|
456
|
+
b.forEach(cell => {
|
|
457
|
+
if (!( cellsSet.has(cell.handle))) {
|
|
458
|
+
cellsSet.add(cell.handle);
|
|
459
|
+
a.push(cell);
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
return a;
|
|
463
|
+
}, []);
|
|
464
|
+
}
|
|
465
|
+
hasModel() {
|
|
466
|
+
return !!this._notebookViewModel;
|
|
467
|
+
}
|
|
468
|
+
showProgress() {
|
|
469
|
+
this._currentProgress = this.editorProgressService.show(true);
|
|
470
|
+
}
|
|
471
|
+
hideProgress() {
|
|
472
|
+
if (this._currentProgress) {
|
|
473
|
+
this._currentProgress.done();
|
|
474
|
+
this._currentProgress = undefined;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
getBaseCellEditorOptions(language) {
|
|
478
|
+
const existingOptions = this._baseCellEditorOptions.get(language);
|
|
479
|
+
if (existingOptions) {
|
|
480
|
+
return existingOptions;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
const options = ( new BaseCellEditorOptions(this, this.notebookOptions, this.configurationService, language));
|
|
484
|
+
this._baseCellEditorOptions.set(language, options);
|
|
485
|
+
return options;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
_updateForNotebookConfiguration() {
|
|
489
|
+
if (!this._overlayContainer) {
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
this._overlayContainer.classList.remove('cell-title-toolbar-left');
|
|
493
|
+
this._overlayContainer.classList.remove('cell-title-toolbar-right');
|
|
494
|
+
this._overlayContainer.classList.remove('cell-title-toolbar-hidden');
|
|
495
|
+
const cellToolbarLocation = this._notebookOptions.computeCellToolbarLocation(this.viewModel?.viewType);
|
|
496
|
+
this._overlayContainer.classList.add(`cell-title-toolbar-${cellToolbarLocation}`);
|
|
497
|
+
const cellToolbarInteraction = this._notebookOptions.getDisplayOptions().cellToolbarInteraction;
|
|
498
|
+
let cellToolbarInteractionState = 'hover';
|
|
499
|
+
this._overlayContainer.classList.remove('cell-toolbar-hover');
|
|
500
|
+
this._overlayContainer.classList.remove('cell-toolbar-click');
|
|
501
|
+
if (cellToolbarInteraction === 'hover' || cellToolbarInteraction === 'click') {
|
|
502
|
+
cellToolbarInteractionState = cellToolbarInteraction;
|
|
503
|
+
}
|
|
504
|
+
this._overlayContainer.classList.add(`cell-toolbar-${cellToolbarInteractionState}`);
|
|
505
|
+
}
|
|
506
|
+
_generateFontInfo() {
|
|
507
|
+
const editorOptions = this.configurationService.getValue('editor');
|
|
508
|
+
const targetWindow = getWindow(this.getDomNode());
|
|
509
|
+
this._fontInfo = FontMeasurements.readFontInfo(targetWindow, createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(targetWindow).value));
|
|
510
|
+
}
|
|
511
|
+
_createBody(parent) {
|
|
512
|
+
this._notebookTopToolbarContainer = createElement('div');
|
|
513
|
+
this._notebookTopToolbarContainer.classList.add('notebook-toolbar-container');
|
|
514
|
+
this._notebookTopToolbarContainer.style.display = 'none';
|
|
515
|
+
append(parent, this._notebookTopToolbarContainer);
|
|
516
|
+
this._notebookStickyScrollContainer = createElement('div');
|
|
517
|
+
this._notebookStickyScrollContainer.classList.add('notebook-sticky-scroll-container');
|
|
518
|
+
append(parent, this._notebookStickyScrollContainer);
|
|
519
|
+
this._body = createElement('div');
|
|
520
|
+
append(parent, this._body);
|
|
521
|
+
this._body.classList.add('cell-list-container');
|
|
522
|
+
this._createLayoutStyles();
|
|
523
|
+
this._createCellList();
|
|
524
|
+
this._notebookOverviewRulerContainer = createElement('div');
|
|
525
|
+
this._notebookOverviewRulerContainer.classList.add('notebook-overview-ruler-container');
|
|
526
|
+
this._list.scrollableElement.appendChild(this._notebookOverviewRulerContainer);
|
|
527
|
+
this._registerNotebookOverviewRuler();
|
|
528
|
+
this._register(this.instantiationService.createInstance(NotebookHorizontalTracker, this, this._list.scrollableElement));
|
|
529
|
+
this._overflowContainer = createElement('div');
|
|
530
|
+
this._overflowContainer.classList.add('notebook-overflow-widget-container', 'monaco-editor');
|
|
531
|
+
append(parent, this._overflowContainer);
|
|
532
|
+
}
|
|
533
|
+
_generateFontFamily() {
|
|
534
|
+
return this._fontInfo?.fontFamily ?? `"SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace`;
|
|
535
|
+
}
|
|
536
|
+
_createLayoutStyles() {
|
|
537
|
+
this._styleElement = createStyleSheet(this._body);
|
|
538
|
+
const { cellRightMargin, cellTopMargin, cellRunGutter, cellBottomMargin, codeCellLeftMargin, markdownCellGutter, markdownCellLeftMargin, markdownCellBottomMargin, markdownCellTopMargin, collapsedIndicatorHeight, focusIndicator, insertToolbarPosition, outputFontSize, focusIndicatorLeftMargin, focusIndicatorGap } = this._notebookOptions.getLayoutConfiguration();
|
|
539
|
+
const { insertToolbarAlignment, compactView, fontSize } = this._notebookOptions.getDisplayOptions();
|
|
540
|
+
const getCellEditorContainerLeftMargin = this._notebookOptions.getCellEditorContainerLeftMargin();
|
|
541
|
+
const { bottomToolbarGap, bottomToolbarHeight } = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
|
|
542
|
+
const styleSheets = [];
|
|
543
|
+
if (!this._fontInfo) {
|
|
544
|
+
this._generateFontInfo();
|
|
545
|
+
}
|
|
546
|
+
const fontFamily = this._generateFontFamily();
|
|
547
|
+
styleSheets.push(`
|
|
548
|
+
.notebook-editor {
|
|
549
|
+
--notebook-cell-output-font-size: ${outputFontSize}px;
|
|
550
|
+
--notebook-cell-input-preview-font-size: ${fontSize}px;
|
|
551
|
+
--notebook-cell-input-preview-font-family: ${fontFamily};
|
|
552
|
+
}
|
|
553
|
+
`);
|
|
554
|
+
if (compactView) {
|
|
555
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row div.cell.code { margin-left: ${getCellEditorContainerLeftMargin}px; }`);
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row div.cell.code { margin-left: ${codeCellLeftMargin}px; }`);
|
|
559
|
+
}
|
|
560
|
+
if (focusIndicator === 'border') {
|
|
561
|
+
styleSheets.push(`
|
|
562
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-top:before,
|
|
563
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom:before,
|
|
564
|
+
.monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row .cell-inner-container:before,
|
|
565
|
+
.monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row .cell-inner-container:after {
|
|
566
|
+
content: "";
|
|
567
|
+
position: absolute;
|
|
568
|
+
width: 100%;
|
|
569
|
+
height: 1px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left:before,
|
|
573
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-right:before {
|
|
574
|
+
content: "";
|
|
575
|
+
position: absolute;
|
|
576
|
+
width: 1px;
|
|
577
|
+
height: 100%;
|
|
578
|
+
z-index: 10;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* top border */
|
|
582
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-top:before {
|
|
583
|
+
border-top: 1px solid transparent;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/* left border */
|
|
587
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left:before {
|
|
588
|
+
border-left: 1px solid transparent;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* bottom border */
|
|
592
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom:before {
|
|
593
|
+
border-bottom: 1px solid transparent;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* right border */
|
|
597
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-right:before {
|
|
598
|
+
border-right: 1px solid transparent;
|
|
599
|
+
}
|
|
600
|
+
`);
|
|
601
|
+
styleSheets.push(`
|
|
602
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.code-cell-row.focused .cell-focus-indicator-left:before,
|
|
603
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.code-cell-row.focused .cell-focus-indicator-right:before,
|
|
604
|
+
.monaco-workbench .notebookOverlay .monaco-list.selection-multiple .monaco-list-row.code-cell-row.selected .cell-focus-indicator-left:before,
|
|
605
|
+
.monaco-workbench .notebookOverlay .monaco-list.selection-multiple .monaco-list-row.code-cell-row.selected .cell-focus-indicator-right:before {
|
|
606
|
+
top: -${cellTopMargin}px; height: calc(100% + ${cellTopMargin + cellBottomMargin}px)
|
|
607
|
+
}`);
|
|
608
|
+
}
|
|
609
|
+
else {
|
|
610
|
+
styleSheets.push(`
|
|
611
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left .codeOutput-focus-indicator {
|
|
612
|
+
border-left: 3px solid transparent;
|
|
613
|
+
border-radius: 4px;
|
|
614
|
+
width: 0px;
|
|
615
|
+
margin-left: ${focusIndicatorLeftMargin}px;
|
|
616
|
+
border-color: var(--vscode-notebook-inactiveFocusedCellBorder) !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-focus-indicator-left .codeOutput-focus-indicator-container,
|
|
620
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-output-hover .cell-focus-indicator-left .codeOutput-focus-indicator-container,
|
|
621
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .markdown-cell-hover .cell-focus-indicator-left .codeOutput-focus-indicator-container,
|
|
622
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row:hover .cell-focus-indicator-left .codeOutput-focus-indicator-container {
|
|
623
|
+
display: block;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left .codeOutput-focus-indicator-container:hover .codeOutput-focus-indicator {
|
|
627
|
+
border-left: 5px solid transparent;
|
|
628
|
+
margin-left: ${focusIndicatorLeftMargin - 1}px;
|
|
629
|
+
}
|
|
630
|
+
`);
|
|
631
|
+
styleSheets.push(`
|
|
632
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-inner-container.cell-output-focus .cell-focus-indicator-left .codeOutput-focus-indicator,
|
|
633
|
+
.monaco-workbench .notebookOverlay .monaco-list:focus-within .monaco-list-row.focused .cell-inner-container .cell-focus-indicator-left .codeOutput-focus-indicator {
|
|
634
|
+
border-color: var(--vscode-notebook-focusedCellBorder) !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-inner-container .cell-focus-indicator-left .output-focus-indicator {
|
|
638
|
+
margin-top: ${focusIndicatorGap}px;
|
|
639
|
+
}
|
|
640
|
+
`);
|
|
641
|
+
}
|
|
642
|
+
if (insertToolbarPosition === 'betweenCells' || insertToolbarPosition === 'both') {
|
|
643
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { display: flex; }`);
|
|
644
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container { display: flex; }`);
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { display: none; }`);
|
|
648
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container { display: none; }`);
|
|
649
|
+
}
|
|
650
|
+
if (insertToolbarAlignment === 'left') {
|
|
651
|
+
styleSheets.push(`
|
|
652
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .action-item:first-child,
|
|
653
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .action-item:first-child, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .action-item:first-child {
|
|
654
|
+
margin-right: 0px !important;
|
|
655
|
+
}`);
|
|
656
|
+
styleSheets.push(`
|
|
657
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label,
|
|
658
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-label {
|
|
659
|
+
padding: 0px !important;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
border-radius: 4px;
|
|
662
|
+
}`);
|
|
663
|
+
styleSheets.push(`
|
|
664
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container,
|
|
665
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container {
|
|
666
|
+
align-items: flex-start;
|
|
667
|
+
justify-content: left;
|
|
668
|
+
margin: 0 16px 0 ${8 + codeCellLeftMargin}px;
|
|
669
|
+
}`);
|
|
670
|
+
styleSheets.push(`
|
|
671
|
+
.monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container,
|
|
672
|
+
.notebookOverlay .cell-bottom-toolbar-container .action-item {
|
|
673
|
+
border: 0px;
|
|
674
|
+
}`);
|
|
675
|
+
}
|
|
676
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .code-cell-row div.cell.code { margin-left: ${getCellEditorContainerLeftMargin}px; }`);
|
|
677
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .code-cell-row div.cell.code { margin-left: ${getCellEditorContainerLeftMargin}px; }`);
|
|
678
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .code-cell-row div.cell { margin-right: ${cellRightMargin}px; }`);
|
|
679
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row div.cell { margin-right: ${cellRightMargin}px; }`);
|
|
680
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .cell-inner-container { padding-top: ${cellTopMargin}px; }`);
|
|
681
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .cell-inner-container { padding-bottom: ${markdownCellBottomMargin}px; padding-top: ${markdownCellTopMargin}px; }`);
|
|
682
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .cell-inner-container.webview-backed-markdown-cell { padding: 0; }`);
|
|
683
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .webview-backed-markdown-cell.markdown-cell-edit-mode .cell.code { padding-bottom: ${markdownCellBottomMargin}px; padding-top: ${markdownCellTopMargin}px; }`);
|
|
684
|
+
styleSheets.push(`.notebookOverlay .output { margin: 0px ${cellRightMargin}px 0px ${getCellEditorContainerLeftMargin}px; }`);
|
|
685
|
+
styleSheets.push(`.notebookOverlay .output { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
|
|
686
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-comment-container { left: ${getCellEditorContainerLeftMargin}px; }`);
|
|
687
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-comment-container { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
|
|
688
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay .output .output-collapse-container .expandButton { left: -${cellRunGutter}px; }`);
|
|
689
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay .output .output-collapse-container .expandButton {
|
|
690
|
+
position: absolute;
|
|
691
|
+
width: ${cellRunGutter}px;
|
|
692
|
+
padding: 6px 0px;
|
|
693
|
+
}`);
|
|
694
|
+
styleSheets.push(`.notebookOverlay .output-show-more-container { margin: 0px ${cellRightMargin}px 0px ${getCellEditorContainerLeftMargin}px; }`);
|
|
695
|
+
styleSheets.push(`.notebookOverlay .output-show-more-container { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
|
|
696
|
+
styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row div.cell.markdown { padding-left: ${cellRunGutter}px; }`);
|
|
697
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container .notebook-folding-indicator { left: ${(markdownCellGutter - 20) / 2 + markdownCellLeftMargin}px; }`);
|
|
698
|
+
styleSheets.push(`.notebookOverlay > .cell-list-container .notebook-folded-hint { left: ${markdownCellGutter + markdownCellLeftMargin + 8}px; }`);
|
|
699
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row :not(.webview-backed-markdown-cell) .cell-focus-indicator-top { height: ${cellTopMargin}px; }`);
|
|
700
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-side { bottom: ${bottomToolbarGap}px; }`);
|
|
701
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row.code-cell-row .cell-focus-indicator-left { width: ${getCellEditorContainerLeftMargin}px; }`);
|
|
702
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row.markdown-cell-row .cell-focus-indicator-left { width: ${codeCellLeftMargin}px; }`);
|
|
703
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator.cell-focus-indicator-right { width: ${cellRightMargin}px; }`);
|
|
704
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom { height: ${cellBottomMargin}px; }`);
|
|
705
|
+
styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-shadow-container-bottom { top: ${cellBottomMargin}px; }`);
|
|
706
|
+
styleSheets.push(`
|
|
707
|
+
.notebookOverlay .monaco-list.selection-multiple .monaco-list-row:has(+ .monaco-list-row.selected) .cell-focus-indicator-bottom {
|
|
708
|
+
height: ${bottomToolbarGap + cellBottomMargin}px;
|
|
709
|
+
}
|
|
710
|
+
`);
|
|
711
|
+
styleSheets.push(`
|
|
712
|
+
.notebookOverlay .monaco-list .monaco-list-row.code-cell-row.nb-multiCellHighlight:has(+ .monaco-list-row.nb-multiCellHighlight) .cell-focus-indicator-bottom {
|
|
713
|
+
height: ${bottomToolbarGap + cellBottomMargin}px;
|
|
714
|
+
background-color: var(--vscode-notebook-symbolHighlightBackground) !important;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.notebookOverlay .monaco-list .monaco-list-row.markdown-cell-row.nb-multiCellHighlight:has(+ .monaco-list-row.nb-multiCellHighlight) .cell-focus-indicator-bottom {
|
|
718
|
+
height: ${bottomToolbarGap + cellBottomMargin - 6}px;
|
|
719
|
+
background-color: var(--vscode-notebook-symbolHighlightBackground) !important;
|
|
720
|
+
}
|
|
721
|
+
`);
|
|
722
|
+
styleSheets.push(`
|
|
723
|
+
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .input-collapse-container .cell-collapse-preview {
|
|
724
|
+
line-height: ${collapsedIndicatorHeight}px;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .input-collapse-container .cell-collapse-preview .monaco-tokenized-source {
|
|
728
|
+
max-height: ${collapsedIndicatorHeight}px;
|
|
729
|
+
}
|
|
730
|
+
`);
|
|
731
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar { height: ${bottomToolbarHeight}px }`);
|
|
732
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container .monaco-toolbar { height: ${bottomToolbarHeight}px }`);
|
|
733
|
+
styleSheets.push(`.monaco-workbench .notebookOverlay.cell-title-toolbar-right > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
|
|
734
|
+
right: ${cellRightMargin + 26}px;
|
|
735
|
+
}
|
|
736
|
+
.monaco-workbench .notebookOverlay.cell-title-toolbar-left > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
|
|
737
|
+
left: ${getCellEditorContainerLeftMargin + 16}px;
|
|
738
|
+
}
|
|
739
|
+
.monaco-workbench .notebookOverlay.cell-title-toolbar-hidden > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
|
|
740
|
+
display: none;
|
|
741
|
+
}`);
|
|
742
|
+
styleSheets.push(`
|
|
743
|
+
.monaco-workbench .notebookOverlay .output > div.foreground.output-inner-container {
|
|
744
|
+
padding: ${OutputInnerContainerTopPadding}px 8px;
|
|
745
|
+
}
|
|
746
|
+
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .output-collapse-container {
|
|
747
|
+
padding: ${OutputInnerContainerTopPadding}px 8px;
|
|
748
|
+
}
|
|
749
|
+
`);
|
|
750
|
+
styleSheets.push(`
|
|
751
|
+
.monaco-workbench .notebookOverlay .cell-chat-part {
|
|
752
|
+
margin: 0 ${cellRightMargin}px 6px 4px;
|
|
753
|
+
}
|
|
754
|
+
`);
|
|
755
|
+
this._styleElement.textContent = styleSheets.join('\n');
|
|
756
|
+
}
|
|
757
|
+
_createCellList() {
|
|
758
|
+
this._body.classList.add('cell-list-container');
|
|
759
|
+
this._dndController = this._register(( new CellDragAndDropController(this, this._body)));
|
|
760
|
+
const getScopedContextKeyService = (container) => this._list.contextKeyService.createScoped(container);
|
|
761
|
+
this._editorPool = this._register(this.instantiationService.createInstance(NotebookCellEditorPool, this, getScopedContextKeyService));
|
|
762
|
+
const renderers = [
|
|
763
|
+
this.instantiationService.createInstance(CodeCellRenderer, this, this._renderedEditors, this._editorPool, this._dndController, getScopedContextKeyService),
|
|
764
|
+
this.instantiationService.createInstance(MarkupCellRenderer, this, this._dndController, this._renderedEditors, getScopedContextKeyService),
|
|
765
|
+
];
|
|
766
|
+
renderers.forEach(renderer => {
|
|
767
|
+
this._register(renderer);
|
|
768
|
+
});
|
|
769
|
+
this._listDelegate = this.instantiationService.createInstance(NotebookCellListDelegate, getWindow(this.getDomNode()));
|
|
770
|
+
this._register(this._listDelegate);
|
|
771
|
+
const accessibilityProvider = this.instantiationService.createInstance(NotebookAccessibilityProvider, () => this.viewModel, this.isReplHistory);
|
|
772
|
+
this._register(accessibilityProvider);
|
|
773
|
+
this._list = this.instantiationService.createInstance(NotebookCellList, 'NotebookCellList', this._body, this._viewContext.notebookOptions, this._listDelegate, renderers, this.scopedContextKeyService, {
|
|
774
|
+
setRowLineHeight: false,
|
|
775
|
+
setRowHeight: false,
|
|
776
|
+
supportDynamicHeights: true,
|
|
777
|
+
horizontalScrolling: false,
|
|
778
|
+
keyboardSupport: false,
|
|
779
|
+
mouseSupport: true,
|
|
780
|
+
multipleSelectionSupport: true,
|
|
781
|
+
selectionNavigation: true,
|
|
782
|
+
typeNavigationEnabled: true,
|
|
783
|
+
paddingTop: 0,
|
|
784
|
+
paddingBottom: 0,
|
|
785
|
+
transformOptimization: false,
|
|
786
|
+
initialSize: this._dimension,
|
|
787
|
+
styleController: (_suffix) => { return this._list; },
|
|
788
|
+
overrideStyles: {
|
|
789
|
+
listBackground: notebookEditorBackground,
|
|
790
|
+
listActiveSelectionBackground: notebookEditorBackground,
|
|
791
|
+
listActiveSelectionForeground: foreground,
|
|
792
|
+
listFocusAndSelectionBackground: notebookEditorBackground,
|
|
793
|
+
listFocusAndSelectionForeground: foreground,
|
|
794
|
+
listFocusBackground: notebookEditorBackground,
|
|
795
|
+
listFocusForeground: foreground,
|
|
796
|
+
listHoverForeground: foreground,
|
|
797
|
+
listHoverBackground: notebookEditorBackground,
|
|
798
|
+
listHoverOutline: focusBorder,
|
|
799
|
+
listFocusOutline: focusBorder,
|
|
800
|
+
listInactiveSelectionBackground: notebookEditorBackground,
|
|
801
|
+
listInactiveSelectionForeground: foreground,
|
|
802
|
+
listInactiveFocusBackground: notebookEditorBackground,
|
|
803
|
+
listInactiveFocusOutline: notebookEditorBackground,
|
|
804
|
+
},
|
|
805
|
+
accessibilityProvider
|
|
806
|
+
});
|
|
807
|
+
this._cellLayoutManager = ( new NotebookCellLayoutManager(this, this._list, this.logService));
|
|
808
|
+
this._dndController.setList(this._list);
|
|
809
|
+
this._register(this._list);
|
|
810
|
+
this._listViewInfoAccessor = ( new ListViewInfoAccessor(this._list));
|
|
811
|
+
this._register(this._listViewInfoAccessor);
|
|
812
|
+
this._register(combinedDisposable(...renderers));
|
|
813
|
+
this._listTopCellToolbar = this._register(this.instantiationService.createInstance(ListTopCellToolbar, this, this.notebookOptions));
|
|
814
|
+
this._webviewTransparentCover = append(this._list.rowsContainer, $('.webview-cover'));
|
|
815
|
+
this._webviewTransparentCover.style.display = 'none';
|
|
816
|
+
this._register(addStandardDisposableGenericMouseDownListener(this._overlayContainer, (e) => {
|
|
817
|
+
if (e.target.classList.contains('slider') && this._webviewTransparentCover) {
|
|
818
|
+
this._webviewTransparentCover.style.display = 'block';
|
|
819
|
+
}
|
|
820
|
+
}));
|
|
821
|
+
this._register(addStandardDisposableGenericMouseUpListener(this._overlayContainer, () => {
|
|
822
|
+
if (this._webviewTransparentCover) {
|
|
823
|
+
this._webviewTransparentCover.style.display = 'none';
|
|
824
|
+
}
|
|
825
|
+
}));
|
|
826
|
+
this._register(this._list.onMouseDown(e => {
|
|
827
|
+
if (e.element) {
|
|
828
|
+
this._onMouseDown.fire({ event: e.browserEvent, target: e.element });
|
|
829
|
+
}
|
|
830
|
+
}));
|
|
831
|
+
this._register(this._list.onMouseUp(e => {
|
|
832
|
+
if (e.element) {
|
|
833
|
+
this._onMouseUp.fire({ event: e.browserEvent, target: e.element });
|
|
834
|
+
}
|
|
835
|
+
}));
|
|
836
|
+
this._register(this._list.onDidChangeFocus(_e => {
|
|
837
|
+
this._onDidChangeActiveEditor.fire(this);
|
|
838
|
+
this._onDidChangeActiveCell.fire();
|
|
839
|
+
this._onDidChangeFocus.fire();
|
|
840
|
+
this._cursorNavMode.set(false);
|
|
841
|
+
}));
|
|
842
|
+
this._register(this._list.onContextMenu(e => {
|
|
843
|
+
this.showListContextMenu(e);
|
|
844
|
+
}));
|
|
845
|
+
this._register(this._list.onDidChangeVisibleRanges(() => {
|
|
846
|
+
this._onDidChangeVisibleRanges.fire();
|
|
847
|
+
}));
|
|
848
|
+
this._register(this._list.onDidScroll((e) => {
|
|
849
|
+
if (e.scrollTop !== e.oldScrollTop) {
|
|
850
|
+
this._onDidScroll.fire();
|
|
851
|
+
this.clearActiveCellWidgets();
|
|
852
|
+
}
|
|
853
|
+
if (e.scrollTop === e.oldScrollTop && e.scrollHeightChanged) {
|
|
854
|
+
this._onDidChangeLayout.fire();
|
|
855
|
+
}
|
|
856
|
+
}));
|
|
857
|
+
this._focusTracker = this._register(trackFocus(this.getDomNode()));
|
|
858
|
+
this._register(this._focusTracker.onDidBlur(() => {
|
|
859
|
+
this._editorFocus.set(false);
|
|
860
|
+
this.viewModel?.setEditorFocus(false);
|
|
861
|
+
this._onDidBlurEmitter.fire();
|
|
862
|
+
}));
|
|
863
|
+
this._register(this._focusTracker.onDidFocus(() => {
|
|
864
|
+
this._editorFocus.set(true);
|
|
865
|
+
this.viewModel?.setEditorFocus(true);
|
|
866
|
+
this._onDidFocusEmitter.fire();
|
|
867
|
+
}));
|
|
868
|
+
this._registerNotebookActionsToolbar();
|
|
869
|
+
this._registerNotebookStickyScroll();
|
|
870
|
+
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
871
|
+
if (e.affectsConfiguration(accessibilityProvider.verbositySettingId)) {
|
|
872
|
+
this._list.ariaLabel = accessibilityProvider?.getWidgetAriaLabel();
|
|
873
|
+
}
|
|
874
|
+
}));
|
|
875
|
+
}
|
|
876
|
+
showListContextMenu(e) {
|
|
877
|
+
this.contextMenuService.showContextMenu({
|
|
878
|
+
menuId: MenuId.NotebookCellTitle,
|
|
879
|
+
menuActionOptions: {
|
|
880
|
+
shouldForwardArgs: true
|
|
881
|
+
},
|
|
882
|
+
contextKeyService: this.scopedContextKeyService,
|
|
883
|
+
getAnchor: () => e.anchor,
|
|
884
|
+
getActionsContext: () => {
|
|
885
|
+
return {
|
|
886
|
+
from: 'cellContainer'
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
_registerNotebookOverviewRuler() {
|
|
892
|
+
this._notebookOverviewRuler = this._register(this.instantiationService.createInstance(NotebookOverviewRuler, this, this._notebookOverviewRulerContainer));
|
|
893
|
+
}
|
|
894
|
+
_registerNotebookActionsToolbar() {
|
|
895
|
+
this._notebookTopToolbar = this._register(this.instantiationService.createInstance(NotebookEditorWorkbenchToolbar, this, this.scopedContextKeyService, this._notebookOptions, this._notebookTopToolbarContainer));
|
|
896
|
+
this._register(this._notebookTopToolbar.onDidChangeVisibility(() => {
|
|
897
|
+
if (this._dimension && this._isVisible) {
|
|
898
|
+
this.layout(this._dimension);
|
|
899
|
+
}
|
|
900
|
+
}));
|
|
901
|
+
}
|
|
902
|
+
_registerNotebookStickyScroll() {
|
|
903
|
+
this._notebookStickyScroll = this._register(this.instantiationService.createInstance(NotebookStickyScroll, this._notebookStickyScrollContainer, this, this._list, (sizeDelta) => {
|
|
904
|
+
if (this.isDisposed) {
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
if (this._dimension && this._isVisible) {
|
|
908
|
+
if (sizeDelta > 0) {
|
|
909
|
+
this.layout(this._dimension);
|
|
910
|
+
this.setScrollTop(this.scrollTop + sizeDelta);
|
|
911
|
+
}
|
|
912
|
+
else if (sizeDelta < 0) {
|
|
913
|
+
this.setScrollTop(this.scrollTop + sizeDelta);
|
|
914
|
+
this.layout(this._dimension);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
this._onDidScroll.fire();
|
|
918
|
+
}));
|
|
919
|
+
}
|
|
920
|
+
_updateOutputRenderers() {
|
|
921
|
+
if (!this.viewModel || !this._webview) {
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
this._webview.updateOutputRenderers();
|
|
925
|
+
this.viewModel.viewCells.forEach(cell => {
|
|
926
|
+
cell.outputsViewModels.forEach(output => {
|
|
927
|
+
if (output.pickedMimeType?.rendererId === RENDERER_NOT_AVAILABLE) {
|
|
928
|
+
output.resetRenderer();
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
getDomNode() {
|
|
934
|
+
return this._overlayContainer;
|
|
935
|
+
}
|
|
936
|
+
getOverflowContainerDomNode() {
|
|
937
|
+
return this._overflowContainer;
|
|
938
|
+
}
|
|
939
|
+
getInnerWebview() {
|
|
940
|
+
return this._webview?.webview;
|
|
941
|
+
}
|
|
942
|
+
setEditorProgressService(editorProgressService) {
|
|
943
|
+
this.editorProgressService = editorProgressService;
|
|
944
|
+
}
|
|
945
|
+
setParentContextKeyService(parentContextKeyService) {
|
|
946
|
+
this.scopedContextKeyService.updateParent(parentContextKeyService);
|
|
947
|
+
}
|
|
948
|
+
async setModel(textModel, viewState, perf, viewType) {
|
|
949
|
+
if (this.viewModel === undefined || !this.viewModel.equal(textModel)) {
|
|
950
|
+
const oldBottomToolbarDimensions = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
|
|
951
|
+
this._detachModel();
|
|
952
|
+
await this._attachModel(textModel, viewType ?? textModel.viewType, viewState, perf);
|
|
953
|
+
const newBottomToolbarDimensions = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
|
|
954
|
+
if (oldBottomToolbarDimensions.bottomToolbarGap !== newBottomToolbarDimensions.bottomToolbarGap
|
|
955
|
+
|| oldBottomToolbarDimensions.bottomToolbarHeight !== newBottomToolbarDimensions.bottomToolbarHeight) {
|
|
956
|
+
this._styleElement?.remove();
|
|
957
|
+
this._createLayoutStyles();
|
|
958
|
+
this._webview?.updateOptions({
|
|
959
|
+
...this.notebookOptions.computeWebviewOptions(),
|
|
960
|
+
fontFamily: this._generateFontFamily()
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
this.telemetryService.publicLog2('notebook/editorOpened', {
|
|
964
|
+
scheme: textModel.uri.scheme,
|
|
965
|
+
ext: extname(textModel.uri),
|
|
966
|
+
viewType: textModel.viewType,
|
|
967
|
+
isRepl: this.isReplHistory
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
else {
|
|
971
|
+
this.restoreListViewState(viewState);
|
|
972
|
+
}
|
|
973
|
+
this._restoreSelectedKernel(viewState);
|
|
974
|
+
this._loadKernelPreloads();
|
|
975
|
+
this._dndController?.clearGlobalDragState();
|
|
976
|
+
this._localStore.add(this._list.onDidChangeFocus(() => {
|
|
977
|
+
this.updateContextKeysOnFocusChange();
|
|
978
|
+
}));
|
|
979
|
+
this.updateContextKeysOnFocusChange();
|
|
980
|
+
this._backgroundMarkdownRendering();
|
|
981
|
+
}
|
|
982
|
+
_backgroundMarkdownRendering() {
|
|
983
|
+
if (this._backgroundMarkdownRenderRunning) {
|
|
984
|
+
return;
|
|
985
|
+
}
|
|
986
|
+
this._backgroundMarkdownRenderRunning = true;
|
|
987
|
+
runWhenWindowIdle(getWindow(this.getDomNode()), (deadline) => {
|
|
988
|
+
this._backgroundMarkdownRenderingWithDeadline(deadline);
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
_backgroundMarkdownRenderingWithDeadline(deadline) {
|
|
992
|
+
const endTime = Date.now() + deadline.timeRemaining();
|
|
993
|
+
const execute = () => {
|
|
994
|
+
try {
|
|
995
|
+
this._backgroundMarkdownRenderRunning = true;
|
|
996
|
+
if (this._isDisposed) {
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
if (!this.viewModel) {
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
const firstMarkupCell = this.viewModel.viewCells.find(cell => cell.cellKind === CellKind.Markup && !this._webview?.markupPreviewMapping.has(cell.id) && !this.cellIsHidden(cell));
|
|
1003
|
+
if (!firstMarkupCell) {
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
this.createMarkupPreview(firstMarkupCell);
|
|
1007
|
+
}
|
|
1008
|
+
finally {
|
|
1009
|
+
this._backgroundMarkdownRenderRunning = false;
|
|
1010
|
+
}
|
|
1011
|
+
if (Date.now() < endTime) {
|
|
1012
|
+
setTimeout0(execute);
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
this._backgroundMarkdownRendering();
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
execute();
|
|
1019
|
+
}
|
|
1020
|
+
updateContextKeysOnFocusChange() {
|
|
1021
|
+
if (!this.viewModel) {
|
|
1022
|
+
return;
|
|
1023
|
+
}
|
|
1024
|
+
const focused = this._list.getFocusedElements()[0];
|
|
1025
|
+
if (focused) {
|
|
1026
|
+
if (!this._cellContextKeyManager) {
|
|
1027
|
+
this._cellContextKeyManager = this._localStore.add(this.instantiationService.createInstance(CellContextKeyManager, this, focused));
|
|
1028
|
+
}
|
|
1029
|
+
this._cellContextKeyManager.updateForElement(focused);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
async setOptions(options) {
|
|
1033
|
+
if (options?.isReadOnly !== undefined) {
|
|
1034
|
+
this._readOnly = options?.isReadOnly;
|
|
1035
|
+
}
|
|
1036
|
+
if (!this.viewModel) {
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
this.viewModel.updateOptions({ isReadOnly: this._readOnly });
|
|
1040
|
+
this.notebookOptions.updateOptions(this._readOnly);
|
|
1041
|
+
const cellOptions = options?.cellOptions ?? this._parseIndexedCellOptions(options);
|
|
1042
|
+
if (cellOptions) {
|
|
1043
|
+
const cell = this.viewModel.viewCells.find(cell => ( cell.uri.toString()) === ( cellOptions.resource.toString()));
|
|
1044
|
+
if (cell) {
|
|
1045
|
+
this.focusElement(cell);
|
|
1046
|
+
const selection = cellOptions.options?.selection;
|
|
1047
|
+
if (selection) {
|
|
1048
|
+
cell.updateEditState(CellEditState.Editing, 'setOptions');
|
|
1049
|
+
cell.focusMode = CellFocusMode.Editor;
|
|
1050
|
+
await this.revealRangeInCenterIfOutsideViewportAsync(cell, ( new Range(
|
|
1051
|
+
selection.startLineNumber,
|
|
1052
|
+
selection.startColumn,
|
|
1053
|
+
selection.endLineNumber || selection.startLineNumber,
|
|
1054
|
+
selection.endColumn || selection.startColumn
|
|
1055
|
+
)));
|
|
1056
|
+
}
|
|
1057
|
+
else {
|
|
1058
|
+
this._list.revealCell(cell, options?.cellRevealType ?? CellRevealType.CenterIfOutsideViewport);
|
|
1059
|
+
}
|
|
1060
|
+
const editor = this._renderedEditors.get(cell);
|
|
1061
|
+
if (editor) {
|
|
1062
|
+
if (cellOptions.options?.selection) {
|
|
1063
|
+
const { selection } = cellOptions.options;
|
|
1064
|
+
const editorSelection = ( new Range(
|
|
1065
|
+
selection.startLineNumber,
|
|
1066
|
+
selection.startColumn,
|
|
1067
|
+
selection.endLineNumber || selection.startLineNumber,
|
|
1068
|
+
selection.endColumn || selection.startColumn
|
|
1069
|
+
));
|
|
1070
|
+
editor.setSelection(editorSelection);
|
|
1071
|
+
editor.revealPositionInCenterIfOutsideViewport({
|
|
1072
|
+
lineNumber: selection.startLineNumber,
|
|
1073
|
+
column: selection.startColumn
|
|
1074
|
+
});
|
|
1075
|
+
await this.revealRangeInCenterIfOutsideViewportAsync(cell, editorSelection);
|
|
1076
|
+
}
|
|
1077
|
+
if (!cellOptions.options?.preserveFocus) {
|
|
1078
|
+
editor.focus();
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
if (options?.cellSelections) {
|
|
1084
|
+
const focusCellIndex = options.cellSelections[0].start;
|
|
1085
|
+
const focusedCell = this.viewModel.cellAt(focusCellIndex);
|
|
1086
|
+
if (focusedCell) {
|
|
1087
|
+
this.viewModel.updateSelectionsState({
|
|
1088
|
+
kind: SelectionStateType.Index,
|
|
1089
|
+
focus: { start: focusCellIndex, end: focusCellIndex + 1 },
|
|
1090
|
+
selections: options.cellSelections
|
|
1091
|
+
});
|
|
1092
|
+
this.revealInCenterIfOutsideViewport(focusedCell);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
this._updateForOptions();
|
|
1096
|
+
this._onDidChangeOptions.fire();
|
|
1097
|
+
}
|
|
1098
|
+
_parseIndexedCellOptions(options) {
|
|
1099
|
+
if (options?.indexedCellOptions) {
|
|
1100
|
+
const cell = this.cellAt(options.indexedCellOptions.index);
|
|
1101
|
+
if (cell) {
|
|
1102
|
+
return {
|
|
1103
|
+
resource: cell.uri,
|
|
1104
|
+
options: {
|
|
1105
|
+
selection: options.indexedCellOptions.selection,
|
|
1106
|
+
preserveFocus: false
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
return undefined;
|
|
1112
|
+
}
|
|
1113
|
+
_detachModel() {
|
|
1114
|
+
this._localStore.clear();
|
|
1115
|
+
dispose(this._localCellStateListeners);
|
|
1116
|
+
this._list.detachViewModel();
|
|
1117
|
+
this.viewModel?.dispose();
|
|
1118
|
+
this.viewModel = undefined;
|
|
1119
|
+
this._webview?.dispose();
|
|
1120
|
+
this._webview?.element.remove();
|
|
1121
|
+
this._webview = null;
|
|
1122
|
+
this._list.clear();
|
|
1123
|
+
}
|
|
1124
|
+
_updateForOptions() {
|
|
1125
|
+
if (!this.viewModel) {
|
|
1126
|
+
return;
|
|
1127
|
+
}
|
|
1128
|
+
this._editorEditable.set(!this.viewModel.options.isReadOnly);
|
|
1129
|
+
this._overflowContainer.classList.toggle('notebook-editor-editable', !this.viewModel.options.isReadOnly);
|
|
1130
|
+
this.getDomNode().classList.toggle('notebook-editor-editable', !this.viewModel.options.isReadOnly);
|
|
1131
|
+
}
|
|
1132
|
+
async _resolveWebview() {
|
|
1133
|
+
if (!this.textModel) {
|
|
1134
|
+
return null;
|
|
1135
|
+
}
|
|
1136
|
+
if (this._webviewResolvePromise) {
|
|
1137
|
+
return this._webviewResolvePromise;
|
|
1138
|
+
}
|
|
1139
|
+
if (!this._webview) {
|
|
1140
|
+
this._ensureWebview(this.getId(), this.textModel.viewType, this.textModel.uri);
|
|
1141
|
+
}
|
|
1142
|
+
this._webviewResolvePromise = (async () => {
|
|
1143
|
+
if (!this._webview) {
|
|
1144
|
+
throw ( new Error('Notebook output webview object is not created successfully.'));
|
|
1145
|
+
}
|
|
1146
|
+
await this._webview.createWebview(this.creationOptions.codeWindow ?? mainWindow);
|
|
1147
|
+
if (!this._webview.webview) {
|
|
1148
|
+
throw ( new Error('Notebook output webview element was not created successfully.'));
|
|
1149
|
+
}
|
|
1150
|
+
this._localStore.add(this._webview.webview.onDidBlur(() => {
|
|
1151
|
+
this._outputFocus.set(false);
|
|
1152
|
+
this._webviewFocused = false;
|
|
1153
|
+
this.updateEditorFocus();
|
|
1154
|
+
this.updateCellFocusMode();
|
|
1155
|
+
}));
|
|
1156
|
+
this._localStore.add(this._webview.webview.onDidFocus(() => {
|
|
1157
|
+
this._outputFocus.set(true);
|
|
1158
|
+
this.updateEditorFocus();
|
|
1159
|
+
this._webviewFocused = true;
|
|
1160
|
+
}));
|
|
1161
|
+
this._localStore.add(this._webview.onMessage(e => {
|
|
1162
|
+
this._onDidReceiveMessage.fire(e);
|
|
1163
|
+
}));
|
|
1164
|
+
return this._webview;
|
|
1165
|
+
})();
|
|
1166
|
+
return this._webviewResolvePromise;
|
|
1167
|
+
}
|
|
1168
|
+
_ensureWebview(id, viewType, resource) {
|
|
1169
|
+
if (this._webview) {
|
|
1170
|
+
return;
|
|
1171
|
+
}
|
|
1172
|
+
const that = this;
|
|
1173
|
+
this._webview = this.instantiationService.createInstance(BackLayerWebView, {
|
|
1174
|
+
get creationOptions() { return that.creationOptions; },
|
|
1175
|
+
setScrollTop(scrollTop) { that._list.scrollTop = scrollTop; },
|
|
1176
|
+
triggerScroll(event) { that._list.triggerScrollFromMouseWheelEvent(event); },
|
|
1177
|
+
getCellByInfo: that.getCellByInfo.bind(that),
|
|
1178
|
+
getCellById: that._getCellById.bind(that),
|
|
1179
|
+
toggleNotebookCellSelection: that._toggleNotebookCellSelection.bind(that),
|
|
1180
|
+
focusNotebookCell: that.focusNotebookCell.bind(that),
|
|
1181
|
+
focusNextNotebookCell: that.focusNextNotebookCell.bind(that),
|
|
1182
|
+
updateOutputHeight: that._updateOutputHeight.bind(that),
|
|
1183
|
+
scheduleOutputHeightAck: that._scheduleOutputHeightAck.bind(that),
|
|
1184
|
+
updateMarkupCellHeight: that._updateMarkupCellHeight.bind(that),
|
|
1185
|
+
setMarkupCellEditState: that._setMarkupCellEditState.bind(that),
|
|
1186
|
+
didStartDragMarkupCell: that._didStartDragMarkupCell.bind(that),
|
|
1187
|
+
didDragMarkupCell: that._didDragMarkupCell.bind(that),
|
|
1188
|
+
didDropMarkupCell: that._didDropMarkupCell.bind(that),
|
|
1189
|
+
didEndDragMarkupCell: that._didEndDragMarkupCell.bind(that),
|
|
1190
|
+
didResizeOutput: that._didResizeOutput.bind(that),
|
|
1191
|
+
updatePerformanceMetadata: that._updatePerformanceMetadata.bind(that),
|
|
1192
|
+
didFocusOutputInputChange: that._didFocusOutputInputChange.bind(that),
|
|
1193
|
+
}, id, viewType, resource, {
|
|
1194
|
+
...this._notebookOptions.computeWebviewOptions(),
|
|
1195
|
+
fontFamily: this._generateFontFamily()
|
|
1196
|
+
}, this.notebookRendererMessaging.getScoped(this._uuid));
|
|
1197
|
+
this._webview.element.style.width = '100%';
|
|
1198
|
+
this._list.attachWebview(this._webview.element);
|
|
1199
|
+
}
|
|
1200
|
+
async _attachModel(textModel, viewType, viewState, perf) {
|
|
1201
|
+
this._ensureWebview(this.getId(), textModel.viewType, textModel.uri);
|
|
1202
|
+
this.viewModel = this.instantiationService.createInstance(NotebookViewModel, viewType, textModel, this._viewContext, this.getLayoutInfo(), { isReadOnly: this._readOnly });
|
|
1203
|
+
this._viewContext.eventDispatcher.emit([( new NotebookLayoutChangedEvent({ width: true, fontInfo: true }, this.getLayoutInfo()))]);
|
|
1204
|
+
this.notebookOptions.updateOptions(this._readOnly);
|
|
1205
|
+
this._updateForOptions();
|
|
1206
|
+
this._updateForNotebookConfiguration();
|
|
1207
|
+
{
|
|
1208
|
+
this.viewModel.restoreEditorViewState(viewState);
|
|
1209
|
+
const contributionsState = viewState?.contributionsState || {};
|
|
1210
|
+
for (const [id, contribution] of this._contributions) {
|
|
1211
|
+
if (typeof contribution.restoreViewState === 'function') {
|
|
1212
|
+
contribution.restoreViewState(contributionsState[id]);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
this._localStore.add(this.viewModel.onDidChangeViewCells(e => {
|
|
1217
|
+
this._onDidChangeViewCells.fire(e);
|
|
1218
|
+
}));
|
|
1219
|
+
this._localStore.add(this.viewModel.onDidChangeSelection(() => {
|
|
1220
|
+
this._onDidChangeSelection.fire();
|
|
1221
|
+
this.updateSelectedMarkdownPreviews();
|
|
1222
|
+
}));
|
|
1223
|
+
this._localStore.add(this._list.onWillScroll(e => {
|
|
1224
|
+
if (this._webview?.isResolved()) {
|
|
1225
|
+
this._webviewTransparentCover.style.transform = `translateY(${e.scrollTop})`;
|
|
1226
|
+
}
|
|
1227
|
+
}));
|
|
1228
|
+
let hasPendingChangeContentHeight = false;
|
|
1229
|
+
this._localStore.add(this._list.onDidChangeContentHeight(() => {
|
|
1230
|
+
if (hasPendingChangeContentHeight) {
|
|
1231
|
+
return;
|
|
1232
|
+
}
|
|
1233
|
+
hasPendingChangeContentHeight = true;
|
|
1234
|
+
this._localStore.add(scheduleAtNextAnimationFrame(getWindow(this.getDomNode()), () => {
|
|
1235
|
+
hasPendingChangeContentHeight = false;
|
|
1236
|
+
this._updateScrollHeight();
|
|
1237
|
+
}, 100));
|
|
1238
|
+
}));
|
|
1239
|
+
this._localStore.add(this._list.onDidRemoveOutputs(outputs => {
|
|
1240
|
+
outputs.forEach(output => this.removeInset(output));
|
|
1241
|
+
}));
|
|
1242
|
+
this._localStore.add(this._list.onDidHideOutputs(outputs => {
|
|
1243
|
+
outputs.forEach(output => this.hideInset(output));
|
|
1244
|
+
}));
|
|
1245
|
+
this._localStore.add(this._list.onDidRemoveCellsFromView(cells => {
|
|
1246
|
+
const hiddenCells = [];
|
|
1247
|
+
const deletedCells = [];
|
|
1248
|
+
for (const cell of cells) {
|
|
1249
|
+
if (cell.cellKind === CellKind.Markup) {
|
|
1250
|
+
const mdCell = cell;
|
|
1251
|
+
if (this.viewModel?.viewCells.find(cell => cell.handle === mdCell.handle)) {
|
|
1252
|
+
hiddenCells.push(mdCell);
|
|
1253
|
+
}
|
|
1254
|
+
else {
|
|
1255
|
+
deletedCells.push(mdCell);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
this.hideMarkupPreviews(hiddenCells);
|
|
1260
|
+
this.deleteMarkupPreviews(deletedCells);
|
|
1261
|
+
}));
|
|
1262
|
+
await this._warmupWithMarkdownRenderer(this.viewModel, viewState, perf);
|
|
1263
|
+
perf?.mark('customMarkdownLoaded');
|
|
1264
|
+
this._localCellStateListeners = ( this.viewModel.viewCells.map(cell => this._bindCellListener(cell)));
|
|
1265
|
+
this._lastCellWithEditorFocus = this.viewModel.viewCells.find(viewCell => this.getActiveCell() === viewCell && viewCell.focusMode === CellFocusMode.Editor) ?? null;
|
|
1266
|
+
this._localStore.add(this.viewModel.onDidChangeViewCells((e) => {
|
|
1267
|
+
if (this._isDisposed) {
|
|
1268
|
+
return;
|
|
1269
|
+
}
|
|
1270
|
+
[...e.splices].reverse().forEach(splice => {
|
|
1271
|
+
const [start, deleted, newCells] = splice;
|
|
1272
|
+
const deletedCells = this._localCellStateListeners.splice(start, deleted, ...( newCells.map(cell => this._bindCellListener(cell))));
|
|
1273
|
+
dispose(deletedCells);
|
|
1274
|
+
});
|
|
1275
|
+
if (( e.splices.some(s => ( s[2].some(cell => cell.cellKind === CellKind.Markup))))) {
|
|
1276
|
+
this._backgroundMarkdownRendering();
|
|
1277
|
+
}
|
|
1278
|
+
}));
|
|
1279
|
+
if (this._dimension) {
|
|
1280
|
+
this._list.layout(this.getBodyHeight(this._dimension.height), this._dimension.width);
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
this._list.layout();
|
|
1284
|
+
}
|
|
1285
|
+
this._dndController?.clearGlobalDragState();
|
|
1286
|
+
this.restoreListViewState(viewState);
|
|
1287
|
+
}
|
|
1288
|
+
_bindCellListener(cell) {
|
|
1289
|
+
const store = ( new DisposableStore());
|
|
1290
|
+
store.add(cell.onDidChangeLayout(e => {
|
|
1291
|
+
if (e.totalHeight || e.outerWidth) {
|
|
1292
|
+
this.layoutNotebookCell(cell, cell.layoutInfo.totalHeight, e.context);
|
|
1293
|
+
}
|
|
1294
|
+
}));
|
|
1295
|
+
if (cell.cellKind === CellKind.Code) {
|
|
1296
|
+
store.add(cell.onDidRemoveOutputs((outputs) => {
|
|
1297
|
+
outputs.forEach(output => this.removeInset(output));
|
|
1298
|
+
}));
|
|
1299
|
+
}
|
|
1300
|
+
store.add(cell.onDidChangeState(e => {
|
|
1301
|
+
if (e.inputCollapsedChanged && cell.isInputCollapsed && cell.cellKind === CellKind.Markup) {
|
|
1302
|
+
this.hideMarkupPreviews([cell]);
|
|
1303
|
+
}
|
|
1304
|
+
if (e.outputCollapsedChanged && cell.isOutputCollapsed && cell.cellKind === CellKind.Code) {
|
|
1305
|
+
cell.outputsViewModels.forEach(output => this.hideInset(output));
|
|
1306
|
+
}
|
|
1307
|
+
if (e.focusModeChanged) {
|
|
1308
|
+
this._validateCellFocusMode(cell);
|
|
1309
|
+
}
|
|
1310
|
+
}));
|
|
1311
|
+
store.add(cell.onCellDecorationsChanged(e => {
|
|
1312
|
+
e.added.forEach(options => {
|
|
1313
|
+
if (options.className) {
|
|
1314
|
+
this.deltaCellContainerClassNames(cell.id, [options.className], [], cell.cellKind);
|
|
1315
|
+
}
|
|
1316
|
+
if (options.outputClassName) {
|
|
1317
|
+
this.deltaCellContainerClassNames(cell.id, [options.outputClassName], [], cell.cellKind);
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
e.removed.forEach(options => {
|
|
1321
|
+
if (options.className) {
|
|
1322
|
+
this.deltaCellContainerClassNames(cell.id, [], [options.className], cell.cellKind);
|
|
1323
|
+
}
|
|
1324
|
+
if (options.outputClassName) {
|
|
1325
|
+
this.deltaCellContainerClassNames(cell.id, [], [options.outputClassName], cell.cellKind);
|
|
1326
|
+
}
|
|
1327
|
+
});
|
|
1328
|
+
}));
|
|
1329
|
+
return store;
|
|
1330
|
+
}
|
|
1331
|
+
_validateCellFocusMode(cell) {
|
|
1332
|
+
if (cell.focusMode !== CellFocusMode.Editor) {
|
|
1333
|
+
return;
|
|
1334
|
+
}
|
|
1335
|
+
if (this._lastCellWithEditorFocus && this._lastCellWithEditorFocus !== cell) {
|
|
1336
|
+
this._lastCellWithEditorFocus.focusMode = CellFocusMode.Container;
|
|
1337
|
+
}
|
|
1338
|
+
this._lastCellWithEditorFocus = cell;
|
|
1339
|
+
}
|
|
1340
|
+
async _warmupWithMarkdownRenderer(viewModel, viewState, perf) {
|
|
1341
|
+
this.logService.debug('NotebookEditorWidget', 'warmup ' + this.viewModel?.uri.toString());
|
|
1342
|
+
await this._resolveWebview();
|
|
1343
|
+
perf?.mark('webviewCommLoaded');
|
|
1344
|
+
this.logService.debug('NotebookEditorWidget', 'warmup - webview resolved');
|
|
1345
|
+
this._webview.element.style.visibility = 'hidden';
|
|
1346
|
+
await this._warmupViewportMarkdownCells(viewModel, viewState);
|
|
1347
|
+
this.logService.debug('NotebookEditorWidget', 'warmup - viewport warmed up');
|
|
1348
|
+
this._list.layout(0, 0);
|
|
1349
|
+
this._list.attachViewModel(viewModel);
|
|
1350
|
+
this._list.scrollTop = viewState?.scrollPosition?.top ?? 0;
|
|
1351
|
+
this._debug('finish initial viewport warmup and view state restore.');
|
|
1352
|
+
this._webview.element.style.visibility = 'visible';
|
|
1353
|
+
this.logService.debug('NotebookEditorWidget', 'warmup - list view model attached, set to visible');
|
|
1354
|
+
this._onDidAttachViewModel.fire();
|
|
1355
|
+
}
|
|
1356
|
+
async _warmupViewportMarkdownCells(viewModel, viewState) {
|
|
1357
|
+
if (viewState && viewState.cellTotalHeights) {
|
|
1358
|
+
const totalHeightCache = viewState.cellTotalHeights;
|
|
1359
|
+
const scrollTop = viewState.scrollPosition?.top ?? 0;
|
|
1360
|
+
const scrollBottom = scrollTop + Math.max(this._dimension?.height ?? 0, 1080);
|
|
1361
|
+
let offset = 0;
|
|
1362
|
+
const requests = [];
|
|
1363
|
+
for (let i = 0; i < viewModel.length; i++) {
|
|
1364
|
+
const cell = viewModel.cellAt(i);
|
|
1365
|
+
const cellHeight = totalHeightCache[i] ?? 0;
|
|
1366
|
+
if (offset + cellHeight < scrollTop) {
|
|
1367
|
+
offset += cellHeight;
|
|
1368
|
+
continue;
|
|
1369
|
+
}
|
|
1370
|
+
if (cell.cellKind === CellKind.Markup) {
|
|
1371
|
+
requests.push([cell, offset]);
|
|
1372
|
+
}
|
|
1373
|
+
offset += cellHeight;
|
|
1374
|
+
if (offset > scrollBottom) {
|
|
1375
|
+
break;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
await this._webview.initializeMarkup(( requests.map(([model, offset]) => this.createMarkupCellInitialization(model, offset))));
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
const initRequests = ( viewModel.viewCells
|
|
1382
|
+
.filter(cell => cell.cellKind === CellKind.Markup)
|
|
1383
|
+
.slice(0, 5)
|
|
1384
|
+
.map(cell => this.createMarkupCellInitialization(cell, -1e4)));
|
|
1385
|
+
await this._webview.initializeMarkup(initRequests);
|
|
1386
|
+
let offset = 0;
|
|
1387
|
+
const offsetUpdateRequests = [];
|
|
1388
|
+
const scrollBottom = Math.max(this._dimension?.height ?? 0, 1080);
|
|
1389
|
+
for (const cell of viewModel.viewCells) {
|
|
1390
|
+
if (cell.cellKind === CellKind.Markup) {
|
|
1391
|
+
offsetUpdateRequests.push({ id: cell.id, top: offset });
|
|
1392
|
+
}
|
|
1393
|
+
offset += cell.getHeight(this.getLayoutInfo().fontInfo.lineHeight);
|
|
1394
|
+
if (offset > scrollBottom) {
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
this._webview?.updateScrollTops([], offsetUpdateRequests);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
createMarkupCellInitialization(model, offset) {
|
|
1402
|
+
return ({
|
|
1403
|
+
mime: model.mime,
|
|
1404
|
+
cellId: model.id,
|
|
1405
|
+
cellHandle: model.handle,
|
|
1406
|
+
content: model.getText(),
|
|
1407
|
+
offset: offset,
|
|
1408
|
+
visible: false,
|
|
1409
|
+
metadata: model.metadata,
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
restoreListViewState(viewState) {
|
|
1413
|
+
if (!this.viewModel) {
|
|
1414
|
+
return;
|
|
1415
|
+
}
|
|
1416
|
+
if (viewState?.scrollPosition !== undefined) {
|
|
1417
|
+
this._list.scrollTop = viewState.scrollPosition.top;
|
|
1418
|
+
this._list.scrollLeft = viewState.scrollPosition.left;
|
|
1419
|
+
}
|
|
1420
|
+
else {
|
|
1421
|
+
this._list.scrollTop = 0;
|
|
1422
|
+
this._list.scrollLeft = 0;
|
|
1423
|
+
}
|
|
1424
|
+
const focusIdx = typeof viewState?.focus === 'number' ? viewState.focus : 0;
|
|
1425
|
+
if (focusIdx < this.viewModel.length) {
|
|
1426
|
+
const element = this.viewModel.cellAt(focusIdx);
|
|
1427
|
+
if (element) {
|
|
1428
|
+
this.viewModel?.updateSelectionsState({
|
|
1429
|
+
kind: SelectionStateType.Handle,
|
|
1430
|
+
primary: element.handle,
|
|
1431
|
+
selections: [element.handle]
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
else if (this._list.length > 0) {
|
|
1436
|
+
this.viewModel.updateSelectionsState({
|
|
1437
|
+
kind: SelectionStateType.Index,
|
|
1438
|
+
focus: { start: 0, end: 1 },
|
|
1439
|
+
selections: [{ start: 0, end: 1 }]
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
if (viewState?.editorFocused) {
|
|
1443
|
+
const cell = this.viewModel.cellAt(focusIdx);
|
|
1444
|
+
if (cell) {
|
|
1445
|
+
cell.focusMode = CellFocusMode.Editor;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
_restoreSelectedKernel(viewState) {
|
|
1450
|
+
if (viewState?.selectedKernelId && this.textModel) {
|
|
1451
|
+
const matching = this.notebookKernelService.getMatchingKernel(this.textModel);
|
|
1452
|
+
const kernel = matching.all.find(k => k.id === viewState.selectedKernelId);
|
|
1453
|
+
if (kernel && !matching.selected) {
|
|
1454
|
+
this.notebookKernelService.selectKernelForNotebook(kernel, this.textModel);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
getEditorViewState() {
|
|
1459
|
+
const state = this.viewModel?.getEditorViewState();
|
|
1460
|
+
if (!state) {
|
|
1461
|
+
return {
|
|
1462
|
+
editingCells: {},
|
|
1463
|
+
cellLineNumberStates: {},
|
|
1464
|
+
editorViewStates: {},
|
|
1465
|
+
collapsedInputCells: {},
|
|
1466
|
+
collapsedOutputCells: {},
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
if (this._list) {
|
|
1470
|
+
state.scrollPosition = { left: this._list.scrollLeft, top: this._list.scrollTop };
|
|
1471
|
+
const cellHeights = {};
|
|
1472
|
+
for (let i = 0; i < this.viewModel.length; i++) {
|
|
1473
|
+
const elm = this.viewModel.cellAt(i);
|
|
1474
|
+
cellHeights[i] = elm.layoutInfo.totalHeight;
|
|
1475
|
+
}
|
|
1476
|
+
state.cellTotalHeights = cellHeights;
|
|
1477
|
+
if (this.viewModel) {
|
|
1478
|
+
const focusRange = this.viewModel.getFocus();
|
|
1479
|
+
const element = this.viewModel.cellAt(focusRange.start);
|
|
1480
|
+
if (element) {
|
|
1481
|
+
const itemDOM = this._list.domElementOfElement(element);
|
|
1482
|
+
const editorFocused = element.getEditState() === CellEditState.Editing && !!(itemDOM && getActiveElement(itemDOM.ownerDocument) && itemDOM.contains(getActiveElement(itemDOM.ownerDocument)));
|
|
1483
|
+
state.editorFocused = editorFocused;
|
|
1484
|
+
state.focus = focusRange.start;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
const contributionsState = {};
|
|
1489
|
+
for (const [id, contribution] of this._contributions) {
|
|
1490
|
+
if (typeof contribution.saveViewState === 'function') {
|
|
1491
|
+
contributionsState[id] = contribution.saveViewState();
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
state.contributionsState = contributionsState;
|
|
1495
|
+
if (this.textModel?.uri.scheme === Schemas.untitled) {
|
|
1496
|
+
state.selectedKernelId = this.activeKernel?.id;
|
|
1497
|
+
}
|
|
1498
|
+
return state;
|
|
1499
|
+
}
|
|
1500
|
+
_allowScrollBeyondLastLine() {
|
|
1501
|
+
return this._scrollBeyondLastLine && !this.isReplHistory;
|
|
1502
|
+
}
|
|
1503
|
+
getBodyHeight(dimensionHeight) {
|
|
1504
|
+
return Math.max(dimensionHeight - (this._notebookTopToolbar?.useGlobalToolbar ? 26 : 0), 0);
|
|
1505
|
+
}
|
|
1506
|
+
layout(dimension, shadowElement, position) {
|
|
1507
|
+
if (!shadowElement && this._shadowElementViewInfo === null) {
|
|
1508
|
+
this._dimension = dimension;
|
|
1509
|
+
this._position = position;
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
if (dimension.width <= 0 || dimension.height <= 0) {
|
|
1513
|
+
this.onWillHide();
|
|
1514
|
+
return;
|
|
1515
|
+
}
|
|
1516
|
+
const whenContainerStylesLoaded = this.layoutService.whenContainerStylesLoaded(getWindow(this.getDomNode()));
|
|
1517
|
+
if (whenContainerStylesLoaded) {
|
|
1518
|
+
whenContainerStylesLoaded.then(() => this.layoutNotebook(dimension, shadowElement, position));
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1521
|
+
this.layoutNotebook(dimension, shadowElement, position);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
layoutNotebook(dimension, shadowElement, position) {
|
|
1525
|
+
if (shadowElement) {
|
|
1526
|
+
this.updateShadowElement(shadowElement, dimension, position);
|
|
1527
|
+
}
|
|
1528
|
+
if (this._shadowElementViewInfo && this._shadowElementViewInfo.width <= 0 && this._shadowElementViewInfo.height <= 0) {
|
|
1529
|
+
this.onWillHide();
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
this._dimension = dimension;
|
|
1533
|
+
this._position = position;
|
|
1534
|
+
const newBodyHeight = this.getBodyHeight(dimension.height) - this.getLayoutInfo().stickyHeight;
|
|
1535
|
+
size(this._body, dimension.width, newBodyHeight);
|
|
1536
|
+
const newCellListHeight = newBodyHeight;
|
|
1537
|
+
if (this._list.getRenderHeight() < newCellListHeight) {
|
|
1538
|
+
this._list.updateOptions({ paddingBottom: this._allowScrollBeyondLastLine() ? Math.max(0, (newCellListHeight - 50)) : 0, paddingTop: 0 });
|
|
1539
|
+
this._list.layout(newCellListHeight, dimension.width);
|
|
1540
|
+
}
|
|
1541
|
+
else {
|
|
1542
|
+
this._list.layout(newCellListHeight, dimension.width);
|
|
1543
|
+
this._list.updateOptions({ paddingBottom: this._allowScrollBeyondLastLine() ? Math.max(0, (newCellListHeight - 50)) : 0, paddingTop: 0 });
|
|
1544
|
+
}
|
|
1545
|
+
this._overlayContainer.inert = false;
|
|
1546
|
+
this._overlayContainer.style.visibility = 'visible';
|
|
1547
|
+
this._overlayContainer.style.display = 'block';
|
|
1548
|
+
this._overlayContainer.style.position = 'absolute';
|
|
1549
|
+
this._overlayContainer.style.overflow = 'hidden';
|
|
1550
|
+
this.layoutContainerOverShadowElement(dimension, position);
|
|
1551
|
+
if (this._webviewTransparentCover) {
|
|
1552
|
+
this._webviewTransparentCover.style.height = `${dimension.height}px`;
|
|
1553
|
+
this._webviewTransparentCover.style.width = `${dimension.width}px`;
|
|
1554
|
+
}
|
|
1555
|
+
this._notebookTopToolbar.layout(this._dimension);
|
|
1556
|
+
this._notebookOverviewRuler.layout();
|
|
1557
|
+
this._viewContext?.eventDispatcher.emit([( new NotebookLayoutChangedEvent({ width: true, fontInfo: true }, this.getLayoutInfo()))]);
|
|
1558
|
+
}
|
|
1559
|
+
updateShadowElement(shadowElement, dimension, position) {
|
|
1560
|
+
this._shadowElement = shadowElement;
|
|
1561
|
+
if (dimension && position) {
|
|
1562
|
+
this._shadowElementViewInfo = {
|
|
1563
|
+
height: dimension.height,
|
|
1564
|
+
width: dimension.width,
|
|
1565
|
+
top: position.top,
|
|
1566
|
+
left: position.left,
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
else {
|
|
1570
|
+
const containerRect = shadowElement.getBoundingClientRect();
|
|
1571
|
+
const elementContainerRect = this._overlayContainer.parentElement?.getBoundingClientRect();
|
|
1572
|
+
this._shadowElementViewInfo = {
|
|
1573
|
+
height: containerRect.height,
|
|
1574
|
+
width: containerRect.width,
|
|
1575
|
+
top: containerRect.top - (elementContainerRect?.top || 0),
|
|
1576
|
+
left: containerRect.left - (elementContainerRect?.left || 0)
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
layoutContainerOverShadowElement(dimension, position) {
|
|
1581
|
+
if (dimension && position) {
|
|
1582
|
+
this._overlayContainer.style.top = `${position.top}px`;
|
|
1583
|
+
this._overlayContainer.style.left = `${position.left}px`;
|
|
1584
|
+
this._overlayContainer.style.width = `${dimension.width}px`;
|
|
1585
|
+
this._overlayContainer.style.height = `${dimension.height}px`;
|
|
1586
|
+
return;
|
|
1587
|
+
}
|
|
1588
|
+
if (!this._shadowElementViewInfo) {
|
|
1589
|
+
return;
|
|
1590
|
+
}
|
|
1591
|
+
this._overlayContainer.style.top = `${this._shadowElementViewInfo.top}px`;
|
|
1592
|
+
this._overlayContainer.style.left = `${this._shadowElementViewInfo.left}px`;
|
|
1593
|
+
this._overlayContainer.style.width = `${dimension ? dimension.width : this._shadowElementViewInfo.width}px`;
|
|
1594
|
+
this._overlayContainer.style.height = `${dimension ? dimension.height : this._shadowElementViewInfo.height}px`;
|
|
1595
|
+
}
|
|
1596
|
+
focus() {
|
|
1597
|
+
this._isVisible = true;
|
|
1598
|
+
this._editorFocus.set(true);
|
|
1599
|
+
if (this._webviewFocused) {
|
|
1600
|
+
this._webview?.focusWebview();
|
|
1601
|
+
}
|
|
1602
|
+
else {
|
|
1603
|
+
if (this.viewModel) {
|
|
1604
|
+
const focusRange = this.viewModel.getFocus();
|
|
1605
|
+
const element = this.viewModel.cellAt(focusRange.start);
|
|
1606
|
+
if (!this.hasEditorFocus()) {
|
|
1607
|
+
this.focusContainer();
|
|
1608
|
+
this.updateEditorFocus();
|
|
1609
|
+
}
|
|
1610
|
+
if (element && element.focusMode === CellFocusMode.Editor) {
|
|
1611
|
+
element.updateEditState(CellEditState.Editing, 'editorWidget.focus');
|
|
1612
|
+
element.focusMode = CellFocusMode.Editor;
|
|
1613
|
+
this.focusEditor(element);
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
this._list.domFocus();
|
|
1618
|
+
}
|
|
1619
|
+
if (this._currentProgress) {
|
|
1620
|
+
this.showProgress();
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
onShow() {
|
|
1624
|
+
this._isVisible = true;
|
|
1625
|
+
}
|
|
1626
|
+
focusEditor(activeElement) {
|
|
1627
|
+
for (const [element, editor] of this._renderedEditors.entries()) {
|
|
1628
|
+
if (element === activeElement) {
|
|
1629
|
+
editor.focus();
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
focusContainer(clearSelection = false) {
|
|
1635
|
+
if (this._webviewFocused) {
|
|
1636
|
+
this._webview?.focusWebview();
|
|
1637
|
+
}
|
|
1638
|
+
else {
|
|
1639
|
+
this._list.focusContainer(clearSelection);
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
selectOutputContent(cell) {
|
|
1643
|
+
this._webview?.selectOutputContents(cell);
|
|
1644
|
+
}
|
|
1645
|
+
selectInputContents(cell) {
|
|
1646
|
+
this._webview?.selectInputContents(cell);
|
|
1647
|
+
}
|
|
1648
|
+
onWillHide() {
|
|
1649
|
+
this._isVisible = false;
|
|
1650
|
+
this._editorFocus.set(false);
|
|
1651
|
+
this._overlayContainer.inert = true;
|
|
1652
|
+
this._overlayContainer.style.visibility = 'hidden';
|
|
1653
|
+
this._overlayContainer.style.left = '-50000px';
|
|
1654
|
+
this._notebookTopToolbarContainer.style.display = 'none';
|
|
1655
|
+
this.clearActiveCellWidgets();
|
|
1656
|
+
}
|
|
1657
|
+
clearActiveCellWidgets() {
|
|
1658
|
+
this._renderedEditors.forEach((editor, cell) => {
|
|
1659
|
+
if (this.getActiveCell() === cell && editor) {
|
|
1660
|
+
SuggestController.get(editor)?.cancelSuggestWidget();
|
|
1661
|
+
DropIntoEditorController.get(editor)?.clearWidgets();
|
|
1662
|
+
CopyPasteController.get(editor)?.clearWidgets();
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
this._renderedEditors.forEach((editor, cell) => {
|
|
1666
|
+
const controller = InlineCompletionsController.get(editor);
|
|
1667
|
+
if (controller?.model.get()?.inlineEditState.get()) {
|
|
1668
|
+
editor.render(true);
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
editorHasDomFocus() {
|
|
1673
|
+
return isAncestorOfActiveElement(this.getDomNode());
|
|
1674
|
+
}
|
|
1675
|
+
updateEditorFocus() {
|
|
1676
|
+
this._focusTracker.refreshState();
|
|
1677
|
+
const focused = this.editorHasDomFocus();
|
|
1678
|
+
this._editorFocus.set(focused);
|
|
1679
|
+
this.viewModel?.setEditorFocus(focused);
|
|
1680
|
+
}
|
|
1681
|
+
updateCellFocusMode() {
|
|
1682
|
+
const activeCell = this.getActiveCell();
|
|
1683
|
+
if (activeCell?.focusMode === CellFocusMode.Output && !this._webviewFocused) {
|
|
1684
|
+
activeCell.focusMode = CellFocusMode.Container;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
hasEditorFocus() {
|
|
1688
|
+
this.updateEditorFocus();
|
|
1689
|
+
return this.editorHasDomFocus();
|
|
1690
|
+
}
|
|
1691
|
+
hasWebviewFocus() {
|
|
1692
|
+
return this._webviewFocused;
|
|
1693
|
+
}
|
|
1694
|
+
hasOutputTextSelection() {
|
|
1695
|
+
if (!this.hasEditorFocus()) {
|
|
1696
|
+
return false;
|
|
1697
|
+
}
|
|
1698
|
+
const windowSelection = getWindow(this.getDomNode()).getSelection();
|
|
1699
|
+
if (windowSelection?.rangeCount !== 1) {
|
|
1700
|
+
return false;
|
|
1701
|
+
}
|
|
1702
|
+
const activeSelection = windowSelection.getRangeAt(0);
|
|
1703
|
+
if (activeSelection.startContainer === activeSelection.endContainer && activeSelection.endOffset - activeSelection.startOffset === 0) {
|
|
1704
|
+
return false;
|
|
1705
|
+
}
|
|
1706
|
+
let container = activeSelection.commonAncestorContainer;
|
|
1707
|
+
if (!this._body.contains(container)) {
|
|
1708
|
+
return false;
|
|
1709
|
+
}
|
|
1710
|
+
while (container
|
|
1711
|
+
&&
|
|
1712
|
+
container !== this._body) {
|
|
1713
|
+
if (container.classList && container.classList.contains('output')) {
|
|
1714
|
+
return true;
|
|
1715
|
+
}
|
|
1716
|
+
container = container.parentNode;
|
|
1717
|
+
}
|
|
1718
|
+
return false;
|
|
1719
|
+
}
|
|
1720
|
+
_didFocusOutputInputChange(hasFocus) {
|
|
1721
|
+
this._outputInputFocus.set(hasFocus);
|
|
1722
|
+
}
|
|
1723
|
+
focusElement(cell) {
|
|
1724
|
+
this.viewModel?.updateSelectionsState({
|
|
1725
|
+
kind: SelectionStateType.Handle,
|
|
1726
|
+
primary: cell.handle,
|
|
1727
|
+
selections: [cell.handle]
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
get scrollTop() {
|
|
1731
|
+
return this._list.scrollTop;
|
|
1732
|
+
}
|
|
1733
|
+
get scrollBottom() {
|
|
1734
|
+
return this._list.scrollTop + this._list.getRenderHeight();
|
|
1735
|
+
}
|
|
1736
|
+
getAbsoluteTopOfElement(cell) {
|
|
1737
|
+
return this._list.getCellViewScrollTop(cell);
|
|
1738
|
+
}
|
|
1739
|
+
getAbsoluteBottomOfElement(cell) {
|
|
1740
|
+
return this._list.getCellViewScrollBottom(cell);
|
|
1741
|
+
}
|
|
1742
|
+
getHeightOfElement(cell) {
|
|
1743
|
+
return this._list.elementHeight(cell);
|
|
1744
|
+
}
|
|
1745
|
+
scrollToBottom() {
|
|
1746
|
+
this._list.scrollToBottom();
|
|
1747
|
+
}
|
|
1748
|
+
setScrollTop(scrollTop) {
|
|
1749
|
+
this._list.scrollTop = scrollTop;
|
|
1750
|
+
}
|
|
1751
|
+
revealCellRangeInView(range) {
|
|
1752
|
+
return this._list.revealCells(range);
|
|
1753
|
+
}
|
|
1754
|
+
revealInView(cell) {
|
|
1755
|
+
return this._list.revealCell(cell, CellRevealType.Default);
|
|
1756
|
+
}
|
|
1757
|
+
revealInViewAtTop(cell) {
|
|
1758
|
+
this._list.revealCell(cell, CellRevealType.Top);
|
|
1759
|
+
}
|
|
1760
|
+
revealInCenter(cell) {
|
|
1761
|
+
this._list.revealCell(cell, CellRevealType.Center);
|
|
1762
|
+
}
|
|
1763
|
+
async revealInCenterIfOutsideViewport(cell) {
|
|
1764
|
+
await this._list.revealCell(cell, CellRevealType.CenterIfOutsideViewport);
|
|
1765
|
+
}
|
|
1766
|
+
async revealFirstLineIfOutsideViewport(cell) {
|
|
1767
|
+
await this._list.revealCell(cell, CellRevealType.FirstLineIfOutsideViewport);
|
|
1768
|
+
}
|
|
1769
|
+
async revealLineInViewAsync(cell, line) {
|
|
1770
|
+
return this._list.revealRangeInCell(cell, ( new Range(line, 1, line, 1)), CellRevealRangeType.Default);
|
|
1771
|
+
}
|
|
1772
|
+
async revealLineInCenterAsync(cell, line) {
|
|
1773
|
+
return this._list.revealRangeInCell(cell, ( new Range(line, 1, line, 1)), CellRevealRangeType.Center);
|
|
1774
|
+
}
|
|
1775
|
+
async revealLineInCenterIfOutsideViewportAsync(cell, line) {
|
|
1776
|
+
return this._list.revealRangeInCell(cell, ( new Range(line, 1, line, 1)), CellRevealRangeType.CenterIfOutsideViewport);
|
|
1777
|
+
}
|
|
1778
|
+
async revealRangeInViewAsync(cell, range) {
|
|
1779
|
+
return this._list.revealRangeInCell(cell, range, CellRevealRangeType.Default);
|
|
1780
|
+
}
|
|
1781
|
+
async revealRangeInCenterAsync(cell, range) {
|
|
1782
|
+
return this._list.revealRangeInCell(cell, range, CellRevealRangeType.Center);
|
|
1783
|
+
}
|
|
1784
|
+
async revealRangeInCenterIfOutsideViewportAsync(cell, range) {
|
|
1785
|
+
return this._list.revealRangeInCell(cell, range, CellRevealRangeType.CenterIfOutsideViewport);
|
|
1786
|
+
}
|
|
1787
|
+
revealCellOffsetInCenter(cell, offset) {
|
|
1788
|
+
return this._list.revealCellOffsetInCenter(cell, offset);
|
|
1789
|
+
}
|
|
1790
|
+
revealOffsetInCenterIfOutsideViewport(offset) {
|
|
1791
|
+
return this._list.revealOffsetInCenterIfOutsideViewport(offset);
|
|
1792
|
+
}
|
|
1793
|
+
getViewIndexByModelIndex(index) {
|
|
1794
|
+
if (!this._listViewInfoAccessor) {
|
|
1795
|
+
return -1;
|
|
1796
|
+
}
|
|
1797
|
+
const cell = this.viewModel?.viewCells[index];
|
|
1798
|
+
if (!cell) {
|
|
1799
|
+
return -1;
|
|
1800
|
+
}
|
|
1801
|
+
return this._listViewInfoAccessor.getViewIndex(cell);
|
|
1802
|
+
}
|
|
1803
|
+
getViewHeight(cell) {
|
|
1804
|
+
if (!this._listViewInfoAccessor) {
|
|
1805
|
+
return -1;
|
|
1806
|
+
}
|
|
1807
|
+
return this._listViewInfoAccessor.getViewHeight(cell);
|
|
1808
|
+
}
|
|
1809
|
+
getCellRangeFromViewRange(startIndex, endIndex) {
|
|
1810
|
+
return this._listViewInfoAccessor.getCellRangeFromViewRange(startIndex, endIndex);
|
|
1811
|
+
}
|
|
1812
|
+
getCellsInRange(range) {
|
|
1813
|
+
return this._listViewInfoAccessor.getCellsInRange(range);
|
|
1814
|
+
}
|
|
1815
|
+
setCellEditorSelection(cell, range) {
|
|
1816
|
+
this._list.setCellEditorSelection(cell, range);
|
|
1817
|
+
}
|
|
1818
|
+
setHiddenAreas(_ranges) {
|
|
1819
|
+
return this._list.setHiddenAreas(_ranges, true);
|
|
1820
|
+
}
|
|
1821
|
+
getVisibleRangesPlusViewportAboveAndBelow() {
|
|
1822
|
+
return this._listViewInfoAccessor.getVisibleRangesPlusViewportAboveAndBelow();
|
|
1823
|
+
}
|
|
1824
|
+
deltaCellDecorations(oldDecorations, newDecorations) {
|
|
1825
|
+
const ret = this.viewModel?.deltaCellDecorations(oldDecorations, newDecorations) || [];
|
|
1826
|
+
this._onDidChangeDecorations.fire();
|
|
1827
|
+
return ret;
|
|
1828
|
+
}
|
|
1829
|
+
deltaCellContainerClassNames(cellId, added, removed, cellkind) {
|
|
1830
|
+
if (cellkind === CellKind.Markup) {
|
|
1831
|
+
this._webview?.deltaMarkupPreviewClassNames(cellId, added, removed);
|
|
1832
|
+
}
|
|
1833
|
+
else {
|
|
1834
|
+
this._webview?.deltaCellOutputContainerClassNames(cellId, added, removed);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
changeModelDecorations(callback) {
|
|
1838
|
+
return this.viewModel?.changeModelDecorations(callback) || null;
|
|
1839
|
+
}
|
|
1840
|
+
changeViewZones(callback) {
|
|
1841
|
+
this._list.changeViewZones(callback);
|
|
1842
|
+
this._onDidChangeLayout.fire();
|
|
1843
|
+
}
|
|
1844
|
+
getViewZoneLayoutInfo(id) {
|
|
1845
|
+
return this._list.getViewZoneLayoutInfo(id);
|
|
1846
|
+
}
|
|
1847
|
+
changeCellOverlays(callback) {
|
|
1848
|
+
this._list.changeCellOverlays(callback);
|
|
1849
|
+
}
|
|
1850
|
+
async _loadKernelPreloads() {
|
|
1851
|
+
if (!this.hasModel()) {
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1854
|
+
const { selected } = this.notebookKernelService.getMatchingKernel(this.textModel);
|
|
1855
|
+
if (!this._webview?.isResolved()) {
|
|
1856
|
+
await this._resolveWebview();
|
|
1857
|
+
}
|
|
1858
|
+
this._webview?.updateKernelPreloads(selected);
|
|
1859
|
+
}
|
|
1860
|
+
get activeKernel() {
|
|
1861
|
+
return this.textModel && this.notebookKernelService.getSelectedOrSuggestedKernel(this.textModel);
|
|
1862
|
+
}
|
|
1863
|
+
async cancelNotebookCells(cells) {
|
|
1864
|
+
if (!this.viewModel || !this.hasModel()) {
|
|
1865
|
+
return;
|
|
1866
|
+
}
|
|
1867
|
+
if (!cells) {
|
|
1868
|
+
cells = this.viewModel.viewCells;
|
|
1869
|
+
}
|
|
1870
|
+
return this.notebookExecutionService.cancelNotebookCellHandles(this.textModel, ( Array.from(cells).map(cell => cell.handle)));
|
|
1871
|
+
}
|
|
1872
|
+
async executeNotebookCells(cells) {
|
|
1873
|
+
if (!this.viewModel || !this.hasModel()) {
|
|
1874
|
+
this.logService.info('notebookEditorWidget', 'No NotebookViewModel, cannot execute cells');
|
|
1875
|
+
return;
|
|
1876
|
+
}
|
|
1877
|
+
if (!cells) {
|
|
1878
|
+
cells = this.viewModel.viewCells;
|
|
1879
|
+
}
|
|
1880
|
+
return this.notebookExecutionService.executeNotebookCells(this.textModel, ( Array.from(cells).map(c => c.model)), this.scopedContextKeyService);
|
|
1881
|
+
}
|
|
1882
|
+
async layoutNotebookCell(cell, height, context) {
|
|
1883
|
+
return this._cellLayoutManager?.layoutNotebookCell(cell, height);
|
|
1884
|
+
}
|
|
1885
|
+
getActiveCell() {
|
|
1886
|
+
const elements = this._list.getFocusedElements();
|
|
1887
|
+
if (elements && elements.length) {
|
|
1888
|
+
return elements[0];
|
|
1889
|
+
}
|
|
1890
|
+
return undefined;
|
|
1891
|
+
}
|
|
1892
|
+
_toggleNotebookCellSelection(selectedCell, selectFromPrevious) {
|
|
1893
|
+
const currentSelections = this._list.getSelectedElements();
|
|
1894
|
+
const isSelected = currentSelections.includes(selectedCell);
|
|
1895
|
+
const previousSelection = selectFromPrevious ? currentSelections[currentSelections.length - 1] ?? selectedCell : selectedCell;
|
|
1896
|
+
const selectedIndex = this._list.getViewIndex(selectedCell);
|
|
1897
|
+
const previousIndex = this._list.getViewIndex(previousSelection);
|
|
1898
|
+
const cellsInSelectionRange = this.getCellsInViewRange(selectedIndex, previousIndex);
|
|
1899
|
+
if (isSelected) {
|
|
1900
|
+
this._list.selectElements(currentSelections.filter(current => !cellsInSelectionRange.includes(current)));
|
|
1901
|
+
}
|
|
1902
|
+
else {
|
|
1903
|
+
this.focusElement(selectedCell);
|
|
1904
|
+
this._list.selectElements([...currentSelections.filter(current => !cellsInSelectionRange.includes(current)), ...cellsInSelectionRange]);
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
getCellsInViewRange(fromInclusive, toInclusive) {
|
|
1908
|
+
const selectedCellsInRange = [];
|
|
1909
|
+
for (let index = 0; index < this._list.length; ++index) {
|
|
1910
|
+
const cell = this._list.element(index);
|
|
1911
|
+
if (cell) {
|
|
1912
|
+
if ((index >= fromInclusive && index <= toInclusive) || (index >= toInclusive && index <= fromInclusive)) {
|
|
1913
|
+
selectedCellsInRange.push(cell);
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
return selectedCellsInRange;
|
|
1918
|
+
}
|
|
1919
|
+
async focusNotebookCell(cell, focusItem, options) {
|
|
1920
|
+
if (this._isDisposed) {
|
|
1921
|
+
return;
|
|
1922
|
+
}
|
|
1923
|
+
cell.focusedOutputId = undefined;
|
|
1924
|
+
if (focusItem === 'editor') {
|
|
1925
|
+
cell.isInputCollapsed = false;
|
|
1926
|
+
this.focusElement(cell);
|
|
1927
|
+
this._list.focusView();
|
|
1928
|
+
cell.updateEditState(CellEditState.Editing, 'focusNotebookCell');
|
|
1929
|
+
cell.focusMode = CellFocusMode.Editor;
|
|
1930
|
+
if (!options?.skipReveal) {
|
|
1931
|
+
if (typeof options?.focusEditorLine === 'number') {
|
|
1932
|
+
this._cursorNavMode.set(true);
|
|
1933
|
+
await this.revealLineInViewAsync(cell, options.focusEditorLine);
|
|
1934
|
+
const editor = this._renderedEditors.get(cell);
|
|
1935
|
+
const focusEditorLine = options.focusEditorLine;
|
|
1936
|
+
editor?.setSelection({
|
|
1937
|
+
startLineNumber: focusEditorLine,
|
|
1938
|
+
startColumn: 1,
|
|
1939
|
+
endLineNumber: focusEditorLine,
|
|
1940
|
+
endColumn: 1
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
else {
|
|
1944
|
+
const selectionsStartPosition = cell.getSelectionsStartPosition();
|
|
1945
|
+
if (selectionsStartPosition?.length) {
|
|
1946
|
+
const firstSelectionPosition = selectionsStartPosition[0];
|
|
1947
|
+
await this.revealRangeInViewAsync(cell, Range.fromPositions(firstSelectionPosition, firstSelectionPosition));
|
|
1948
|
+
}
|
|
1949
|
+
else {
|
|
1950
|
+
await this.revealInView(cell);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
else if (focusItem === 'output') {
|
|
1956
|
+
this.focusElement(cell);
|
|
1957
|
+
if (!this.hasEditorFocus()) {
|
|
1958
|
+
this._list.focusView();
|
|
1959
|
+
}
|
|
1960
|
+
if (!this._webview) {
|
|
1961
|
+
return;
|
|
1962
|
+
}
|
|
1963
|
+
const firstOutputId = cell.outputsViewModels.find(o => o.model.alternativeOutputId)?.model.alternativeOutputId;
|
|
1964
|
+
const focusElementId = options?.outputId ?? firstOutputId ?? cell.id;
|
|
1965
|
+
this._webview.focusOutput(focusElementId, options?.altOutputId, options?.outputWebviewFocused || this._webviewFocused);
|
|
1966
|
+
cell.updateEditState(CellEditState.Preview, 'focusNotebookCell');
|
|
1967
|
+
cell.focusMode = CellFocusMode.Output;
|
|
1968
|
+
cell.focusedOutputId = options?.outputId;
|
|
1969
|
+
this._outputFocus.set(true);
|
|
1970
|
+
if (!options?.skipReveal) {
|
|
1971
|
+
this.revealInCenterIfOutsideViewport(cell);
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
else {
|
|
1975
|
+
const itemDOM = this._list.domElementOfElement(cell);
|
|
1976
|
+
if (itemDOM && getActiveElement(itemDOM.ownerDocument) && itemDOM.contains(getActiveElement(itemDOM.ownerDocument))) {
|
|
1977
|
+
getActiveElement(itemDOM.ownerDocument).blur();
|
|
1978
|
+
}
|
|
1979
|
+
this._webview?.blurOutput();
|
|
1980
|
+
cell.updateEditState(CellEditState.Preview, 'focusNotebookCell');
|
|
1981
|
+
cell.focusMode = CellFocusMode.Container;
|
|
1982
|
+
this.focusElement(cell);
|
|
1983
|
+
if (!options?.skipReveal) {
|
|
1984
|
+
if (typeof options?.focusEditorLine === 'number') {
|
|
1985
|
+
this._cursorNavMode.set(true);
|
|
1986
|
+
await this.revealInView(cell);
|
|
1987
|
+
}
|
|
1988
|
+
else if (options?.revealBehavior === ScrollToRevealBehavior.firstLine) {
|
|
1989
|
+
await this.revealFirstLineIfOutsideViewport(cell);
|
|
1990
|
+
}
|
|
1991
|
+
else if (options?.revealBehavior === ScrollToRevealBehavior.fullCell) {
|
|
1992
|
+
await this.revealInView(cell);
|
|
1993
|
+
}
|
|
1994
|
+
else {
|
|
1995
|
+
await this.revealInCenterIfOutsideViewport(cell);
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
this._list.focusView();
|
|
1999
|
+
this.updateEditorFocus();
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
async focusNextNotebookCell(cell, focusItem) {
|
|
2003
|
+
const idx = this.viewModel?.getCellIndex(cell);
|
|
2004
|
+
if (typeof idx !== 'number') {
|
|
2005
|
+
return;
|
|
2006
|
+
}
|
|
2007
|
+
const newCell = this.viewModel?.cellAt(idx + 1);
|
|
2008
|
+
if (!newCell) {
|
|
2009
|
+
return;
|
|
2010
|
+
}
|
|
2011
|
+
await this.focusNotebookCell(newCell, focusItem);
|
|
2012
|
+
}
|
|
2013
|
+
async _warmupCell(viewCell) {
|
|
2014
|
+
if (viewCell.isOutputCollapsed) {
|
|
2015
|
+
return;
|
|
2016
|
+
}
|
|
2017
|
+
const outputs = viewCell.outputsViewModels;
|
|
2018
|
+
for (const output of outputs.slice(0, outputDisplayLimit)) {
|
|
2019
|
+
const [mimeTypes, pick] = output.resolveMimeTypes(this.textModel, undefined);
|
|
2020
|
+
if (!mimeTypes.find(mimeType => mimeType.isTrusted) || mimeTypes.length === 0) {
|
|
2021
|
+
continue;
|
|
2022
|
+
}
|
|
2023
|
+
const pickedMimeTypeRenderer = mimeTypes[pick];
|
|
2024
|
+
if (!pickedMimeTypeRenderer) {
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
const renderer = this._notebookService.getRendererInfo(pickedMimeTypeRenderer.rendererId);
|
|
2028
|
+
if (!renderer) {
|
|
2029
|
+
return;
|
|
2030
|
+
}
|
|
2031
|
+
const result = { type: RenderOutputType.Extension, renderer, source: output, mimeType: pickedMimeTypeRenderer.mimeType };
|
|
2032
|
+
const inset = this._webview?.insetMapping.get(result.source);
|
|
2033
|
+
if (!inset || !inset.initialized) {
|
|
2034
|
+
const p = ( new Promise(resolve => {
|
|
2035
|
+
this._register(Event.any(this.onDidRenderOutput, this.onDidRemoveOutput)(e => {
|
|
2036
|
+
if (e.model === result.source.model) {
|
|
2037
|
+
resolve();
|
|
2038
|
+
}
|
|
2039
|
+
}));
|
|
2040
|
+
}));
|
|
2041
|
+
this.createOutput(viewCell, result, 0, false);
|
|
2042
|
+
await p;
|
|
2043
|
+
}
|
|
2044
|
+
else {
|
|
2045
|
+
this.createOutput(viewCell, result, 0, false);
|
|
2046
|
+
}
|
|
2047
|
+
return;
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
async _warmupAll(includeOutput) {
|
|
2051
|
+
if (!this.hasModel() || !this.viewModel) {
|
|
2052
|
+
return;
|
|
2053
|
+
}
|
|
2054
|
+
const cells = this.viewModel.viewCells;
|
|
2055
|
+
const requests = [];
|
|
2056
|
+
for (let i = 0; i < cells.length; i++) {
|
|
2057
|
+
if (cells[i].cellKind === CellKind.Markup && !( this._webview.markupPreviewMapping.has(cells[i].id))) {
|
|
2058
|
+
requests.push(this.createMarkupPreview(cells[i]));
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
if (includeOutput && this._list) {
|
|
2062
|
+
for (let i = 0; i < this._list.length; i++) {
|
|
2063
|
+
const cell = this._list.element(i);
|
|
2064
|
+
if (cell?.cellKind === CellKind.Code) {
|
|
2065
|
+
requests.push(this._warmupCell(cell));
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
return Promise.all(requests);
|
|
2070
|
+
}
|
|
2071
|
+
async _warmupSelection(includeOutput, selectedCellRanges) {
|
|
2072
|
+
if (!this.hasModel() || !this.viewModel) {
|
|
2073
|
+
return;
|
|
2074
|
+
}
|
|
2075
|
+
const cells = this.viewModel.viewCells;
|
|
2076
|
+
const requests = [];
|
|
2077
|
+
for (const range of selectedCellRanges) {
|
|
2078
|
+
for (let i = range.start; i < range.end; i++) {
|
|
2079
|
+
if (cells[i].cellKind === CellKind.Markup && !( this._webview.markupPreviewMapping.has(cells[i].id))) {
|
|
2080
|
+
requests.push(this.createMarkupPreview(cells[i]));
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
if (includeOutput && this._list) {
|
|
2085
|
+
for (const range of selectedCellRanges) {
|
|
2086
|
+
for (let i = range.start; i < range.end; i++) {
|
|
2087
|
+
const cell = this._list.element(i);
|
|
2088
|
+
if (cell?.cellKind === CellKind.Code) {
|
|
2089
|
+
requests.push(this._warmupCell(cell));
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
return Promise.all(requests);
|
|
2095
|
+
}
|
|
2096
|
+
async find(query, options, token, skipWarmup = false, shouldGetSearchPreviewInfo = false, ownerID) {
|
|
2097
|
+
if (!this._notebookViewModel) {
|
|
2098
|
+
return [];
|
|
2099
|
+
}
|
|
2100
|
+
if (!ownerID) {
|
|
2101
|
+
ownerID = this.getId();
|
|
2102
|
+
}
|
|
2103
|
+
const findMatches = this._notebookViewModel.find(query, options).filter(match => match.length > 0);
|
|
2104
|
+
if ((!options.includeMarkupPreview && !options.includeOutput) || options.findScope?.findScopeType === NotebookFindScopeType.Text) {
|
|
2105
|
+
this._webview?.findStop(ownerID);
|
|
2106
|
+
return findMatches;
|
|
2107
|
+
}
|
|
2108
|
+
const matchMap = {};
|
|
2109
|
+
findMatches.forEach(match => {
|
|
2110
|
+
matchMap[match.cell.id] = match;
|
|
2111
|
+
});
|
|
2112
|
+
if (this._webview) {
|
|
2113
|
+
const start = Date.now();
|
|
2114
|
+
if (options.findScope && options.findScope.findScopeType === NotebookFindScopeType.Cells && options.findScope.selectedCellRanges) {
|
|
2115
|
+
await this._warmupSelection(!!options.includeOutput, options.findScope.selectedCellRanges);
|
|
2116
|
+
}
|
|
2117
|
+
else {
|
|
2118
|
+
await this._warmupAll(!!options.includeOutput);
|
|
2119
|
+
}
|
|
2120
|
+
const end = Date.now();
|
|
2121
|
+
this.logService.debug('Find', `Warmup time: ${end - start}ms`);
|
|
2122
|
+
if (token.isCancellationRequested) {
|
|
2123
|
+
return [];
|
|
2124
|
+
}
|
|
2125
|
+
let findIds = [];
|
|
2126
|
+
if (options.findScope && options.findScope.findScopeType === NotebookFindScopeType.Cells && options.findScope.selectedCellRanges) {
|
|
2127
|
+
const selectedIndexes = cellRangesToIndexes(options.findScope.selectedCellRanges);
|
|
2128
|
+
findIds = ( selectedIndexes.map(index => this._notebookViewModel?.viewCells[index].id ?? ''));
|
|
2129
|
+
}
|
|
2130
|
+
const webviewMatches = await this._webview.find(query, { caseSensitive: options.caseSensitive, wholeWord: options.wholeWord, includeMarkup: !!options.includeMarkupPreview, includeOutput: !!options.includeOutput, shouldGetSearchPreviewInfo, ownerID, findIds: findIds });
|
|
2131
|
+
if (token.isCancellationRequested) {
|
|
2132
|
+
return [];
|
|
2133
|
+
}
|
|
2134
|
+
webviewMatches.forEach(match => {
|
|
2135
|
+
const cell = this._notebookViewModel.viewCells.find(cell => cell.id === match.cellId);
|
|
2136
|
+
if (!cell) {
|
|
2137
|
+
return;
|
|
2138
|
+
}
|
|
2139
|
+
if (match.type === 'preview') {
|
|
2140
|
+
if (cell.getEditState() === CellEditState.Preview && !options.includeMarkupPreview) {
|
|
2141
|
+
return;
|
|
2142
|
+
}
|
|
2143
|
+
if (cell.getEditState() === CellEditState.Editing && options.includeMarkupInput) {
|
|
2144
|
+
return;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
else {
|
|
2148
|
+
if (!options.includeOutput) {
|
|
2149
|
+
return;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
const exisitingMatch = matchMap[match.cellId];
|
|
2153
|
+
if (exisitingMatch) {
|
|
2154
|
+
exisitingMatch.webviewMatches.push(match);
|
|
2155
|
+
}
|
|
2156
|
+
else {
|
|
2157
|
+
matchMap[match.cellId] = ( new CellFindMatchModel(
|
|
2158
|
+
this._notebookViewModel.viewCells.find(cell => cell.id === match.cellId),
|
|
2159
|
+
this._notebookViewModel.viewCells.findIndex(cell => cell.id === match.cellId),
|
|
2160
|
+
[],
|
|
2161
|
+
[match]
|
|
2162
|
+
));
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
const ret = [];
|
|
2167
|
+
this._notebookViewModel.viewCells.forEach((cell, index) => {
|
|
2168
|
+
if (matchMap[cell.id]) {
|
|
2169
|
+
ret.push(( new CellFindMatchModel(
|
|
2170
|
+
cell,
|
|
2171
|
+
index,
|
|
2172
|
+
matchMap[cell.id].contentMatches,
|
|
2173
|
+
matchMap[cell.id].webviewMatches
|
|
2174
|
+
)));
|
|
2175
|
+
}
|
|
2176
|
+
});
|
|
2177
|
+
return ret;
|
|
2178
|
+
}
|
|
2179
|
+
async findHighlightCurrent(matchIndex, ownerID) {
|
|
2180
|
+
if (!this._webview) {
|
|
2181
|
+
return 0;
|
|
2182
|
+
}
|
|
2183
|
+
return this._webview?.findHighlightCurrent(matchIndex, ownerID ?? this.getId());
|
|
2184
|
+
}
|
|
2185
|
+
async findUnHighlightCurrent(matchIndex, ownerID) {
|
|
2186
|
+
if (!this._webview) {
|
|
2187
|
+
return;
|
|
2188
|
+
}
|
|
2189
|
+
return this._webview?.findUnHighlightCurrent(matchIndex, ownerID ?? this.getId());
|
|
2190
|
+
}
|
|
2191
|
+
findStop(ownerID) {
|
|
2192
|
+
this._webview?.findStop(ownerID ?? this.getId());
|
|
2193
|
+
}
|
|
2194
|
+
getLayoutInfo() {
|
|
2195
|
+
if (!this._list) {
|
|
2196
|
+
throw ( new Error('Editor is not initalized successfully'));
|
|
2197
|
+
}
|
|
2198
|
+
if (!this._fontInfo) {
|
|
2199
|
+
this._generateFontInfo();
|
|
2200
|
+
}
|
|
2201
|
+
let listViewOffset = 0;
|
|
2202
|
+
if (this._dimension) {
|
|
2203
|
+
listViewOffset = (this._notebookTopToolbar?.useGlobalToolbar ? 26 : 0) + (this._notebookStickyScroll?.getCurrentStickyHeight() ?? 0);
|
|
2204
|
+
}
|
|
2205
|
+
return {
|
|
2206
|
+
width: this._dimension?.width ?? 0,
|
|
2207
|
+
height: this._dimension?.height ?? 0,
|
|
2208
|
+
scrollHeight: this._list?.getScrollHeight() ?? 0,
|
|
2209
|
+
fontInfo: this._fontInfo,
|
|
2210
|
+
stickyHeight: this._notebookStickyScroll?.getCurrentStickyHeight() ?? 0,
|
|
2211
|
+
listViewOffsetTop: listViewOffset
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
async createMarkupPreview(cell) {
|
|
2215
|
+
if (!this._webview) {
|
|
2216
|
+
return;
|
|
2217
|
+
}
|
|
2218
|
+
if (!this._webview.isResolved()) {
|
|
2219
|
+
await this._resolveWebview();
|
|
2220
|
+
}
|
|
2221
|
+
if (!this._webview || !this._list.webviewElement) {
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
if (!this.viewModel || !this._list.viewModel) {
|
|
2225
|
+
return;
|
|
2226
|
+
}
|
|
2227
|
+
if (this.viewModel.getCellIndex(cell) === -1) {
|
|
2228
|
+
return;
|
|
2229
|
+
}
|
|
2230
|
+
if (this.cellIsHidden(cell)) {
|
|
2231
|
+
return;
|
|
2232
|
+
}
|
|
2233
|
+
const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
|
|
2234
|
+
const top = !!webviewTop ? (0 - webviewTop) : 0;
|
|
2235
|
+
const cellTop = this._list.getCellViewScrollTop(cell);
|
|
2236
|
+
await this._webview.showMarkupPreview({
|
|
2237
|
+
mime: cell.mime,
|
|
2238
|
+
cellHandle: cell.handle,
|
|
2239
|
+
cellId: cell.id,
|
|
2240
|
+
content: cell.getText(),
|
|
2241
|
+
offset: cellTop + top,
|
|
2242
|
+
visible: true,
|
|
2243
|
+
metadata: cell.metadata,
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
cellIsHidden(cell) {
|
|
2247
|
+
const modelIndex = this.viewModel.getCellIndex(cell);
|
|
2248
|
+
const foldedRanges = this.viewModel.getHiddenRanges();
|
|
2249
|
+
return ( foldedRanges.some(range => modelIndex >= range.start && modelIndex <= range.end));
|
|
2250
|
+
}
|
|
2251
|
+
async unhideMarkupPreviews(cells) {
|
|
2252
|
+
if (!this._webview) {
|
|
2253
|
+
return;
|
|
2254
|
+
}
|
|
2255
|
+
if (!this._webview.isResolved()) {
|
|
2256
|
+
await this._resolveWebview();
|
|
2257
|
+
}
|
|
2258
|
+
await this._webview?.unhideMarkupPreviews(( cells.map(cell => cell.id)));
|
|
2259
|
+
}
|
|
2260
|
+
async hideMarkupPreviews(cells) {
|
|
2261
|
+
if (!this._webview || !cells.length) {
|
|
2262
|
+
return;
|
|
2263
|
+
}
|
|
2264
|
+
if (!this._webview.isResolved()) {
|
|
2265
|
+
await this._resolveWebview();
|
|
2266
|
+
}
|
|
2267
|
+
await this._webview?.hideMarkupPreviews(( cells.map(cell => cell.id)));
|
|
2268
|
+
}
|
|
2269
|
+
async deleteMarkupPreviews(cells) {
|
|
2270
|
+
if (!this._webview) {
|
|
2271
|
+
return;
|
|
2272
|
+
}
|
|
2273
|
+
if (!this._webview.isResolved()) {
|
|
2274
|
+
await this._resolveWebview();
|
|
2275
|
+
}
|
|
2276
|
+
await this._webview?.deleteMarkupPreviews(( cells.map(cell => cell.id)));
|
|
2277
|
+
}
|
|
2278
|
+
async updateSelectedMarkdownPreviews() {
|
|
2279
|
+
if (!this._webview) {
|
|
2280
|
+
return;
|
|
2281
|
+
}
|
|
2282
|
+
if (!this._webview.isResolved()) {
|
|
2283
|
+
await this._resolveWebview();
|
|
2284
|
+
}
|
|
2285
|
+
const selectedCells = ( this.getSelectionViewModels().map(cell => cell.id));
|
|
2286
|
+
await this._webview?.updateMarkupPreviewSelections(selectedCells.length > 1 ? selectedCells : []);
|
|
2287
|
+
}
|
|
2288
|
+
async createOutput(cell, output, offset, createWhenIdle) {
|
|
2289
|
+
this._insetModifyQueueByOutputId.queue(output.source.model.outputId, async () => {
|
|
2290
|
+
if (this._isDisposed || !this._webview) {
|
|
2291
|
+
return;
|
|
2292
|
+
}
|
|
2293
|
+
if (!this._webview.isResolved()) {
|
|
2294
|
+
await this._resolveWebview();
|
|
2295
|
+
}
|
|
2296
|
+
if (!this._webview) {
|
|
2297
|
+
return;
|
|
2298
|
+
}
|
|
2299
|
+
if (!this._list.webviewElement) {
|
|
2300
|
+
return;
|
|
2301
|
+
}
|
|
2302
|
+
if (output.type === RenderOutputType.Extension) {
|
|
2303
|
+
this.notebookRendererMessaging.prepare(output.renderer.id);
|
|
2304
|
+
}
|
|
2305
|
+
const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
|
|
2306
|
+
const top = !!webviewTop ? (0 - webviewTop) : 0;
|
|
2307
|
+
const cellTop = this._list.getCellViewScrollTop(cell) + top;
|
|
2308
|
+
const existingOutput = this._webview.insetMapping.get(output.source);
|
|
2309
|
+
if (!existingOutput
|
|
2310
|
+
|| (!existingOutput.renderer && output.type === RenderOutputType.Extension)) {
|
|
2311
|
+
if (createWhenIdle) {
|
|
2312
|
+
this._webview.requestCreateOutputWhenWebviewIdle({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
|
|
2313
|
+
}
|
|
2314
|
+
else {
|
|
2315
|
+
this._webview.createOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
else if (existingOutput.renderer
|
|
2319
|
+
&& output.type === RenderOutputType.Extension
|
|
2320
|
+
&& existingOutput.renderer.id !== output.renderer.id) {
|
|
2321
|
+
this._webview.removeInsets([output.source]);
|
|
2322
|
+
this._webview.createOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri }, output, cellTop, offset);
|
|
2323
|
+
}
|
|
2324
|
+
else if (existingOutput.versionId !== output.source.model.versionId) {
|
|
2325
|
+
this._webview.updateOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
|
|
2326
|
+
}
|
|
2327
|
+
else {
|
|
2328
|
+
const outputIndex = cell.outputsViewModels.indexOf(output.source);
|
|
2329
|
+
const outputOffset = cell.getOutputOffset(outputIndex);
|
|
2330
|
+
this._webview.updateScrollTops([{
|
|
2331
|
+
cell,
|
|
2332
|
+
output: output.source,
|
|
2333
|
+
cellTop,
|
|
2334
|
+
outputOffset,
|
|
2335
|
+
forceDisplay: !cell.isOutputCollapsed,
|
|
2336
|
+
}], []);
|
|
2337
|
+
}
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
async updateOutput(cell, output, offset) {
|
|
2341
|
+
this._insetModifyQueueByOutputId.queue(output.source.model.outputId, async () => {
|
|
2342
|
+
if (this._isDisposed || !this._webview || cell.isOutputCollapsed) {
|
|
2343
|
+
return;
|
|
2344
|
+
}
|
|
2345
|
+
if (!this._webview.isResolved()) {
|
|
2346
|
+
await this._resolveWebview();
|
|
2347
|
+
}
|
|
2348
|
+
if (!this._webview || !this._list.webviewElement) {
|
|
2349
|
+
return;
|
|
2350
|
+
}
|
|
2351
|
+
if (!( this._webview.insetMapping.has(output.source))) {
|
|
2352
|
+
return this.createOutput(cell, output, offset, false);
|
|
2353
|
+
}
|
|
2354
|
+
if (output.type === RenderOutputType.Extension) {
|
|
2355
|
+
this.notebookRendererMessaging.prepare(output.renderer.id);
|
|
2356
|
+
}
|
|
2357
|
+
const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
|
|
2358
|
+
const top = !!webviewTop ? (0 - webviewTop) : 0;
|
|
2359
|
+
const cellTop = this._list.getCellViewScrollTop(cell) + top;
|
|
2360
|
+
this._webview.updateOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri }, output, cellTop, offset);
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
async copyOutputImage(cellOutput) {
|
|
2364
|
+
this._webview?.copyImage(cellOutput);
|
|
2365
|
+
}
|
|
2366
|
+
removeInset(output) {
|
|
2367
|
+
this._insetModifyQueueByOutputId.queue(output.model.outputId, async () => {
|
|
2368
|
+
if (this._isDisposed || !this._webview) {
|
|
2369
|
+
return;
|
|
2370
|
+
}
|
|
2371
|
+
if (this._webview?.isResolved()) {
|
|
2372
|
+
this._webview.removeInsets([output]);
|
|
2373
|
+
}
|
|
2374
|
+
this._onDidRemoveOutput.fire(output);
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
hideInset(output) {
|
|
2378
|
+
this._insetModifyQueueByOutputId.queue(output.model.outputId, async () => {
|
|
2379
|
+
if (this._isDisposed || !this._webview) {
|
|
2380
|
+
return;
|
|
2381
|
+
}
|
|
2382
|
+
if (this._webview?.isResolved()) {
|
|
2383
|
+
this._webview.hideInset(output);
|
|
2384
|
+
}
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
postMessage(message) {
|
|
2388
|
+
if (this._webview?.isResolved()) {
|
|
2389
|
+
this._webview.postKernelMessage(message);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
addClassName(className) {
|
|
2393
|
+
this._overlayContainer.classList.add(className);
|
|
2394
|
+
}
|
|
2395
|
+
removeClassName(className) {
|
|
2396
|
+
this._overlayContainer.classList.remove(className);
|
|
2397
|
+
}
|
|
2398
|
+
cellAt(index) {
|
|
2399
|
+
return this.viewModel?.cellAt(index);
|
|
2400
|
+
}
|
|
2401
|
+
getCellByInfo(cellInfo) {
|
|
2402
|
+
const { cellHandle } = cellInfo;
|
|
2403
|
+
return this.viewModel?.viewCells.find(vc => vc.handle === cellHandle);
|
|
2404
|
+
}
|
|
2405
|
+
getCellByHandle(handle) {
|
|
2406
|
+
return this.viewModel?.getCellByHandle(handle);
|
|
2407
|
+
}
|
|
2408
|
+
getCellIndex(cell) {
|
|
2409
|
+
return this.viewModel?.getCellIndexByHandle(cell.handle);
|
|
2410
|
+
}
|
|
2411
|
+
getNextVisibleCellIndex(index) {
|
|
2412
|
+
return this.viewModel?.getNextVisibleCellIndex(index);
|
|
2413
|
+
}
|
|
2414
|
+
getPreviousVisibleCellIndex(index) {
|
|
2415
|
+
return this.viewModel?.getPreviousVisibleCellIndex(index);
|
|
2416
|
+
}
|
|
2417
|
+
_updateScrollHeight() {
|
|
2418
|
+
if (this._isDisposed || !this._webview?.isResolved()) {
|
|
2419
|
+
return;
|
|
2420
|
+
}
|
|
2421
|
+
if (!this._list.webviewElement) {
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
const scrollHeight = this._list.scrollHeight;
|
|
2425
|
+
this._webview.element.style.height = `${scrollHeight + NOTEBOOK_WEBVIEW_BOUNDARY * 2}px`;
|
|
2426
|
+
const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
|
|
2427
|
+
const top = !!webviewTop ? (0 - webviewTop) : 0;
|
|
2428
|
+
const updateItems = [];
|
|
2429
|
+
const removedItems = [];
|
|
2430
|
+
this._webview?.insetMapping.forEach((value, key) => {
|
|
2431
|
+
const cell = this.viewModel?.getCellByHandle(value.cellInfo.cellHandle);
|
|
2432
|
+
if (!cell || !(cell instanceof CodeCellViewModel)) {
|
|
2433
|
+
return;
|
|
2434
|
+
}
|
|
2435
|
+
this.viewModel?.viewCells.find(cell => cell.handle === value.cellInfo.cellHandle);
|
|
2436
|
+
const viewIndex = this._list.getViewIndex(cell);
|
|
2437
|
+
if (viewIndex === undefined) {
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2440
|
+
if (cell.outputsViewModels.indexOf(key) < 0) {
|
|
2441
|
+
removedItems.push(key);
|
|
2442
|
+
}
|
|
2443
|
+
const cellTop = this._list.getCellViewScrollTop(cell);
|
|
2444
|
+
const outputIndex = cell.outputsViewModels.indexOf(key);
|
|
2445
|
+
const outputOffset = cell.getOutputOffset(outputIndex);
|
|
2446
|
+
updateItems.push({
|
|
2447
|
+
cell,
|
|
2448
|
+
output: key,
|
|
2449
|
+
cellTop: cellTop + top,
|
|
2450
|
+
outputOffset,
|
|
2451
|
+
forceDisplay: false,
|
|
2452
|
+
});
|
|
2453
|
+
});
|
|
2454
|
+
this._webview.removeInsets(removedItems);
|
|
2455
|
+
const markdownUpdateItems = [];
|
|
2456
|
+
for (const cellId of ( this._webview.markupPreviewMapping.keys())) {
|
|
2457
|
+
const cell = this.viewModel?.viewCells.find(cell => cell.id === cellId);
|
|
2458
|
+
if (cell) {
|
|
2459
|
+
const cellTop = this._list.getCellViewScrollTop(cell);
|
|
2460
|
+
markdownUpdateItems.push({ id: cellId, top: cellTop + top });
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
if (markdownUpdateItems.length || updateItems.length) {
|
|
2464
|
+
this._debug('_list.onDidChangeContentHeight/markdown', markdownUpdateItems);
|
|
2465
|
+
this._webview?.updateScrollTops(updateItems, markdownUpdateItems);
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
_updateOutputHeight(cellInfo, output, outputHeight, isInit, source) {
|
|
2469
|
+
const cell = this.viewModel?.viewCells.find(vc => vc.handle === cellInfo.cellHandle);
|
|
2470
|
+
if (cell && cell instanceof CodeCellViewModel) {
|
|
2471
|
+
const outputIndex = cell.outputsViewModels.indexOf(output);
|
|
2472
|
+
if (outputIndex > -1) {
|
|
2473
|
+
this._debug('update cell output', cell.handle, outputHeight);
|
|
2474
|
+
cell.updateOutputHeight(outputIndex, outputHeight, source);
|
|
2475
|
+
this.layoutNotebookCell(cell, cell.layoutInfo.totalHeight);
|
|
2476
|
+
if (isInit) {
|
|
2477
|
+
this._onDidRenderOutput.fire(output);
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
else {
|
|
2481
|
+
this._debug('tried to update cell output that does not exist');
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
_scheduleOutputHeightAck(cellInfo, outputId, height) {
|
|
2486
|
+
const wasEmpty = this._pendingOutputHeightAcks.size === 0;
|
|
2487
|
+
this._pendingOutputHeightAcks.set(outputId, { cellId: cellInfo.cellId, outputId, height });
|
|
2488
|
+
if (wasEmpty) {
|
|
2489
|
+
scheduleAtNextAnimationFrame(getWindow(this.getDomNode()), () => {
|
|
2490
|
+
this._debug('ack height');
|
|
2491
|
+
this._updateScrollHeight();
|
|
2492
|
+
this._webview?.ackHeight([...( this._pendingOutputHeightAcks.values())]);
|
|
2493
|
+
this._pendingOutputHeightAcks.clear();
|
|
2494
|
+
}, -1);
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
_getCellById(cellId) {
|
|
2498
|
+
return this.viewModel?.viewCells.find(vc => vc.id === cellId);
|
|
2499
|
+
}
|
|
2500
|
+
_updateMarkupCellHeight(cellId, height, isInit) {
|
|
2501
|
+
const cell = this._getCellById(cellId);
|
|
2502
|
+
if (cell && cell instanceof MarkupCellViewModel) {
|
|
2503
|
+
const { bottomToolbarGap } = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
|
|
2504
|
+
this._debug('updateMarkdownCellHeight', cell.handle, height + bottomToolbarGap, isInit);
|
|
2505
|
+
cell.renderedMarkdownHeight = height;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
_setMarkupCellEditState(cellId, editState) {
|
|
2509
|
+
const cell = this._getCellById(cellId);
|
|
2510
|
+
if (cell instanceof MarkupCellViewModel) {
|
|
2511
|
+
this.revealInView(cell);
|
|
2512
|
+
cell.updateEditState(editState, 'setMarkdownCellEditState');
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
_didStartDragMarkupCell(cellId, event) {
|
|
2516
|
+
const cell = this._getCellById(cellId);
|
|
2517
|
+
if (cell instanceof MarkupCellViewModel) {
|
|
2518
|
+
const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
|
|
2519
|
+
this._dndController?.startExplicitDrag(cell, event.dragOffsetY - webviewOffset);
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
_didDragMarkupCell(cellId, event) {
|
|
2523
|
+
const cell = this._getCellById(cellId);
|
|
2524
|
+
if (cell instanceof MarkupCellViewModel) {
|
|
2525
|
+
const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
|
|
2526
|
+
this._dndController?.explicitDrag(cell, event.dragOffsetY - webviewOffset);
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
_didDropMarkupCell(cellId, event) {
|
|
2530
|
+
const cell = this._getCellById(cellId);
|
|
2531
|
+
if (cell instanceof MarkupCellViewModel) {
|
|
2532
|
+
const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
|
|
2533
|
+
event.dragOffsetY -= webviewOffset;
|
|
2534
|
+
this._dndController?.explicitDrop(cell, event);
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
_didEndDragMarkupCell(cellId) {
|
|
2538
|
+
const cell = this._getCellById(cellId);
|
|
2539
|
+
if (cell instanceof MarkupCellViewModel) {
|
|
2540
|
+
this._dndController?.endExplicitDrag(cell);
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
_didResizeOutput(cellId) {
|
|
2544
|
+
const cell = this._getCellById(cellId);
|
|
2545
|
+
if (cell) {
|
|
2546
|
+
this._onDidResizeOutputEmitter.fire(cell);
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
_updatePerformanceMetadata(cellId, executionId, duration, rendererId) {
|
|
2550
|
+
if (!this.hasModel()) {
|
|
2551
|
+
return;
|
|
2552
|
+
}
|
|
2553
|
+
const cell = this._getCellById(cellId);
|
|
2554
|
+
const cellIndex = !cell ? undefined : this.getCellIndex(cell);
|
|
2555
|
+
if (cell?.internalMetadata.executionId === executionId && cellIndex !== undefined) {
|
|
2556
|
+
const renderDurationMap = cell.internalMetadata.renderDuration || {};
|
|
2557
|
+
renderDurationMap[rendererId] = (renderDurationMap[rendererId] ?? 0) + duration;
|
|
2558
|
+
this.textModel.applyEdits([
|
|
2559
|
+
{
|
|
2560
|
+
editType: CellEditType.PartialInternalMetadata,
|
|
2561
|
+
index: cellIndex,
|
|
2562
|
+
internalMetadata: {
|
|
2563
|
+
executionId: executionId,
|
|
2564
|
+
renderDuration: renderDurationMap
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
], true, undefined, () => undefined, undefined, false);
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
getContribution(id) {
|
|
2571
|
+
return (this._contributions.get(id) || null);
|
|
2572
|
+
}
|
|
2573
|
+
dispose() {
|
|
2574
|
+
this._isDisposed = true;
|
|
2575
|
+
this._webview?.dispose();
|
|
2576
|
+
this._webview = null;
|
|
2577
|
+
this.notebookEditorService.removeNotebookEditor(this);
|
|
2578
|
+
dispose(( this._contributions.values()));
|
|
2579
|
+
this._contributions.clear();
|
|
2580
|
+
this._localStore.clear();
|
|
2581
|
+
dispose(this._localCellStateListeners);
|
|
2582
|
+
this._list.dispose();
|
|
2583
|
+
this._cellLayoutManager?.dispose();
|
|
2584
|
+
this._listTopCellToolbar?.dispose();
|
|
2585
|
+
this._overlayContainer.remove();
|
|
2586
|
+
this.viewModel?.dispose();
|
|
2587
|
+
this._renderedEditors.clear();
|
|
2588
|
+
this._baseCellEditorOptions.forEach(v => v.dispose());
|
|
2589
|
+
this._baseCellEditorOptions.clear();
|
|
2590
|
+
this._notebookOverviewRulerContainer.remove();
|
|
2591
|
+
super.dispose();
|
|
2592
|
+
this._webview = null;
|
|
2593
|
+
this._webviewResolvePromise = null;
|
|
2594
|
+
this._webviewTransparentCover = null;
|
|
2595
|
+
this._dndController = null;
|
|
2596
|
+
this._listTopCellToolbar = null;
|
|
2597
|
+
this._notebookViewModel = undefined;
|
|
2598
|
+
this._cellContextKeyManager = null;
|
|
2599
|
+
this._notebookTopToolbar = null;
|
|
2600
|
+
this._list = null;
|
|
2601
|
+
this._listViewInfoAccessor = null;
|
|
2602
|
+
this._listDelegate = null;
|
|
2603
|
+
}
|
|
2604
|
+
toJSON() {
|
|
2605
|
+
return {
|
|
2606
|
+
notebookUri: this.viewModel?.uri,
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
NotebookEditorWidget = ( __decorate([
|
|
2611
|
+
( __param(2, IInstantiationService)),
|
|
2612
|
+
( __param(3, IEditorGroupsService)),
|
|
2613
|
+
( __param(4, INotebookRendererMessagingService)),
|
|
2614
|
+
( __param(5, INotebookEditorService)),
|
|
2615
|
+
( __param(6, INotebookKernelService)),
|
|
2616
|
+
( __param(7, INotebookService)),
|
|
2617
|
+
( __param(8, IConfigurationService)),
|
|
2618
|
+
( __param(9, IContextKeyService)),
|
|
2619
|
+
( __param(10, ILayoutService)),
|
|
2620
|
+
( __param(11, IContextMenuService)),
|
|
2621
|
+
( __param(12, ITelemetryService)),
|
|
2622
|
+
( __param(13, INotebookExecutionService)),
|
|
2623
|
+
( __param(14, IEditorProgressService)),
|
|
2624
|
+
( __param(15, INotebookLoggingService))
|
|
2625
|
+
], NotebookEditorWidget));
|
|
2626
|
+
registerZIndex(ZIndex.Base, 5, 'notebook-progress-bar');
|
|
2627
|
+
registerZIndex(ZIndex.Base, 10, 'notebook-list-insertion-indicator');
|
|
2628
|
+
registerZIndex(ZIndex.Base, 20, 'notebook-cell-editor-outline');
|
|
2629
|
+
registerZIndex(ZIndex.Base, 25, 'notebook-scrollbar');
|
|
2630
|
+
registerZIndex(ZIndex.Base, 26, 'notebook-cell-status');
|
|
2631
|
+
registerZIndex(ZIndex.Base, 26, 'notebook-folding-indicator');
|
|
2632
|
+
registerZIndex(ZIndex.Base, 27, 'notebook-output');
|
|
2633
|
+
registerZIndex(ZIndex.Base, 28, 'notebook-cell-bottom-toolbar-container');
|
|
2634
|
+
registerZIndex(ZIndex.Base, 29, 'notebook-run-button-container');
|
|
2635
|
+
registerZIndex(ZIndex.Base, 29, 'notebook-input-collapse-condicon');
|
|
2636
|
+
registerZIndex(ZIndex.Base, 30, 'notebook-cell-output-toolbar');
|
|
2637
|
+
registerZIndex(ZIndex.Sash, 1, 'notebook-cell-expand-part-button');
|
|
2638
|
+
registerZIndex(ZIndex.Sash, 2, 'notebook-cell-toolbar');
|
|
2639
|
+
registerZIndex(ZIndex.Sash, 3, 'notebook-cell-toolbar-dropdown-active');
|
|
2640
|
+
const notebookCellBorder = registerColor('notebook.cellBorderColor', {
|
|
2641
|
+
dark: ( transparent(listInactiveSelectionBackground, 1)),
|
|
2642
|
+
light: ( transparent(listInactiveSelectionBackground, 1)),
|
|
2643
|
+
hcDark: PANEL_BORDER,
|
|
2644
|
+
hcLight: PANEL_BORDER
|
|
2645
|
+
}, ( localize(9568, "The border color for notebook cells.")));
|
|
2646
|
+
registerColor('notebook.focusedEditorBorder', focusBorder, ( localize(9569, "The color of the notebook cell editor border.")));
|
|
2647
|
+
const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', debugIconStartForeground, ( localize(9570, "The error icon color of notebook cells in the cell status bar.")));
|
|
2648
|
+
const runningCellRulerDecorationColor = registerColor('notebookEditorOverviewRuler.runningCellForeground', debugIconStartForeground, ( localize(
|
|
2649
|
+
9571,
|
|
2650
|
+
"The color of the running cell decoration in the notebook editor overview ruler."
|
|
2651
|
+
)));
|
|
2652
|
+
const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground', errorForeground, ( localize(9572, "The error icon color of notebook cells in the cell status bar.")));
|
|
2653
|
+
registerColor('notebookStatusRunningIcon.foreground', foreground, ( localize(9573, "The running icon color of notebook cells in the cell status bar.")));
|
|
2654
|
+
registerColor('notebook.outputContainerBorderColor', null, ( localize(9574, "The border color of the notebook output container.")));
|
|
2655
|
+
registerColor('notebook.outputContainerBackgroundColor', null, ( localize(9575, "The color of the notebook output container background.")));
|
|
2656
|
+
registerColor('notebook.cellToolbarSeparator', {
|
|
2657
|
+
dark: ( ( Color.fromHex('#808080')).transparent(0.35)),
|
|
2658
|
+
light: ( ( Color.fromHex('#808080')).transparent(0.35)),
|
|
2659
|
+
hcDark: contrastBorder,
|
|
2660
|
+
hcLight: contrastBorder
|
|
2661
|
+
}, ( localize(9576, "The color of the separator in the cell bottom toolbar")));
|
|
2662
|
+
const focusedCellBackground = registerColor('notebook.focusedCellBackground', null, ( localize(9577, "The background color of a cell when the cell is focused.")));
|
|
2663
|
+
registerColor('notebook.selectedCellBackground', {
|
|
2664
|
+
dark: listInactiveSelectionBackground,
|
|
2665
|
+
light: listInactiveSelectionBackground,
|
|
2666
|
+
hcDark: null,
|
|
2667
|
+
hcLight: null
|
|
2668
|
+
}, ( localize(9578, "The background color of a cell when the cell is selected.")));
|
|
2669
|
+
registerColor('notebook.cellHoverBackground', {
|
|
2670
|
+
dark: ( transparent(focusedCellBackground, .5)),
|
|
2671
|
+
light: ( transparent(focusedCellBackground, .7)),
|
|
2672
|
+
hcDark: null,
|
|
2673
|
+
hcLight: null
|
|
2674
|
+
}, ( localize(9579, "The background color of a cell when the cell is hovered.")));
|
|
2675
|
+
registerColor('notebook.selectedCellBorder', {
|
|
2676
|
+
dark: notebookCellBorder,
|
|
2677
|
+
light: notebookCellBorder,
|
|
2678
|
+
hcDark: contrastBorder,
|
|
2679
|
+
hcLight: contrastBorder
|
|
2680
|
+
}, ( localize(
|
|
2681
|
+
9580,
|
|
2682
|
+
"The color of the cell's top and bottom border when the cell is selected but not focused."
|
|
2683
|
+
)));
|
|
2684
|
+
registerColor('notebook.inactiveSelectedCellBorder', {
|
|
2685
|
+
dark: null,
|
|
2686
|
+
light: null,
|
|
2687
|
+
hcDark: focusBorder,
|
|
2688
|
+
hcLight: focusBorder
|
|
2689
|
+
}, ( localize(9581, "The color of the cell's borders when multiple cells are selected.")));
|
|
2690
|
+
registerColor('notebook.focusedCellBorder', focusBorder, ( localize(
|
|
2691
|
+
9582,
|
|
2692
|
+
"The color of the cell's focus indicator borders when the cell is focused."
|
|
2693
|
+
)));
|
|
2694
|
+
registerColor('notebook.inactiveFocusedCellBorder', notebookCellBorder, ( localize(
|
|
2695
|
+
9583,
|
|
2696
|
+
"The color of the cell's top and bottom border when a cell is focused while the primary focus is outside of the editor."
|
|
2697
|
+
)));
|
|
2698
|
+
registerColor('notebook.cellStatusBarItemHoverBackground', {
|
|
2699
|
+
light: ( new Color(( new RGBA(0, 0, 0, 0.08)))),
|
|
2700
|
+
dark: ( new Color(( new RGBA(255, 255, 255, 0.15)))),
|
|
2701
|
+
hcDark: ( new Color(( new RGBA(255, 255, 255, 0.15)))),
|
|
2702
|
+
hcLight: ( new Color(( new RGBA(0, 0, 0, 0.08)))),
|
|
2703
|
+
}, ( localize(9584, "The background color of notebook cell status bar items.")));
|
|
2704
|
+
registerColor('notebook.cellInsertionIndicator', focusBorder, ( localize(9585, "The color of the notebook cell insertion indicator.")));
|
|
2705
|
+
registerColor('notebookScrollbarSlider.background', scrollbarSliderBackground, ( localize(9586, "Notebook scrollbar slider background color.")));
|
|
2706
|
+
registerColor('notebookScrollbarSlider.hoverBackground', scrollbarSliderHoverBackground, ( localize(9587, "Notebook scrollbar slider background color when hovering.")));
|
|
2707
|
+
registerColor('notebookScrollbarSlider.activeBackground', scrollbarSliderActiveBackground, ( localize(9588, "Notebook scrollbar slider background color when clicked on.")));
|
|
2708
|
+
registerColor('notebook.symbolHighlightBackground', {
|
|
2709
|
+
dark: ( Color.fromHex('#ffffff0b')),
|
|
2710
|
+
light: ( Color.fromHex('#fdff0033')),
|
|
2711
|
+
hcDark: null,
|
|
2712
|
+
hcLight: null
|
|
2713
|
+
}, ( localize(9589, "Background color of highlighted cell")));
|
|
2714
|
+
registerColor('notebook.cellEditorBackground', {
|
|
2715
|
+
light: SIDE_BAR_BACKGROUND,
|
|
2716
|
+
dark: SIDE_BAR_BACKGROUND,
|
|
2717
|
+
hcDark: null,
|
|
2718
|
+
hcLight: null
|
|
2719
|
+
}, ( localize(9590, "Cell editor background color.")));
|
|
2720
|
+
const notebookEditorBackground = registerColor('notebook.editorBackground', {
|
|
2721
|
+
light: EDITOR_PANE_BACKGROUND,
|
|
2722
|
+
dark: EDITOR_PANE_BACKGROUND,
|
|
2723
|
+
hcDark: null,
|
|
2724
|
+
hcLight: null
|
|
2725
|
+
}, ( localize(9591, "Notebook background color.")));
|
|
2726
|
+
|
|
2727
|
+
export { NotebookEditorWidget, cellStatusIconError, cellStatusIconSuccess, focusedCellBackground, getDefaultNotebookCreationOptions, notebookCellBorder, runningCellRulerDecorationColor };
|