@codingame/monaco-vscode-api 2.0.3-improve-modularity.1 → 2.1.0-update-vscode-1.86.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/api.js +15 -12
- package/extensions.d.ts +4 -7
- package/external/@xterm/xterm/typings/xterm.d.ts +22 -0
- package/missing-services.js +62 -6
- package/package.json +8 -8
- package/service-override/tools/editor.js +14 -0
- package/services.d.ts +3 -2
- package/services.js +6 -4
- package/vscode/src/vs/base/browser/browser.js +45 -30
- package/vscode/src/vs/base/browser/canIUse.js +1 -1
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +12 -5
- package/vscode/src/vs/base/browser/dom.js +104 -14
- package/vscode/src/vs/base/browser/indexedDB.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +29 -1
- package/vscode/src/vs/base/browser/mouseEvent.js +17 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -3
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +287 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +16 -5
- package/vscode/src/vs/base/browser/ui/list/listView.js +31 -11
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +35 -21
- package/vscode/src/vs/base/browser/ui/menu/menu.js +10 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +8 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +6 -5
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +469 -95
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +22 -7
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +0 -5
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +70 -4
- package/vscode/src/vs/base/common/assert.js +6 -1
- package/vscode/src/vs/base/common/async.js +31 -6
- package/vscode/src/vs/base/common/codicons.js +5 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -15
- package/vscode/src/vs/base/common/filters.d.ts +1 -18
- package/vscode/src/vs/base/common/htmlContent.js +12 -6
- package/vscode/src/vs/base/common/iterator.js +8 -0
- package/vscode/src/vs/base/common/labels.js +2 -1
- package/vscode/src/vs/base/common/map.js +20 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +16 -8
- package/vscode/src/vs/base/common/observableInternal/derived.js +4 -6
- package/vscode/src/vs/base/common/observableInternal/utils.js +60 -5
- package/vscode/src/vs/base/common/platform.js +20 -20
- package/vscode/src/vs/base/common/prefixTree.js +4 -3
- package/vscode/src/vs/base/common/product.d.ts +5 -2
- package/vscode/src/vs/base/common/strings.js +23 -7
- package/vscode/src/vs/base/common/themables.js +4 -1
- package/vscode/src/vs/base/common/uri.js +11 -1
- package/vscode/src/vs/base/common/worker/simpleWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +14 -8
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +18 -11
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +3 -3
- package/vscode/src/vs/{workbench/services/hover/browser → editor/browser/services}/hoverService.d.ts +7 -6
- package/vscode/src/vs/editor/browser/services/hoverService.js +195 -0
- package/vscode/src/vs/editor/browser/view.js +29 -39
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +41 -19
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +30 -23
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +23 -8
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +8 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +7 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +30 -3
- package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +39 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.css.js → components/accessibleDiffViewer.css.js} +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.js → components/accessibleDiffViewer.js} +43 -43
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +89 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorEditors.js → components/diffEditorEditors.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorSash.js → components/diffEditorSash.js} +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/{lineAlignment.js → components/diffEditorViewZones/diffEditorViewZones.js} +38 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/{inlineDiffDeletedCodeMargin.js → components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{renderLines.js → components/diffEditorViewZones/renderLines.js} +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +29 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +150 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +17 -16
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +104 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/{hideUnchangedRegionsFeature.js → features/hideUnchangedRegionsFeature.js} +51 -78
- package/vscode/src/vs/editor/browser/widget/diffEditor/{movedBlocksLines.js → features/movedBlocksLinesFeature.js} +23 -23
- package/vscode/src/vs/editor/browser/widget/diffEditor/{overviewRulerPart.js → features/overviewRulerFeature.js} +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +145 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{decorations.js → registrations.contribution.js} +18 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +10 -2
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hover.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hoverWidget.js +527 -0
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/markdownRenderer.js +11 -11
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -10
- package/vscode/src/vs/editor/common/config/editorOptions.js +46 -42
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +3 -3
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +9 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +50 -47
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +4 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +13 -2
- package/vscode/src/vs/editor/common/languages.d.ts +10 -2
- package/vscode/src/vs/editor/common/model/textModel.js +19 -13
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +19 -1
- package/vscode/src/vs/editor/common/model.js +2 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -1
- package/vscode/src/vs/editor/common/services/getIconClasses.js +4 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -3
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +9 -8
- package/vscode/src/vs/editor/common/standaloneStrings.js +18 -18
- package/vscode/src/vs/editor/common/viewEvents.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +55 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +5 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +46 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +38 -11
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +56 -101
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +10 -29
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +51 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +19 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +38 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +29 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +10 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -17
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +3 -35
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +26 -6
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +6 -6
- package/vscode/src/vs/editor/contrib/format/browser/format.js +9 -9
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +85 -76
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +120 -90
- package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +18 -6
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +4 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +56 -38
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +50 -53
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +5 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -5
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +58 -46
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +34 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +30 -38
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +11 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +18 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +8 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +7 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -0
- package/vscode/src/vs/editor/editor.api.d.ts +82 -11
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +22 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
- package/vscode/src/vs/nls.d.ts +6 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +4 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +2 -16
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -2
- package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +7 -20
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +0 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
- package/vscode/src/vs/platform/actions/common/actions.js +12 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +11 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +174 -28
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +38 -5
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environmentService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +24 -5
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +6 -1
- package/vscode/src/vs/{workbench/services → platform}/hover/browser/hover.d.ts +6 -8
- package/vscode/src/vs/platform/hover/browser/hover.js +3 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +14 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +11 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +7 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/list/browser/listService.js +7 -5
- package/vscode/src/vs/platform/log/common/bufferLog.js +1 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +0 -1
- package/vscode/src/vs/platform/log/common/log.js +1 -2
- package/vscode/src/vs/platform/notification/common/notification.d.ts +36 -19
- package/vscode/src/vs/platform/notification/common/notification.js +9 -3
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +50 -48
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +3 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +49 -66
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +11 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +16 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +230 -26
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +5 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +28 -9
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +2 -0
- package/vscode/src/vs/platform/window/common/window.js +14 -8
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +97 -78
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +1 -22
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +130 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +28 -15
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +4 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +35 -33
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +40 -13
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +10 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +11 -7
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +1 -7
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +49 -93
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +18 -22
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +55 -36
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +6 -7
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +74 -12
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +27 -8
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -103
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +13 -17
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +34 -34
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/dnd.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +34 -4
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +801 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +140 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +410 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +304 -303
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +101 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +114 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1313 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +190 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +344 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +27 -42
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +152 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1626 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +150 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +52 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +260 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +39 -36
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +68 -28
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +15 -14
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -17
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -10
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +18 -17
- package/vscode/src/vs/workbench/browser/quickaccess.js +33 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/window.js +92 -9
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +114 -65
- package/vscode/src/vs/workbench/common/component.d.ts +5 -1
- package/vscode/src/vs/workbench/common/component.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +11 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +8 -4
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +6 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +107 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +6 -3
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +21 -3
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/vscode/src/vs/workbench/common/editor.d.ts +16 -4
- package/vscode/src/vs/workbench/common/editor.js +7 -1
- package/vscode/src/vs/workbench/common/memento.js +33 -12
- package/vscode/src/vs/workbench/common/notifications.js +30 -7
- package/vscode/src/vs/workbench/common/theme.js +61 -1
- package/vscode/src/vs/workbench/common/views.d.ts +1 -28
- package/vscode/src/vs/workbench/common/views.js +1 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +232 -19
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +9 -9
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +19 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +93 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +30 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +24 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +21 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/{comments.contribution.js → commentsAccessibility.js} +36 -128
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +41 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +202 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +27 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +165 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +48 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +40 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +28 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +14 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +164 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +285 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +123 -78
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +326 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -9
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +70 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.fileEditorFactory.contribution.js +13 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +34 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +48 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +16 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +317 -321
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +17 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +306 -130
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +385 -613
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +69 -64
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +71 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -44
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +38 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +36 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +32 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +24 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +264 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +60 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +12 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +188 -155
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +10 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +9 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -14
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +15 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +22 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +16 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +78 -50
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +15 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +25 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +12 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +33 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +15 -27
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +38 -22
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +5 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +60 -40
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +15 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +26 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +24 -23
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +124 -26
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +68 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +76 -36
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +10 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +51 -43
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +13 -8
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +7 -7
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +29 -9
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +160 -63
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +60 -72
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -4
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +56 -0
- package/vscode/src/vs/workbench/services/output/common/output.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +21 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +4 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -4
- package/vscode/src/vs/workbench/{browser/parts/views → services/views/browser}/viewsService.js +20 -15
- package/vscode/src/vs/workbench/services/views/common/viewsService.d.ts +34 -0
- package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js} +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +6 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +5 -2
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +112 -47
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +68 -9
- package/vscode-dts/{vscode.proposed.scmInputBoxActionButton.d.ts → vscode.proposed.codeActionRanges.d.ts} +8 -10
- package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +100 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +1 -1
- package/vscode-dts/vscode.proposed.interactive.d.ts +13 -16
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +4 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -10
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +34 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +17 -3
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +7 -1
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/colors.js +0 -17
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +0 -231
- package/vscode/src/vs/editor/browser/widget/diffEditor/outlineModel.js +0 -299
- package/vscode/src/vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +0 -28
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +0 -30
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +0 -39
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +0 -77
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +0 -35
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +0 -21
|
@@ -457,42 +457,10 @@ const findArgDescription = {
|
|
|
457
457
|
properties: {
|
|
458
458
|
searchString: { type: 'string' },
|
|
459
459
|
replaceString: { type: 'string' },
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
description: ( localizeWithPath(
|
|
464
|
-
'vs/editor/contrib/find/browser/findController',
|
|
465
|
-
'actions.find.isRegexOverride',
|
|
466
|
-
'Overrides "Use Regular Expression" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False'
|
|
467
|
-
))
|
|
468
|
-
},
|
|
469
|
-
wholeWord: { type: 'boolean' },
|
|
470
|
-
wholeWordOverride: {
|
|
471
|
-
type: 'number',
|
|
472
|
-
description: ( localizeWithPath(
|
|
473
|
-
'vs/editor/contrib/find/browser/findController',
|
|
474
|
-
'actions.find.wholeWordOverride',
|
|
475
|
-
'Overrides "Match Whole Word" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False'
|
|
476
|
-
))
|
|
477
|
-
},
|
|
478
|
-
matchCase: { type: 'boolean' },
|
|
479
|
-
matchCaseOverride: {
|
|
480
|
-
type: 'number',
|
|
481
|
-
description: ( localizeWithPath(
|
|
482
|
-
'vs/editor/contrib/find/browser/findController',
|
|
483
|
-
'actions.find.matchCaseOverride',
|
|
484
|
-
'Overrides "Math Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False'
|
|
485
|
-
))
|
|
486
|
-
},
|
|
460
|
+
isRegex: { type: 'boolean' },
|
|
461
|
+
matchWholeWord: { type: 'boolean' },
|
|
462
|
+
isCaseSensitive: { type: 'boolean' },
|
|
487
463
|
preserveCase: { type: 'boolean' },
|
|
488
|
-
preserveCaseOverride: {
|
|
489
|
-
type: 'number',
|
|
490
|
-
description: ( localizeWithPath(
|
|
491
|
-
'vs/editor/contrib/find/browser/findController',
|
|
492
|
-
'actions.find.preserveCaseOverride',
|
|
493
|
-
'Overrides "Preserve Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False'
|
|
494
|
-
))
|
|
495
|
-
},
|
|
496
464
|
findInSelection: { type: 'boolean' },
|
|
497
465
|
}
|
|
498
466
|
}
|
|
@@ -37,12 +37,23 @@ const foldingManualExpandedIcon = registerIcon('folding-manual-expanded', foldin
|
|
|
37
37
|
'Icon for manually expanded ranges in the editor glyph margin.'
|
|
38
38
|
)));
|
|
39
39
|
const foldedBackgroundMinimap = { color: themeColorFromId(foldBackground), position: MinimapPosition.Inline };
|
|
40
|
+
const collapsed = ( localizeWithPath(
|
|
41
|
+
'vs/editor/contrib/folding/browser/foldingDecorations',
|
|
42
|
+
'linesCollapsed',
|
|
43
|
+
"Click to expand the range."
|
|
44
|
+
));
|
|
45
|
+
const expanded = ( localizeWithPath(
|
|
46
|
+
'vs/editor/contrib/folding/browser/foldingDecorations',
|
|
47
|
+
'linesExpanded',
|
|
48
|
+
"Click to collapse the range."
|
|
49
|
+
));
|
|
40
50
|
class FoldingDecorationProvider {
|
|
41
51
|
static { this.COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
42
52
|
description: 'folding-collapsed-visual-decoration',
|
|
43
53
|
stickiness: 0 ,
|
|
44
54
|
afterContentClassName: 'inline-folded',
|
|
45
55
|
isWholeLine: true,
|
|
56
|
+
linesDecorationsTooltip: collapsed,
|
|
46
57
|
firstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon),
|
|
47
58
|
}); }
|
|
48
59
|
static { this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
@@ -52,6 +63,7 @@ class FoldingDecorationProvider {
|
|
|
52
63
|
className: 'folded-background',
|
|
53
64
|
minimap: foldedBackgroundMinimap,
|
|
54
65
|
isWholeLine: true,
|
|
66
|
+
linesDecorationsTooltip: collapsed,
|
|
55
67
|
firstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon)
|
|
56
68
|
}); }
|
|
57
69
|
static { this.MANUALLY_COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
@@ -59,6 +71,7 @@ class FoldingDecorationProvider {
|
|
|
59
71
|
stickiness: 0 ,
|
|
60
72
|
afterContentClassName: 'inline-folded',
|
|
61
73
|
isWholeLine: true,
|
|
74
|
+
linesDecorationsTooltip: collapsed,
|
|
62
75
|
firstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)
|
|
63
76
|
}); }
|
|
64
77
|
static { this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
@@ -68,13 +81,15 @@ class FoldingDecorationProvider {
|
|
|
68
81
|
className: 'folded-background',
|
|
69
82
|
minimap: foldedBackgroundMinimap,
|
|
70
83
|
isWholeLine: true,
|
|
84
|
+
linesDecorationsTooltip: collapsed,
|
|
71
85
|
firstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)
|
|
72
86
|
}); }
|
|
73
87
|
static { this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION = ModelDecorationOptions.register({
|
|
74
88
|
description: 'folding-no-controls-range-decoration',
|
|
75
89
|
stickiness: 0 ,
|
|
76
90
|
afterContentClassName: 'inline-folded',
|
|
77
|
-
isWholeLine: true
|
|
91
|
+
isWholeLine: true,
|
|
92
|
+
linesDecorationsTooltip: collapsed,
|
|
78
93
|
}); }
|
|
79
94
|
static { this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION = ModelDecorationOptions.register({
|
|
80
95
|
description: 'folding-no-controls-range-decoration',
|
|
@@ -82,31 +97,36 @@ class FoldingDecorationProvider {
|
|
|
82
97
|
afterContentClassName: 'inline-folded',
|
|
83
98
|
className: 'folded-background',
|
|
84
99
|
minimap: foldedBackgroundMinimap,
|
|
85
|
-
isWholeLine: true
|
|
100
|
+
isWholeLine: true,
|
|
101
|
+
linesDecorationsTooltip: collapsed,
|
|
86
102
|
}); }
|
|
87
103
|
static { this.EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
88
104
|
description: 'folding-expanded-visual-decoration',
|
|
89
105
|
stickiness: 1 ,
|
|
90
106
|
isWholeLine: true,
|
|
91
|
-
firstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingExpandedIcon)
|
|
107
|
+
firstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingExpandedIcon),
|
|
108
|
+
linesDecorationsTooltip: expanded,
|
|
92
109
|
}); }
|
|
93
110
|
static { this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
94
111
|
description: 'folding-expanded-auto-hide-visual-decoration',
|
|
95
112
|
stickiness: 1 ,
|
|
96
113
|
isWholeLine: true,
|
|
97
|
-
firstLineDecorationClassName: ThemeIcon.asClassName(foldingExpandedIcon)
|
|
114
|
+
firstLineDecorationClassName: ThemeIcon.asClassName(foldingExpandedIcon),
|
|
115
|
+
linesDecorationsTooltip: expanded,
|
|
98
116
|
}); }
|
|
99
117
|
static { this.MANUALLY_EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
100
118
|
description: 'folding-manually-expanded-visual-decoration',
|
|
101
119
|
stickiness: 0 ,
|
|
102
120
|
isWholeLine: true,
|
|
103
|
-
firstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingManualExpandedIcon)
|
|
121
|
+
firstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingManualExpandedIcon),
|
|
122
|
+
linesDecorationsTooltip: expanded,
|
|
104
123
|
}); }
|
|
105
124
|
static { this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
106
125
|
description: 'folding-manually-expanded-auto-hide-visual-decoration',
|
|
107
126
|
stickiness: 0 ,
|
|
108
127
|
isWholeLine: true,
|
|
109
|
-
firstLineDecorationClassName: ThemeIcon.asClassName(foldingManualExpandedIcon)
|
|
128
|
+
firstLineDecorationClassName: ThemeIcon.asClassName(foldingManualExpandedIcon),
|
|
129
|
+
linesDecorationsTooltip: expanded,
|
|
110
130
|
}); }
|
|
111
131
|
static { this.NO_CONTROLS_EXPANDED_RANGE_DECORATION = ModelDecorationOptions.register({
|
|
112
132
|
description: 'folding-no-controls-range-decoration',
|
|
@@ -8,9 +8,9 @@ class EditorFontZoomIn extends EditorAction {
|
|
|
8
8
|
label: ( localizeWithPath(
|
|
9
9
|
'vs/editor/contrib/fontZoom/browser/fontZoom',
|
|
10
10
|
'EditorFontZoomIn.label',
|
|
11
|
-
"Editor Font
|
|
11
|
+
"Increase Editor Font Size"
|
|
12
12
|
)),
|
|
13
|
-
alias: 'Editor Font
|
|
13
|
+
alias: 'Increase Editor Font Size',
|
|
14
14
|
precondition: undefined
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -25,9 +25,9 @@ class EditorFontZoomOut extends EditorAction {
|
|
|
25
25
|
label: ( localizeWithPath(
|
|
26
26
|
'vs/editor/contrib/fontZoom/browser/fontZoom',
|
|
27
27
|
'EditorFontZoomOut.label',
|
|
28
|
-
"Editor Font
|
|
28
|
+
"Decrease Editor Font Size"
|
|
29
29
|
)),
|
|
30
|
-
alias: 'Editor Font
|
|
30
|
+
alias: 'Decrease Editor Font Size',
|
|
31
31
|
precondition: undefined
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -42,9 +42,9 @@ class EditorFontZoomReset extends EditorAction {
|
|
|
42
42
|
label: ( localizeWithPath(
|
|
43
43
|
'vs/editor/contrib/fontZoom/browser/fontZoom',
|
|
44
44
|
'EditorFontZoomReset.label',
|
|
45
|
-
"Editor Font
|
|
45
|
+
"Reset Editor Font Size"
|
|
46
46
|
)),
|
|
47
|
-
alias: 'Editor Font
|
|
47
|
+
alias: 'Reset Editor Font Size',
|
|
48
48
|
precondition: undefined
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -18,7 +18,7 @@ import { ExtensionIdentifierSet } from '../../../../platform/extensions/common/e
|
|
|
18
18
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
19
19
|
import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.js';
|
|
20
20
|
import { ILogService } from '../../../../platform/log/common/log.js';
|
|
21
|
-
import {
|
|
21
|
+
import { IAudioCueService, AudioCue } from '../../../../platform/audioCues/browser/audioCueService.js';
|
|
22
22
|
function getRealAndSyntheticDocumentFormattersOrdered(documentFormattingEditProvider, documentRangeFormattingEditProvider, model) {
|
|
23
23
|
const result = [];
|
|
24
24
|
const seen = ( new ExtensionIdentifierSet());
|
|
@@ -53,13 +53,13 @@ class FormattingConflicts {
|
|
|
53
53
|
const remove = FormattingConflicts._selectors.unshift(selector);
|
|
54
54
|
return { dispose: remove };
|
|
55
55
|
}
|
|
56
|
-
static async select(formatter, document, mode) {
|
|
56
|
+
static async select(formatter, document, mode, kind) {
|
|
57
57
|
if (formatter.length === 0) {
|
|
58
58
|
return undefined;
|
|
59
59
|
}
|
|
60
60
|
const selector = Iterable.first(FormattingConflicts._selectors);
|
|
61
61
|
if (selector) {
|
|
62
|
-
return await selector(formatter, document, mode);
|
|
62
|
+
return await selector(formatter, document, mode, kind);
|
|
63
63
|
}
|
|
64
64
|
return undefined;
|
|
65
65
|
}
|
|
@@ -69,7 +69,7 @@ async function formatDocumentRangesWithSelectedProvider(accessor, editorOrModel,
|
|
|
69
69
|
const { documentRangeFormattingEditProvider: documentRangeFormattingEditProviderRegistry } = accessor.get(ILanguageFeaturesService);
|
|
70
70
|
const model = isCodeEditor(editorOrModel) ? editorOrModel.getModel() : editorOrModel;
|
|
71
71
|
const provider = documentRangeFormattingEditProviderRegistry.ordered(model);
|
|
72
|
-
const selected = await FormattingConflicts.select(provider, model, mode);
|
|
72
|
+
const selected = await FormattingConflicts.select(provider, model, mode, 2 );
|
|
73
73
|
if (selected) {
|
|
74
74
|
progress.report(selected);
|
|
75
75
|
await instaService.invokeFunction(formatDocumentRangesWithProvider, selected, editorOrModel, rangeOrRanges, token, userGesture);
|
|
@@ -78,7 +78,7 @@ async function formatDocumentRangesWithSelectedProvider(accessor, editorOrModel,
|
|
|
78
78
|
async function formatDocumentRangesWithProvider(accessor, provider, editorOrModel, rangeOrRanges, token, userGesture) {
|
|
79
79
|
const workerService = accessor.get(IEditorWorkerService);
|
|
80
80
|
const logService = accessor.get(ILogService);
|
|
81
|
-
const
|
|
81
|
+
const audioCueService = accessor.get(IAudioCueService);
|
|
82
82
|
let model;
|
|
83
83
|
let cts;
|
|
84
84
|
if (isCodeEditor(editorOrModel)) {
|
|
@@ -211,7 +211,7 @@ async function formatDocumentRangesWithProvider(accessor, provider, editorOrMode
|
|
|
211
211
|
return null;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
audioCueService.playAudioCue(AudioCue.format, { userGesture });
|
|
215
215
|
return true;
|
|
216
216
|
}
|
|
217
217
|
async function formatDocumentWithSelectedProvider(accessor, editorOrModel, mode, progress, token, userGesture) {
|
|
@@ -219,7 +219,7 @@ async function formatDocumentWithSelectedProvider(accessor, editorOrModel, mode,
|
|
|
219
219
|
const languageFeaturesService = accessor.get(ILanguageFeaturesService);
|
|
220
220
|
const model = isCodeEditor(editorOrModel) ? editorOrModel.getModel() : editorOrModel;
|
|
221
221
|
const provider = getRealAndSyntheticDocumentFormattersOrdered(languageFeaturesService.documentFormattingEditProvider, languageFeaturesService.documentRangeFormattingEditProvider, model);
|
|
222
|
-
const selected = await FormattingConflicts.select(provider, model, mode);
|
|
222
|
+
const selected = await FormattingConflicts.select(provider, model, mode, 1 );
|
|
223
223
|
if (selected) {
|
|
224
224
|
progress.report(selected);
|
|
225
225
|
await instaService.invokeFunction(formatDocumentWithProvider, selected, editorOrModel, mode, token, userGesture);
|
|
@@ -227,7 +227,7 @@ async function formatDocumentWithSelectedProvider(accessor, editorOrModel, mode,
|
|
|
227
227
|
}
|
|
228
228
|
async function formatDocumentWithProvider(accessor, provider, editorOrModel, mode, token, userGesture) {
|
|
229
229
|
const workerService = accessor.get(IEditorWorkerService);
|
|
230
|
-
const
|
|
230
|
+
const audioCueService = accessor.get(IAudioCueService);
|
|
231
231
|
let model;
|
|
232
232
|
let cts;
|
|
233
233
|
if (isCodeEditor(editorOrModel)) {
|
|
@@ -291,7 +291,7 @@ async function formatDocumentWithProvider(accessor, provider, editorOrModel, mod
|
|
|
291
291
|
return null;
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
-
|
|
294
|
+
audioCueService.playAudioCue(AudioCue.format, { userGesture });
|
|
295
295
|
return true;
|
|
296
296
|
}
|
|
297
297
|
async function getDocumentRangeFormattingEditsUntilResult(workerService, languageFeaturesService, model, range, options, token) {
|
|
@@ -14,18 +14,18 @@ import { ILanguageFeaturesService } from '../../../common/services/languageFeatu
|
|
|
14
14
|
import { getOnTypeFormattingEdits, formatDocumentRangesWithSelectedProvider, formatDocumentWithSelectedProvider } from './format.js';
|
|
15
15
|
import { FormattingEdit } from './formattingEdit.js';
|
|
16
16
|
import { localizeWithPath } from '../../../../nls.js';
|
|
17
|
-
import {
|
|
17
|
+
import { AudioCue, IAudioCueService } from '../../../../platform/audioCues/browser/audioCueService.js';
|
|
18
18
|
import { CommandsRegistry, ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
19
19
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
20
20
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
21
21
|
import { Progress, IEditorProgressService } from '../../../../platform/progress/common/progress.js';
|
|
22
22
|
let FormatOnType = class FormatOnType {
|
|
23
23
|
static { this.ID = 'editor.contrib.autoFormat'; }
|
|
24
|
-
constructor(_editor, _languageFeaturesService, _workerService,
|
|
24
|
+
constructor(_editor, _languageFeaturesService, _workerService, _audioCueService) {
|
|
25
25
|
this._editor = _editor;
|
|
26
26
|
this._languageFeaturesService = _languageFeaturesService;
|
|
27
27
|
this._workerService = _workerService;
|
|
28
|
-
this.
|
|
28
|
+
this._audioCueService = _audioCueService;
|
|
29
29
|
this._disposables = ( new DisposableStore());
|
|
30
30
|
this._sessionDisposables = ( new DisposableStore());
|
|
31
31
|
this._disposables.add(_languageFeaturesService.onTypeFormattingEditProvider.onDidChange(this._update, this));
|
|
@@ -96,7 +96,7 @@ let FormatOnType = class FormatOnType {
|
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
if (isNonEmptyArray(edits)) {
|
|
99
|
-
this.
|
|
99
|
+
this._audioCueService.playAudioCue(AudioCue.format, { userGesture: false });
|
|
100
100
|
FormattingEdit.execute(this._editor, edits, true);
|
|
101
101
|
}
|
|
102
102
|
}).finally(() => {
|
|
@@ -107,7 +107,7 @@ let FormatOnType = class FormatOnType {
|
|
|
107
107
|
FormatOnType = ( __decorate([
|
|
108
108
|
( __param(1, ILanguageFeaturesService)),
|
|
109
109
|
( __param(2, IEditorWorkerService)),
|
|
110
|
-
( __param(3,
|
|
110
|
+
( __param(3, IAudioCueService))
|
|
111
111
|
], FormatOnType));
|
|
112
112
|
let FormatOnPaste = class FormatOnPaste {
|
|
113
113
|
static { this.ID = 'editor.contrib.formatOnPaste'; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:\"(\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:\")\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-
|
|
2
|
+
var css = ".monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:\"(\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:\")\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|
|
@@ -822,7 +822,7 @@ CommandsRegistry.registerCommand({
|
|
|
822
822
|
{ name: 'uri', description: 'The text document in which to start', constraint: URI },
|
|
823
823
|
{ name: 'position', description: 'The position at which to start', constraint: Position.isIPosition },
|
|
824
824
|
{ name: 'locations', description: 'An array of locations.', constraint: Array },
|
|
825
|
-
{ name: 'multiple', description: 'Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto' },
|
|
825
|
+
{ name: 'multiple', description: 'Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`' },
|
|
826
826
|
{ name: 'noResultsMessage', description: 'Human readable message that shows when locations is empty.' },
|
|
827
827
|
]
|
|
828
828
|
},
|
|
@@ -860,7 +860,7 @@ CommandsRegistry.registerCommand({
|
|
|
860
860
|
{ name: 'uri', description: 'The text document in which to start', constraint: URI },
|
|
861
861
|
{ name: 'position', description: 'The position at which to start', constraint: Position.isIPosition },
|
|
862
862
|
{ name: 'locations', description: 'An array of locations.', constraint: Array },
|
|
863
|
-
{ name: 'multiple', description: 'Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto' },
|
|
863
|
+
{ name: 'multiple', description: 'Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`' },
|
|
864
864
|
]
|
|
865
865
|
},
|
|
866
866
|
handler: async (accessor, resource, position, references, multiple) => {
|
|
@@ -21,13 +21,6 @@ var ContentHoverController_1, ContentHoverWidget_1;
|
|
|
21
21
|
const $ = $$1;
|
|
22
22
|
let ContentHoverController = class ContentHoverController extends Disposable {
|
|
23
23
|
static { ContentHoverController_1 = this; }
|
|
24
|
-
getWidgetContent() {
|
|
25
|
-
const node = this._widget.getDomNode();
|
|
26
|
-
if (!node.textContent) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
return node.textContent;
|
|
30
|
-
}
|
|
31
24
|
constructor(_editor, _instantiationService, _keybindingService) {
|
|
32
25
|
super();
|
|
33
26
|
this._editor = _editor;
|
|
@@ -60,41 +53,6 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
60
53
|
}
|
|
61
54
|
}));
|
|
62
55
|
}
|
|
63
|
-
get widget() {
|
|
64
|
-
return this._widget;
|
|
65
|
-
}
|
|
66
|
-
maybeShowAt(mouseEvent) {
|
|
67
|
-
if (this._widget.isResizing) {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
const anchorCandidates = [];
|
|
71
|
-
for (const participant of this._participants) {
|
|
72
|
-
if (participant.suggestHoverAnchor) {
|
|
73
|
-
const anchor = participant.suggestHoverAnchor(mouseEvent);
|
|
74
|
-
if (anchor) {
|
|
75
|
-
anchorCandidates.push(anchor);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
const target = mouseEvent.target;
|
|
80
|
-
if (target.type === 6 ) {
|
|
81
|
-
anchorCandidates.push(( new HoverRangeAnchor(0, target.range, mouseEvent.event.posx, mouseEvent.event.posy)));
|
|
82
|
-
}
|
|
83
|
-
if (target.type === 7 ) {
|
|
84
|
-
const epsilon = this._editor.getOption(50 ).typicalHalfwidthCharacterWidth / 2;
|
|
85
|
-
if (!target.detail.isAfterLines && typeof target.detail.horizontalDistanceToText === 'number' && target.detail.horizontalDistanceToText < epsilon) {
|
|
86
|
-
anchorCandidates.push(( new HoverRangeAnchor(0, target.range, mouseEvent.event.posx, mouseEvent.event.posy)));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
if (anchorCandidates.length === 0) {
|
|
90
|
-
return this._startShowingOrUpdateHover(null, 0 , 0 , false, mouseEvent);
|
|
91
|
-
}
|
|
92
|
-
anchorCandidates.sort((a, b) => b.priority - a.priority);
|
|
93
|
-
return this._startShowingOrUpdateHover(anchorCandidates[0], 0 , 0 , false, mouseEvent);
|
|
94
|
-
}
|
|
95
|
-
startShowingAtRange(range, mode, source, focus) {
|
|
96
|
-
this._startShowingOrUpdateHover(( new HoverRangeAnchor(0, range, undefined, undefined)), mode, source, focus, null);
|
|
97
|
-
}
|
|
98
56
|
_startShowingOrUpdateHover(anchor, mode, source, focus, mouseEvent) {
|
|
99
57
|
if (!this._widget.position || !this._currentResult) {
|
|
100
58
|
if (anchor) {
|
|
@@ -103,8 +61,10 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
103
61
|
}
|
|
104
62
|
return false;
|
|
105
63
|
}
|
|
106
|
-
const
|
|
107
|
-
const isGettingCloser = (
|
|
64
|
+
const isHoverSticky = this._editor.getOption(60 ).sticky;
|
|
65
|
+
const isGettingCloser = (isHoverSticky
|
|
66
|
+
&& mouseEvent
|
|
67
|
+
&& this._widget.isMouseGettingCloser(mouseEvent.event.posx, mouseEvent.event.posy));
|
|
108
68
|
if (isGettingCloser) {
|
|
109
69
|
if (anchor) {
|
|
110
70
|
this._startHoverOperationIfNecessary(anchor, mode, source, focus, true);
|
|
@@ -153,29 +113,6 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
153
113
|
this._widget.hide();
|
|
154
114
|
}
|
|
155
115
|
}
|
|
156
|
-
hide() {
|
|
157
|
-
this._computer.anchor = null;
|
|
158
|
-
this._hoverOperation.cancel();
|
|
159
|
-
this._setCurrentResult(null);
|
|
160
|
-
}
|
|
161
|
-
get isColorPickerVisible() {
|
|
162
|
-
return this._widget.isColorPickerVisible;
|
|
163
|
-
}
|
|
164
|
-
get isVisibleFromKeyboard() {
|
|
165
|
-
return this._widget.isVisibleFromKeyboard;
|
|
166
|
-
}
|
|
167
|
-
get isVisible() {
|
|
168
|
-
return this._widget.isVisible;
|
|
169
|
-
}
|
|
170
|
-
get isFocused() {
|
|
171
|
-
return this._widget.isFocused;
|
|
172
|
-
}
|
|
173
|
-
get isResizing() {
|
|
174
|
-
return this._widget.isResizing;
|
|
175
|
-
}
|
|
176
|
-
containsNode(node) {
|
|
177
|
-
return (node ? this._widget.getDomNode().contains(node) : false);
|
|
178
|
-
}
|
|
179
116
|
_addLoadingMessage(result) {
|
|
180
117
|
if (this._computer.anchor) {
|
|
181
118
|
for (const participant of this._participants) {
|
|
@@ -236,6 +173,8 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
236
173
|
}));
|
|
237
174
|
}
|
|
238
175
|
this._widget.showAt(fragment, ( new ContentHoverVisibleData(
|
|
176
|
+
anchor.initialMousePosX,
|
|
177
|
+
anchor.initialMousePosY,
|
|
239
178
|
colorPicker,
|
|
240
179
|
showAtPosition,
|
|
241
180
|
showAtSecondaryPosition,
|
|
@@ -243,8 +182,6 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
243
182
|
this._computer.shouldFocus,
|
|
244
183
|
this._computer.source,
|
|
245
184
|
isBeforeContent,
|
|
246
|
-
anchor.initialMousePosX,
|
|
247
|
-
anchor.initialMousePosY,
|
|
248
185
|
disposables
|
|
249
186
|
)));
|
|
250
187
|
}
|
|
@@ -281,12 +218,58 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
281
218
|
forceShowAtRange = msg.range;
|
|
282
219
|
}
|
|
283
220
|
}
|
|
221
|
+
const showAtPosition = forceShowAtRange ? forceShowAtRange.getStartPosition() : ( new Position(anchorLineNumber, anchorRange.startColumn));
|
|
222
|
+
const showAtSecondaryPosition = forceShowAtRange ? forceShowAtRange.getStartPosition() : ( new Position(anchorLineNumber, renderStartColumn));
|
|
284
223
|
return {
|
|
285
|
-
showAtPosition
|
|
286
|
-
showAtSecondaryPosition
|
|
224
|
+
showAtPosition,
|
|
225
|
+
showAtSecondaryPosition,
|
|
287
226
|
highlightRange
|
|
288
227
|
};
|
|
289
228
|
}
|
|
229
|
+
showsOrWillShow(mouseEvent) {
|
|
230
|
+
if (this._widget.isResizing) {
|
|
231
|
+
return true;
|
|
232
|
+
}
|
|
233
|
+
const anchorCandidates = [];
|
|
234
|
+
for (const participant of this._participants) {
|
|
235
|
+
if (participant.suggestHoverAnchor) {
|
|
236
|
+
const anchor = participant.suggestHoverAnchor(mouseEvent);
|
|
237
|
+
if (anchor) {
|
|
238
|
+
anchorCandidates.push(anchor);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const target = mouseEvent.target;
|
|
243
|
+
if (target.type === 6 ) {
|
|
244
|
+
anchorCandidates.push(( new HoverRangeAnchor(0, target.range, mouseEvent.event.posx, mouseEvent.event.posy)));
|
|
245
|
+
}
|
|
246
|
+
if (target.type === 7 ) {
|
|
247
|
+
const epsilon = this._editor.getOption(50 ).typicalHalfwidthCharacterWidth / 2;
|
|
248
|
+
if (!target.detail.isAfterLines
|
|
249
|
+
&& typeof target.detail.horizontalDistanceToText === 'number'
|
|
250
|
+
&& target.detail.horizontalDistanceToText < epsilon) {
|
|
251
|
+
anchorCandidates.push(( new HoverRangeAnchor(0, target.range, mouseEvent.event.posx, mouseEvent.event.posy)));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (anchorCandidates.length === 0) {
|
|
255
|
+
return this._startShowingOrUpdateHover(null, 0 , 0 , false, mouseEvent);
|
|
256
|
+
}
|
|
257
|
+
anchorCandidates.sort((a, b) => b.priority - a.priority);
|
|
258
|
+
return this._startShowingOrUpdateHover(anchorCandidates[0], 0 , 0 , false, mouseEvent);
|
|
259
|
+
}
|
|
260
|
+
startShowingAtRange(range, mode, source, focus) {
|
|
261
|
+
this._startShowingOrUpdateHover(( new HoverRangeAnchor(0, range, undefined, undefined)), mode, source, focus, null);
|
|
262
|
+
}
|
|
263
|
+
getWidgetContent() {
|
|
264
|
+
const node = this._widget.getDomNode();
|
|
265
|
+
if (!node.textContent) {
|
|
266
|
+
return undefined;
|
|
267
|
+
}
|
|
268
|
+
return node.textContent;
|
|
269
|
+
}
|
|
270
|
+
containsNode(node) {
|
|
271
|
+
return (node ? this._widget.getDomNode().contains(node) : false);
|
|
272
|
+
}
|
|
290
273
|
focus() {
|
|
291
274
|
this._widget.focus();
|
|
292
275
|
}
|
|
@@ -314,6 +297,29 @@ let ContentHoverController = class ContentHoverController extends Disposable {
|
|
|
314
297
|
goToBottom() {
|
|
315
298
|
this._widget.goToBottom();
|
|
316
299
|
}
|
|
300
|
+
hide() {
|
|
301
|
+
this._computer.anchor = null;
|
|
302
|
+
this._hoverOperation.cancel();
|
|
303
|
+
this._setCurrentResult(null);
|
|
304
|
+
}
|
|
305
|
+
get isColorPickerVisible() {
|
|
306
|
+
return this._widget.isColorPickerVisible;
|
|
307
|
+
}
|
|
308
|
+
get isVisibleFromKeyboard() {
|
|
309
|
+
return this._widget.isVisibleFromKeyboard;
|
|
310
|
+
}
|
|
311
|
+
get isVisible() {
|
|
312
|
+
return this._widget.isVisible;
|
|
313
|
+
}
|
|
314
|
+
get isFocused() {
|
|
315
|
+
return this._widget.isFocused;
|
|
316
|
+
}
|
|
317
|
+
get isResizing() {
|
|
318
|
+
return this._widget.isResizing;
|
|
319
|
+
}
|
|
320
|
+
get widget() {
|
|
321
|
+
return this._widget;
|
|
322
|
+
}
|
|
317
323
|
};
|
|
318
324
|
ContentHoverController = ContentHoverController_1 = ( __decorate([
|
|
319
325
|
( __param(1, IInstantiationService)),
|
|
@@ -343,7 +349,9 @@ class FilteredHoverResult extends HoverResult {
|
|
|
343
349
|
}
|
|
344
350
|
}
|
|
345
351
|
class ContentHoverVisibleData {
|
|
346
|
-
constructor(colorPicker, showAtPosition, showAtSecondaryPosition, preferAbove, stoleFocus, source, isBeforeContent,
|
|
352
|
+
constructor(initialMousePosX, initialMousePosY, colorPicker, showAtPosition, showAtSecondaryPosition, preferAbove, stoleFocus, source, isBeforeContent, disposables) {
|
|
353
|
+
this.initialMousePosX = initialMousePosX;
|
|
354
|
+
this.initialMousePosY = initialMousePosY;
|
|
347
355
|
this.colorPicker = colorPicker;
|
|
348
356
|
this.showAtPosition = showAtPosition;
|
|
349
357
|
this.showAtSecondaryPosition = showAtSecondaryPosition;
|
|
@@ -351,8 +359,6 @@ class ContentHoverVisibleData {
|
|
|
351
359
|
this.stoleFocus = stoleFocus;
|
|
352
360
|
this.source = source;
|
|
353
361
|
this.isBeforeContent = isBeforeContent;
|
|
354
|
-
this.initialMousePosX = initialMousePosX;
|
|
355
|
-
this.initialMousePosY = initialMousePosY;
|
|
356
362
|
this.disposables = disposables;
|
|
357
363
|
this.closestMouseDistance = undefined;
|
|
358
364
|
}
|
|
@@ -491,7 +497,9 @@ let ContentHoverWidget = class ContentHoverWidget extends ResizableContentWidget
|
|
|
491
497
|
if (!position) {
|
|
492
498
|
return;
|
|
493
499
|
}
|
|
494
|
-
return this._positionPreference === 1 ?
|
|
500
|
+
return this._positionPreference === 1 ?
|
|
501
|
+
this._availableVerticalSpaceAbove(position)
|
|
502
|
+
: this._availableVerticalSpaceBelow(position);
|
|
495
503
|
}
|
|
496
504
|
_findMaximumRenderingHeight() {
|
|
497
505
|
const availableSpace = this._findAvailableSpaceVertically();
|
|
@@ -537,7 +545,8 @@ let ContentHoverWidget = class ContentHoverWidget extends ResizableContentWidget
|
|
|
537
545
|
if (!this._visibleData) {
|
|
538
546
|
return false;
|
|
539
547
|
}
|
|
540
|
-
if (typeof this._visibleData.initialMousePosX === 'undefined'
|
|
548
|
+
if (typeof this._visibleData.initialMousePosX === 'undefined'
|
|
549
|
+
|| typeof this._visibleData.initialMousePosY === 'undefined') {
|
|
541
550
|
this._visibleData.initialMousePosX = posx;
|
|
542
551
|
this._visibleData.initialMousePosY = posy;
|
|
543
552
|
return false;
|