@codingame/monaco-vscode-api 4.5.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/extensions.d.ts +2 -3
- package/lifecycle.js +6 -0
- package/localExtensionHost.d.ts +4 -1
- package/missing-services.js +41 -25
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +1 -1
- package/service-override/tools/views.js +2 -3
- package/service-override/views.d.ts +0 -1
- package/services.d.ts +3 -3
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +3 -3
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -2
- package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +30 -14
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +2 -2
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -4
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +6 -4
- package/vscode/src/vs/base/common/arraysFind.js +7 -7
- package/vscode/src/vs/base/common/async.js +8 -3
- package/vscode/src/vs/base/common/cache.js +29 -10
- package/vscode/src/vs/base/common/cancellation.js +6 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/controlFlow.js +48 -0
- package/vscode/src/vs/base/common/equals.js +44 -0
- package/vscode/src/vs/base/common/event.d.ts +11 -1
- package/vscode/src/vs/base/common/event.js +26 -1
- package/vscode/src/vs/base/common/jsonEdit.js +1 -1
- package/vscode/src/vs/base/common/lifecycle.js +1 -1
- package/vscode/src/vs/base/common/map.js +53 -4
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/objects.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
- package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
- package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
- package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
- package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +1 -1
- package/vscode/src/vs/base/common/types.d.ts +5 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -2
- package/vscode/src/vs/editor/browser/observableUtilities.js +58 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +121 -2
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +8 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +27 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +4 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +28 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +13 -1
- package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
- package/vscode/src/vs/editor/common/languages.d.ts +50 -10
- package/vscode/src/vs/editor/common/languages.js +11 -1
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +22 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +20 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +11 -6
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +74 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
- package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
- package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +250 -41
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +44 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +26 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +24 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +18 -6
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +165 -40
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +15 -8
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +9 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +23 -18
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +33 -11
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +133 -132
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +10 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +53 -36
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +14 -4
- package/vscode/src/vs/platform/actions/common/menuService.js +30 -8
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +43 -32
- package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +4 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +2 -31
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +42 -8
- package/vscode/src/vs/platform/log/common/log.js +3 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +7 -3
- package/vscode/src/vs/platform/opener/browser/link.js +6 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +15 -7
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +104 -96
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +87 -17
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +39 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +52 -36
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +10 -28
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +132 -136
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +72 -18
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +3 -5
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +86 -76
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
- package/vscode/src/vs/workbench/browser/labels.js +4 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +14 -33
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +33 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +182 -63
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +61 -34
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +16 -10
- package/vscode/src/vs/workbench/common/theme.js +144 -98
- package/vscode/src/vs/workbench/common/views.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +190 -138
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +59 -7
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +160 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +66 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +21 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +30 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +201 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +13 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +366 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +35 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +95 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +94 -79
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +30 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +30 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +5 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +26 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +107 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +39 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +53 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +967 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +79 -45
- package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js} +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/{files.configuration.contribution.js → files.contribution._configuration.js} +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +19 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +15 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +29 -112
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +99 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +345 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +62 -69
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +63 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +7 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +28 -23
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +5 -9
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +7 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +36 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +22 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +34 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +52 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +25 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +6 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +24 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +38 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +7 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +10 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +15 -3
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +30 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -18
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +50 -9
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +7 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +2 -2
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
- package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
- package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -214
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -621
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -141
- package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -212
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -110
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
- /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
|
@@ -427,12 +427,13 @@ class ToggleStatusbarVisibilityAction extends Action2 {
|
|
|
427
427
|
}
|
|
428
428
|
registerAction2(ToggleStatusbarVisibilityAction);
|
|
429
429
|
class AbstractSetShowTabsAction extends Action2 {
|
|
430
|
-
constructor(settingName, value, title, id, precondition) {
|
|
430
|
+
constructor(settingName, value, title, id, precondition, description) {
|
|
431
431
|
super({
|
|
432
432
|
id,
|
|
433
433
|
title,
|
|
434
434
|
category: Categories.View,
|
|
435
435
|
precondition,
|
|
436
|
+
metadata: description ? { description } : undefined,
|
|
436
437
|
f1: true
|
|
437
438
|
});
|
|
438
439
|
this.settingName = settingName;
|
|
@@ -451,7 +452,7 @@ class HideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
451
452
|
"none"
|
|
452
453
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
453
454
|
const title = ( localize2WithPath(_moduleId, 41, 'Hide Editor Tabs'));
|
|
454
|
-
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition);
|
|
455
|
+
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 42, "Hide Tab Bar")));
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
458
|
class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -461,8 +462,8 @@ class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
461
462
|
`config.${"zenMode.showTabs" }`,
|
|
462
463
|
"none"
|
|
463
464
|
))).negate()), InEditorZenModeContext)));
|
|
464
|
-
const title = ( localize2WithPath(_moduleId,
|
|
465
|
-
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition);
|
|
465
|
+
const title = ( localize2WithPath(_moduleId, 43, 'Hide Editor Tabs in Zen Mode'));
|
|
466
|
+
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 44, "Hide Tab Bar in Zen Mode")));
|
|
466
467
|
}
|
|
467
468
|
}
|
|
468
469
|
class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -472,8 +473,8 @@ class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
472
473
|
`config.${"workbench.editor.showTabs" }`,
|
|
473
474
|
"multiple"
|
|
474
475
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
475
|
-
const title = ( localize2WithPath(_moduleId,
|
|
476
|
-
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition);
|
|
476
|
+
const title = ( localize2WithPath(_moduleId, 45, 'Show Multiple Editor Tabs'));
|
|
477
|
+
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 46, "Show Tab Bar with multiple tabs")));
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -483,8 +484,8 @@ class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
483
484
|
`config.${"zenMode.showTabs" }`,
|
|
484
485
|
"multiple"
|
|
485
486
|
))).negate()), InEditorZenModeContext)));
|
|
486
|
-
const title = ( localize2WithPath(_moduleId,
|
|
487
|
-
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition);
|
|
487
|
+
const title = ( localize2WithPath(_moduleId, 47, 'Show Multiple Editor Tabs in Zen Mode'));
|
|
488
|
+
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 48, "Show Tab Bar in Zen Mode")));
|
|
488
489
|
}
|
|
489
490
|
}
|
|
490
491
|
class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
@@ -494,8 +495,8 @@ class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
|
494
495
|
`config.${"workbench.editor.showTabs" }`,
|
|
495
496
|
"single"
|
|
496
497
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
497
|
-
const title = ( localize2WithPath(_moduleId,
|
|
498
|
-
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition);
|
|
498
|
+
const title = ( localize2WithPath(_moduleId, 49, 'Show Single Editor Tab'));
|
|
499
|
+
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition, ( localize2WithPath(_moduleId, 50, "Show Tab Bar with one Tab")));
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
@@ -505,8 +506,8 @@ class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
|
505
506
|
`config.${"zenMode.showTabs" }`,
|
|
506
507
|
"single"
|
|
507
508
|
))).negate()), InEditorZenModeContext)));
|
|
508
|
-
const title = ( localize2WithPath(_moduleId,
|
|
509
|
-
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition);
|
|
509
|
+
const title = ( localize2WithPath(_moduleId, 51, 'Show Single Editor Tab in Zen Mode'));
|
|
510
|
+
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition, ( localize2WithPath(_moduleId, 52, "Show Tab Bar in Zen Mode with one Tab")));
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
513
|
registerAction2(HideEditorTabsAction);
|
|
@@ -517,14 +518,14 @@ registerAction2(ShowSingleEditorTabAction);
|
|
|
517
518
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
518
519
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
519
520
|
submenu: MenuId.EditorTabsBarShowTabsSubmenu,
|
|
520
|
-
title: ( localizeWithPath(_moduleId,
|
|
521
|
+
title: ( localizeWithPath(_moduleId, 53, "Tab Bar")),
|
|
521
522
|
group: '3_workbench_layout_move',
|
|
522
523
|
order: 10,
|
|
523
524
|
when: ( (InEditorZenModeContext.negate()))
|
|
524
525
|
});
|
|
525
526
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
526
527
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
527
|
-
title: ( localizeWithPath(_moduleId,
|
|
528
|
+
title: ( localizeWithPath(_moduleId, 53, "Tab Bar")),
|
|
528
529
|
group: '3_workbench_layout_move',
|
|
529
530
|
order: 10,
|
|
530
531
|
when: InEditorZenModeContext
|
|
@@ -534,12 +535,13 @@ class EditorActionsTitleBarAction extends Action2 {
|
|
|
534
535
|
constructor() {
|
|
535
536
|
super({
|
|
536
537
|
id: EditorActionsTitleBarAction.ID,
|
|
537
|
-
title: ( localize2WithPath(_moduleId,
|
|
538
|
+
title: ( localize2WithPath(_moduleId, 54, "Move Editor Actions to Title Bar")),
|
|
538
539
|
category: Categories.View,
|
|
539
540
|
precondition: ( (( (ContextKeyExpr.equals(
|
|
540
541
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
541
542
|
"titleBar"
|
|
542
543
|
))).negate())),
|
|
544
|
+
metadata: { description: ( localize2WithPath(_moduleId, 55, "Move Editor Actions from the tab bar to the title bar")) },
|
|
543
545
|
f1: true
|
|
544
546
|
});
|
|
545
547
|
}
|
|
@@ -554,7 +556,7 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
554
556
|
constructor() {
|
|
555
557
|
super({
|
|
556
558
|
id: EditorActionsDefaultAction.ID,
|
|
557
|
-
title: ( localize2WithPath(_moduleId,
|
|
559
|
+
title: ( localize2WithPath(_moduleId, 56, "Move Editor Actions to Tab Bar")),
|
|
558
560
|
category: Categories.View,
|
|
559
561
|
precondition: ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
560
562
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
@@ -563,6 +565,7 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
563
565
|
`config.${"workbench.editor.showTabs" }`,
|
|
564
566
|
"none"
|
|
565
567
|
))).negate())))),
|
|
568
|
+
metadata: { description: ( localize2WithPath(_moduleId, 57, "Move Editor Actions from the title bar to the tab bar")) },
|
|
566
569
|
f1: true
|
|
567
570
|
});
|
|
568
571
|
}
|
|
@@ -577,12 +580,13 @@ class HideEditorActionsAction extends Action2 {
|
|
|
577
580
|
constructor() {
|
|
578
581
|
super({
|
|
579
582
|
id: HideEditorActionsAction.ID,
|
|
580
|
-
title: ( localize2WithPath(_moduleId,
|
|
583
|
+
title: ( localize2WithPath(_moduleId, 58, "Hide Editor Actions")),
|
|
581
584
|
category: Categories.View,
|
|
582
585
|
precondition: ( (( (ContextKeyExpr.equals(
|
|
583
586
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
584
587
|
"hidden"
|
|
585
588
|
))).negate())),
|
|
589
|
+
metadata: { description: ( localize2WithPath(_moduleId, 59, "Hide Editor Actions in the tab and title bar")) },
|
|
586
590
|
f1: true
|
|
587
591
|
});
|
|
588
592
|
}
|
|
@@ -597,12 +601,13 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
597
601
|
constructor() {
|
|
598
602
|
super({
|
|
599
603
|
id: ShowEditorActionsAction.ID,
|
|
600
|
-
title: ( localize2WithPath(_moduleId,
|
|
604
|
+
title: ( localize2WithPath(_moduleId, 60, "Show Editor Actions")),
|
|
601
605
|
category: Categories.View,
|
|
602
606
|
precondition: ( (ContextKeyExpr.equals(
|
|
603
607
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
604
608
|
"hidden"
|
|
605
609
|
))),
|
|
610
|
+
metadata: { description: ( localize2WithPath(_moduleId, 61, "Make Editor Actions visible.")) },
|
|
606
611
|
f1: true
|
|
607
612
|
});
|
|
608
613
|
}
|
|
@@ -614,7 +619,7 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
614
619
|
registerAction2(ShowEditorActionsAction);
|
|
615
620
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
616
621
|
submenu: MenuId.EditorActionsPositionSubmenu,
|
|
617
|
-
title: ( localizeWithPath(_moduleId,
|
|
622
|
+
title: ( localizeWithPath(_moduleId, 62, "Editor Actions Position")),
|
|
618
623
|
group: '3_workbench_layout_move',
|
|
619
624
|
order: 11
|
|
620
625
|
});
|
|
@@ -622,12 +627,17 @@ registerAction2(class extends Action2 {
|
|
|
622
627
|
constructor() {
|
|
623
628
|
super({
|
|
624
629
|
id: 'workbench.action.toggleSeparatePinnedEditorTabs',
|
|
625
|
-
title: ( localize2WithPath(_moduleId,
|
|
630
|
+
title: ( localize2WithPath(_moduleId, 63, "Separate Pinned Editor Tabs")),
|
|
626
631
|
category: Categories.View,
|
|
627
632
|
precondition: ( (ContextKeyExpr.equals(
|
|
628
633
|
`config.${"workbench.editor.showTabs" }`,
|
|
629
634
|
"multiple"
|
|
630
635
|
))),
|
|
636
|
+
metadata: { description: ( localize2WithPath(
|
|
637
|
+
_moduleId,
|
|
638
|
+
64,
|
|
639
|
+
"Toggle whether pinned editor tabs are shown on a separate row above unpinned tabs."
|
|
640
|
+
)) },
|
|
631
641
|
f1: true
|
|
632
642
|
});
|
|
633
643
|
}
|
|
@@ -643,8 +653,8 @@ registerAction2(class extends Action2 {
|
|
|
643
653
|
super({
|
|
644
654
|
id: 'workbench.action.toggleZenMode',
|
|
645
655
|
title: {
|
|
646
|
-
...( localize2WithPath(_moduleId,
|
|
647
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
656
|
+
...( localize2WithPath(_moduleId, 65, "Toggle Zen Mode")),
|
|
657
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 66, "Zen Mode")),
|
|
648
658
|
},
|
|
649
659
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
650
660
|
category: Categories.View,
|
|
@@ -684,8 +694,8 @@ if (isWindows || isLinux || isWeb) {
|
|
|
684
694
|
super({
|
|
685
695
|
id: 'workbench.action.toggleMenuBar',
|
|
686
696
|
title: {
|
|
687
|
-
...( localize2WithPath(_moduleId,
|
|
688
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
697
|
+
...( localize2WithPath(_moduleId, 67, "Toggle Menu Bar")),
|
|
698
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 68, "Menu &&Bar")),
|
|
689
699
|
},
|
|
690
700
|
category: Categories.View,
|
|
691
701
|
f1: true,
|
|
@@ -710,7 +720,7 @@ if (isWindows || isLinux || isWeb) {
|
|
|
710
720
|
MenuRegistry.appendMenuItem(menuId, {
|
|
711
721
|
command: {
|
|
712
722
|
id: 'workbench.action.toggleMenuBar',
|
|
713
|
-
title: ( localizeWithPath(_moduleId,
|
|
723
|
+
title: ( localizeWithPath(_moduleId, 69, "Menu Bar")),
|
|
714
724
|
toggled: ( (ContextKeyExpr.and(
|
|
715
725
|
(IsMacNativeContext.toNegated()),
|
|
716
726
|
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
@@ -732,7 +742,7 @@ registerAction2(class extends Action2 {
|
|
|
732
742
|
constructor() {
|
|
733
743
|
super({
|
|
734
744
|
id: 'workbench.action.resetViewLocations',
|
|
735
|
-
title: ( localize2WithPath(_moduleId,
|
|
745
|
+
title: ( localize2WithPath(_moduleId, 70, "Reset View Locations")),
|
|
736
746
|
category: Categories.View,
|
|
737
747
|
f1: true
|
|
738
748
|
});
|
|
@@ -745,7 +755,7 @@ registerAction2(class extends Action2 {
|
|
|
745
755
|
constructor() {
|
|
746
756
|
super({
|
|
747
757
|
id: 'workbench.action.moveView',
|
|
748
|
-
title: ( localize2WithPath(_moduleId,
|
|
758
|
+
title: ( localize2WithPath(_moduleId, 71, "Move View")),
|
|
749
759
|
category: Categories.View,
|
|
750
760
|
f1: true
|
|
751
761
|
});
|
|
@@ -783,7 +793,7 @@ registerAction2(class extends Action2 {
|
|
|
783
793
|
if (!hasAddedView) {
|
|
784
794
|
results.push({
|
|
785
795
|
type: 'separator',
|
|
786
|
-
label: ( localizeWithPath(_moduleId,
|
|
796
|
+
label: ( localizeWithPath(_moduleId, 72, "Side Bar / {0}", containerModel.title))
|
|
787
797
|
});
|
|
788
798
|
hasAddedView = true;
|
|
789
799
|
}
|
|
@@ -804,7 +814,7 @@ registerAction2(class extends Action2 {
|
|
|
804
814
|
if (!hasAddedView) {
|
|
805
815
|
results.push({
|
|
806
816
|
type: 'separator',
|
|
807
|
-
label: ( localizeWithPath(_moduleId,
|
|
817
|
+
label: ( localizeWithPath(_moduleId, 73, "Panel / {0}", containerModel.title))
|
|
808
818
|
});
|
|
809
819
|
hasAddedView = true;
|
|
810
820
|
}
|
|
@@ -825,7 +835,7 @@ registerAction2(class extends Action2 {
|
|
|
825
835
|
if (!hasAddedView) {
|
|
826
836
|
results.push({
|
|
827
837
|
type: 'separator',
|
|
828
|
-
label: ( localizeWithPath(_moduleId,
|
|
838
|
+
label: ( localizeWithPath(_moduleId, 74, "Secondary Side Bar / {0}", containerModel.title))
|
|
829
839
|
});
|
|
830
840
|
hasAddedView = true;
|
|
831
841
|
}
|
|
@@ -840,7 +850,7 @@ registerAction2(class extends Action2 {
|
|
|
840
850
|
}
|
|
841
851
|
async getView(quickInputService, viewDescriptorService, paneCompositePartService, viewId) {
|
|
842
852
|
const quickPick = quickInputService.createQuickPick();
|
|
843
|
-
quickPick.placeholder = ( localizeWithPath(_moduleId,
|
|
853
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 75, "Select a View to Move"));
|
|
844
854
|
quickPick.items = this.getViewItems(viewDescriptorService, paneCompositePartService);
|
|
845
855
|
quickPick.selectedItems = quickPick.items.filter(item => item.id === viewId);
|
|
846
856
|
return (
|
|
@@ -865,7 +875,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
865
875
|
constructor() {
|
|
866
876
|
super({
|
|
867
877
|
id: 'workbench.action.moveFocusedView',
|
|
868
|
-
title: ( localize2WithPath(_moduleId,
|
|
878
|
+
title: ( localize2WithPath(_moduleId, 76, "Move Focused View")),
|
|
869
879
|
category: Categories.View,
|
|
870
880
|
precondition: ( (FocusedViewContext.notEqualsTo(''))),
|
|
871
881
|
f1: true
|
|
@@ -880,17 +890,17 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
880
890
|
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
881
891
|
const focusedViewId = viewId || FocusedViewContext.getValue(contextKeyService);
|
|
882
892
|
if (focusedViewId === undefined || focusedViewId.trim() === '') {
|
|
883
|
-
dialogService.error(( localizeWithPath(_moduleId,
|
|
893
|
+
dialogService.error(( localizeWithPath(_moduleId, 77, "There is no view currently focused.")));
|
|
884
894
|
return;
|
|
885
895
|
}
|
|
886
896
|
const viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
887
897
|
if (!viewDescriptor || !viewDescriptor.canMoveView) {
|
|
888
|
-
dialogService.error(( localizeWithPath(_moduleId,
|
|
898
|
+
dialogService.error(( localizeWithPath(_moduleId, 78, "The currently focused view is not movable.")));
|
|
889
899
|
return;
|
|
890
900
|
}
|
|
891
901
|
const quickPick = quickInputService.createQuickPick();
|
|
892
|
-
quickPick.placeholder = ( localizeWithPath(_moduleId,
|
|
893
|
-
quickPick.title = ( localizeWithPath(_moduleId,
|
|
902
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 79, "Select a Destination for the View"));
|
|
903
|
+
quickPick.title = ( localizeWithPath(_moduleId, 80, "View: Move {0}", viewDescriptor.name.value));
|
|
894
904
|
const items = [];
|
|
895
905
|
const currentContainer = viewDescriptorService.getViewContainerByViewId(focusedViewId);
|
|
896
906
|
const currentLocation = viewDescriptorService.getViewLocationById(focusedViewId);
|
|
@@ -898,24 +908,24 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
898
908
|
if (!((isViewSolo && currentLocation === 1) )) {
|
|
899
909
|
items.push({
|
|
900
910
|
id: '_.panel.newcontainer',
|
|
901
|
-
label: ( localizeWithPath(_moduleId,
|
|
911
|
+
label: ( localizeWithPath(_moduleId, 81, "New Panel Entry")),
|
|
902
912
|
});
|
|
903
913
|
}
|
|
904
914
|
if (!((isViewSolo && currentLocation === 0) )) {
|
|
905
915
|
items.push({
|
|
906
916
|
id: '_.sidebar.newcontainer',
|
|
907
|
-
label: ( localizeWithPath(_moduleId,
|
|
917
|
+
label: ( localizeWithPath(_moduleId, 82, "New Side Bar Entry"))
|
|
908
918
|
});
|
|
909
919
|
}
|
|
910
920
|
if (!((isViewSolo && currentLocation === 2) )) {
|
|
911
921
|
items.push({
|
|
912
922
|
id: '_.auxiliarybar.newcontainer',
|
|
913
|
-
label: ( localizeWithPath(_moduleId,
|
|
923
|
+
label: ( localizeWithPath(_moduleId, 83, "New Secondary Side Bar Entry"))
|
|
914
924
|
});
|
|
915
925
|
}
|
|
916
926
|
items.push({
|
|
917
927
|
type: 'separator',
|
|
918
|
-
label: ( localizeWithPath(_moduleId,
|
|
928
|
+
label: ( localizeWithPath(_moduleId, 84, "Side Bar"))
|
|
919
929
|
});
|
|
920
930
|
const pinnedViewlets = paneCompositePartService.getVisiblePaneCompositeIds(0 );
|
|
921
931
|
items.push(...( (pinnedViewlets
|
|
@@ -933,7 +943,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
933
943
|
}))));
|
|
934
944
|
items.push({
|
|
935
945
|
type: 'separator',
|
|
936
|
-
label: ( localizeWithPath(_moduleId,
|
|
946
|
+
label: ( localizeWithPath(_moduleId, 85, "Panel"))
|
|
937
947
|
});
|
|
938
948
|
const pinnedPanels = paneCompositePartService.getPinnedPaneCompositeIds(1 );
|
|
939
949
|
items.push(...( (pinnedPanels
|
|
@@ -951,7 +961,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
951
961
|
}))));
|
|
952
962
|
items.push({
|
|
953
963
|
type: 'separator',
|
|
954
|
-
label: ( localizeWithPath(_moduleId,
|
|
964
|
+
label: ( localizeWithPath(_moduleId, 86, "Secondary Side Bar"))
|
|
955
965
|
});
|
|
956
966
|
const pinnedAuxPanels = paneCompositePartService.getPinnedPaneCompositeIds(2 );
|
|
957
967
|
items.push(...( (pinnedAuxPanels
|
|
@@ -996,7 +1006,7 @@ registerAction2(class extends Action2 {
|
|
|
996
1006
|
constructor() {
|
|
997
1007
|
super({
|
|
998
1008
|
id: 'workbench.action.resetFocusedViewLocation',
|
|
999
|
-
title: ( localize2WithPath(_moduleId,
|
|
1009
|
+
title: ( localize2WithPath(_moduleId, 87, "Reset Focused View Location")),
|
|
1000
1010
|
category: Categories.View,
|
|
1001
1011
|
f1: true,
|
|
1002
1012
|
precondition: ( (FocusedViewContext.notEqualsTo('')))
|
|
@@ -1013,7 +1023,7 @@ registerAction2(class extends Action2 {
|
|
|
1013
1023
|
viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1014
1024
|
}
|
|
1015
1025
|
if (!viewDescriptor) {
|
|
1016
|
-
dialogService.error(( localizeWithPath(_moduleId,
|
|
1026
|
+
dialogService.error(( localizeWithPath(_moduleId, 88, "There is no view currently focused.")));
|
|
1017
1027
|
return;
|
|
1018
1028
|
}
|
|
1019
1029
|
const defaultContainer = viewDescriptorService.getDefaultContainerById(viewDescriptor.id);
|
|
@@ -1058,7 +1068,7 @@ class IncreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1058
1068
|
constructor() {
|
|
1059
1069
|
super({
|
|
1060
1070
|
id: 'workbench.action.increaseViewSize',
|
|
1061
|
-
title: ( localize2WithPath(_moduleId,
|
|
1071
|
+
title: ( localize2WithPath(_moduleId, 89, 'Increase Current View Size')),
|
|
1062
1072
|
f1: true,
|
|
1063
1073
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1064
1074
|
});
|
|
@@ -1071,7 +1081,7 @@ class IncreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1071
1081
|
constructor() {
|
|
1072
1082
|
super({
|
|
1073
1083
|
id: 'workbench.action.increaseViewWidth',
|
|
1074
|
-
title: ( localize2WithPath(_moduleId,
|
|
1084
|
+
title: ( localize2WithPath(_moduleId, 90, 'Increase Editor Width')),
|
|
1075
1085
|
f1: true,
|
|
1076
1086
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1077
1087
|
});
|
|
@@ -1084,7 +1094,7 @@ class IncreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1084
1094
|
constructor() {
|
|
1085
1095
|
super({
|
|
1086
1096
|
id: 'workbench.action.increaseViewHeight',
|
|
1087
|
-
title: ( localize2WithPath(_moduleId,
|
|
1097
|
+
title: ( localize2WithPath(_moduleId, 91, 'Increase Editor Height')),
|
|
1088
1098
|
f1: true,
|
|
1089
1099
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1090
1100
|
});
|
|
@@ -1097,7 +1107,7 @@ class DecreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1097
1107
|
constructor() {
|
|
1098
1108
|
super({
|
|
1099
1109
|
id: 'workbench.action.decreaseViewSize',
|
|
1100
|
-
title: ( localize2WithPath(_moduleId,
|
|
1110
|
+
title: ( localize2WithPath(_moduleId, 92, 'Decrease Current View Size')),
|
|
1101
1111
|
f1: true,
|
|
1102
1112
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1103
1113
|
});
|
|
@@ -1110,7 +1120,7 @@ class DecreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1110
1120
|
constructor() {
|
|
1111
1121
|
super({
|
|
1112
1122
|
id: 'workbench.action.decreaseViewWidth',
|
|
1113
|
-
title: ( localize2WithPath(_moduleId,
|
|
1123
|
+
title: ( localize2WithPath(_moduleId, 93, 'Decrease Editor Width')),
|
|
1114
1124
|
f1: true,
|
|
1115
1125
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1116
1126
|
});
|
|
@@ -1123,7 +1133,7 @@ class DecreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1123
1133
|
constructor() {
|
|
1124
1134
|
super({
|
|
1125
1135
|
id: 'workbench.action.decreaseViewHeight',
|
|
1126
|
-
title: ( localize2WithPath(_moduleId,
|
|
1136
|
+
title: ( localize2WithPath(_moduleId, 94, 'Decrease Editor Height')),
|
|
1127
1137
|
f1: true,
|
|
1128
1138
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1129
1139
|
});
|
|
@@ -1149,8 +1159,8 @@ const CreateToggleLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1149
1159
|
visualIcon,
|
|
1150
1160
|
activeIcon: Codicon.eye,
|
|
1151
1161
|
inactiveIcon: Codicon.eyeClosed,
|
|
1152
|
-
activeAriaLabel: ( localizeWithPath(_moduleId,
|
|
1153
|
-
inactiveAriaLabel: ( localizeWithPath(_moduleId,
|
|
1162
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 95, "Select to Hide")),
|
|
1163
|
+
inactiveAriaLabel: ( localizeWithPath(_moduleId, 96, "Select to Show")),
|
|
1154
1164
|
useButtons: true,
|
|
1155
1165
|
};
|
|
1156
1166
|
};
|
|
@@ -1161,7 +1171,7 @@ const CreateOptionLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1161
1171
|
label,
|
|
1162
1172
|
visualIcon,
|
|
1163
1173
|
activeIcon: Codicon.check,
|
|
1164
|
-
activeAriaLabel: ( localizeWithPath(_moduleId,
|
|
1174
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 97, "Active")),
|
|
1165
1175
|
useButtons: false
|
|
1166
1176
|
};
|
|
1167
1177
|
};
|
|
@@ -1173,29 +1183,29 @@ const MenuBarToggledContext = ( (ContextKeyExpr.and(
|
|
|
1173
1183
|
)));
|
|
1174
1184
|
const ToggleVisibilityActions = [];
|
|
1175
1185
|
if (!isMacintosh || !isNative) {
|
|
1176
|
-
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(_moduleId,
|
|
1186
|
+
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(_moduleId, 98, "Menu Bar")), menubarIcon));
|
|
1177
1187
|
}
|
|
1178
1188
|
ToggleVisibilityActions.push(...[
|
|
1179
|
-
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localizeWithPath(_moduleId,
|
|
1180
|
-
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(_moduleId,
|
|
1181
|
-
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(_moduleId,
|
|
1182
|
-
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath(_moduleId,
|
|
1183
|
-
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localizeWithPath(_moduleId,
|
|
1189
|
+
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localizeWithPath(_moduleId, 99, "Activity Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
|
|
1190
|
+
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(_moduleId, 100, "Primary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1191
|
+
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(_moduleId, 86, "Secondary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1192
|
+
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath(_moduleId, 85, "Panel")), panelIcon),
|
|
1193
|
+
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localizeWithPath(_moduleId, 101, "Status Bar")), statusBarIcon),
|
|
1184
1194
|
]);
|
|
1185
1195
|
const MoveSideBarActions = [
|
|
1186
|
-
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localizeWithPath(_moduleId,
|
|
1187
|
-
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localizeWithPath(_moduleId,
|
|
1196
|
+
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localizeWithPath(_moduleId, 102, "Left")), panelLeftIcon),
|
|
1197
|
+
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localizeWithPath(_moduleId, 103, "Right")), panelRightIcon),
|
|
1188
1198
|
];
|
|
1189
1199
|
const AlignPanelActions = [
|
|
1190
|
-
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localizeWithPath(_moduleId,
|
|
1191
|
-
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localizeWithPath(_moduleId,
|
|
1192
|
-
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localizeWithPath(_moduleId,
|
|
1193
|
-
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localizeWithPath(_moduleId,
|
|
1200
|
+
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localizeWithPath(_moduleId, 104, "Left")), panelAlignmentLeftIcon),
|
|
1201
|
+
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localizeWithPath(_moduleId, 105, "Right")), panelAlignmentRightIcon),
|
|
1202
|
+
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localizeWithPath(_moduleId, 106, "Center")), panelAlignmentCenterIcon),
|
|
1203
|
+
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localizeWithPath(_moduleId, 107, "Justify")), panelAlignmentJustifyIcon),
|
|
1194
1204
|
];
|
|
1195
1205
|
const MiscLayoutOptions = [
|
|
1196
|
-
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localizeWithPath(_moduleId,
|
|
1197
|
-
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath(_moduleId,
|
|
1198
|
-
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localizeWithPath(_moduleId,
|
|
1206
|
+
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localizeWithPath(_moduleId, 108, "Full Screen")), fullscreenIcon),
|
|
1207
|
+
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath(_moduleId, 109, "Zen Mode")), zenModeIcon),
|
|
1208
|
+
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localizeWithPath(_moduleId, 110, "Centered Layout")), centerLayoutIcon),
|
|
1199
1209
|
];
|
|
1200
1210
|
const LayoutContextKeySet = ( (new Set()));
|
|
1201
1211
|
for (const { active } of [...ToggleVisibilityActions, ...MoveSideBarActions, ...AlignPanelActions, ...MiscLayoutOptions]) {
|
|
@@ -1207,7 +1217,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1207
1217
|
constructor() {
|
|
1208
1218
|
super({
|
|
1209
1219
|
id: 'workbench.action.customizeLayout',
|
|
1210
|
-
title: ( localize2WithPath(_moduleId,
|
|
1220
|
+
title: ( localize2WithPath(_moduleId, 111, "Customize Layout...")),
|
|
1211
1221
|
f1: true,
|
|
1212
1222
|
icon: configureLayoutIcon,
|
|
1213
1223
|
menu: [
|
|
@@ -1257,22 +1267,22 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1257
1267
|
return [
|
|
1258
1268
|
{
|
|
1259
1269
|
type: 'separator',
|
|
1260
|
-
label: ( localizeWithPath(_moduleId,
|
|
1270
|
+
label: ( localizeWithPath(_moduleId, 112, "Visibility"))
|
|
1261
1271
|
},
|
|
1262
1272
|
...( (ToggleVisibilityActions.map(toQuickPickItem))),
|
|
1263
1273
|
{
|
|
1264
1274
|
type: 'separator',
|
|
1265
|
-
label: ( localizeWithPath(_moduleId,
|
|
1275
|
+
label: ( localizeWithPath(_moduleId, 113, "Primary Side Bar Position"))
|
|
1266
1276
|
},
|
|
1267
1277
|
...( (MoveSideBarActions.map(toQuickPickItem))),
|
|
1268
1278
|
{
|
|
1269
1279
|
type: 'separator',
|
|
1270
|
-
label: ( localizeWithPath(_moduleId,
|
|
1280
|
+
label: ( localizeWithPath(_moduleId, 114, "Panel Alignment"))
|
|
1271
1281
|
},
|
|
1272
1282
|
...( (AlignPanelActions.map(toQuickPickItem))),
|
|
1273
1283
|
{
|
|
1274
1284
|
type: 'separator',
|
|
1275
|
-
label: ( localizeWithPath(_moduleId,
|
|
1285
|
+
label: ( localizeWithPath(_moduleId, 115, "Modes")),
|
|
1276
1286
|
},
|
|
1277
1287
|
...( (MiscLayoutOptions.map(toQuickPickItem))),
|
|
1278
1288
|
];
|
|
@@ -1292,16 +1302,16 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1292
1302
|
quickPick.items = this.getItems(contextKeyService, keybindingService);
|
|
1293
1303
|
quickPick.ignoreFocusOut = true;
|
|
1294
1304
|
quickPick.hideInput = true;
|
|
1295
|
-
quickPick.title = ( localizeWithPath(_moduleId,
|
|
1305
|
+
quickPick.title = ( localizeWithPath(_moduleId, 116, "Customize Layout"));
|
|
1296
1306
|
const closeButton = {
|
|
1297
1307
|
alwaysVisible: true,
|
|
1298
1308
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
1299
|
-
tooltip: ( localizeWithPath(_moduleId,
|
|
1309
|
+
tooltip: ( localizeWithPath(_moduleId, 117, "Close"))
|
|
1300
1310
|
};
|
|
1301
1311
|
const resetButton = {
|
|
1302
1312
|
alwaysVisible: true,
|
|
1303
1313
|
iconClass: ThemeIcon.asClassName(Codicon.discard),
|
|
1304
|
-
tooltip: ( localizeWithPath(_moduleId,
|
|
1314
|
+
tooltip: ( localizeWithPath(_moduleId, 118, "Restore Defaults"))
|
|
1305
1315
|
};
|
|
1306
1316
|
quickPick.buttons = [
|
|
1307
1317
|
resetButton,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".monaco-workbench .quick-input-list .quick-input-list-entry.has-actions:hover .quick-input-list-entry-action-bar .action-label.dirty-workspace:before{content
|
|
2
|
+
var css = ".monaco-workbench .quick-input-list .quick-input-list-entry.has-actions:hover .quick-input-list-entry-action-bar .action-label.dirty-workspace:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-workbench .screencast-mouse{border-radius:50%;border-style:solid;border-width:2px;content:\" \";display:none;pointer-events:none;position:absolute;z-index:100000}.monaco-workbench .screencast-keyboard{background-color:rgba(0,0,0,.5);color:#eee;left:0;line-height:1.75em;overflow:hidden;pointer-events:none;position:absolute;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%;z-index:100000}.monaco-workbench:not(.reduce-motion) .screencast-keyboard{transition:opacity .3s ease-out}.monaco-workbench .screencast-keyboard:empty{opacity:0}.monaco-workbench .screencast-keyboard>.key{background-color:hsla(0,0%,100%,.05);border:1px solid hsla(0,0%,80%,.4);border-radius:5px;box-shadow:inset 0 -3px 0 hsla(0,0%,73%,.4);margin-right:6px;padding:0 8px}.monaco-workbench .screencast-keyboard>.title{font-weight:600}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|
|
@@ -5,15 +5,19 @@ import { KeybindingsRegistry } from '../../../platform/keybinding/common/keybind
|
|
|
5
5
|
import { WorkbenchListFocusContextKey, WorkbenchListScrollAtTopContextKey, WorkbenchListScrollAtBottomContextKey } from '../../../platform/list/browser/listService.js';
|
|
6
6
|
import { Disposable, combinedDisposable, toDisposable } from '../../../base/common/lifecycle.js';
|
|
7
7
|
import { registerWorkbenchContribution2 } from '../../common/contributions.js';
|
|
8
|
+
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
9
|
+
import { IConfigurationService } from '../../../platform/configuration/common/configuration.service.js';
|
|
8
10
|
var NavigableContainerManager_1;
|
|
9
|
-
function handleFocusEventsGroup(group, handler) {
|
|
11
|
+
function handleFocusEventsGroup(group, handler, onPartFocusChange) {
|
|
10
12
|
const focusedIndices = ( new Set());
|
|
11
13
|
return combinedDisposable(...( group.map((events, index) => combinedDisposable(events.onDidFocus(() => {
|
|
14
|
+
onPartFocusChange?.(index, 'focus');
|
|
12
15
|
if (!focusedIndices.size) {
|
|
13
16
|
handler(true);
|
|
14
17
|
}
|
|
15
18
|
focusedIndices.add(index);
|
|
16
19
|
}), events.onDidBlur(() => {
|
|
20
|
+
onPartFocusChange?.(index, 'blur');
|
|
17
21
|
focusedIndices.delete(index);
|
|
18
22
|
if (!focusedIndices.size) {
|
|
19
23
|
handler(false);
|
|
@@ -24,7 +28,9 @@ const NavigableContainerFocusedContextKey = ( new RawContextKey('navigableContai
|
|
|
24
28
|
let NavigableContainerManager = class NavigableContainerManager {
|
|
25
29
|
static { NavigableContainerManager_1 = this; }
|
|
26
30
|
static { this.ID = 'workbench.contrib.navigableContainerManager'; }
|
|
27
|
-
constructor(contextKeyService) {
|
|
31
|
+
constructor(contextKeyService, logService, configurationService) {
|
|
32
|
+
this.logService = logService;
|
|
33
|
+
this.configurationService = configurationService;
|
|
28
34
|
this.containers = ( new Set());
|
|
29
35
|
this.focused = NavigableContainerFocusedContextKey.bindTo(contextKeyService);
|
|
30
36
|
NavigableContainerManager_1.INSTANCE = this;
|
|
@@ -34,23 +40,39 @@ let NavigableContainerManager = class NavigableContainerManager {
|
|
|
34
40
|
this.focused.reset();
|
|
35
41
|
NavigableContainerManager_1.INSTANCE = undefined;
|
|
36
42
|
}
|
|
43
|
+
get debugEnabled() {
|
|
44
|
+
return this.configurationService.getValue('workbench.navigibleContainer.enableDebug');
|
|
45
|
+
}
|
|
46
|
+
log(msg, ...args) {
|
|
47
|
+
if (this.debugEnabled) {
|
|
48
|
+
this.logService.debug(msg, ...args);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
37
51
|
static register(container) {
|
|
38
52
|
const instance = this.INSTANCE;
|
|
39
53
|
if (!instance) {
|
|
40
54
|
return Disposable.None;
|
|
41
55
|
}
|
|
42
56
|
instance.containers.add(container);
|
|
57
|
+
instance.log('NavigableContainerManager.register', container.name);
|
|
43
58
|
return combinedDisposable(handleFocusEventsGroup(container.focusNotifiers, (isFocus) => {
|
|
44
59
|
if (isFocus) {
|
|
60
|
+
instance.log('NavigableContainerManager.focus', container.name);
|
|
45
61
|
instance.focused.set(true);
|
|
46
62
|
instance.lastContainer = container;
|
|
47
63
|
}
|
|
48
|
-
else
|
|
49
|
-
instance.
|
|
50
|
-
instance.lastContainer
|
|
64
|
+
else {
|
|
65
|
+
instance.log('NavigableContainerManager.blur', container.name, instance.lastContainer?.name);
|
|
66
|
+
if (instance.lastContainer === container) {
|
|
67
|
+
instance.focused.set(false);
|
|
68
|
+
instance.lastContainer = undefined;
|
|
69
|
+
}
|
|
51
70
|
}
|
|
71
|
+
}, (index, event) => {
|
|
72
|
+
instance.log('NavigableContainerManager.partFocusChange', container.name, index, event);
|
|
52
73
|
}), toDisposable(() => {
|
|
53
74
|
instance.containers.delete(container);
|
|
75
|
+
instance.log('NavigableContainerManager.unregister', container.name, instance.lastContainer?.name);
|
|
54
76
|
if (instance.lastContainer === container) {
|
|
55
77
|
instance.focused.set(false);
|
|
56
78
|
instance.lastContainer = undefined;
|
|
@@ -62,7 +84,9 @@ let NavigableContainerManager = class NavigableContainerManager {
|
|
|
62
84
|
}
|
|
63
85
|
};
|
|
64
86
|
NavigableContainerManager = NavigableContainerManager_1 = ( __decorate([
|
|
65
|
-
( __param(0, IContextKeyService))
|
|
87
|
+
( __param(0, IContextKeyService)),
|
|
88
|
+
( __param(1, ILogService)),
|
|
89
|
+
( __param(2, IConfigurationService))
|
|
66
90
|
], NavigableContainerManager));
|
|
67
91
|
function registerNavigableContainer(container) {
|
|
68
92
|
return NavigableContainerManager.register(container);
|
|
@@ -272,7 +272,10 @@ let ResourceLabelWidget = class ResourceLabelWidget extends IconLabel {
|
|
|
272
272
|
}
|
|
273
273
|
let description;
|
|
274
274
|
if (!options?.hidePath) {
|
|
275
|
-
|
|
275
|
+
const descriptionCandidate = this.labelService.getUriLabel(dirname(resource), { relative: true });
|
|
276
|
+
if (descriptionCandidate && descriptionCandidate !== '.') {
|
|
277
|
+
description = descriptionCandidate;
|
|
278
|
+
}
|
|
276
279
|
}
|
|
277
280
|
this.setResource({ resource, name, description, range: options?.range }, options);
|
|
278
281
|
}
|