@codingame/monaco-vscode-api 4.5.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/extensions.d.ts +2 -3
- package/lifecycle.js +6 -0
- package/localExtensionHost.d.ts +4 -1
- package/missing-services.js +41 -25
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +1 -1
- package/service-override/tools/views.js +2 -3
- package/service-override/views.d.ts +0 -1
- package/services.d.ts +3 -3
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +3 -3
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -2
- package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +30 -14
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +2 -2
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -4
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +6 -4
- package/vscode/src/vs/base/common/arraysFind.js +7 -7
- package/vscode/src/vs/base/common/async.js +8 -3
- package/vscode/src/vs/base/common/cache.js +29 -10
- package/vscode/src/vs/base/common/cancellation.js +6 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/controlFlow.js +48 -0
- package/vscode/src/vs/base/common/equals.js +44 -0
- package/vscode/src/vs/base/common/event.d.ts +11 -1
- package/vscode/src/vs/base/common/event.js +26 -1
- package/vscode/src/vs/base/common/jsonEdit.js +1 -1
- package/vscode/src/vs/base/common/lifecycle.js +1 -1
- package/vscode/src/vs/base/common/map.js +53 -4
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/objects.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
- package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
- package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
- package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
- package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +1 -1
- package/vscode/src/vs/base/common/types.d.ts +5 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -2
- package/vscode/src/vs/editor/browser/observableUtilities.js +58 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +121 -2
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +8 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +27 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +4 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +28 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +13 -1
- package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
- package/vscode/src/vs/editor/common/languages.d.ts +50 -10
- package/vscode/src/vs/editor/common/languages.js +11 -1
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +22 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +20 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +11 -6
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +74 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
- package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
- package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +250 -41
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +44 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +26 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +24 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +18 -6
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +165 -40
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +15 -8
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +9 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +23 -18
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +33 -11
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +133 -132
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +10 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +53 -36
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +14 -4
- package/vscode/src/vs/platform/actions/common/menuService.js +30 -8
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +43 -32
- package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +4 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +2 -31
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +42 -8
- package/vscode/src/vs/platform/log/common/log.js +3 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +7 -3
- package/vscode/src/vs/platform/opener/browser/link.js +6 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +15 -7
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +104 -96
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +87 -17
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +39 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +52 -36
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +10 -28
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +132 -136
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +72 -18
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +3 -5
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +86 -76
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
- package/vscode/src/vs/workbench/browser/labels.js +4 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +14 -33
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +33 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +182 -63
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +61 -34
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +16 -10
- package/vscode/src/vs/workbench/common/theme.js +144 -98
- package/vscode/src/vs/workbench/common/views.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +190 -138
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +59 -7
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +160 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +66 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +21 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +30 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +201 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +13 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +366 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +35 -2
- 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 +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +95 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +94 -79
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +30 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +30 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +5 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +26 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +107 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +39 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +53 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +967 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +79 -45
- package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js} +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/{files.configuration.contribution.js → files.contribution._configuration.js} +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +19 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +15 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +29 -112
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +99 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +345 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +62 -69
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +63 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +18 -10
- 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/browser/utils.js +1 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +7 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +28 -23
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +5 -9
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +7 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +36 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +22 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +34 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +52 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +25 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +6 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +24 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +38 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +7 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +10 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +15 -3
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +30 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -18
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +50 -9
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +7 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +2 -2
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
- package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
- package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -214
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -621
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -141
- package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -212
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -110
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
- /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter, Event } from '../../../../../base/common/event.js';
|
|
3
|
-
import { DisposableStore, combinedDisposable, MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
4
|
-
import { isEqual } from '../../../../../base/common/resources.js';
|
|
5
|
-
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
6
|
-
import { IMarkerService } from '../../../../../platform/markers/common/markers.service.js';
|
|
7
|
-
import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
|
|
8
|
-
import { NotebookSetting, CellKind } from '../../common/notebookCommon.js';
|
|
9
|
-
import { NotebookExecutionType } from '../../common/notebookExecutionStateService.js';
|
|
10
|
-
import { INotebookExecutionStateService } from '../../common/notebookExecutionStateService.service.js';
|
|
11
|
-
import { IOutlineModelService } from '../../../../../editor/contrib/documentSymbols/browser/outlineModel.js';
|
|
12
|
-
import { NotebookOutlineEntryFactory } from './notebookOutlineEntryFactory.js';
|
|
13
|
-
let NotebookCellOutlineProvider = class NotebookCellOutlineProvider {
|
|
14
|
-
get entries() {
|
|
15
|
-
return this._entries;
|
|
16
|
-
}
|
|
17
|
-
get activeElement() {
|
|
18
|
-
return this._activeEntry;
|
|
19
|
-
}
|
|
20
|
-
constructor(_editor, _target, themeService, notebookExecutionStateService, _outlineModelService, _markerService, _configurationService) {
|
|
21
|
-
this._editor = _editor;
|
|
22
|
-
this._target = _target;
|
|
23
|
-
this._outlineModelService = _outlineModelService;
|
|
24
|
-
this._markerService = _markerService;
|
|
25
|
-
this._configurationService = _configurationService;
|
|
26
|
-
this._dispoables = ( new DisposableStore());
|
|
27
|
-
this._onDidChange = ( new Emitter());
|
|
28
|
-
this.onDidChange = this._onDidChange.event;
|
|
29
|
-
this._entries = [];
|
|
30
|
-
this._entriesDisposables = ( new DisposableStore());
|
|
31
|
-
this.outlineKind = 'notebookCells';
|
|
32
|
-
this._outlineEntryFactory = ( new NotebookOutlineEntryFactory(notebookExecutionStateService));
|
|
33
|
-
const selectionListener = ( new MutableDisposable());
|
|
34
|
-
this._dispoables.add(selectionListener);
|
|
35
|
-
selectionListener.value = combinedDisposable(Event.debounce(_editor.onDidChangeSelection, (last, _current) => last, 200)(this._recomputeActive, this), Event.debounce(_editor.onDidChangeViewCells, (last, _current) => last ?? _current, 200)(this._recomputeState, this));
|
|
36
|
-
this._dispoables.add(_configurationService.onDidChangeConfiguration(e => {
|
|
37
|
-
if (e.affectsConfiguration(NotebookSetting.outlineShowMarkdownHeadersOnly) ||
|
|
38
|
-
e.affectsConfiguration(NotebookSetting.outlineShowCodeCells) ||
|
|
39
|
-
e.affectsConfiguration(NotebookSetting.outlineShowCodeCellSymbols) ||
|
|
40
|
-
e.affectsConfiguration(NotebookSetting.breadcrumbsShowCodeCells)) {
|
|
41
|
-
this._recomputeState();
|
|
42
|
-
}
|
|
43
|
-
}));
|
|
44
|
-
this._dispoables.add(themeService.onDidFileIconThemeChange(() => {
|
|
45
|
-
this._onDidChange.fire({});
|
|
46
|
-
}));
|
|
47
|
-
this._dispoables.add(notebookExecutionStateService.onDidChangeExecution(e => {
|
|
48
|
-
if (e.type === NotebookExecutionType.cell && !!this._editor.textModel && e.affectsNotebook(this._editor.textModel?.uri)) {
|
|
49
|
-
this._recomputeState();
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
this._recomputeState();
|
|
53
|
-
}
|
|
54
|
-
dispose() {
|
|
55
|
-
this._entries.length = 0;
|
|
56
|
-
this._activeEntry = undefined;
|
|
57
|
-
this._entriesDisposables.dispose();
|
|
58
|
-
this._dispoables.dispose();
|
|
59
|
-
}
|
|
60
|
-
init() {
|
|
61
|
-
this._recomputeState();
|
|
62
|
-
}
|
|
63
|
-
async setFullSymbols(cancelToken) {
|
|
64
|
-
const notebookEditorWidget = this._editor;
|
|
65
|
-
const notebookCells = notebookEditorWidget?.getViewModel()?.viewCells.filter((cell) => cell.cellKind === CellKind.Code);
|
|
66
|
-
this._entries.length = 0;
|
|
67
|
-
if (notebookCells) {
|
|
68
|
-
const promises = [];
|
|
69
|
-
for (const cell of notebookCells.slice(0, 100)) {
|
|
70
|
-
promises.push(this._outlineEntryFactory.cacheSymbols(cell, this._outlineModelService, cancelToken));
|
|
71
|
-
}
|
|
72
|
-
await Promise.allSettled(promises);
|
|
73
|
-
}
|
|
74
|
-
this._recomputeState();
|
|
75
|
-
}
|
|
76
|
-
_recomputeState() {
|
|
77
|
-
this._entriesDisposables.clear();
|
|
78
|
-
this._activeEntry = undefined;
|
|
79
|
-
this._uri = undefined;
|
|
80
|
-
if (!this._editor.hasModel()) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
this._uri = this._editor.textModel.uri;
|
|
84
|
-
const notebookEditorWidget = this._editor;
|
|
85
|
-
if (notebookEditorWidget.getLength() === 0) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
let includeCodeCells = true;
|
|
89
|
-
if (this._target === 2 ) {
|
|
90
|
-
includeCodeCells = this._configurationService.getValue('notebook.breadcrumbs.showCodeCells');
|
|
91
|
-
}
|
|
92
|
-
let notebookCells;
|
|
93
|
-
if (this._target === 2 ) {
|
|
94
|
-
notebookCells = notebookEditorWidget.getViewModel().viewCells.filter((cell) => cell.cellKind === CellKind.Markup || includeCodeCells);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
notebookCells = notebookEditorWidget.getViewModel().viewCells;
|
|
98
|
-
}
|
|
99
|
-
const entries = [];
|
|
100
|
-
for (const cell of notebookCells) {
|
|
101
|
-
entries.push(...this._outlineEntryFactory.getOutlineEntries(cell, this._target, entries.length));
|
|
102
|
-
this._entriesDisposables.add(cell.model.onDidChangeContent(() => {
|
|
103
|
-
this._recomputeState();
|
|
104
|
-
this._onDidChange.fire({});
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
if (entries.length > 0) {
|
|
108
|
-
const result = [entries[0]];
|
|
109
|
-
const parentStack = [entries[0]];
|
|
110
|
-
for (let i = 1; i < entries.length; i++) {
|
|
111
|
-
const entry = entries[i];
|
|
112
|
-
while (true) {
|
|
113
|
-
const len = parentStack.length;
|
|
114
|
-
if (len === 0) {
|
|
115
|
-
result.push(entry);
|
|
116
|
-
parentStack.push(entry);
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
const parentCandidate = parentStack[len - 1];
|
|
121
|
-
if (parentCandidate.level < entry.level) {
|
|
122
|
-
parentCandidate.addChild(entry);
|
|
123
|
-
parentStack.push(entry);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
parentStack.pop();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
this._entries = result;
|
|
133
|
-
}
|
|
134
|
-
const markerServiceListener = ( new MutableDisposable());
|
|
135
|
-
this._entriesDisposables.add(markerServiceListener);
|
|
136
|
-
const updateMarkerUpdater = () => {
|
|
137
|
-
if (notebookEditorWidget.isDisposed) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const doUpdateMarker = (clear) => {
|
|
141
|
-
for (const entry of this._entries) {
|
|
142
|
-
if (clear) {
|
|
143
|
-
entry.clearMarkers();
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
entry.updateMarkers(this._markerService);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const problem = this._configurationService.getValue('problems.visibility');
|
|
151
|
-
if (problem === undefined) {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
const config = this._configurationService.getValue("outline.problems.enabled" );
|
|
155
|
-
if (problem && config) {
|
|
156
|
-
markerServiceListener.value = this._markerService.onMarkerChanged(e => {
|
|
157
|
-
if (notebookEditorWidget.isDisposed) {
|
|
158
|
-
console.error('notebook editor is disposed');
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (( e.some(uri => ( notebookEditorWidget.getCellsInRange().some(cell => isEqual(cell.uri, uri)))))) {
|
|
162
|
-
doUpdateMarker(false);
|
|
163
|
-
this._onDidChange.fire({});
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
doUpdateMarker(false);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
markerServiceListener.clear();
|
|
170
|
-
doUpdateMarker(true);
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
updateMarkerUpdater();
|
|
174
|
-
this._entriesDisposables.add(this._configurationService.onDidChangeConfiguration(e => {
|
|
175
|
-
if (e.affectsConfiguration('problems.visibility') || e.affectsConfiguration("outline.problems.enabled" )) {
|
|
176
|
-
updateMarkerUpdater();
|
|
177
|
-
this._onDidChange.fire({});
|
|
178
|
-
}
|
|
179
|
-
}));
|
|
180
|
-
this._recomputeActive();
|
|
181
|
-
this._onDidChange.fire({});
|
|
182
|
-
}
|
|
183
|
-
_recomputeActive() {
|
|
184
|
-
let newActive;
|
|
185
|
-
const notebookEditorWidget = this._editor;
|
|
186
|
-
if (notebookEditorWidget) {
|
|
187
|
-
if (notebookEditorWidget.hasModel() && notebookEditorWidget.getLength() > 0) {
|
|
188
|
-
const cell = notebookEditorWidget.cellAt(notebookEditorWidget.getFocus().start);
|
|
189
|
-
if (cell) {
|
|
190
|
-
for (const entry of this._entries) {
|
|
191
|
-
newActive = entry.find(cell, []);
|
|
192
|
-
if (newActive) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
const showCodeCells = this._configurationService.getValue(NotebookSetting.outlineShowCodeCells);
|
|
200
|
-
const showCodeCellSymbols = this._configurationService.getValue(NotebookSetting.outlineShowCodeCellSymbols);
|
|
201
|
-
const showMarkdownHeadersOnly = this._configurationService.getValue(NotebookSetting.outlineShowMarkdownHeadersOnly);
|
|
202
|
-
if ((newActive !== this._activeEntry) && !((
|
|
203
|
-
(showMarkdownHeadersOnly && newActive?.cell.cellKind === CellKind.Markup && newActive?.level === 7) ||
|
|
204
|
-
(!showCodeCells && newActive?.cell.cellKind === CellKind.Code) || (!showCodeCellSymbols && newActive?.cell.cellKind === CellKind.Code && newActive?.level > 7))
|
|
205
|
-
)) {
|
|
206
|
-
this._activeEntry = newActive;
|
|
207
|
-
this._onDidChange.fire({ affectOnlyActiveElement: true });
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
get isEmpty() {
|
|
211
|
-
return this._entries.length === 0;
|
|
212
|
-
}
|
|
213
|
-
get uri() {
|
|
214
|
-
return this._uri;
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
NotebookCellOutlineProvider = ( __decorate([
|
|
218
|
-
( __param(2, IThemeService)),
|
|
219
|
-
( __param(3, INotebookExecutionStateService)),
|
|
220
|
-
( __param(4, IOutlineModelService)),
|
|
221
|
-
( __param(5, IMarkerService)),
|
|
222
|
-
( __param(6, IConfigurationService))
|
|
223
|
-
], NotebookCellOutlineProvider));
|
|
224
|
-
export { NotebookCellOutlineProvider };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
2
|
-
import { ITerminalConfiguration, ITerminalFont } from '../common/terminal.js';
|
|
3
|
-
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
4
|
-
import { ITerminalConfigHelper, LinuxDistro } from './terminal.js';
|
|
5
|
-
import { Event } from '../../../../base/common/event.js';
|
|
6
|
-
import { IExtensionManagementService } from '../../../../platform/extensionManagement/common/extensionManagement.service.js';
|
|
7
|
-
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
-
import { IProductService } from '../../../../platform/product/common/productService.service.js';
|
|
9
|
-
import { IXtermCore } from './xterm-private.js';
|
|
10
|
-
import { IShellLaunchConfig } from '../../../../platform/terminal/common/terminal.js';
|
|
11
|
-
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Encapsulates terminal configuration logic, the primary purpose of this file is so that platform
|
|
15
|
-
* specific test cases can be written.
|
|
16
|
-
*/
|
|
17
|
-
declare class TerminalConfigHelper extends Disposable implements ITerminalConfigHelper {
|
|
18
|
-
private readonly _configurationService;
|
|
19
|
-
private readonly _extensionManagementService;
|
|
20
|
-
private readonly _notificationService;
|
|
21
|
-
private readonly _instantiationService;
|
|
22
|
-
private readonly _productService;
|
|
23
|
-
panelContainer: HTMLElement | undefined;
|
|
24
|
-
private _charMeasureElement;
|
|
25
|
-
private _lastFontMeasurement;
|
|
26
|
-
protected _linuxDistro: LinuxDistro;
|
|
27
|
-
config: ITerminalConfiguration;
|
|
28
|
-
private readonly _onConfigChanged;
|
|
29
|
-
get onConfigChanged(): Event<void>;
|
|
30
|
-
constructor(_configurationService: IConfigurationService, _extensionManagementService: IExtensionManagementService, _notificationService: INotificationService, _instantiationService: IInstantiationService, _productService: IProductService);
|
|
31
|
-
private _updateConfig;
|
|
32
|
-
configFontIsMonospace(): boolean;
|
|
33
|
-
private _createCharMeasureElementIfNecessary;
|
|
34
|
-
private _getBoundingRectFor;
|
|
35
|
-
private _measureFont;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the font information based on the terminal.integrated.fontFamily
|
|
38
|
-
* terminal.integrated.fontSize, terminal.integrated.lineHeight configuration properties
|
|
39
|
-
*/
|
|
40
|
-
getFont(w: Window, xtermCore?: IXtermCore, excludeDimensions?: boolean): ITerminalFont;
|
|
41
|
-
private _clampInt;
|
|
42
|
-
private _recommendationsShown;
|
|
43
|
-
showRecommendations(shellLaunchConfig: IShellLaunchConfig): Promise<void>;
|
|
44
|
-
private _isExtensionInstalled;
|
|
45
|
-
private _normalizeFontWeight;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { TerminalConfigHelper };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { EventMultiplexer, DynamicListEventMultiplexer, Event } from '../../../../base/common/event.js';
|
|
2
|
-
import { DisposableMap, DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
3
|
-
function createInstanceCapabilityEventMultiplexer(currentInstances, onAddInstance, onRemoveInstance, capabilityId, getEvent) {
|
|
4
|
-
const store = ( new DisposableStore());
|
|
5
|
-
const multiplexer = store.add(( new EventMultiplexer()));
|
|
6
|
-
const capabilityListeners = store.add(( new DisposableMap()));
|
|
7
|
-
function addCapability(instance, capability) {
|
|
8
|
-
const listener = multiplexer.add(( Event.map(getEvent(capability), data => ({ instance, data }))));
|
|
9
|
-
capabilityListeners.set(capability, listener);
|
|
10
|
-
}
|
|
11
|
-
for (const instance of currentInstances) {
|
|
12
|
-
const capability = instance.capabilities.get(capabilityId);
|
|
13
|
-
if (capability) {
|
|
14
|
-
addCapability(instance, capability);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const addCapabilityMultiplexer = store.add(( new DynamicListEventMultiplexer(
|
|
18
|
-
currentInstances,
|
|
19
|
-
onAddInstance,
|
|
20
|
-
onRemoveInstance,
|
|
21
|
-
instance => ( Event.map(
|
|
22
|
-
instance.capabilities.onDidAddCapability,
|
|
23
|
-
changeEvent => ({ instance, changeEvent })
|
|
24
|
-
))
|
|
25
|
-
)));
|
|
26
|
-
store.add(addCapabilityMultiplexer.event(e => {
|
|
27
|
-
if (e.changeEvent.id === capabilityId) {
|
|
28
|
-
addCapability(e.instance, e.changeEvent.capability);
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
const removeCapabilityMultiplexer = store.add(( new DynamicListEventMultiplexer(
|
|
32
|
-
currentInstances,
|
|
33
|
-
onAddInstance,
|
|
34
|
-
onRemoveInstance,
|
|
35
|
-
instance => instance.capabilities.onDidRemoveCapability
|
|
36
|
-
)));
|
|
37
|
-
store.add(removeCapabilityMultiplexer.event(e => {
|
|
38
|
-
if (e.id === capabilityId) {
|
|
39
|
-
capabilityListeners.deleteAndDispose(e.capability);
|
|
40
|
-
}
|
|
41
|
-
}));
|
|
42
|
-
return {
|
|
43
|
-
dispose: () => store.dispose(),
|
|
44
|
-
event: multiplexer.event
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export { createInstanceCapabilityEventMultiplexer };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/179430
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* TODO:
|
|
13
|
-
* - Add ctor(insertText: string | SnippetString, title?: string, kind?: DocumentPasteEditKind); Can't be done as this is an extension to an existing class
|
|
14
|
-
* - Update provider to return multiple edits
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface DocumentDropEdit {
|
|
18
|
-
/**
|
|
19
|
-
* Human readable label that describes the edit.
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* {@link DocumentPasteEditKind Kind} of the edit.
|
|
25
|
-
*
|
|
26
|
-
* Used to identify specific types of edits.
|
|
27
|
-
*
|
|
28
|
-
* TODO: use own type?
|
|
29
|
-
*/
|
|
30
|
-
kind: DocumentPasteEditKind;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The mime type from the {@link DataTransfer} that this edit applies.
|
|
34
|
-
*
|
|
35
|
-
* TODO: Should this be taken from `dropMimeTypes` instead?
|
|
36
|
-
*/
|
|
37
|
-
handledMimeType?: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Controls the ordering or multiple paste edits. If this provider yield to edits, it will be shown lower in the list.
|
|
41
|
-
*/
|
|
42
|
-
yieldTo?: ReadonlyArray<DocumentPasteEditKind>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface DocumentDropEditProviderMetadata {
|
|
46
|
-
readonly providedDropEditKinds?: readonly DocumentPasteEditKind[];
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* List of {@link DataTransfer} mime types that the provider can handle.
|
|
50
|
-
*
|
|
51
|
-
* This can either be an exact mime type such as `image/png`, or a wildcard pattern such as `image/*`.
|
|
52
|
-
*
|
|
53
|
-
* Use `text/uri-list` for resources dropped from the explorer or other tree views in the workbench.
|
|
54
|
-
*
|
|
55
|
-
* Use `files` to indicate that the provider should be invoked if any {@link DataTransferFile files} are present in the {@link DataTransfer}.
|
|
56
|
-
* Note that {@link DataTransferFile} entries are only created when dropping content from outside the editor, such as
|
|
57
|
-
* from the operating system.
|
|
58
|
-
*/
|
|
59
|
-
readonly dropMimeTypes: readonly string[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export namespace languages {
|
|
63
|
-
export function registerDocumentDropEditProvider(selector: DocumentSelector, provider: DocumentDropEditProvider, metadata?: DocumentDropEditProviderMetadata): Disposable;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/46726
|
|
9
|
-
|
|
10
|
-
export interface IssueUriRequestHandler {
|
|
11
|
-
/**
|
|
12
|
-
*Handle the request by the issue reporter for the Uri you want to direct the user to.
|
|
13
|
-
*/
|
|
14
|
-
handleIssueUrlRequest(): ProviderResult<Uri>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IssueDataProvider {
|
|
18
|
-
/**
|
|
19
|
-
* Provide the data to be used in the issue reporter.
|
|
20
|
-
*/
|
|
21
|
-
provideIssueData(token: CancellationToken): ProviderResult<string>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Provide the template to be used in the description of issue reporter.
|
|
25
|
-
*/
|
|
26
|
-
provideIssueTemplate(token: CancellationToken): ProviderResult<string>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export namespace env {
|
|
30
|
-
/**
|
|
31
|
-
* Register an {@link IssueUriRequestHandler}. By registering an issue uri request handler,
|
|
32
|
-
* you can direct the built-in issue reporter to your issue reporting web experience of choice.
|
|
33
|
-
* The Uri that the handler returns will be opened in the user's browser.
|
|
34
|
-
*
|
|
35
|
-
* Examples of this include:
|
|
36
|
-
* - Using GitHub Issue Forms or GitHub Discussions you can pre-fill the issue creation with relevant information from the current workspace using query parameters
|
|
37
|
-
* - Directing to a different web form that isn't on GitHub for reporting issues
|
|
38
|
-
*
|
|
39
|
-
* @param handler the issue uri request handler to register for this extension.
|
|
40
|
-
*/
|
|
41
|
-
export function registerIssueUriRequestHandler(handler: IssueUriRequestHandler): Disposable;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Register an {@link IssueDataProvider}. By registering an issue data provider,
|
|
45
|
-
* you can provide additional information to the built-in issue reporter.
|
|
46
|
-
* The repo url must be provided by package.json's repository field.
|
|
47
|
-
*
|
|
48
|
-
* Examples:
|
|
49
|
-
* - Provide additional information about the current workspace, current extension, current user, or OS
|
|
50
|
-
* - Provide data in the form of a string to the secondary description/data text box of the issue reporter.
|
|
51
|
-
* - Provide a template for the description of the issue reporter
|
|
52
|
-
*
|
|
53
|
-
* @param provider the issue data provider to register for this extension.
|
|
54
|
-
*/
|
|
55
|
-
export function registerIssueDataProvider(provider: IssueDataProvider): Disposable;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/181569 @connor4312
|
|
9
|
-
|
|
10
|
-
export interface WindowState {
|
|
11
|
-
/**
|
|
12
|
-
* Indicates whether the window has been interacted with recently. This will
|
|
13
|
-
* change immediately on activity, or after a short time of user inactivity.
|
|
14
|
-
*/
|
|
15
|
-
readonly active: boolean;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
File without changes
|