@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
|
@@ -60,13 +60,15 @@ let BetweenCellToolbar = class BetweenCellToolbar extends CellOverlayPart {
|
|
|
60
60
|
}
|
|
61
61
|
didRenderCell(element) {
|
|
62
62
|
const betweenCellToolbar = this._initialize();
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
if (this._notebookEditor.hasModel()) {
|
|
64
|
+
betweenCellToolbar.context = {
|
|
65
|
+
ui: true,
|
|
66
|
+
cell: element,
|
|
67
|
+
notebookEditor: this._notebookEditor,
|
|
68
|
+
source: 'insertToolbar',
|
|
69
|
+
$mid: MarshalledId.NotebookCellActionContext
|
|
70
|
+
};
|
|
71
|
+
}
|
|
70
72
|
this.updateInternalLayoutNow(element);
|
|
71
73
|
}
|
|
72
74
|
updateInternalLayoutNow(element) {
|
|
@@ -151,13 +153,16 @@ let CellTitleToolbarPart = class CellTitleToolbarPart extends CellOverlayPart {
|
|
|
151
153
|
const model = this._initializeModel();
|
|
152
154
|
const view = this._initialize(model, element);
|
|
153
155
|
this.cellDisposables.add(registerCellToolbarStickyScroll(this._notebookEditor, element, this.toolbarContainer, { extraOffset: 4, min: -14 }));
|
|
154
|
-
this.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
if (this._notebookEditor.hasModel()) {
|
|
157
|
+
const toolbarContext = {
|
|
158
|
+
ui: true,
|
|
159
|
+
cell: element,
|
|
160
|
+
notebookEditor: this._notebookEditor,
|
|
161
|
+
source: 'cellToolbar',
|
|
162
|
+
$mid: MarshalledId.NotebookCellActionContext
|
|
163
|
+
};
|
|
164
|
+
this.updateContext(view, toolbarContext);
|
|
165
|
+
}
|
|
161
166
|
}
|
|
162
167
|
updateContext(view, toolbarContext) {
|
|
163
168
|
view.toolbar.context = toolbarContext;
|
|
@@ -92,7 +92,7 @@ let CodeCell = class CodeCell extends Disposable {
|
|
|
92
92
|
}));
|
|
93
93
|
const executionItemElement = append(this.templateData.cellInputCollapsedContainer, $('.collapsed-execution-icon'));
|
|
94
94
|
this._register(toDisposable(() => {
|
|
95
|
-
executionItemElement.
|
|
95
|
+
executionItemElement.remove();
|
|
96
96
|
}));
|
|
97
97
|
this._collapsedExecutionIcon = this._register(this.instantiationService.createInstance(CollapsedCodeCellExecutionIcon, this.notebookEditor, this.viewCell, executionItemElement));
|
|
98
98
|
this.updateForCollapseState();
|
|
@@ -390,7 +390,7 @@ let CodeCell = class CodeCell extends Disposable {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
elements.forEach(element => {
|
|
393
|
-
element.
|
|
393
|
+
element.remove();
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
_updateOutputInnerContainer(hide) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js
CHANGED
|
@@ -42,12 +42,15 @@ let RunToolbar = class RunToolbar extends CellContentPart {
|
|
|
42
42
|
}
|
|
43
43
|
didRenderCell(element) {
|
|
44
44
|
this.cellDisposables.add(registerCellToolbarStickyScroll(this.notebookEditor, element, this.runButtonContainer));
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
if (this.notebookEditor.hasModel()) {
|
|
46
|
+
const context = {
|
|
47
|
+
ui: true,
|
|
48
|
+
cell: element,
|
|
49
|
+
notebookEditor: this.notebookEditor,
|
|
50
|
+
$mid: MarshalledId.NotebookCellActionContext
|
|
51
|
+
};
|
|
52
|
+
this.toolbar.context = context;
|
|
53
|
+
}
|
|
51
54
|
}
|
|
52
55
|
getCellToolbarActions(menu) {
|
|
53
56
|
const primary = [];
|
|
@@ -276,7 +276,7 @@ let MarkupCell = class MarkupCell extends Disposable {
|
|
|
276
276
|
this.templateData.editorContainer.innerText = '';
|
|
277
277
|
const editorContextKeyService = this.contextKeyService.createScoped(this.templateData.editorPart);
|
|
278
278
|
EditorContextKeys.inCompositeEditor.bindTo(editorContextKeyService).set(true);
|
|
279
|
-
const editorInstaService = this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, editorContextKeyService]))));
|
|
279
|
+
const editorInstaService = this.editorDisposables.add(this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, editorContextKeyService])))));
|
|
280
280
|
this.editorDisposables.add(editorContextKeyService);
|
|
281
281
|
this.editor = this.editorDisposables.add(editorInstaService.createInstance(CodeEditorWidget, this.templateData.editorContainer, {
|
|
282
282
|
...this.editorOptions,
|
|
@@ -182,7 +182,7 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
182
182
|
'notebook-markdown-line-height': typeof this.options.markdownLineHeight === 'number' && this.options.markdownLineHeight > 0 ? `${this.options.markdownLineHeight}px` : `normal`,
|
|
183
183
|
'notebook-cell-output-font-size': `${this.options.outputFontSize || this.options.fontSize}px`,
|
|
184
184
|
'notebook-cell-output-line-height': `${this.options.outputLineHeight}px`,
|
|
185
|
-
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit}px`,
|
|
185
|
+
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit + 2}px`,
|
|
186
186
|
'notebook-cell-output-font-family': this.options.outputFontFamily || this.options.fontFamily,
|
|
187
187
|
'notebook-cell-markup-empty-content': ( localizeWithPath(_moduleId, 0, "Empty markdown cell, double-click or press enter to edit.")),
|
|
188
188
|
'notebook-cell-renderer-not-found-error': ( localizeWithPath(_moduleId, 1, "No renderer found for '$0'")),
|
|
@@ -333,7 +333,7 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
table, thead, tr, th, td, tbody {
|
|
336
|
-
border: none
|
|
336
|
+
border: none;
|
|
337
337
|
border-color: transparent;
|
|
338
338
|
border-spacing: 0;
|
|
339
339
|
border-collapse: collapse;
|
|
@@ -925,7 +925,9 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
if (match) {
|
|
928
|
-
|
|
928
|
+
const selection = lineNumber !== undefined && column !== undefined ? { startLineNumber: lineNumber, startColumn: column } : undefined;
|
|
929
|
+
const textEditorOptions = { selection: selection };
|
|
930
|
+
match.group.openEditor(match.editor, selection ? textEditorOptions : undefined);
|
|
929
931
|
}
|
|
930
932
|
else {
|
|
931
933
|
this.openerService.open(uri, { fromUserGesture: true, fromWorkspace: true });
|
|
@@ -123,7 +123,7 @@ let MarkupCellRenderer = class MarkupCellRenderer extends AbstractCellRenderer {
|
|
|
123
123
|
const cellCommentPartContainer = append(container, $('.cell-comment-container'));
|
|
124
124
|
const innerContent = append(container, $('.cell.markdown'));
|
|
125
125
|
const bottomCellContainer = append(container, $('.cell-bottom-toolbar-container'));
|
|
126
|
-
const scopedInstaService = this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, contextKeyService]))));
|
|
126
|
+
const scopedInstaService = templateDisposables.add(this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, contextKeyService])))));
|
|
127
127
|
const rootClassDelegate = {
|
|
128
128
|
toggle: (className, force) => container.classList.toggle(className, force)
|
|
129
129
|
};
|
|
@@ -234,7 +234,7 @@ let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
|
|
|
234
234
|
const editorContainer = append(editorPart, $('.cell-editor-container'));
|
|
235
235
|
const cellCommentPartContainer = append(container, $('.cell-comment-container'));
|
|
236
236
|
const editorContextKeyService = templateDisposables.add(this.contextKeyServiceProvider(editorPart));
|
|
237
|
-
const editorInstaService = this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, editorContextKeyService]))));
|
|
237
|
+
const editorInstaService = templateDisposables.add(this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, editorContextKeyService])))));
|
|
238
238
|
EditorContextKeys.inCompositeEditor.bindTo(editorContextKeyService).set(true);
|
|
239
239
|
const editor = editorInstaService.createInstance(CodeEditorWidget, editorContainer, {
|
|
240
240
|
...this.editorOptions.getDefaultValue(),
|
|
@@ -256,7 +256,7 @@ let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
|
|
|
256
256
|
focusSinkElement.setAttribute('tabindex', '0');
|
|
257
257
|
const bottomCellToolbarContainer = append(container, $('.cell-bottom-toolbar-container'));
|
|
258
258
|
const focusIndicatorBottom = ( (new FastDomNode(append(container, $('.cell-focus-indicator.cell-focus-indicator-bottom')))));
|
|
259
|
-
const scopedInstaService = this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, contextKeyService]))));
|
|
259
|
+
const scopedInstaService = templateDisposables.add(this.instantiationService.createChild(( (new ServiceCollection([IContextKeyService, contextKeyService])))));
|
|
260
260
|
const rootClassDelegate = {
|
|
261
261
|
toggle: (className, force) => container.classList.toggle(className, force)
|
|
262
262
|
};
|
|
@@ -2266,7 +2266,7 @@ async function webviewPreloads(ctx) {
|
|
|
2266
2266
|
cellId: cellId
|
|
2267
2267
|
});
|
|
2268
2268
|
if (this.dragOverlay) {
|
|
2269
|
-
|
|
2269
|
+
this.dragOverlay.remove();
|
|
2270
2270
|
this.dragOverlay = undefined;
|
|
2271
2271
|
}
|
|
2272
2272
|
e.target.style.zIndex = '';
|
|
@@ -180,7 +180,10 @@ class BaseCellViewModel extends Disposable {
|
|
|
180
180
|
if (this._editorTransientState) {
|
|
181
181
|
writeTransientState(editor.getModel(), this._editorTransientState, this._codeEditorService);
|
|
182
182
|
}
|
|
183
|
-
this.
|
|
183
|
+
if (this._isDisposed) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
editor.changeDecorations((accessor) => {
|
|
184
187
|
this._resolvedDecorations.forEach((value, key) => {
|
|
185
188
|
if (key.startsWith('_lazy_')) {
|
|
186
189
|
const ret = accessor.addDecoration(value.options.range, value.options.options);
|
|
@@ -192,7 +195,7 @@ class BaseCellViewModel extends Disposable {
|
|
|
192
195
|
}
|
|
193
196
|
});
|
|
194
197
|
});
|
|
195
|
-
this._editorListeners.push(
|
|
198
|
+
this._editorListeners.push(editor.onDidChangeCursorSelection(() => { this._onDidChangeState.fire({ selectionChanged: true }); }));
|
|
196
199
|
const inlineChatController = InlineChatController.get(this._textEditor);
|
|
197
200
|
if (inlineChatController) {
|
|
198
201
|
this._editorListeners.push(inlineChatController.onWillStartSession(() => {
|
|
@@ -486,12 +489,12 @@ class BaseCellViewModel extends Disposable {
|
|
|
486
489
|
}
|
|
487
490
|
cellStartFind(value, options) {
|
|
488
491
|
let cellMatches = [];
|
|
492
|
+
const lineCount = this.textBuffer.getLineCount();
|
|
493
|
+
const findRange = options.findScope?.selectedTextRanges ?? [( new Range(1, 1, lineCount, this.textBuffer.getLineLength(lineCount) + 1))];
|
|
489
494
|
if (this.assertTextModelAttached()) {
|
|
490
|
-
cellMatches = this.textModel.findMatches(value,
|
|
495
|
+
cellMatches = this.textModel.findMatches(value, findRange, options.regex || false, options.caseSensitive || false, options.wholeWord ? options.wordSeparators || null : null, options.regex || false);
|
|
491
496
|
}
|
|
492
497
|
else {
|
|
493
|
-
const lineCount = this.textBuffer.getLineCount();
|
|
494
|
-
const fullRange = ( new Range(1, 1, lineCount, this.textBuffer.getLineLength(lineCount) + 1));
|
|
495
498
|
const searchParams = ( new SearchParams(
|
|
496
499
|
value,
|
|
497
500
|
options.regex || false,
|
|
@@ -502,7 +505,14 @@ class BaseCellViewModel extends Disposable {
|
|
|
502
505
|
if (!searchData) {
|
|
503
506
|
return null;
|
|
504
507
|
}
|
|
505
|
-
|
|
508
|
+
findRange.forEach(range => {
|
|
509
|
+
cellMatches.push(...this.textBuffer.findMatchesLineByLine(( new Range(
|
|
510
|
+
range.startLineNumber,
|
|
511
|
+
range.startColumn,
|
|
512
|
+
range.endLineNumber,
|
|
513
|
+
range.endColumn
|
|
514
|
+
)), searchData, options.regex || false, 1000));
|
|
515
|
+
});
|
|
506
516
|
}
|
|
507
517
|
return cellMatches;
|
|
508
518
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { Emitter, PauseableEmitter } from '../../../../../base/common/event.js';
|
|
3
3
|
import { dispose } from '../../../../../base/common/lifecycle.js';
|
|
4
|
+
import { observableValue } from '../../../../../base/common/observableInternal/base.js';
|
|
5
|
+
import '../../../../../base/common/observableInternal/derived.js';
|
|
6
|
+
import '../../../../../base/common/observableInternal/autorun.js';
|
|
7
|
+
import '../../../../../base/common/observableInternal/utils.js';
|
|
8
|
+
import '../../../../../base/common/cancellation.js';
|
|
9
|
+
import '../../../../../base/common/arrays.js';
|
|
4
10
|
import { generateUuid } from '../../../../../base/common/uuid.js';
|
|
5
11
|
import { ICodeEditorService } from '../../../../../editor/browser/services/codeEditorService.js';
|
|
6
|
-
import { ITextModelService } from '../../../../../editor/common/services/resolverService.js';
|
|
7
12
|
import { PrefixSumComputer } from '../../../../../editor/common/model/prefixSumComputer.js';
|
|
13
|
+
import { ITextModelService } from '../../../../../editor/common/services/resolverService.js';
|
|
8
14
|
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
15
|
+
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
9
16
|
import { IUndoRedoService } from '../../../../../platform/undoRedo/common/undoRedo.service.js';
|
|
10
17
|
import { CellLayoutState, CellEditState } from '../notebookBrowser.js';
|
|
11
18
|
import { CellOutputViewModel } from './cellOutputViewModel.js';
|
|
12
19
|
import { CellKind } from '../../common/notebookCommon.js';
|
|
13
20
|
import { INotebookService } from '../../common/notebookService.service.js';
|
|
14
21
|
import { BaseCellViewModel } from './baseCellViewModel.js';
|
|
15
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
16
|
-
import { observableValue } from '../../../../../base/common/observableInternal/base.js';
|
|
17
|
-
import '../../../../../base/common/observableInternal/derived.js';
|
|
18
|
-
import '../../../../../base/common/observableInternal/autorun.js';
|
|
19
|
-
import '../../../../../base/common/observableInternal/utils.js';
|
|
20
|
-
import '../../../../../base/common/cancellation.js';
|
|
21
|
-
import '../../../../../base/common/arrays.js';
|
|
22
22
|
const outputDisplayLimit = 500;
|
|
23
23
|
let CodeCellViewModel = class CodeCellViewModel extends BaseCellViewModel {
|
|
24
24
|
set editorHeight(height) {
|
|
@@ -14,16 +14,16 @@ import { ModelDecorationOptions } from '../../../../../editor/common/model/textM
|
|
|
14
14
|
import { ITextModelService } from '../../../../../editor/common/services/resolverService.js';
|
|
15
15
|
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
16
16
|
import { IUndoRedoService } from '../../../../../platform/undoRedo/common/undoRedo.service.js';
|
|
17
|
+
import { CellFindMatchModel } from '../contrib/find/findModel.js';
|
|
17
18
|
import { CellFoldingState, CellEditState } from '../notebookBrowser.js';
|
|
19
|
+
import { NotebookMetadataChangedEvent } from '../notebookViewEvents.js';
|
|
18
20
|
import { NotebookCellSelectionCollection } from './cellSelectionCollection.js';
|
|
19
21
|
import { CodeCellViewModel } from './codeCellViewModel.js';
|
|
20
22
|
import { MarkupCellViewModel } from './markupCellViewModel.js';
|
|
21
|
-
import { NotebookCellsChangeType, CellKind, SelectionStateType } from '../../common/notebookCommon.js';
|
|
22
|
-
import { cellRangesToIndexes, cellIndexesToRanges, reduceCellRanges } from '../../common/notebookRange.js';
|
|
23
|
-
import { NotebookMetadataChangedEvent } from '../notebookViewEvents.js';
|
|
24
|
-
import { CellFindMatchModel } from '../contrib/find/findModel.js';
|
|
23
|
+
import { NotebookCellsChangeType, CellKind, SelectionStateType, NotebookFindScopeType } from '../../common/notebookCommon.js';
|
|
25
24
|
import { NotebookExecutionType } from '../../common/notebookExecutionStateService.js';
|
|
26
25
|
import { INotebookExecutionStateService } from '../../common/notebookExecutionStateService.service.js';
|
|
26
|
+
import { cellRangesToIndexes, cellIndexesToRanges, reduceCellRanges } from '../../common/notebookRange.js';
|
|
27
27
|
const invalidFunc = () => { throw ( new Error(`Invalid change accessor`)); };
|
|
28
28
|
class DecorationsTree {
|
|
29
29
|
constructor() {
|
|
@@ -76,9 +76,6 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
76
76
|
get viewCells() {
|
|
77
77
|
return this._viewCells;
|
|
78
78
|
}
|
|
79
|
-
set viewCells(_) {
|
|
80
|
-
throw ( new Error('NotebookViewModel.viewCells is readonly'));
|
|
81
|
-
}
|
|
82
79
|
get length() {
|
|
83
80
|
return this._viewCells.length;
|
|
84
81
|
}
|
|
@@ -151,6 +148,7 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
151
148
|
MODEL_ID++;
|
|
152
149
|
this.id = '$notebookViewModel' + MODEL_ID;
|
|
153
150
|
this._instanceId = singleLetterHash(MODEL_ID);
|
|
151
|
+
this.replView = !!this.options.inRepl;
|
|
154
152
|
const compute = (changes, synchronous) => {
|
|
155
153
|
const diffs = ( changes.map(splice => {
|
|
156
154
|
return [splice[0], splice[1], ( splice[2].map(cell => {
|
|
@@ -261,9 +259,10 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
261
259
|
this._register(this._selectionCollection.onDidChangeSelection(e => {
|
|
262
260
|
this._onDidChangeSelection.fire(e);
|
|
263
261
|
}));
|
|
264
|
-
this.
|
|
265
|
-
|
|
266
|
-
|
|
262
|
+
const viewCellCount = this.replView ? this._notebook.cells.length - 1 : this._notebook.cells.length;
|
|
263
|
+
for (let i = 0; i < viewCellCount; i++) {
|
|
264
|
+
this._viewCells.push(createCellViewModel(this._instantiationService, this, this._notebook.cells[i], this._viewContext));
|
|
265
|
+
}
|
|
267
266
|
this._viewCells.forEach(cell => {
|
|
268
267
|
this._handleToViewCellMapping.set(cell.handle, cell);
|
|
269
268
|
});
|
|
@@ -706,8 +705,8 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
706
705
|
find(value, options) {
|
|
707
706
|
const matches = [];
|
|
708
707
|
let findCells = [];
|
|
709
|
-
|
|
710
|
-
|
|
708
|
+
if (options.findScope && (options.findScope.findScopeType === NotebookFindScopeType.Cells || options.findScope.findScopeType === NotebookFindScopeType.Text)) {
|
|
709
|
+
const selectedRanges = options.findScope.selectedCellRanges?.map(range => this.validateRange(range)).filter(range => !!range) ?? [];
|
|
711
710
|
const selectedIndexes = cellRangesToIndexes(selectedRanges);
|
|
712
711
|
findCells = ( selectedIndexes.map(index => this._viewCells[index]));
|
|
713
712
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js
CHANGED
|
@@ -13,8 +13,7 @@ import { ThemeIcon } from '../../../../../base/common/themables.js';
|
|
|
13
13
|
import { foldingCollapsedIcon, foldingExpandedIcon } from '../../../../../editor/contrib/folding/browser/foldingDecorations.js';
|
|
14
14
|
import { FoldingController } from '../controller/foldingController.js';
|
|
15
15
|
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
16
|
-
import {
|
|
17
|
-
import { OutlineTarget } from '../../../../services/outline/browser/outline.js';
|
|
16
|
+
import { INotebookCellOutlineDataSourceFactory } from '../viewModel/notebookOutlineDataSourceFactory.service.js';
|
|
18
17
|
var NotebookStickyScroll_1;
|
|
19
18
|
class NotebookStickyLine extends Disposable {
|
|
20
19
|
constructor(element, foldingIcon, header, entry, notebookEditor) {
|
|
@@ -146,34 +145,34 @@ let NotebookStickyScroll = NotebookStickyScroll_1 = class NotebookStickyScroll e
|
|
|
146
145
|
}
|
|
147
146
|
else {
|
|
148
147
|
this._disposables.clear();
|
|
149
|
-
this.
|
|
148
|
+
this.notebookCellOutlineReference?.dispose();
|
|
150
149
|
this.disposeCurrentStickyLines();
|
|
151
150
|
clearNode(this.domNode);
|
|
152
151
|
this.updateDisplay();
|
|
153
152
|
}
|
|
154
153
|
}
|
|
155
|
-
else if (e.stickyScrollMode && this.notebookEditor.notebookOptions.getDisplayOptions().stickyScrollEnabled && this.
|
|
156
|
-
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList, this.
|
|
154
|
+
else if (e.stickyScrollMode && this.notebookEditor.notebookOptions.getDisplayOptions().stickyScrollEnabled && this.notebookCellOutlineReference?.object) {
|
|
155
|
+
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList, this.notebookCellOutlineReference?.object?.entries, this.getCurrentStickyHeight()));
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
init() {
|
|
160
|
-
const { object:
|
|
161
|
-
this._register(this.
|
|
162
|
-
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList,
|
|
163
|
-
this._disposables.add(
|
|
164
|
-
const recompute = computeContent(this.notebookEditor, this.notebookCellList,
|
|
159
|
+
const { object: notebookCellOutline } = this.notebookCellOutlineReference = this.instantiationService.invokeFunction((accessor) => accessor.get(INotebookCellOutlineDataSourceFactory).getOrCreate(this.notebookEditor));
|
|
160
|
+
this._register(this.notebookCellOutlineReference);
|
|
161
|
+
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList, notebookCellOutline.entries, this.getCurrentStickyHeight()));
|
|
162
|
+
this._disposables.add(notebookCellOutline.onDidChange(() => {
|
|
163
|
+
const recompute = computeContent(this.notebookEditor, this.notebookCellList, notebookCellOutline.entries, this.getCurrentStickyHeight());
|
|
165
164
|
if (!this.compareStickyLineMaps(recompute, this.currentStickyLines)) {
|
|
166
165
|
this.updateContent(recompute);
|
|
167
166
|
}
|
|
168
167
|
}));
|
|
169
168
|
this._disposables.add(this.notebookEditor.onDidAttachViewModel(() => {
|
|
170
|
-
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList,
|
|
169
|
+
this.updateContent(computeContent(this.notebookEditor, this.notebookCellList, notebookCellOutline.entries, this.getCurrentStickyHeight()));
|
|
171
170
|
}));
|
|
172
171
|
this._disposables.add(this.notebookEditor.onDidScroll(() => {
|
|
173
172
|
const d = ( new Delayer(100));
|
|
174
173
|
d.trigger(() => {
|
|
175
174
|
d.dispose();
|
|
176
|
-
const recompute = computeContent(this.notebookEditor, this.notebookCellList,
|
|
175
|
+
const recompute = computeContent(this.notebookEditor, this.notebookCellList, notebookCellOutline.entries, this.getCurrentStickyHeight());
|
|
177
176
|
if (!this.compareStickyLineMaps(recompute, this.currentStickyLines)) {
|
|
178
177
|
this.updateContent(recompute);
|
|
179
178
|
}
|
|
@@ -297,7 +296,7 @@ let NotebookStickyScroll = NotebookStickyScroll_1 = class NotebookStickyScroll e
|
|
|
297
296
|
dispose() {
|
|
298
297
|
this._disposables.dispose();
|
|
299
298
|
this.disposeCurrentStickyLines();
|
|
300
|
-
this.
|
|
299
|
+
this.notebookCellOutlineReference?.dispose();
|
|
301
300
|
super.dispose();
|
|
302
301
|
}
|
|
303
302
|
};
|
|
@@ -305,7 +305,7 @@ let NotebookEditorWorkbenchToolbar = class NotebookEditorWorkbenchToolbar extend
|
|
|
305
305
|
this._renderLabel = this._convertConfiguration(this.configurationService.getValue(NotebookSetting.globalToolbarShowLabel));
|
|
306
306
|
this._updateStrategy();
|
|
307
307
|
const oldElement = this._notebookLeftToolbar.getElement();
|
|
308
|
-
oldElement.
|
|
308
|
+
oldElement.remove();
|
|
309
309
|
this._notebookLeftToolbar.dispose();
|
|
310
310
|
this._notebookLeftToolbar = this.instantiationService.createInstance(WorkbenchToolBar, this._notebookTopLeftToolbarContainer, leftToolbarOptions);
|
|
311
311
|
this._register(this._notebookLeftToolbar);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js
CHANGED
|
@@ -89,9 +89,11 @@ let ListTopCellToolbar = class ListTopCellToolbar extends Disposable {
|
|
|
89
89
|
},
|
|
90
90
|
hiddenItemStrategy: HiddenItemStrategy.Ignore,
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
if (this.notebookEditor.hasModel()) {
|
|
93
|
+
toolbar.context = {
|
|
94
|
+
notebookEditor: this.notebookEditor
|
|
95
|
+
};
|
|
96
|
+
}
|
|
95
97
|
this.viewZone.value?.add(toolbar);
|
|
96
98
|
this.viewZone.value?.add(this.notebookEditor.onDidChangeModel(() => {
|
|
97
99
|
this._modelDisposables.clear();
|
|
@@ -10,6 +10,8 @@ import { generate, parse } from '../../../services/notebook/common/notebookDocum
|
|
|
10
10
|
const NOTEBOOK_EDITOR_ID = 'workbench.editor.notebook';
|
|
11
11
|
const NOTEBOOK_DIFF_EDITOR_ID = 'workbench.editor.notebookTextDiffEditor';
|
|
12
12
|
const INTERACTIVE_WINDOW_EDITOR_ID = 'workbench.editor.interactive';
|
|
13
|
+
const REPL_EDITOR_ID = 'workbench.editor.repl';
|
|
14
|
+
const EXECUTE_REPL_COMMAND_ID = 'replNotebook.input.execute';
|
|
13
15
|
var CellKind;
|
|
14
16
|
( (function(CellKind) {
|
|
15
17
|
CellKind[CellKind["Markup"] = 1] = "Markup";
|
|
@@ -251,6 +253,12 @@ var NotebookEditorPriority;
|
|
|
251
253
|
NotebookEditorPriority["default"] = "default";
|
|
252
254
|
NotebookEditorPriority["option"] = "option";
|
|
253
255
|
})(NotebookEditorPriority || (NotebookEditorPriority = {})));
|
|
256
|
+
var NotebookFindScopeType;
|
|
257
|
+
( (function(NotebookFindScopeType) {
|
|
258
|
+
NotebookFindScopeType["Cells"] = "cells";
|
|
259
|
+
NotebookFindScopeType["Text"] = "text";
|
|
260
|
+
NotebookFindScopeType["None"] = "none";
|
|
261
|
+
})(NotebookFindScopeType || (NotebookFindScopeType = {})));
|
|
254
262
|
function isDocumentExcludePattern(filenamePattern) {
|
|
255
263
|
const arg = filenamePattern;
|
|
256
264
|
if ((typeof arg.include === 'string' || isRelativePattern(arg.include))
|
|
@@ -302,7 +310,6 @@ const NotebookSetting = {
|
|
|
302
310
|
outputFontFamilyDeprecated: 'notebook.outputFontFamily',
|
|
303
311
|
outputFontFamily: 'notebook.output.fontFamily',
|
|
304
312
|
findFilters: 'notebook.find.filters',
|
|
305
|
-
findScope: 'notebook.experimental.find.scope.enabled',
|
|
306
313
|
logging: 'notebook.logging',
|
|
307
314
|
confirmDeleteRunningCell: 'notebook.confirmDeleteRunningCell',
|
|
308
315
|
remoteSaving: 'notebook.experimental.remoteSave',
|
|
@@ -404,4 +411,4 @@ function formatStreamText(buffer) {
|
|
|
404
411
|
}
|
|
405
412
|
return VSBuffer.fromString(fixCarriageReturn(fixBackspace(textDecoder.decode(buffer.buffer))));
|
|
406
413
|
}
|
|
407
|
-
export { ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER, CellEditType, CellKind, CellStatusbarAlignment, CellUri, INTERACTIVE_WINDOW_EDITOR_ID, MOVE_CURSOR_1_LINE_COMMAND, MimeTypeDisplayOrder, NOTEBOOK_DIFF_EDITOR_ID, NOTEBOOK_DISPLAY_ORDER, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY, NOTEBOOK_EDITOR_ID, NotebookCellExecutionState, NotebookCellsChangeType, NotebookEditorPriority, NotebookExecutionState, NotebookRendererMatch, NotebookSetting, NotebookWorkingCopyTypeIdentifier, RENDERER_EQUIVALENT_EXTENSIONS, RENDERER_NOT_AVAILABLE, RendererMessagingSpec, SelectionStateType, compressOutputItemStreams, diff, isDocumentExcludePattern, isTextStreamMime };
|
|
414
|
+
export { ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER, CellEditType, CellKind, CellStatusbarAlignment, CellUri, EXECUTE_REPL_COMMAND_ID, INTERACTIVE_WINDOW_EDITOR_ID, MOVE_CURSOR_1_LINE_COMMAND, MimeTypeDisplayOrder, NOTEBOOK_DIFF_EDITOR_ID, NOTEBOOK_DISPLAY_ORDER, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY, NOTEBOOK_EDITOR_ID, NotebookCellExecutionState, NotebookCellsChangeType, NotebookEditorPriority, NotebookExecutionState, NotebookFindScopeType, NotebookRendererMatch, NotebookSetting, NotebookWorkingCopyTypeIdentifier, RENDERER_EQUIVALENT_EXTENSIONS, RENDERER_NOT_AVAILABLE, REPL_EDITOR_ID, RendererMessagingSpec, SelectionStateType, compressOutputItemStreams, diff, isDocumentExcludePattern, isTextStreamMime };
|