@codingame/monaco-vscode-api 6.0.3 → 7.0.1
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/README.md +150 -117
- package/api.js +1 -1
- package/debugProtocol.d.ts +10 -1
- package/extensions.d.ts +2 -0
- package/missing-services.js +21 -2
- package/package.json +9 -9
- package/service-override/extensions.d.ts +1 -2
- package/services.js +4 -2
- package/vscode/src/vs/base/browser/dnd.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +116 -5
- package/vscode/src/vs/base/browser/domObservable.js +16 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +5 -3
- package/vscode/src/vs/base/browser/trustedTypes.js +1 -2
- 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/button/button.js +2 -2
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -4
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +32 -16
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +3 -5
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +1 -8
- package/vscode/src/vs/base/browser/ui/sash/sash.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +7 -11
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- 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 +8 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -3
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +0 -3
- package/vscode/src/vs/base/common/assert.js +1 -1
- package/vscode/src/vs/base/common/collections.js +49 -1
- package/vscode/src/vs/base/common/equals.js +55 -5
- package/vscode/src/vs/base/common/errors.js +14 -1
- package/vscode/src/vs/base/common/event.js +2 -1
- package/vscode/src/vs/base/common/history.js +7 -4
- package/vscode/src/vs/base/common/iterator.js +9 -1
- package/vscode/src/vs/base/common/map.d.ts +41 -0
- package/vscode/src/vs/base/common/numbers.js +18 -1
- package/vscode/src/vs/base/common/observableInternal/api.js +11 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +18 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +8 -1
- package/vscode/src/vs/base/common/observableInternal/base.js +2 -5
- package/vscode/src/vs/base/common/observableInternal/derived.js +13 -3
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +109 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +7 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +64 -12
- package/vscode/src/vs/base/common/prefixTree.d.ts +52 -0
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +1 -1
- package/vscode/src/vs/editor/browser/config/charWidthReader.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +2 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +230 -0
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +26 -26
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +2 -2
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -12
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +14 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +5 -0
- package/vscode/src/vs/editor/common/config/editorOptions.js +83 -65
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +43 -43
- package/vscode/src/vs/editor/common/cursor/cursor.js +3 -2
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +911 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +36 -799
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +6 -5
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +3 -0
- package/vscode/src/vs/editor/common/languages/autoIndent.js +23 -1
- package/vscode/src/vs/editor/common/languages.d.ts +20 -3
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +6 -6
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +19 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +3 -0
- package/vscode/src/vs/editor/common/model/textModel.js +6 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +5 -5
- package/vscode/src/vs/editor/common/model.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/getIconClasses.js +1 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +2 -15
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +63 -62
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +11 -8
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +2 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +18 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +55 -27
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +7 -4
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +103 -47
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +18 -10
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -4
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css.js +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +33 -13
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -7
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +161 -185
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +321 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +4 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +6 -21
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +39 -40
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +55 -46
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +12 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +15 -9
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +11 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +141 -93
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +24 -7
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +36 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +25 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +88 -118
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +34 -33
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +11 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +10 -19
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +45 -27
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +126 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +9 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.js +9 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js +82 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.js +240 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.css.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js +322 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +8 -4
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +3 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -2
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +60 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +4 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +38 -20
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +3 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +10 -32
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +23 -138
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +5 -5
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +13 -12
- package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +3 -3
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +21 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +5 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +27 -6
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +33 -3
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -1
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -0
- package/vscode/src/vs/platform/actions/common/actions.js +3 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +3 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +7 -5
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +109 -13
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +12 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +20 -10
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +46 -8
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -1
- package/vscode/src/vs/platform/extensions/common/extensions.js +12 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +368 -0
- package/vscode/src/vs/platform/files/common/watcher.js +21 -24
- package/vscode/src/vs/platform/list/browser/listService.js +2 -1
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -2
- package/vscode/src/vs/platform/opener/browser/link.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +0 -2
- package/vscode/src/vs/platform/request/common/request.js +18 -8
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +2 -6
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +8 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +25 -5
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +1 -1
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +6 -6
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +35 -35
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +4 -4
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +5 -5
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +1 -1
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +5 -5
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +4 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +75 -19
- package/vscode/src/vs/platform/window/common/window.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +32 -25
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -11
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +5 -15
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +2 -5
- package/vscode/src/vs/workbench/api/common/extHostComments.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +32 -22
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +109 -40
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +46 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +84 -35
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +50 -41
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +11 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -6
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +63 -70
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +75 -16
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +127 -107
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +33 -21
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +23 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/browser/web.api.js +8 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +199 -194
- package/vscode/src/vs/workbench/common/configuration.js +1 -1
- package/vscode/src/vs/workbench/common/contributions.js +8 -1
- package/vscode/src/vs/workbench/common/editor.js +5 -1
- package/vscode/src/vs/workbench/common/theme.js +79 -454
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -239
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatConfirmationWidget.js → chatContentParts/chatConfirmationWidget.js} +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +131 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatWarningContentPart.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatContentParts/media}/chatConfirmationWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +91 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +292 -1019
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +61 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +23 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +43 -16
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +1 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +7 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +8 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +1 -1
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +14 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +8 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +19 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +9 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +10 -5
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +235 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +17 -5
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +62 -44
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +114 -107
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +33 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +71 -101
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +38 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -33
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +49 -86
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +60 -71
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +116 -113
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +6 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +12 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +88 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +39 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +12 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +40 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +27 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +14 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +43 -46
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +19 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +16 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +11 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +9 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +37 -36
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +18 -8
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +14 -5
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +17 -22
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +7 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +7 -27
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +3 -4
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +4 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +13 -37
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.d.ts +88 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +48 -31
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.d.ts +226 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +319 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +21 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +7 -8
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +10 -5
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +54 -21
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -2
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +2 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +3 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +59 -41
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -2
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +7 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/search.js +2 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +2 -2
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +69 -26
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +23 -4
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +5 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +12 -5
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +38 -19
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -1
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -196
- package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +28 -10
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +30 -22
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +17 -8
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -9
- package/vscode-dts/vscode.proposed.commentReveal.d.ts +32 -0
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +10 -0
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +1 -1
- package/vscode-dts/vscode.proposed.fileComments.d.ts +12 -53
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +6 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +6 -0
- package/vscode-dts/vscode.proposed.lmTools.d.ts +91 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +10 -6
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +38 -13
- package/vscode/src/vs/editor/browser/observableUtilities.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +0 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +0 -122
|
@@ -71,7 +71,7 @@ import { NotebookEditorWorkbenchToolbar } from './viewParts/notebookEditorToolba
|
|
|
71
71
|
import { NotebookEditorContextKeys } from './viewParts/notebookEditorWidgetContextKeys.js';
|
|
72
72
|
import { NotebookOverviewRuler } from './viewParts/notebookOverviewRuler.js';
|
|
73
73
|
import { ListTopCellToolbar } from './viewParts/notebookTopCellToolbar.js';
|
|
74
|
-
import { SelectionStateType, RENDERER_NOT_AVAILABLE, CellKind, CellEditType } from '../common/notebookCommon.js';
|
|
74
|
+
import { SelectionStateType, RENDERER_NOT_AVAILABLE, CellKind, NotebookFindScopeType, CellEditType } from '../common/notebookCommon.js';
|
|
75
75
|
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CURSOR_NAVIGATION_MODE } from '../common/notebookContextKeys.js';
|
|
76
76
|
import { INotebookExecutionService } from '../common/notebookExecutionService.service.js';
|
|
77
77
|
import { INotebookExecutionStateService } from '../common/notebookExecutionStateService.service.js';
|
|
@@ -93,7 +93,6 @@ import { NotebookStickyScroll } from './viewParts/notebookEditorStickyScroll.js'
|
|
|
93
93
|
import { AccessibilityVerbositySettingId } from '../../accessibility/browser/accessibilityConfiguration.js';
|
|
94
94
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
|
|
95
95
|
import { PixelRatio } from '../../../../base/browser/pixelRatio.js';
|
|
96
|
-
import { ICodeEditorService } from '../../../../editor/browser/services/codeEditorService.js';
|
|
97
96
|
import { PreventDefaultContextMenuItemsContextKeyName } from '../../webview/browser/webview.contribution.js';
|
|
98
97
|
import { NotebookAccessibilityProvider } from './notebookAccessibilityProvider.js';
|
|
99
98
|
const _moduleId = "vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
@@ -160,7 +159,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
160
159
|
get notebookOptions() {
|
|
161
160
|
return this._notebookOptions;
|
|
162
161
|
}
|
|
163
|
-
constructor(creationOptions, dimension, instantiationService, editorGroupsService, notebookRendererMessaging, notebookEditorService, notebookKernelService, _notebookService, configurationService, contextKeyService, layoutService, contextMenuService, telemetryService, notebookExecutionService, notebookExecutionStateService, editorProgressService, logService, keybindingService
|
|
162
|
+
constructor(creationOptions, dimension, instantiationService, editorGroupsService, notebookRendererMessaging, notebookEditorService, notebookKernelService, _notebookService, configurationService, contextKeyService, layoutService, contextMenuService, telemetryService, notebookExecutionService, notebookExecutionStateService, editorProgressService, logService, keybindingService) {
|
|
164
163
|
super();
|
|
165
164
|
this.creationOptions = creationOptions;
|
|
166
165
|
this.notebookRendererMessaging = notebookRendererMessaging;
|
|
@@ -246,13 +245,12 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
246
245
|
this._dimension = dimension;
|
|
247
246
|
this.isEmbedded = creationOptions.isEmbedded ?? false;
|
|
248
247
|
this._readOnly = creationOptions.isReadOnly ?? false;
|
|
249
|
-
this.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
this._readOnly
|
|
255
|
-
)));
|
|
248
|
+
this._inRepl = creationOptions.forRepl ?? false;
|
|
249
|
+
this._overlayContainer = document.createElement('div');
|
|
250
|
+
this.scopedContextKeyService = this._register(contextKeyService.createScoped(this._overlayContainer));
|
|
251
|
+
this.instantiationService = this._register(instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService])))));
|
|
252
|
+
this._notebookOptions = creationOptions.options ??
|
|
253
|
+
this.instantiationService.createInstance(NotebookOptions, this.creationOptions?.codeWindow ?? mainWindow, this._readOnly, undefined);
|
|
256
254
|
this._register(this._notebookOptions);
|
|
257
255
|
const eventDispatcher = this._register(( (new NotebookEventDispatcher())));
|
|
258
256
|
this._viewContext = ( (new ViewContext(
|
|
@@ -263,9 +261,6 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
263
261
|
this._register(this._viewContext.eventDispatcher.onDidChangeCellState(e => {
|
|
264
262
|
this._onDidChangeCellState.fire(e);
|
|
265
263
|
}));
|
|
266
|
-
this._overlayContainer = document.createElement('div');
|
|
267
|
-
this.scopedContextKeyService = this._register(contextKeyService.createScoped(this._overlayContainer));
|
|
268
|
-
this.instantiationService = instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
|
|
269
264
|
this._register(_notebookService.onDidChangeOutputRenderers(() => {
|
|
270
265
|
this._updateOutputRenderers();
|
|
271
266
|
}));
|
|
@@ -1160,7 +1155,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
1160
1155
|
}
|
|
1161
1156
|
async _attachModel(textModel, viewState, perf) {
|
|
1162
1157
|
this._ensureWebview(this.getId(), textModel.viewType, textModel.uri);
|
|
1163
|
-
this.viewModel = this.instantiationService.createInstance(NotebookViewModel, textModel.viewType, textModel, this._viewContext, this.getLayoutInfo(), { isReadOnly: this._readOnly });
|
|
1158
|
+
this.viewModel = this.instantiationService.createInstance(NotebookViewModel, textModel.viewType, textModel, this._viewContext, this.getLayoutInfo(), { isReadOnly: this._readOnly, inRepl: this._inRepl });
|
|
1164
1159
|
this._viewContext.eventDispatcher.emit([( (new NotebookLayoutChangedEvent({ width: true, fontInfo: true }, this.getLayoutInfo())))]);
|
|
1165
1160
|
this.notebookOptions.updateOptions(this._readOnly);
|
|
1166
1161
|
this._updateForOptions();
|
|
@@ -1458,6 +1453,15 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
1458
1453
|
this.onWillHide();
|
|
1459
1454
|
return;
|
|
1460
1455
|
}
|
|
1456
|
+
const whenContainerStylesLoaded = this.layoutService.whenContainerStylesLoaded(getWindow(this.getDomNode()));
|
|
1457
|
+
if (whenContainerStylesLoaded) {
|
|
1458
|
+
whenContainerStylesLoaded.then(() => this.layoutNotebook(dimension, shadowElement, position));
|
|
1459
|
+
}
|
|
1460
|
+
else {
|
|
1461
|
+
this.layoutNotebook(dimension, shadowElement, position);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
layoutNotebook(dimension, shadowElement, position) {
|
|
1461
1465
|
if (shadowElement) {
|
|
1462
1466
|
this.updateShadowElement(shadowElement, dimension, position);
|
|
1463
1467
|
}
|
|
@@ -2032,7 +2036,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
2032
2036
|
ownerID = this.getId();
|
|
2033
2037
|
}
|
|
2034
2038
|
const findMatches = this._notebookViewModel.find(query, options).filter(match => match.length > 0);
|
|
2035
|
-
if (!options.includeMarkupPreview && !options.includeOutput) {
|
|
2039
|
+
if ((!options.includeMarkupPreview && !options.includeOutput) || options.findScope?.findScopeType === NotebookFindScopeType.Text) {
|
|
2036
2040
|
this._webview?.findStop(ownerID);
|
|
2037
2041
|
return findMatches;
|
|
2038
2042
|
}
|
|
@@ -2048,10 +2052,12 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
2048
2052
|
if (token.isCancellationRequested) {
|
|
2049
2053
|
return [];
|
|
2050
2054
|
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
+
let findIds = [];
|
|
2056
|
+
if (options.findScope && options.findScope.findScopeType === NotebookFindScopeType.Cells && options.findScope.selectedCellRanges) {
|
|
2057
|
+
const selectedIndexes = cellRangesToIndexes(options.findScope.selectedCellRanges);
|
|
2058
|
+
findIds = ( (selectedIndexes.map(index => this._notebookViewModel?.viewCells[index].id ?? '')));
|
|
2059
|
+
}
|
|
2060
|
+
const webviewMatches = await this._webview.find(query, { caseSensitive: options.caseSensitive, wholeWord: options.wholeWord, includeMarkup: !!options.includeMarkupPreview, includeOutput: !!options.includeOutput, shouldGetSearchPreviewInfo, ownerID, findIds: findIds });
|
|
2055
2061
|
if (token.isCancellationRequested) {
|
|
2056
2062
|
return [];
|
|
2057
2063
|
}
|
|
@@ -2539,8 +2545,7 @@ NotebookEditorWidget = ( (__decorate([
|
|
|
2539
2545
|
( (__param(14, INotebookExecutionStateService))),
|
|
2540
2546
|
( (__param(15, IEditorProgressService))),
|
|
2541
2547
|
( (__param(16, INotebookLoggingService))),
|
|
2542
|
-
( (__param(17, IKeybindingService)))
|
|
2543
|
-
( (__param(18, ICodeEditorService)))
|
|
2548
|
+
( (__param(17, IKeybindingService)))
|
|
2544
2549
|
], NotebookEditorWidget)));
|
|
2545
2550
|
registerZIndex(ZIndex.Base, 5, 'notebook-progress-bar');
|
|
2546
2551
|
registerZIndex(ZIndex.Base, 10, 'notebook-list-insertion-indicator');
|
|
@@ -2562,76 +2567,36 @@ const notebookCellBorder = registerColor('notebook.cellBorderColor', {
|
|
|
2562
2567
|
hcDark: PANEL_BORDER,
|
|
2563
2568
|
hcLight: PANEL_BORDER
|
|
2564
2569
|
}, ( localizeWithPath(_moduleId, 0, "The border color for notebook cells.")));
|
|
2565
|
-
registerColor('notebook.focusedEditorBorder',
|
|
2566
|
-
|
|
2567
|
-
dark: focusBorder,
|
|
2568
|
-
hcDark: focusBorder,
|
|
2569
|
-
hcLight: focusBorder
|
|
2570
|
-
}, ( localizeWithPath(_moduleId, 1, "The color of the notebook cell editor border.")));
|
|
2571
|
-
const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', {
|
|
2572
|
-
light: debugIconStartForeground,
|
|
2573
|
-
dark: debugIconStartForeground,
|
|
2574
|
-
hcDark: debugIconStartForeground,
|
|
2575
|
-
hcLight: debugIconStartForeground
|
|
2576
|
-
}, ( localizeWithPath(
|
|
2570
|
+
registerColor('notebook.focusedEditorBorder', focusBorder, ( localizeWithPath(_moduleId, 1, "The color of the notebook cell editor border.")));
|
|
2571
|
+
const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', debugIconStartForeground, ( localizeWithPath(
|
|
2577
2572
|
_moduleId,
|
|
2578
2573
|
2,
|
|
2579
2574
|
"The error icon color of notebook cells in the cell status bar."
|
|
2580
2575
|
)));
|
|
2581
|
-
const runningCellRulerDecorationColor = registerColor('notebookEditorOverviewRuler.runningCellForeground',
|
|
2582
|
-
light: debugIconStartForeground,
|
|
2583
|
-
dark: debugIconStartForeground,
|
|
2584
|
-
hcDark: debugIconStartForeground,
|
|
2585
|
-
hcLight: debugIconStartForeground
|
|
2586
|
-
}, ( localizeWithPath(
|
|
2576
|
+
const runningCellRulerDecorationColor = registerColor('notebookEditorOverviewRuler.runningCellForeground', debugIconStartForeground, ( localizeWithPath(
|
|
2587
2577
|
_moduleId,
|
|
2588
2578
|
3,
|
|
2589
2579
|
"The color of the running cell decoration in the notebook editor overview ruler."
|
|
2590
2580
|
)));
|
|
2591
|
-
const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground',
|
|
2592
|
-
light: errorForeground,
|
|
2593
|
-
dark: errorForeground,
|
|
2594
|
-
hcDark: errorForeground,
|
|
2595
|
-
hcLight: errorForeground
|
|
2596
|
-
}, ( localizeWithPath(
|
|
2581
|
+
const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground', errorForeground, ( localizeWithPath(
|
|
2597
2582
|
_moduleId,
|
|
2598
2583
|
4,
|
|
2599
2584
|
"The error icon color of notebook cells in the cell status bar."
|
|
2600
2585
|
)));
|
|
2601
|
-
registerColor('notebookStatusRunningIcon.foreground',
|
|
2602
|
-
light: foreground,
|
|
2603
|
-
dark: foreground,
|
|
2604
|
-
hcDark: foreground,
|
|
2605
|
-
hcLight: foreground
|
|
2606
|
-
}, ( localizeWithPath(
|
|
2586
|
+
registerColor('notebookStatusRunningIcon.foreground', foreground, ( localizeWithPath(
|
|
2607
2587
|
_moduleId,
|
|
2608
2588
|
5,
|
|
2609
2589
|
"The running icon color of notebook cells in the cell status bar."
|
|
2610
2590
|
)));
|
|
2611
|
-
registerColor('notebook.outputContainerBorderColor',
|
|
2612
|
-
|
|
2613
|
-
light: null,
|
|
2614
|
-
hcDark: null,
|
|
2615
|
-
hcLight: null
|
|
2616
|
-
}, ( localizeWithPath(_moduleId, 6, "The border color of the notebook output container.")));
|
|
2617
|
-
registerColor('notebook.outputContainerBackgroundColor', {
|
|
2618
|
-
dark: null,
|
|
2619
|
-
light: null,
|
|
2620
|
-
hcDark: null,
|
|
2621
|
-
hcLight: null
|
|
2622
|
-
}, ( localizeWithPath(_moduleId, 7, "The color of the notebook output container background.")));
|
|
2591
|
+
registerColor('notebook.outputContainerBorderColor', null, ( localizeWithPath(_moduleId, 6, "The border color of the notebook output container.")));
|
|
2592
|
+
registerColor('notebook.outputContainerBackgroundColor', null, ( localizeWithPath(_moduleId, 7, "The color of the notebook output container background.")));
|
|
2623
2593
|
registerColor('notebook.cellToolbarSeparator', {
|
|
2624
2594
|
dark: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
|
|
2625
2595
|
light: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
|
|
2626
2596
|
hcDark: contrastBorder,
|
|
2627
2597
|
hcLight: contrastBorder
|
|
2628
2598
|
}, ( localizeWithPath(_moduleId, 8, "The color of the separator in the cell bottom toolbar")));
|
|
2629
|
-
const focusedCellBackground = registerColor('notebook.focusedCellBackground',
|
|
2630
|
-
dark: null,
|
|
2631
|
-
light: null,
|
|
2632
|
-
hcDark: null,
|
|
2633
|
-
hcLight: null
|
|
2634
|
-
}, ( localizeWithPath(_moduleId, 9, "The background color of a cell when the cell is focused.")));
|
|
2599
|
+
const focusedCellBackground = registerColor('notebook.focusedCellBackground', null, ( localizeWithPath(_moduleId, 9, "The background color of a cell when the cell is focused.")));
|
|
2635
2600
|
registerColor('notebook.selectedCellBackground', {
|
|
2636
2601
|
dark: listInactiveSelectionBackground,
|
|
2637
2602
|
light: listInactiveSelectionBackground,
|
|
@@ -2664,22 +2629,12 @@ registerColor('notebook.inactiveSelectedCellBorder', {
|
|
|
2664
2629
|
13,
|
|
2665
2630
|
"The color of the cell's borders when multiple cells are selected."
|
|
2666
2631
|
)));
|
|
2667
|
-
registerColor('notebook.focusedCellBorder',
|
|
2668
|
-
dark: focusBorder,
|
|
2669
|
-
light: focusBorder,
|
|
2670
|
-
hcDark: focusBorder,
|
|
2671
|
-
hcLight: focusBorder
|
|
2672
|
-
}, ( localizeWithPath(
|
|
2632
|
+
registerColor('notebook.focusedCellBorder', focusBorder, ( localizeWithPath(
|
|
2673
2633
|
_moduleId,
|
|
2674
2634
|
14,
|
|
2675
2635
|
"The color of the cell's focus indicator borders when the cell is focused."
|
|
2676
2636
|
)));
|
|
2677
|
-
registerColor('notebook.inactiveFocusedCellBorder',
|
|
2678
|
-
dark: notebookCellBorder,
|
|
2679
|
-
light: notebookCellBorder,
|
|
2680
|
-
hcDark: notebookCellBorder,
|
|
2681
|
-
hcLight: notebookCellBorder
|
|
2682
|
-
}, ( localizeWithPath(
|
|
2637
|
+
registerColor('notebook.inactiveFocusedCellBorder', notebookCellBorder, ( localizeWithPath(
|
|
2683
2638
|
_moduleId,
|
|
2684
2639
|
15,
|
|
2685
2640
|
"The color of the cell's top and bottom border when a cell is focused while the primary focus is outside of the editor."
|
|
@@ -2690,30 +2645,10 @@ registerColor('notebook.cellStatusBarItemHoverBackground', {
|
|
|
2690
2645
|
hcDark: ( (new Color( (new RGBA(255, 255, 255, 0.15))))),
|
|
2691
2646
|
hcLight: ( (new Color( (new RGBA(0, 0, 0, 0.08))))),
|
|
2692
2647
|
}, ( localizeWithPath(_moduleId, 16, "The background color of notebook cell status bar items.")));
|
|
2693
|
-
registerColor('notebook.cellInsertionIndicator',
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
hcLight: focusBorder
|
|
2698
|
-
}, ( localizeWithPath(_moduleId, 17, "The color of the notebook cell insertion indicator.")));
|
|
2699
|
-
registerColor('notebookScrollbarSlider.background', {
|
|
2700
|
-
dark: scrollbarSliderBackground,
|
|
2701
|
-
light: scrollbarSliderBackground,
|
|
2702
|
-
hcDark: scrollbarSliderBackground,
|
|
2703
|
-
hcLight: scrollbarSliderBackground
|
|
2704
|
-
}, ( localizeWithPath(_moduleId, 18, "Notebook scrollbar slider background color.")));
|
|
2705
|
-
registerColor('notebookScrollbarSlider.hoverBackground', {
|
|
2706
|
-
dark: scrollbarSliderHoverBackground,
|
|
2707
|
-
light: scrollbarSliderHoverBackground,
|
|
2708
|
-
hcDark: scrollbarSliderHoverBackground,
|
|
2709
|
-
hcLight: scrollbarSliderHoverBackground
|
|
2710
|
-
}, ( localizeWithPath(_moduleId, 19, "Notebook scrollbar slider background color when hovering.")));
|
|
2711
|
-
registerColor('notebookScrollbarSlider.activeBackground', {
|
|
2712
|
-
dark: scrollbarSliderActiveBackground,
|
|
2713
|
-
light: scrollbarSliderActiveBackground,
|
|
2714
|
-
hcDark: scrollbarSliderActiveBackground,
|
|
2715
|
-
hcLight: scrollbarSliderActiveBackground
|
|
2716
|
-
}, ( localizeWithPath(
|
|
2648
|
+
registerColor('notebook.cellInsertionIndicator', focusBorder, ( localizeWithPath(_moduleId, 17, "The color of the notebook cell insertion indicator.")));
|
|
2649
|
+
registerColor('notebookScrollbarSlider.background', scrollbarSliderBackground, ( localizeWithPath(_moduleId, 18, "Notebook scrollbar slider background color.")));
|
|
2650
|
+
registerColor('notebookScrollbarSlider.hoverBackground', scrollbarSliderHoverBackground, ( localizeWithPath(_moduleId, 19, "Notebook scrollbar slider background color when hovering.")));
|
|
2651
|
+
registerColor('notebookScrollbarSlider.activeBackground', scrollbarSliderActiveBackground, ( localizeWithPath(
|
|
2717
2652
|
_moduleId,
|
|
2718
2653
|
20,
|
|
2719
2654
|
"Notebook scrollbar slider background color when clicked on."
|
|
@@ -4,29 +4,30 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
4
4
|
const _moduleId = "vs/workbench/contrib/notebook/browser/notebookIcons";
|
|
5
5
|
const selectKernelIcon = registerIcon('notebook-kernel-select', Codicon.serverEnvironment, ( localizeWithPath(_moduleId, 0, 'Configure icon to select a kernel in notebook editors.')));
|
|
6
6
|
const executeIcon = registerIcon('notebook-execute', Codicon.play, ( localizeWithPath(_moduleId, 1, 'Icon to execute in notebook editors.')));
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
7
|
+
const configIcon = registerIcon('notebook-config', Codicon.gear, ( localizeWithPath(_moduleId, 2, 'Icon to configure in notebook editors.')));
|
|
8
|
+
const executeAboveIcon = registerIcon('notebook-execute-above', Codicon.runAbove, ( localizeWithPath(_moduleId, 3, 'Icon to execute above cells in notebook editors.')));
|
|
9
|
+
const executeBelowIcon = registerIcon('notebook-execute-below', Codicon.runBelow, ( localizeWithPath(_moduleId, 4, 'Icon to execute below cells in notebook editors.')));
|
|
10
|
+
const stopIcon = registerIcon('notebook-stop', Codicon.primitiveSquare, ( localizeWithPath(_moduleId, 5, 'Icon to stop an execution in notebook editors.')));
|
|
11
|
+
const deleteCellIcon = registerIcon('notebook-delete-cell', Codicon.trash, ( localizeWithPath(_moduleId, 6, 'Icon to delete a cell in notebook editors.')));
|
|
12
|
+
const executeAllIcon = registerIcon('notebook-execute-all', Codicon.runAll, ( localizeWithPath(_moduleId, 7, 'Icon to execute all cells in notebook editors.')));
|
|
13
|
+
const editIcon = registerIcon('notebook-edit', Codicon.pencil, ( localizeWithPath(_moduleId, 8, 'Icon to edit a cell in notebook editors.')));
|
|
14
|
+
const stopEditIcon = registerIcon('notebook-stop-edit', Codicon.check, ( localizeWithPath(_moduleId, 9, 'Icon to stop editing a cell in notebook editors.')));
|
|
15
|
+
const moveUpIcon = registerIcon('notebook-move-up', Codicon.arrowUp, ( localizeWithPath(_moduleId, 10, 'Icon to move up a cell in notebook editors.')));
|
|
16
|
+
const moveDownIcon = registerIcon('notebook-move-down', Codicon.arrowDown, ( localizeWithPath(_moduleId, 11, 'Icon to move down a cell in notebook editors.')));
|
|
17
|
+
const clearIcon = registerIcon('notebook-clear', Codicon.clearAll, ( localizeWithPath(_moduleId, 12, 'Icon to clear cell outputs in notebook editors.')));
|
|
18
|
+
const splitCellIcon = registerIcon('notebook-split-cell', Codicon.splitVertical, ( localizeWithPath(_moduleId, 13, 'Icon to split a cell in notebook editors.')));
|
|
19
|
+
const successStateIcon = registerIcon('notebook-state-success', Codicon.check, ( localizeWithPath(_moduleId, 14, 'Icon to indicate a success state in notebook editors.')));
|
|
20
|
+
const errorStateIcon = registerIcon('notebook-state-error', Codicon.error, ( localizeWithPath(_moduleId, 15, 'Icon to indicate an error state in notebook editors.')));
|
|
21
|
+
const pendingStateIcon = registerIcon('notebook-state-pending', Codicon.clock, ( localizeWithPath(_moduleId, 16, 'Icon to indicate a pending state in notebook editors.')));
|
|
22
|
+
const executingStateIcon = registerIcon('notebook-state-executing', Codicon.sync, ( localizeWithPath(_moduleId, 17, 'Icon to indicate an executing state in notebook editors.')));
|
|
23
|
+
const collapsedIcon = registerIcon('notebook-collapsed', Codicon.chevronRight, ( localizeWithPath(_moduleId, 18, 'Icon to annotate a collapsed section in notebook editors.')));
|
|
24
|
+
const expandedIcon = registerIcon('notebook-expanded', Codicon.chevronDown, ( localizeWithPath(_moduleId, 19, 'Icon to annotate an expanded section in notebook editors.')));
|
|
25
|
+
const openAsTextIcon = registerIcon('notebook-open-as-text', Codicon.fileCode, ( localizeWithPath(_moduleId, 20, 'Icon to open the notebook in a text editor.')));
|
|
26
|
+
const revertIcon = registerIcon('notebook-revert', Codicon.discard, ( localizeWithPath(_moduleId, 21, 'Icon to revert in notebook editors.')));
|
|
27
|
+
const renderOutputIcon = registerIcon('notebook-render-output', Codicon.preview, ( localizeWithPath(_moduleId, 22, 'Icon to render output in diff editor.')));
|
|
28
|
+
const mimetypeIcon = registerIcon('notebook-mimetype', Codicon.code, ( localizeWithPath(_moduleId, 23, 'Icon for a mime type in notebook editors.')));
|
|
29
|
+
const copyIcon = registerIcon('notebook-copy', Codicon.copy, ( localizeWithPath(_moduleId, 24, 'Icon to copy content to clipboard')));
|
|
30
|
+
const previousChangeIcon = registerIcon('notebook-diff-editor-previous-change', Codicon.arrowUp, ( localizeWithPath(_moduleId, 25, 'Icon for the previous change action in the diff editor.')));
|
|
31
|
+
const nextChangeIcon = registerIcon('notebook-diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(_moduleId, 26, 'Icon for the next change action in the diff editor.')));
|
|
32
|
+
const variablesViewIcon = registerIcon('variables-view-icon', Codicon.debugAlt, ( localizeWithPath(_moduleId, 27, 'View icon of the variables view.')));
|
|
33
|
+
export { clearIcon, collapsedIcon, configIcon, copyIcon, deleteCellIcon, editIcon, errorStateIcon, executeAboveIcon, executeAllIcon, executeBelowIcon, executeIcon, executingStateIcon, expandedIcon, mimetypeIcon, moveDownIcon, moveUpIcon, nextChangeIcon, openAsTextIcon, pendingStateIcon, previousChangeIcon, renderOutputIcon, revertIcon, selectKernelIcon, splitCellIcon, stopEditIcon, stopIcon, successStateIcon, variablesViewIcon };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
1
2
|
import { PixelRatio } from '../../../../base/browser/pixelRatio.js';
|
|
2
3
|
import { Emitter } from '../../../../base/common/event.js';
|
|
3
4
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
4
5
|
import { isObject } from '../../../../base/common/types.js';
|
|
5
6
|
import { FontMeasurements } from '../../../../editor/browser/config/fontMeasurements.js';
|
|
7
|
+
import { ICodeEditorService } from '../../../../editor/browser/services/codeEditorService.js';
|
|
6
8
|
import { BareFontInfo } from '../../../../editor/common/config/fontInfo.js';
|
|
7
9
|
import { ConfigurationTarget } from '../../../../platform/configuration/common/configuration.js';
|
|
10
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
8
11
|
import { NotebookSetting } from '../common/notebookCommon.js';
|
|
12
|
+
import { INotebookExecutionStateService } from '../common/notebookExecutionStateService.service.js';
|
|
9
13
|
const SCROLLABLE_ELEMENT_PADDING_TOP = 18;
|
|
10
14
|
const OutputInnerContainerTopPadding = 4;
|
|
11
15
|
const defaultConfigConstants = ( Object.freeze({
|
|
@@ -26,15 +30,15 @@ const compactConfigConstants = ( Object.freeze({
|
|
|
26
30
|
markdownCellGutter: 36,
|
|
27
31
|
focusIndicatorLeftMargin: 4
|
|
28
32
|
}));
|
|
29
|
-
class NotebookOptions extends Disposable {
|
|
30
|
-
constructor(targetWindow,
|
|
33
|
+
let NotebookOptions = class NotebookOptions extends Disposable {
|
|
34
|
+
constructor(targetWindow, isReadonly, overrides, configurationService, notebookExecutionStateService, codeEditorService) {
|
|
31
35
|
super();
|
|
32
36
|
this.targetWindow = targetWindow;
|
|
37
|
+
this.isReadonly = isReadonly;
|
|
38
|
+
this.overrides = overrides;
|
|
33
39
|
this.configurationService = configurationService;
|
|
34
40
|
this.notebookExecutionStateService = notebookExecutionStateService;
|
|
35
41
|
this.codeEditorService = codeEditorService;
|
|
36
|
-
this.isReadonly = isReadonly;
|
|
37
|
-
this.overrides = overrides;
|
|
38
42
|
this._onDidChangeOptions = this._register(( new Emitter()));
|
|
39
43
|
this.onDidChangeOptions = this._onDidChangeOptions.event;
|
|
40
44
|
this._editorTopPadding = 12;
|
|
@@ -633,5 +637,10 @@ class NotebookOptions extends Disposable {
|
|
|
633
637
|
verticalIndicatorHeight: totalHeight - bottomToolbarGap - foldHintHeight
|
|
634
638
|
};
|
|
635
639
|
}
|
|
636
|
-
}
|
|
640
|
+
};
|
|
641
|
+
NotebookOptions = ( __decorate([
|
|
642
|
+
( __param(3, IConfigurationService)),
|
|
643
|
+
( __param(4, INotebookExecutionStateService)),
|
|
644
|
+
( __param(5, ICodeEditorService))
|
|
645
|
+
], NotebookOptions));
|
|
637
646
|
export { NotebookOptions, OutputInnerContainerTopPadding };
|
|
@@ -47,7 +47,7 @@ let UnifiedSubmenuActionView = class UnifiedSubmenuActionView extends SubmenuEnt
|
|
|
47
47
|
container.classList.add('notebook-action-view-item-unified');
|
|
48
48
|
this._actionLabel = document.createElement('a');
|
|
49
49
|
container.appendChild(this._actionLabel);
|
|
50
|
-
this._hover = this._register(this._hoverService.
|
|
50
|
+
this._hover = this._register(this._hoverService.setupManagedHover(this.options.hoverDelegate ?? getDefaultHoverDelegate('element'), this._actionLabel, ''));
|
|
51
51
|
this.updateLabel();
|
|
52
52
|
for (const event of [EventType.CLICK, EventType.MOUSE_DOWN, EventType$1.Tap]) {
|
|
53
53
|
this._register(addDisposableListener(container, event, e => this.onClick(e, true)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { coalesce } from '../../../../../../base/common/arrays.js';
|
|
3
|
-
import { DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
3
|
+
import { DisposableStore, MutableDisposable } from '../../../../../../base/common/lifecycle.js';
|
|
4
4
|
import { EDITOR_FONT_DEFAULTS } from '../../../../../../editor/common/config/editorOptions.js';
|
|
5
5
|
import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
|
|
6
6
|
import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
|
|
@@ -20,27 +20,22 @@ let CellComments = class CellComments extends CellContentPart {
|
|
|
20
20
|
this.commentService = commentService;
|
|
21
21
|
this.configurationService = configurationService;
|
|
22
22
|
this.instantiationService = instantiationService;
|
|
23
|
-
this.
|
|
24
|
-
this._commentThreadWidget = null;
|
|
25
|
-
this.commentTheadDisposables = this._register(( new DisposableStore()));
|
|
23
|
+
this._commentThreadDisposables = this._register(( new DisposableStore()));
|
|
26
24
|
this.container.classList.add('review-widget');
|
|
25
|
+
this._register(this._commentThreadWidget = ( new MutableDisposable()));
|
|
27
26
|
this._register(this.themeService.onDidColorThemeChange(this._applyTheme, this));
|
|
28
27
|
this._applyTheme();
|
|
29
28
|
}
|
|
30
29
|
async initialize(element) {
|
|
31
|
-
if (this.
|
|
30
|
+
if (this.currentElement === element) {
|
|
32
31
|
return;
|
|
33
32
|
}
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
if (info) {
|
|
37
|
-
await this._createCommentTheadWidget(info.owner, info.thread);
|
|
38
|
-
}
|
|
33
|
+
this.currentElement = element;
|
|
34
|
+
await this._updateThread();
|
|
39
35
|
}
|
|
40
36
|
async _createCommentTheadWidget(owner, commentThread) {
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this._commentThreadWidget = this.instantiationService.createInstance(CommentThreadWidget, this.container, this.notebookEditor, owner, this.notebookEditor.textModel.uri, this.contextKeyService, this.instantiationService, commentThread, undefined, undefined, {
|
|
37
|
+
this._commentThreadDisposables.clear();
|
|
38
|
+
this._commentThreadWidget.value = this.instantiationService.createInstance(CommentThreadWidget, this.container, this.notebookEditor, owner, this.notebookEditor.textModel.uri, this.contextKeyService, this.instantiationService, commentThread, undefined, undefined, {
|
|
44
39
|
codeBlockFontFamily: this.configurationService.getValue('editor').fontFamily || EDITOR_FONT_DEFAULTS.fontFamily
|
|
45
40
|
}, undefined, {
|
|
46
41
|
actionRunner: () => {
|
|
@@ -48,40 +43,43 @@ let CellComments = class CellComments extends CellContentPart {
|
|
|
48
43
|
collapse: () => { }
|
|
49
44
|
});
|
|
50
45
|
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
51
|
-
await this._commentThreadWidget.display(layoutInfo.fontInfo.lineHeight, true);
|
|
46
|
+
await this._commentThreadWidget.value.display(layoutInfo.fontInfo.lineHeight, true);
|
|
52
47
|
this._applyTheme();
|
|
53
|
-
this.
|
|
54
|
-
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget) {
|
|
55
|
-
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.getDimensions().height);
|
|
48
|
+
this._commentThreadDisposables.add(this._commentThreadWidget.value.onDidResize(() => {
|
|
49
|
+
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget.value) {
|
|
50
|
+
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
|
|
56
51
|
}
|
|
57
52
|
}));
|
|
58
53
|
}
|
|
59
54
|
_bindListeners() {
|
|
60
|
-
this.cellDisposables.add(this.commentService.onDidUpdateCommentThreads(async () =>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
await this._commentThreadWidget.updateCommentThread(info.thread);
|
|
81
|
-
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.getDimensions().height);
|
|
82
|
-
}
|
|
55
|
+
this.cellDisposables.add(this.commentService.onDidUpdateCommentThreads(async () => this._updateThread()));
|
|
56
|
+
}
|
|
57
|
+
async _updateThread() {
|
|
58
|
+
if (!this.currentElement) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const info = await this._getCommentThreadForCell(this.currentElement);
|
|
62
|
+
if (!this._commentThreadWidget.value && info) {
|
|
63
|
+
await this._createCommentTheadWidget(info.owner, info.thread);
|
|
64
|
+
const layoutInfo = this.currentElement.layoutInfo;
|
|
65
|
+
this.container.style.top = `${layoutInfo.outputContainerOffset + layoutInfo.outputTotalHeight}px`;
|
|
66
|
+
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (this._commentThreadWidget.value) {
|
|
70
|
+
if (!info) {
|
|
71
|
+
this._commentThreadDisposables.clear();
|
|
72
|
+
this._commentThreadWidget.value = undefined;
|
|
73
|
+
this.currentElement.commentHeight = 0;
|
|
74
|
+
return;
|
|
83
75
|
}
|
|
84
|
-
|
|
76
|
+
if (this._commentThreadWidget.value.commentThread === info.thread) {
|
|
77
|
+
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
await this._commentThreadWidget.value.updateCommentThread(info.thread);
|
|
81
|
+
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
|
|
82
|
+
}
|
|
85
83
|
}
|
|
86
84
|
_calculateCommentThreadHeight(bodyHeight) {
|
|
87
85
|
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
@@ -104,22 +102,21 @@ let CellComments = class CellComments extends CellContentPart {
|
|
|
104
102
|
_applyTheme() {
|
|
105
103
|
const theme = this.themeService.getColorTheme();
|
|
106
104
|
const fontInfo = this.notebookEditor.getLayoutInfo().fontInfo;
|
|
107
|
-
this._commentThreadWidget?.applyTheme(theme, fontInfo);
|
|
105
|
+
this._commentThreadWidget.value?.applyTheme(theme, fontInfo);
|
|
108
106
|
}
|
|
109
107
|
didRenderCell(element) {
|
|
110
108
|
if (element.cellKind === CellKind.Code) {
|
|
111
|
-
this.currentElement = element;
|
|
112
109
|
this.initialize(element);
|
|
113
110
|
this._bindListeners();
|
|
114
111
|
}
|
|
115
112
|
}
|
|
116
113
|
prepareLayout() {
|
|
117
|
-
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget) {
|
|
118
|
-
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.getDimensions().height);
|
|
114
|
+
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget.value) {
|
|
115
|
+
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
118
|
updateInternalLayoutNow(element) {
|
|
122
|
-
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget) {
|
|
119
|
+
if (this.currentElement?.cellKind === CellKind.Code && this._commentThreadWidget.value) {
|
|
123
120
|
const layoutInfo = element.layoutInfo;
|
|
124
121
|
this.container.style.top = `${layoutInfo.outputContainerOffset + layoutInfo.outputTotalHeight}px`;
|
|
125
122
|
}
|
|
@@ -252,7 +252,7 @@ class CellDragAndDropController extends Disposable {
|
|
|
252
252
|
const dragImage = dragImageProvider();
|
|
253
253
|
cellRoot.parentElement.appendChild(dragImage);
|
|
254
254
|
event.dataTransfer.setDragImage(dragImage, 0, 0);
|
|
255
|
-
setTimeout(() =>
|
|
255
|
+
setTimeout(() => dragImage.remove(), 0);
|
|
256
256
|
};
|
|
257
257
|
for (const dragHandle of dragHandles) {
|
|
258
258
|
templateData.templateDisposables.add(addDisposableListener(dragHandle, EventType.DRAG_START, onDragStart));
|
|
@@ -51,7 +51,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
53
|
detach() {
|
|
54
|
-
this.renderedOutputContainer?.
|
|
54
|
+
this.renderedOutputContainer?.remove();
|
|
55
55
|
let count = 0;
|
|
56
56
|
if (this.innerContainer) {
|
|
57
57
|
for (let i = 0; i < this.innerContainer.childNodes.length; i++) {
|
|
@@ -63,7 +63,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (count === 0) {
|
|
66
|
-
this.innerContainer.
|
|
66
|
+
this.innerContainer.remove();
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
this.notebookEditor.removeInset(this.output);
|
|
@@ -98,7 +98,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
98
98
|
this._renderDisposableStore.clear();
|
|
99
99
|
const element = this.innerContainer;
|
|
100
100
|
if (element) {
|
|
101
|
-
element.
|
|
101
|
+
element.remove();
|
|
102
102
|
this.notebookEditor.removeInset(this.output);
|
|
103
103
|
}
|
|
104
104
|
this.render(nextElement);
|
|
@@ -294,7 +294,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
294
294
|
this._renderDisposableStore.clear();
|
|
295
295
|
const element = this.innerContainer;
|
|
296
296
|
if (element) {
|
|
297
|
-
element.
|
|
297
|
+
element.remove();
|
|
298
298
|
this.notebookEditor.removeInset(viewModel);
|
|
299
299
|
}
|
|
300
300
|
viewModel.pickedMimeType = mimeTypes[pick.index];
|
|
@@ -87,12 +87,15 @@ let CellEditorStatusBar = class CellEditorStatusBar extends CellContentPart {
|
|
|
87
87
|
}));
|
|
88
88
|
}
|
|
89
89
|
didRenderCell(element) {
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
if (this._notebookEditor.hasModel()) {
|
|
91
|
+
const context = {
|
|
92
|
+
ui: true,
|
|
93
|
+
cell: element,
|
|
94
|
+
notebookEditor: this._notebookEditor,
|
|
95
|
+
$mid: MarshalledId.NotebookCellActionContext
|
|
96
|
+
};
|
|
97
|
+
this.updateContext(context);
|
|
98
|
+
}
|
|
96
99
|
if (this._editor) {
|
|
97
100
|
const updateFocusModeForEditorEvent = () => {
|
|
98
101
|
if (this._editor && (this._editor.hasWidgetFocus() || (this.statusBarContainer.ownerDocument.activeElement && this.statusBarContainer.contains(this.statusBarContainer.ownerDocument.activeElement)))) {
|
|
@@ -180,7 +183,7 @@ let CellEditorStatusBar = class CellEditorStatusBar extends CellContentPart {
|
|
|
180
183
|
if (renderedItems.length > newItems.length) {
|
|
181
184
|
const deleted = renderedItems.splice(newItems.length, renderedItems.length - newItems.length);
|
|
182
185
|
for (const deletedItem of deleted) {
|
|
183
|
-
container.
|
|
186
|
+
deletedItem.container.remove();
|
|
184
187
|
deletedItem.dispose();
|
|
185
188
|
}
|
|
186
189
|
}
|
|
@@ -258,8 +261,8 @@ let CellStatusBarItem = class CellStatusBarItem extends Disposable {
|
|
|
258
261
|
this.container.setAttribute('aria-label', ariaLabel);
|
|
259
262
|
this.container.setAttribute('role', role || '');
|
|
260
263
|
if (item.tooltip) {
|
|
261
|
-
const hoverContent = typeof item.tooltip === 'string' ? item.tooltip : { markdown: item.tooltip };
|
|
262
|
-
this._itemDisposables.add(this._hoverService.
|
|
264
|
+
const hoverContent = typeof item.tooltip === 'string' ? item.tooltip : { markdown: item.tooltip, markdownNotSupportedFallback: undefined };
|
|
265
|
+
this._itemDisposables.add(this._hoverService.setupManagedHover(this._hoverDelegate, this.container, hoverContent));
|
|
263
266
|
}
|
|
264
267
|
this.container.classList.toggle('cell-status-item-has-command', !!item.command);
|
|
265
268
|
if (item.command) {
|