monaco-editor-core 0.57.0 → 0.58.0-dev-20261104
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +38 -6
- package/esm/vs/base/browser/browser.js +8 -0
- package/esm/vs/base/browser/browser.js.map +1 -1
- package/esm/vs/base/browser/contextmenu.js +8 -1
- package/esm/vs/base/browser/contextmenu.js.map +1 -1
- package/esm/vs/base/browser/dom.js +34 -5
- package/esm/vs/base/browser/dom.js.map +1 -1
- package/esm/vs/base/browser/dompurify/dompurify.js +2457 -2640
- package/esm/vs/base/browser/markdownRenderer.js +48 -21
- package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
- package/esm/vs/base/browser/pixelRatio.js +3 -2
- package/esm/vs/base/browser/pixelRatio.js.map +1 -1
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js.map +1 -1
- package/esm/vs/base/browser/ui/actionbar/actionbar.js +7 -2
- package/esm/vs/base/browser/ui/actionbar/actionbar.js.map +1 -1
- package/esm/vs/base/browser/ui/animations/animations.js +68 -40
- package/esm/vs/base/browser/ui/animations/animations.js.map +1 -1
- package/esm/vs/base/browser/ui/button/button.js +7 -0
- package/esm/vs/base/browser/ui/button/button.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/contextview/contextview.css +15 -0
- package/esm/vs/base/browser/ui/contextview/contextview.js +266 -40
- package/esm/vs/base/browser/ui/contextview/contextview.js.map +1 -1
- package/esm/vs/base/browser/ui/contextview/windowControlsOverlay.js +72 -0
- package/esm/vs/base/browser/ui/contextview/windowControlsOverlay.js.map +1 -0
- package/esm/vs/base/browser/ui/dialog/dialog.css +5 -0
- package/esm/vs/base/browser/ui/dropdown/dropdown.js +2 -1
- package/esm/vs/base/browser/ui/dropdown/dropdown.js.map +1 -1
- package/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -0
- package/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js.map +1 -1
- package/esm/vs/base/browser/ui/hover/hover.js.map +1 -1
- package/esm/vs/base/browser/ui/list/listView.js +87 -15
- package/esm/vs/base/browser/ui/list/listView.js.map +1 -1
- package/esm/vs/base/browser/ui/list/listWidget.js +37 -15
- package/esm/vs/base/browser/ui/list/listWidget.js.map +1 -1
- package/esm/vs/base/browser/ui/menu/menu.js +189 -52
- package/esm/vs/base/browser/ui/menu/menu.js.map +1 -1
- package/esm/vs/base/browser/ui/radio/radio.css +11 -0
- package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -1
- package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -8
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/splitview/splitview.js +11 -7
- package/esm/vs/base/browser/ui/splitview/splitview.js.map +1 -1
- package/esm/vs/base/browser/ui/toggle/switch.css +16 -7
- package/esm/vs/base/browser/ui/toggle/switch.js +9 -6
- package/esm/vs/base/browser/ui/toggle/switch.js.map +1 -1
- package/esm/vs/base/browser/ui/toolbar/toolbar.css +1 -2
- package/esm/vs/base/browser/ui/toolbar/toolbar.js +85 -38
- package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +48 -9
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/asyncDataTree.js +10 -1
- package/esm/vs/base/browser/ui/tree/asyncDataTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/objectTree.js +3 -0
- package/esm/vs/base/browser/ui/tree/objectTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/tree.js.map +1 -1
- package/esm/vs/base/common/actions.js +8 -2
- package/esm/vs/base/common/actions.js.map +1 -1
- package/esm/vs/base/common/arrays.js +4 -4
- package/esm/vs/base/common/arrays.js.map +1 -1
- package/esm/vs/base/common/async.js +12 -8
- package/esm/vs/base/common/async.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +25 -0
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/base/common/codicons.js +2 -0
- package/esm/vs/base/common/codicons.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/color.js +1 -1
- package/esm/vs/base/common/color.js.map +1 -1
- package/esm/vs/base/common/diff/diff.js +60 -1
- package/esm/vs/base/common/diff/diff.js.map +1 -1
- package/esm/vs/base/common/event.js +1 -1
- package/esm/vs/base/common/event.js.map +1 -1
- package/esm/vs/base/common/glob.js +1 -0
- package/esm/vs/base/common/glob.js.map +1 -1
- package/esm/vs/base/common/htmlContent.js +74 -12
- package/esm/vs/base/common/htmlContent.js.map +1 -1
- package/esm/vs/base/common/json.js +19 -0
- package/esm/vs/base/common/json.js.map +1 -0
- package/esm/vs/base/common/network.js +16 -0
- package/esm/vs/base/common/network.js.map +1 -1
- package/esm/vs/base/common/resources.js +14 -2
- package/esm/vs/base/common/resources.js.map +1 -1
- package/esm/vs/base/common/strings.js +1 -1
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/base/common/uri.js +2 -2
- package/esm/vs/base/common/uri.js.map +1 -1
- package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/esm/vs/editor/browser/config/fontMeasurements.js +19 -6
- package/esm/vs/editor/browser/config/fontMeasurements.js.map +1 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js +11 -5
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +8 -38
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +6 -6
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +12 -10
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +7 -7
- package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
- package/esm/vs/editor/browser/coreCommands.js +2 -2
- package/esm/vs/editor/browser/editorBrowser.js.map +1 -1
- package/esm/vs/editor/browser/editorMarkdownSanitizer.js +19 -0
- package/esm/vs/editor/browser/editorMarkdownSanitizer.js.map +1 -0
- package/esm/vs/editor/browser/gpu/rectangleRenderer.js +1 -1
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +1 -1
- package/esm/vs/editor/browser/services/editorWorkerService.js +3 -2
- package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
- package/esm/vs/editor/browser/services/openerService.js +6 -2
- package/esm/vs/editor/browser/services/openerService.js.map +1 -1
- package/esm/vs/editor/browser/view/domLineBreaksComputer.js +34 -11
- package/esm/vs/editor/browser/view/domLineBreaksComputer.js.map +1 -1
- package/esm/vs/editor/browser/view/viewController.js +7 -7
- package/esm/vs/editor/browser/view/viewController.js.map +1 -1
- package/esm/vs/editor/browser/view/viewLayer.js +1 -1
- package/esm/vs/editor/browser/view/viewOverlays.js +4 -4
- package/esm/vs/editor/browser/view.js +5 -5
- package/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +11 -3
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
- package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +12 -12
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +9 -2
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -2
- package/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +2 -2
- package/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
- package/esm/vs/editor/browser/viewParts/margin/margin.js +2 -2
- package/esm/vs/editor/browser/viewParts/minimap/minimap.js +6 -6
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +9 -2
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +5 -5
- package/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
- package/esm/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
- package/esm/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
- package/esm/vs/editor/browser/viewParts/selections/selections.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js +6 -6
- package/esm/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +5 -5
- package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +11 -11
- package/esm/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/esm/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
- package/esm/vs/editor/browser/viewParts/wordWrapIndicator/wordWrapIndicator.js +2 -2
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +22 -21
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +18 -18
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +10 -10
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +4 -4
- package/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +21 -3
- package/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +10 -10
- package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.js +2 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.js +21 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +11 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.js +1 -0
- package/esm/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.js.map +1 -1
- package/esm/vs/editor/common/commands/columnSelectionPasteCommand.js +64 -0
- package/esm/vs/editor/common/commands/columnSelectionPasteCommand.js.map +1 -0
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +68 -58
- package/esm/vs/editor/common/config/editorConfigurationSchema.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +560 -500
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/core/edits/textEdit.js +16 -0
- package/esm/vs/editor/common/core/edits/textEdit.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursor.js +20 -10
- package/esm/vs/editor/common/cursor/cursor.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js +67 -14
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeOperations.js +2 -2
- package/esm/vs/editor/common/cursor/cursorTypeOperations.js.map +1 -1
- package/esm/vs/editor/common/cursorCommon.js +22 -21
- package/esm/vs/editor/common/cursorCommon.js.map +1 -1
- package/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +21 -8
- package/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js.map +1 -1
- package/esm/vs/editor/common/diff/documentDiffProvider.js.map +1 -1
- package/esm/vs/editor/common/diff/externalLinesDiffComputer.js +38 -26
- package/esm/vs/editor/common/diff/externalLinesDiffComputer.js.map +1 -1
- package/esm/vs/editor/common/diff/rangeMapping.js +11 -1
- package/esm/vs/editor/common/diff/rangeMapping.js.map +1 -1
- package/esm/vs/editor/common/diff/verifyLinesDiff.js +28 -0
- package/esm/vs/editor/common/diff/verifyLinesDiff.js.map +1 -0
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/languageConfiguration.js +8 -0
- package/esm/vs/editor/common/languages/languageConfiguration.js.map +1 -1
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/services/editorWebWorker.js +27 -6
- package/esm/vs/editor/common/services/editorWebWorker.js.map +1 -1
- package/esm/vs/editor/common/services/editorWorker.js.map +1 -1
- package/esm/vs/editor/common/services/languageService.js +6 -4
- package/esm/vs/editor/common/services/languageService.js.map +1 -1
- package/esm/vs/editor/common/services/markerDecorationsService.js +21 -2
- package/esm/vs/editor/common/services/markerDecorationsService.js.map +1 -1
- package/esm/vs/editor/common/standalone/standaloneEnums.js +100 -97
- package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/textModelEditSource.js +9 -0
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/common/viewLayout/viewLayout.js +16 -16
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +1 -1
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +19 -19
- package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +9 -9
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +23 -20
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js.map +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +25 -10
- package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -3
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +17 -17
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js.map +1 -1
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +39 -39
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js.map +1 -1
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/pasteEditSession.js +19 -0
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/pasteEditSession.js.map +1 -0
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +26 -18
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js.map +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +18 -18
- package/esm/vs/editor/contrib/find/browser/findController.js.map +1 -1
- package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/esm/vs/editor/contrib/find/browser/findWidget.js +40 -40
- package/esm/vs/editor/contrib/find/browser/findWidget.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/folding.js +23 -23
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js.map +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverController.js +9 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverController.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/glyphHoverController.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +2 -1
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -8
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -6
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +5 -5
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +9 -9
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +3 -3
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +7 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +7 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +5 -4
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js.map +1 -1
- package/esm/vs/editor/contrib/links/browser/links.js +16 -15
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +16 -12
- package/esm/vs/editor/contrib/message/browser/messageController.js.map +1 -1
- package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +91 -55
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js.map +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js.map +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +6 -4
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -3
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +6 -6
- package/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +23 -13
- package/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js.map +1 -1
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +10 -8
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +6 -6
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +15 -15
- package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +27 -27
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +8 -6
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/wordDistance.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +27 -27
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +1 -1
- package/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js.map +1 -1
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +50 -14
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js.map +1 -1
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +6 -6
- package/esm/vs/editor/editor.api.d.ts +133 -98
- package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +5 -3
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js.map +1 -1
- package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js +15 -1
- package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js.map +1 -1
- package/esm/vs/nls.js.map +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +72 -66
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js.map +1 -1
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +434 -136
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +74 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +24 -26
- package/esm/vs/platform/actionWidget/browser/actionWidget.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidgetMotion.js +16 -0
- package/esm/vs/platform/actionWidget/browser/actionWidgetMotion.js.map +1 -0
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +15 -17
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js.map +1 -1
- package/esm/vs/platform/actions/browser/toolbar.js +25 -12
- package/esm/vs/platform/actions/browser/toolbar.js.map +1 -1
- package/esm/vs/platform/actions/common/actions.js +4 -2
- package/esm/vs/platform/actions/common/actions.js.map +1 -1
- package/esm/vs/platform/actions/common/menuService.js +15 -8
- package/esm/vs/platform/actions/common/menuService.js.map +1 -1
- package/esm/vs/platform/configuration/common/configuration.js +3 -1
- package/esm/vs/platform/configuration/common/configuration.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationModels.js +16 -11
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +29 -27
- package/esm/vs/platform/configuration/common/configurationRegistry.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurations.js +13 -1
- package/esm/vs/platform/configuration/common/configurations.js.map +1 -1
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +2 -2
- package/esm/vs/platform/contextkey/browser/contextKeyService.js.map +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +28 -14
- package/esm/vs/platform/contextkey/common/contextkey.js.map +1 -1
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/contextview/browser/contextMenuHandler.js +17 -4
- package/esm/vs/platform/contextview/browser/contextMenuHandler.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextMenuService.js +1 -1
- package/esm/vs/platform/contextview/browser/contextMenuService.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextView.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextViewService.js +7 -2
- package/esm/vs/platform/contextview/browser/contextViewService.js.map +1 -1
- package/esm/vs/platform/editor/common/editor.js +17 -0
- package/esm/vs/platform/editor/common/editor.js.map +1 -1
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverService.js +6 -3
- package/esm/vs/platform/hover/browser/hoverService.js.map +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +38 -6
- package/esm/vs/platform/hover/browser/hoverWidget.js.map +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +32 -5
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js.map +1 -1
- package/esm/vs/platform/instantiation/common/instantiationService.js +1 -1
- package/esm/vs/platform/instantiation/common/instantiationService.js.map +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/keybinding/common/keybindingResolver.js +1 -1
- package/esm/vs/platform/keybinding/common/keybindingResolver.js.map +1 -1
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +11 -8
- package/esm/vs/platform/markers/common/markerService.js.map +1 -1
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/markers/common/markers.js.map +1 -1
- package/esm/vs/platform/notification/common/notification.js.map +1 -1
- package/esm/vs/platform/notification/common/notificationMessage.js +37 -0
- package/esm/vs/platform/notification/common/notificationMessage.js.map +1 -0
- package/esm/vs/platform/opener/common/opener.js.map +1 -1
- package/esm/vs/platform/progress/common/progress.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +33 -2
- package/esm/vs/platform/quickinput/browser/quickAccess.js +7 -4
- package/esm/vs/platform/quickinput/browser/quickAccess.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +65 -15
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +96 -90
- package/esm/vs/platform/quickinput/browser/quickInputList.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputService.js +5 -7
- package/esm/vs/platform/quickinput/browser/quickInputService.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/quickinput/common/quickAccess.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/storage/common/storage.js.map +1 -1
- package/esm/vs/platform/theme/common/colorRegistry.js +1 -0
- package/esm/vs/platform/theme/common/colorRegistry.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +11 -3
- package/esm/vs/platform/theme/common/colorUtils.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -9
- package/esm/vs/platform/theme/common/colors/chartsColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/confettiColors.js +14 -0
- package/esm/vs/platform/theme/common/colors/confettiColors.js.map +1 -0
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/inputColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +13 -13
- package/esm/vs/platform/theme/common/colors/minimapColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +133 -98
- package/package.json +3 -3
- package/version.txt +1 -1
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { isFirefox } from '../../browser.js';
|
|
5
|
+
import { getVisibleWCOTitlebarAreaRect, isFirefox } from '../../browser.js';
|
|
6
6
|
import { EventType as TouchEventType, Gesture } from '../../touch.js';
|
|
7
|
-
import { $, addDisposableListener, append, clearNode, Dimension, EventHelper, EventType, getActiveElement, getWindow, isAncestor, isInShadowDOM } from '../../dom.js';
|
|
7
|
+
import { $, addDisposableListener, append, clearNode, Dimension, EventHelper, EventType, getActiveElement, getWindow, isAncestor, isInShadowDOM, ModifierKeyEmitter } from '../../dom.js';
|
|
8
8
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
9
9
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
10
10
|
import { StandardMouseEvent } from '../../mouseEvent.js';
|
|
11
11
|
import { ActionBar } from '../actionbar/actionbar.js';
|
|
12
12
|
import { ActionViewItem, BaseActionViewItem } from '../actionbar/actionViewItems.js';
|
|
13
|
+
import { avoidWindowControlsOverlay } from '../contextview/windowControlsOverlay.js';
|
|
13
14
|
import { DomScrollableElement } from '../scrollbar/scrollableElement.js';
|
|
14
|
-
import { EmptySubmenuAction, Separator, SubmenuAction } from '../../../common/actions.js';
|
|
15
|
+
import { EmptySubmenuAction, getActionForAltMode, Separator, SubmenuAction } from '../../../common/actions.js';
|
|
15
16
|
import { RunOnceScheduler } from '../../../common/async.js';
|
|
16
17
|
import { Codicon } from '../../../common/codicons.js';
|
|
17
18
|
import { getCodiconFontCharacters } from '../../../common/codiconsUtil.js';
|
|
@@ -21,9 +22,10 @@ import { DisposableStore } from '../../../common/lifecycle.js';
|
|
|
21
22
|
import { isLinux, isMacintosh } from '../../../common/platform.js';
|
|
22
23
|
import * as strings from '../../../common/strings.js';
|
|
23
24
|
import { layout } from '../../../common/layout.js';
|
|
24
|
-
import { CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE } from '../contextview/contextview.js';
|
|
25
|
+
import { CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE, CONTEXT_VIEW_MENU_MOTION_BACKDROP_OPACITY_VARIABLE, CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE, CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE, CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS, CONTEXT_VIEW_MENU_MOTION_EASING, CONTEXT_VIEW_MENU_MOTION_OPEN_DURATION_MS, CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE } from '../contextview/contextview.js';
|
|
25
26
|
export const MENU_MNEMONIC_REGEX = /\(&([^\s&])\)|(^|[^&])&([^\s&])/;
|
|
26
27
|
export const MENU_ESCAPED_MNEMONIC_REGEX = /(&)?(&)([^\s&])/g;
|
|
28
|
+
const FROSTED_GLASS_MENU_OPEN_ANIMATION = 'frosted-glass-menu-motion-open';
|
|
27
29
|
export var HorizontalDirection;
|
|
28
30
|
(function (HorizontalDirection) {
|
|
29
31
|
HorizontalDirection[HorizontalDirection["Right"] = 0] = "Right";
|
|
@@ -202,6 +204,18 @@ export class Menu extends ActionBar {
|
|
|
202
204
|
this.viewItems.filter(item => !(item instanceof MenuSeparatorActionViewItem)).forEach((item, index, array) => {
|
|
203
205
|
item.updatePositionInSet(index + 1, array.length);
|
|
204
206
|
});
|
|
207
|
+
this._register(ModifierKeyEmitter.getInstance().event(() => {
|
|
208
|
+
this.mnemonics.clear();
|
|
209
|
+
for (const item of this.viewItems) {
|
|
210
|
+
if (item instanceof BaseMenuActionViewItem) {
|
|
211
|
+
item.updateAlternativeAction();
|
|
212
|
+
if (options.enableMnemonics) {
|
|
213
|
+
this._registerMnemonic(item);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
this.scrollableElement.scanDomNode();
|
|
218
|
+
}));
|
|
205
219
|
}
|
|
206
220
|
initializeOrUpdateStyleSheet(container, style) {
|
|
207
221
|
if (!this.styleSheet) {
|
|
@@ -265,44 +279,40 @@ export class Menu extends ActionBar {
|
|
|
265
279
|
else if (action instanceof SubmenuAction) {
|
|
266
280
|
const menuActionViewItem = new SubmenuMenuActionViewItem(action, action.actions, parentData, { ...options, submenuIds: new Set([...(options.submenuIds || []), action.id]) }, this.menuStyles);
|
|
267
281
|
if (options.enableMnemonics) {
|
|
268
|
-
|
|
269
|
-
if (mnemonic && menuActionViewItem.isEnabled()) {
|
|
270
|
-
const actionViewItems = this.mnemonics.get(mnemonic);
|
|
271
|
-
if (actionViewItems !== undefined) {
|
|
272
|
-
actionViewItems.push(menuActionViewItem);
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
this.mnemonics.set(mnemonic, [menuActionViewItem]);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
282
|
+
this._registerMnemonic(menuActionViewItem);
|
|
278
283
|
}
|
|
279
284
|
return menuActionViewItem;
|
|
280
285
|
}
|
|
281
286
|
else {
|
|
282
|
-
const keybindingLabel = options.getKeyBinding?.(action)?.getLabel();
|
|
283
287
|
const menuItemOptions = {
|
|
284
288
|
enableMnemonics: options.enableMnemonics,
|
|
285
289
|
useEventAsContext: options.useEventAsContext,
|
|
286
|
-
|
|
290
|
+
getKeyBinding: options.getKeyBinding,
|
|
287
291
|
};
|
|
288
292
|
const menuActionViewItem = new BaseMenuActionViewItem(options.context, action, menuItemOptions, this.menuStyles);
|
|
289
293
|
if (options.enableMnemonics) {
|
|
290
|
-
|
|
291
|
-
if (mnemonic && menuActionViewItem.isEnabled()) {
|
|
292
|
-
const actionViewItems = this.mnemonics.get(mnemonic);
|
|
293
|
-
if (actionViewItems !== undefined) {
|
|
294
|
-
actionViewItems.push(menuActionViewItem);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
this.mnemonics.set(mnemonic, [menuActionViewItem]);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
294
|
+
this._registerMnemonic(menuActionViewItem);
|
|
300
295
|
}
|
|
301
296
|
return menuActionViewItem;
|
|
302
297
|
}
|
|
303
298
|
}
|
|
299
|
+
_registerMnemonic(item) {
|
|
300
|
+
const mnemonic = item.getMnemonic();
|
|
301
|
+
if (mnemonic && item.isEnabled()) {
|
|
302
|
+
const items = this.mnemonics.get(mnemonic);
|
|
303
|
+
if (items) {
|
|
304
|
+
items.push(item);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
this.mnemonics.set(mnemonic, [item]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
304
311
|
}
|
|
305
312
|
class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
313
|
+
get action() {
|
|
314
|
+
return this._displayedAction;
|
|
315
|
+
}
|
|
306
316
|
constructor(ctx, action, options, menuStyle) {
|
|
307
317
|
options = {
|
|
308
318
|
...options,
|
|
@@ -312,6 +322,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
312
322
|
};
|
|
313
323
|
super(action, action, options);
|
|
314
324
|
this.menuStyle = menuStyle;
|
|
325
|
+
this._displayedAction = getActionForAltMode(action, ModifierKeyEmitter.getInstance().keyStatus);
|
|
315
326
|
this.options = options;
|
|
316
327
|
this.cssClass = '';
|
|
317
328
|
// Set mnemonic
|
|
@@ -385,8 +396,8 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
385
396
|
this.check = append(this.item, $('span.menu-item-check' + ThemeIcon.asCSSSelector(Codicon.menuSelection)));
|
|
386
397
|
this.check.setAttribute('role', 'none');
|
|
387
398
|
this.label = append(this.item, $('span.action-label'));
|
|
388
|
-
if (this.options.label && this.options.keybinding) {
|
|
389
|
-
append(this.item, $('span.keybinding'))
|
|
399
|
+
if (this.options.label && (this.options.getKeyBinding || this.options.keybinding)) {
|
|
400
|
+
this._keybinding = append(this.item, $('span.keybinding'));
|
|
390
401
|
}
|
|
391
402
|
// Adds mouse up listener to actually run the action
|
|
392
403
|
this.runOnceToEnableMouseUp.schedule();
|
|
@@ -397,6 +408,16 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
397
408
|
this.updateChecked();
|
|
398
409
|
this.applyStyle();
|
|
399
410
|
}
|
|
411
|
+
updateAlternativeAction() {
|
|
412
|
+
const action = getActionForAltMode(this._action, ModifierKeyEmitter.getInstance().keyStatus);
|
|
413
|
+
if (action !== this._displayedAction) {
|
|
414
|
+
this._displayedAction = action;
|
|
415
|
+
this.updateLabel();
|
|
416
|
+
this.updateClass();
|
|
417
|
+
this.updateEnabled();
|
|
418
|
+
this.updateChecked();
|
|
419
|
+
}
|
|
420
|
+
}
|
|
400
421
|
blur() {
|
|
401
422
|
super.blur();
|
|
402
423
|
this.applyStyle();
|
|
@@ -418,6 +439,14 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
418
439
|
}
|
|
419
440
|
if (this.options.label) {
|
|
420
441
|
clearNode(this.label);
|
|
442
|
+
this.mnemonic = undefined;
|
|
443
|
+
this.item?.removeAttribute('aria-keyshortcuts');
|
|
444
|
+
this.label.removeAttribute('aria-label');
|
|
445
|
+
if (this._keybinding) {
|
|
446
|
+
const keybinding = this.options.getKeyBinding?.(this.action)?.getLabel() ?? this.options.keybinding;
|
|
447
|
+
this._keybinding.textContent = keybinding ?? '';
|
|
448
|
+
this._keybinding.hidden = !keybinding;
|
|
449
|
+
}
|
|
421
450
|
let label = stripIcons(this.action.label);
|
|
422
451
|
if (label) {
|
|
423
452
|
const cleanLabel = cleanMnemonic(label);
|
|
@@ -442,7 +471,8 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
442
471
|
else {
|
|
443
472
|
this.label.textContent = replaceDoubleEscapes(label).trim();
|
|
444
473
|
}
|
|
445
|
-
this.
|
|
474
|
+
this.mnemonic = (!!matches[1] ? matches[1] : matches[3]).toLocaleLowerCase();
|
|
475
|
+
this.item?.setAttribute('aria-keyshortcuts', this.mnemonic);
|
|
446
476
|
}
|
|
447
477
|
else {
|
|
448
478
|
this.label.textContent = label.replace(/&&/g, '&').trim();
|
|
@@ -454,8 +484,8 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
454
484
|
// menus should function like native menus and they do not have tooltips
|
|
455
485
|
}
|
|
456
486
|
updateClass() {
|
|
457
|
-
if (this.cssClass && this.
|
|
458
|
-
this.
|
|
487
|
+
if (this.cssClass && this.label) {
|
|
488
|
+
this.label.classList.remove(...this.cssClass.split(' '));
|
|
459
489
|
}
|
|
460
490
|
if (this.options.icon && this.label) {
|
|
461
491
|
this.cssClass = this.action.class || '';
|
|
@@ -595,10 +625,15 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
595
625
|
this.hideScheduler.schedule();
|
|
596
626
|
}
|
|
597
627
|
}));
|
|
598
|
-
this._register(this.parentData.parent.onScroll(
|
|
628
|
+
this._register(this.parentData.parent.onScroll(e => {
|
|
599
629
|
if (this.parentData.submenu === this.mysubmenu) {
|
|
600
|
-
|
|
601
|
-
|
|
630
|
+
if (e.scrollTopChanged || e.scrollLeftChanged) {
|
|
631
|
+
this.parentData.parent.focus(false);
|
|
632
|
+
this.cleanupExistingSubmenu(true);
|
|
633
|
+
}
|
|
634
|
+
else {
|
|
635
|
+
this._layoutSubmenu();
|
|
636
|
+
}
|
|
602
637
|
}
|
|
603
638
|
}));
|
|
604
639
|
}
|
|
@@ -653,33 +688,26 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
653
688
|
return;
|
|
654
689
|
}
|
|
655
690
|
if (!this.parentData.submenu) {
|
|
691
|
+
// Finish scale motion before computing viewport-relative submenu coordinates.
|
|
692
|
+
const parentContainer = this.parentData.parent.getContainer();
|
|
693
|
+
const animationRoot = parentContainer.parentElement ?? parentContainer;
|
|
694
|
+
for (const animation of animationRoot.getAnimations({ subtree: true })) {
|
|
695
|
+
if (animation instanceof getWindow(parentContainer).CSSAnimation && animation.animationName === FROSTED_GLASS_MENU_OPEN_ANIMATION) {
|
|
696
|
+
animation.finish();
|
|
697
|
+
}
|
|
698
|
+
}
|
|
656
699
|
this.updateAriaExpanded('true');
|
|
657
700
|
this.submenuContainer = append(this.element, $('div.monaco-submenu'));
|
|
658
701
|
this.submenuContainer.classList.add('menubar-menu-items-holder', 'context-view');
|
|
659
702
|
// Set the top value of the menu container before construction
|
|
660
703
|
// This allows the menu constructor to calculate the proper max height
|
|
661
|
-
const computedStyles = getWindow(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode);
|
|
662
|
-
const paddingTop = parseFloat(computedStyles.paddingTop || '0') || 0;
|
|
663
704
|
this.submenuContainer.style.position = 'fixed';
|
|
664
705
|
this.submenuContainer.style.top = '0';
|
|
665
706
|
this.submenuContainer.style.left = '0';
|
|
666
707
|
// Fix to #263546, for submenu of treeView view/item/context z-index issue - ensure submenu appears above other elements
|
|
667
708
|
this.submenuContainer.style.zIndex = '1';
|
|
668
709
|
this.parentData.submenu = new Menu(this.submenuContainer, this.submenuActions.length ? this.submenuActions : [new EmptySubmenuAction()], this.submenuOptions, this.menuStyle);
|
|
669
|
-
|
|
670
|
-
const entryBox = this.element.getBoundingClientRect();
|
|
671
|
-
const entryBoxUpdated = {
|
|
672
|
-
top: entryBox.top - paddingTop,
|
|
673
|
-
left: entryBox.left,
|
|
674
|
-
height: entryBox.height + 2 * paddingTop,
|
|
675
|
-
width: entryBox.width
|
|
676
|
-
};
|
|
677
|
-
const viewBox = this.submenuContainer.getBoundingClientRect();
|
|
678
|
-
const window = getWindow(this.element);
|
|
679
|
-
const { top, left } = this.calculateSubmenuMenuLayout(new Dimension(window.innerWidth, window.innerHeight), Dimension.lift(viewBox), entryBoxUpdated, this.expandDirection);
|
|
680
|
-
// subtract offsets caused by transform parent
|
|
681
|
-
this.submenuContainer.style.left = `${left - viewBox.left}px`;
|
|
682
|
-
this.submenuContainer.style.top = `${top - viewBox.top}px`;
|
|
710
|
+
this._layoutSubmenu();
|
|
683
711
|
this.submenuDisposables.add(addDisposableListener(this.submenuContainer, EventType.KEY_UP, e => {
|
|
684
712
|
const event = new StandardKeyboardEvent(e);
|
|
685
713
|
if (event.equals(15 /* KeyCode.LeftArrow */)) {
|
|
@@ -705,6 +733,28 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
705
733
|
this.parentData.submenu.focus(false);
|
|
706
734
|
}
|
|
707
735
|
}
|
|
736
|
+
_layoutSubmenu() {
|
|
737
|
+
if (!this.element || !this.submenuContainer) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
this.submenuContainer.style.top = '0';
|
|
741
|
+
this.submenuContainer.style.left = '0';
|
|
742
|
+
const window = getWindow(this.element);
|
|
743
|
+
const computedStyles = window.getComputedStyle(this.parentData.parent.domNode);
|
|
744
|
+
const paddingTop = parseFloat(computedStyles.paddingTop || '0') || 0;
|
|
745
|
+
const entryBox = this.element.getBoundingClientRect();
|
|
746
|
+
const entryBoxUpdated = {
|
|
747
|
+
top: entryBox.top - paddingTop,
|
|
748
|
+
left: entryBox.left,
|
|
749
|
+
height: entryBox.height + 2 * paddingTop,
|
|
750
|
+
width: entryBox.width
|
|
751
|
+
};
|
|
752
|
+
const viewBox = this.submenuContainer.getBoundingClientRect();
|
|
753
|
+
const layoutResult = this.calculateSubmenuMenuLayout(new Dimension(window.innerWidth, window.innerHeight), Dimension.lift(viewBox), entryBoxUpdated, this.expandDirection);
|
|
754
|
+
const { top, left } = avoidWindowControlsOverlay(getVisibleWCOTitlebarAreaRect(window), { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight }, { width: viewBox.width, height: viewBox.height }, layoutResult);
|
|
755
|
+
this.submenuContainer.style.left = `${left - viewBox.left}px`;
|
|
756
|
+
this.submenuContainer.style.top = `${top - viewBox.top}px`;
|
|
757
|
+
}
|
|
708
758
|
updateAriaExpanded(value) {
|
|
709
759
|
if (this.item) {
|
|
710
760
|
this.item?.setAttribute('aria-expanded', value);
|
|
@@ -758,6 +808,10 @@ export function formatRule(c) {
|
|
|
758
808
|
export function getMenuWidgetCSS(style, isForShadowDom) {
|
|
759
809
|
const borderColor = style.borderColor ?? 'var(--vscode-menu-border)';
|
|
760
810
|
const menuShadow = `var(--vscode-shadow-lg${style.shadowColor ? `, 0 0 12px ${style.shadowColor}` : ''})`;
|
|
811
|
+
const frostedGlassWorkbenchSelector = '.monaco-workbench.modern-ui-frosted-glass:not(.hc-black):not(.hc-light)';
|
|
812
|
+
const frostedGlassMenuSelector = `${isForShadowDom ? `:host-context(${frostedGlassWorkbenchSelector})` : frostedGlassWorkbenchSelector} .monaco-menu-container`;
|
|
813
|
+
const frostedGlassMotionWorkbenchSelector = `${frostedGlassWorkbenchSelector}.monaco-enable-motion`;
|
|
814
|
+
const frostedGlassMotionMenuSelector = `${isForShadowDom ? `:host-context(${frostedGlassMotionWorkbenchSelector})` : frostedGlassMotionWorkbenchSelector} .monaco-menu-container:not(.monaco-submenu)`;
|
|
761
815
|
let result = /* css */ `
|
|
762
816
|
.monaco-menu {
|
|
763
817
|
font-size: 13px;
|
|
@@ -974,19 +1028,102 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
974
1028
|
justify-content: center;
|
|
975
1029
|
}
|
|
976
1030
|
|
|
1031
|
+
.monaco-menu-container {
|
|
1032
|
+
border-radius: var(--vscode-cornerRadius-large);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
977
1035
|
/* Context Menu */
|
|
978
1036
|
|
|
979
1037
|
.context-view.monaco-menu-container {
|
|
980
1038
|
${CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE}: ${menuShadow};
|
|
981
1039
|
outline: 0;
|
|
982
1040
|
border: none;
|
|
983
|
-
animation: fadeIn 0.083s linear;
|
|
984
1041
|
-webkit-app-region: no-drag;
|
|
985
1042
|
box-shadow: var(${CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE});
|
|
986
|
-
border-radius: var(--vscode-cornerRadius-large);
|
|
987
1043
|
overflow: hidden;
|
|
988
1044
|
}
|
|
989
1045
|
|
|
1046
|
+
.context-view.monaco-menu-container:not(.monaco-submenu) {
|
|
1047
|
+
animation: fadeIn 0.083s linear;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
@supports (backdrop-filter: blur(12px)) and (background-color: color-mix(in srgb, black 92%, transparent)) {
|
|
1051
|
+
@media (prefers-reduced-transparency: no-preference) and (forced-colors: none) {
|
|
1052
|
+
${frostedGlassMenuSelector} {
|
|
1053
|
+
--vscode-menu-background: transparent;
|
|
1054
|
+
isolation: isolate;
|
|
1055
|
+
animation: none;
|
|
1056
|
+
box-shadow: none;
|
|
1057
|
+
overflow: visible;
|
|
1058
|
+
transform-origin: top left;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
${frostedGlassMenuSelector}.right {
|
|
1062
|
+
transform-origin: top right;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
${frostedGlassMenuSelector}.top {
|
|
1066
|
+
transform-origin: bottom left;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
${frostedGlassMenuSelector}.top.right {
|
|
1070
|
+
transform-origin: bottom right;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
${frostedGlassMenuSelector} > .monaco-scrollable-element {
|
|
1074
|
+
will-change: auto;
|
|
1075
|
+
box-shadow: var(${CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE});
|
|
1076
|
+
transform-origin: inherit;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
${frostedGlassMotionMenuSelector}:not(.${CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS}) > .monaco-scrollable-element,
|
|
1080
|
+
${frostedGlassMotionMenuSelector}:not(.${CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS})::before {
|
|
1081
|
+
animation: ${FROSTED_GLASS_MENU_OPEN_ANIMATION} ${CONTEXT_VIEW_MENU_MOTION_OPEN_DURATION_MS}ms ${CONTEXT_VIEW_MENU_MOTION_EASING} backwards;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
${frostedGlassMotionMenuSelector}.${CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS}::before {
|
|
1085
|
+
animation: frosted-glass-menu-motion-close var(${CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE}) ${CONTEXT_VIEW_MENU_MOTION_EASING} both;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
${frostedGlassMotionMenuSelector}.${CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS} > .monaco-scrollable-element {
|
|
1089
|
+
animation: context-view-menu-motion-close var(${CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE}) ${CONTEXT_VIEW_MENU_MOTION_EASING} both;
|
|
1090
|
+
pointer-events: none;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
@keyframes ${FROSTED_GLASS_MENU_OPEN_ANIMATION} {
|
|
1094
|
+
from {
|
|
1095
|
+
transform: scale(0.97);
|
|
1096
|
+
}
|
|
1097
|
+
to {
|
|
1098
|
+
transform: scale(1);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
@keyframes frosted-glass-menu-motion-close {
|
|
1103
|
+
from {
|
|
1104
|
+
opacity: var(${CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE}, 1);
|
|
1105
|
+
transform: var(${CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE}, scale(1));
|
|
1106
|
+
}
|
|
1107
|
+
to {
|
|
1108
|
+
opacity: 0;
|
|
1109
|
+
transform: scale(0.99);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
${frostedGlassMenuSelector}::before {
|
|
1114
|
+
content: '';
|
|
1115
|
+
position: absolute;
|
|
1116
|
+
inset: 0;
|
|
1117
|
+
z-index: -1;
|
|
1118
|
+
border-radius: inherit;
|
|
1119
|
+
pointer-events: none;
|
|
1120
|
+
transform-origin: inherit;
|
|
1121
|
+
background-color: color-mix(in srgb, var(--modern-ui-solid-menu-background) var(${CONTEXT_VIEW_MENU_MOTION_BACKDROP_OPACITY_VARIABLE}, 0%), var(--modern-ui-glass-menu-background));
|
|
1122
|
+
backdrop-filter: blur(12px);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
|
|
990
1127
|
.context-view.monaco-menu-container :focus,
|
|
991
1128
|
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
|
|
992
1129
|
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
|