@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
|
@@ -152,7 +152,7 @@ async function deleteFiles(explorerService, workingCopyFileService, dialogServic
|
|
|
152
152
|
}
|
|
153
153
|
let confirmation;
|
|
154
154
|
const deleteDetail = ( (distinctElements.some(e => e.isDirectory))) ? ( localizeWithPath(_moduleId, 16, "This action is irreversible!")) :
|
|
155
|
-
distinctElements.length > 1 ? ( localizeWithPath(_moduleId, 17, "You can restore these files using the Undo command")) : ( localizeWithPath(_moduleId, 18, "You can restore this file using the Undo command"));
|
|
155
|
+
distinctElements.length > 1 ? ( localizeWithPath(_moduleId, 17, "You can restore these files using the Undo command.")) : ( localizeWithPath(_moduleId, 18, "You can restore this file using the Undo command."));
|
|
156
156
|
if (skipConfirm || (useTrash && configurationService.getValue(CONFIRM_DELETE_SETTING_KEY) === false)) {
|
|
157
157
|
confirmation = { confirmed: true };
|
|
158
158
|
}
|
|
@@ -482,7 +482,14 @@ class GlobalCompareResourcesAction extends Action2 {
|
|
|
482
482
|
title: GlobalCompareResourcesAction.LABEL,
|
|
483
483
|
f1: true,
|
|
484
484
|
category: Categories.File,
|
|
485
|
-
precondition: ActiveEditorContext
|
|
485
|
+
precondition: ActiveEditorContext,
|
|
486
|
+
metadata: {
|
|
487
|
+
description: ( localize2WithPath(
|
|
488
|
+
_moduleId,
|
|
489
|
+
45,
|
|
490
|
+
"Opens a picker to select a file to diff with the active editor."
|
|
491
|
+
))
|
|
492
|
+
}
|
|
486
493
|
});
|
|
487
494
|
}
|
|
488
495
|
async run(accessor) {
|
|
@@ -511,12 +518,12 @@ class ToggleAutoSaveAction extends Action2 {
|
|
|
511
518
|
constructor() {
|
|
512
519
|
super({
|
|
513
520
|
id: ToggleAutoSaveAction.ID,
|
|
514
|
-
title: ( localize2WithPath(_moduleId,
|
|
521
|
+
title: ( localize2WithPath(_moduleId, 46, "Toggle Auto Save")),
|
|
515
522
|
f1: true,
|
|
516
523
|
category: Categories.File,
|
|
517
524
|
metadata: { description: ( localize2WithPath(
|
|
518
525
|
_moduleId,
|
|
519
|
-
|
|
526
|
+
47,
|
|
520
527
|
"Toggle the ability to save files automatically after typing"
|
|
521
528
|
)) }
|
|
522
529
|
});
|
|
@@ -562,7 +569,7 @@ BaseSaveAllAction = ( (__decorate([
|
|
|
562
569
|
], BaseSaveAllAction)));
|
|
563
570
|
class SaveAllInGroupAction extends BaseSaveAllAction {
|
|
564
571
|
static { this.ID = 'workbench.files.action.saveAllInGroup'; }
|
|
565
|
-
static { this.LABEL = ( localizeWithPath(_moduleId,
|
|
572
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 48, "Save All in Group")); }
|
|
566
573
|
get class() {
|
|
567
574
|
return 'explorer-action ' + ThemeIcon.asClassName(Codicon.saveAll);
|
|
568
575
|
}
|
|
@@ -572,7 +579,7 @@ class SaveAllInGroupAction extends BaseSaveAllAction {
|
|
|
572
579
|
}
|
|
573
580
|
let CloseGroupAction = class CloseGroupAction extends Action {
|
|
574
581
|
static { this.ID = 'workbench.files.action.closeGroup'; }
|
|
575
|
-
static { this.LABEL = ( localizeWithPath(_moduleId,
|
|
582
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 49, "Close Group")); }
|
|
576
583
|
constructor(id, label, commandService) {
|
|
577
584
|
super(id, label, ThemeIcon.asClassName(Codicon.closeAll));
|
|
578
585
|
this.commandService = commandService;
|
|
@@ -586,13 +593,16 @@ CloseGroupAction = ( (__decorate([
|
|
|
586
593
|
], CloseGroupAction)));
|
|
587
594
|
class FocusFilesExplorer extends Action2 {
|
|
588
595
|
static { this.ID = 'workbench.files.action.focusFilesExplorer'; }
|
|
589
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
596
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 50, "Focus on Files Explorer")); }
|
|
590
597
|
constructor() {
|
|
591
598
|
super({
|
|
592
599
|
id: FocusFilesExplorer.ID,
|
|
593
600
|
title: FocusFilesExplorer.LABEL,
|
|
594
601
|
f1: true,
|
|
595
|
-
category: Categories.File
|
|
602
|
+
category: Categories.File,
|
|
603
|
+
metadata: {
|
|
604
|
+
description: ( localize2WithPath(_moduleId, 51, "Moves focus to the file explorer view container."))
|
|
605
|
+
}
|
|
596
606
|
});
|
|
597
607
|
}
|
|
598
608
|
async run(accessor) {
|
|
@@ -602,13 +612,20 @@ class FocusFilesExplorer extends Action2 {
|
|
|
602
612
|
}
|
|
603
613
|
class ShowActiveFileInExplorer extends Action2 {
|
|
604
614
|
static { this.ID = 'workbench.files.action.showActiveFileInExplorer'; }
|
|
605
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
615
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 52, "Reveal Active File in Explorer View")); }
|
|
606
616
|
constructor() {
|
|
607
617
|
super({
|
|
608
618
|
id: ShowActiveFileInExplorer.ID,
|
|
609
619
|
title: ShowActiveFileInExplorer.LABEL,
|
|
610
620
|
f1: true,
|
|
611
|
-
category: Categories.File
|
|
621
|
+
category: Categories.File,
|
|
622
|
+
metadata: {
|
|
623
|
+
description: ( localize2WithPath(
|
|
624
|
+
_moduleId,
|
|
625
|
+
53,
|
|
626
|
+
"Reveals and selects the active file within the explorer view."
|
|
627
|
+
))
|
|
628
|
+
}
|
|
612
629
|
});
|
|
613
630
|
}
|
|
614
631
|
async run(accessor) {
|
|
@@ -622,14 +639,21 @@ class ShowActiveFileInExplorer extends Action2 {
|
|
|
622
639
|
}
|
|
623
640
|
class OpenActiveFileInEmptyWorkspace extends Action2 {
|
|
624
641
|
static { this.ID = 'workbench.action.files.showOpenedFileInNewWindow'; }
|
|
625
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
642
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 54, "Open Active File in New Empty Workspace")); }
|
|
626
643
|
constructor() {
|
|
627
644
|
super({
|
|
628
645
|
id: OpenActiveFileInEmptyWorkspace.ID,
|
|
629
646
|
title: OpenActiveFileInEmptyWorkspace.LABEL,
|
|
630
647
|
f1: true,
|
|
631
648
|
category: Categories.File,
|
|
632
|
-
precondition: EmptyWorkspaceSupportContext
|
|
649
|
+
precondition: EmptyWorkspaceSupportContext,
|
|
650
|
+
metadata: {
|
|
651
|
+
description: ( localize2WithPath(
|
|
652
|
+
_moduleId,
|
|
653
|
+
55,
|
|
654
|
+
"Opens the active file in a new window with no folders open."
|
|
655
|
+
))
|
|
656
|
+
}
|
|
633
657
|
});
|
|
634
658
|
}
|
|
635
659
|
async run(accessor) {
|
|
@@ -643,7 +667,7 @@ class OpenActiveFileInEmptyWorkspace extends Action2 {
|
|
|
643
667
|
hostService.openWindow([{ fileUri: fileResource }], { forceNewWindow: true });
|
|
644
668
|
}
|
|
645
669
|
else {
|
|
646
|
-
dialogService.error(( localizeWithPath(_moduleId,
|
|
670
|
+
dialogService.error(( localizeWithPath(_moduleId, 56, "The active editor must contain an openable resource.")));
|
|
647
671
|
}
|
|
648
672
|
}
|
|
649
673
|
}
|
|
@@ -652,13 +676,13 @@ function validateFileName(pathService, item, name, os) {
|
|
|
652
676
|
name = getWellFormedFileName(name);
|
|
653
677
|
if (!name || name.length === 0 || /^\s+$/.test(name)) {
|
|
654
678
|
return {
|
|
655
|
-
content: ( localizeWithPath(_moduleId,
|
|
679
|
+
content: ( localizeWithPath(_moduleId, 57, "A file or folder name must be provided.")),
|
|
656
680
|
severity: Severity$1.Error
|
|
657
681
|
};
|
|
658
682
|
}
|
|
659
683
|
if (name[0] === '/' || name[0] === '\\') {
|
|
660
684
|
return {
|
|
661
|
-
content: ( localizeWithPath(_moduleId,
|
|
685
|
+
content: ( localizeWithPath(_moduleId, 58, "A file or folder name cannot start with a slash.")),
|
|
662
686
|
severity: Severity$1.Error
|
|
663
687
|
};
|
|
664
688
|
}
|
|
@@ -670,7 +694,7 @@ function validateFileName(pathService, item, name, os) {
|
|
|
670
694
|
return {
|
|
671
695
|
content: ( localizeWithPath(
|
|
672
696
|
_moduleId,
|
|
673
|
-
|
|
697
|
+
59,
|
|
674
698
|
"A file or folder **{0}** already exists at this location. Please choose a different name.",
|
|
675
699
|
name
|
|
676
700
|
)),
|
|
@@ -683,7 +707,7 @@ function validateFileName(pathService, item, name, os) {
|
|
|
683
707
|
return {
|
|
684
708
|
content: ( localizeWithPath(
|
|
685
709
|
_moduleId,
|
|
686
|
-
|
|
710
|
+
60,
|
|
687
711
|
"The name **{0}** is not valid as a file or folder name. Please choose a different name.",
|
|
688
712
|
trimLongName(escapedName)
|
|
689
713
|
)),
|
|
@@ -694,7 +718,7 @@ function validateFileName(pathService, item, name, os) {
|
|
|
694
718
|
return {
|
|
695
719
|
content: ( localizeWithPath(
|
|
696
720
|
_moduleId,
|
|
697
|
-
|
|
721
|
+
61,
|
|
698
722
|
"Leading or trailing whitespace detected in file or folder name."
|
|
699
723
|
)),
|
|
700
724
|
severity: Severity$1.Warning
|
|
@@ -719,13 +743,16 @@ function getWellFormedFileName(filename) {
|
|
|
719
743
|
}
|
|
720
744
|
class CompareNewUntitledTextFilesAction extends Action2 {
|
|
721
745
|
static { this.ID = 'workbench.files.action.compareNewUntitledTextFiles'; }
|
|
722
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
746
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 62, "Compare New Untitled Text Files")); }
|
|
723
747
|
constructor() {
|
|
724
748
|
super({
|
|
725
749
|
id: CompareNewUntitledTextFilesAction.ID,
|
|
726
750
|
title: CompareNewUntitledTextFilesAction.LABEL,
|
|
727
751
|
f1: true,
|
|
728
|
-
category: Categories.File
|
|
752
|
+
category: Categories.File,
|
|
753
|
+
metadata: {
|
|
754
|
+
description: ( localize2WithPath(_moduleId, 63, "Opens a new diff editor with two untitled files."))
|
|
755
|
+
}
|
|
729
756
|
});
|
|
730
757
|
}
|
|
731
758
|
async run(accessor) {
|
|
@@ -739,7 +766,7 @@ class CompareNewUntitledTextFilesAction extends Action2 {
|
|
|
739
766
|
}
|
|
740
767
|
class CompareWithClipboardAction extends Action2 {
|
|
741
768
|
static { this.ID = 'workbench.files.action.compareWithClipboard'; }
|
|
742
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
769
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 64, "Compare Active File with Clipboard")); }
|
|
743
770
|
static { this.SCHEME_COUNTER = 0; }
|
|
744
771
|
constructor() {
|
|
745
772
|
super({
|
|
@@ -747,7 +774,14 @@ class CompareWithClipboardAction extends Action2 {
|
|
|
747
774
|
title: CompareWithClipboardAction.LABEL,
|
|
748
775
|
f1: true,
|
|
749
776
|
category: Categories.File,
|
|
750
|
-
keybinding: { primary: KeyChord(2048 | 41 , 33 ), weight: 200 }
|
|
777
|
+
keybinding: { primary: KeyChord(2048 | 41 , 33 ), weight: 200 },
|
|
778
|
+
metadata: {
|
|
779
|
+
description: ( localize2WithPath(
|
|
780
|
+
_moduleId,
|
|
781
|
+
65,
|
|
782
|
+
"Opens a new diff editor to compare the active file with the contents of the clipboard."
|
|
783
|
+
))
|
|
784
|
+
}
|
|
751
785
|
});
|
|
752
786
|
}
|
|
753
787
|
async run(accessor) {
|
|
@@ -763,7 +797,7 @@ class CompareWithClipboardAction extends Action2 {
|
|
|
763
797
|
this.registrationDisposal = textModelService.registerTextModelContentProvider(scheme, provider);
|
|
764
798
|
}
|
|
765
799
|
const name = basename(resource);
|
|
766
|
-
const editorLabel = ( localizeWithPath(_moduleId,
|
|
800
|
+
const editorLabel = ( localizeWithPath(_moduleId, 66, "Clipboard ↔ {0}", name));
|
|
767
801
|
await editorService.openEditor({
|
|
768
802
|
original: { resource: resource.with({ scheme }) },
|
|
769
803
|
modified: { resource: resource },
|
|
@@ -799,7 +833,7 @@ ClipboardContentProvider = ( (__decorate([
|
|
|
799
833
|
], ClipboardContentProvider)));
|
|
800
834
|
function onErrorWithRetry(notificationService, error, retry) {
|
|
801
835
|
notificationService.prompt(Severity$1.Error, toErrorMessage(error, false), [{
|
|
802
|
-
label: ( localizeWithPath(_moduleId,
|
|
836
|
+
label: ( localizeWithPath(_moduleId, 67, "Retry")),
|
|
803
837
|
run: () => retry()
|
|
804
838
|
}]);
|
|
805
839
|
}
|
|
@@ -846,8 +880,8 @@ async function openExplorerAndCreate(accessor, isFolder) {
|
|
|
846
880
|
isFolder = true;
|
|
847
881
|
}
|
|
848
882
|
await explorerService.applyBulkEdit([( (new ResourceFileEdit(undefined, resourceToCreate, { folder: isFolder })))], {
|
|
849
|
-
undoLabel: ( localizeWithPath(_moduleId,
|
|
850
|
-
progressLabel: ( localizeWithPath(_moduleId,
|
|
883
|
+
undoLabel: ( localizeWithPath(_moduleId, 68, "Create {0}", value)),
|
|
884
|
+
progressLabel: ( localizeWithPath(_moduleId, 69, "Creating {0}", value)),
|
|
851
885
|
confirmBeforeUndo: true
|
|
852
886
|
});
|
|
853
887
|
await refreshIfSeparator(value, explorerService);
|
|
@@ -908,8 +942,8 @@ const renameHandler = async (accessor) => {
|
|
|
908
942
|
try {
|
|
909
943
|
await explorerService.applyBulkEdit([( (new ResourceFileEdit(stat.resource, targetResource)))], {
|
|
910
944
|
confirmBeforeUndo: configurationService.getValue().explorer.confirmUndo === "verbose" ,
|
|
911
|
-
undoLabel: ( localizeWithPath(_moduleId,
|
|
912
|
-
progressLabel: ( localizeWithPath(_moduleId,
|
|
945
|
+
undoLabel: ( localizeWithPath(_moduleId, 70, "Rename {0} to {1}", stat.name, value)),
|
|
946
|
+
progressLabel: ( localizeWithPath(_moduleId, 71, "Renaming {0} to {1}", stat.name, value)),
|
|
913
947
|
});
|
|
914
948
|
await refreshIfSeparator(value, explorerService);
|
|
915
949
|
}
|
|
@@ -1011,13 +1045,13 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1011
1045
|
const message = toPaste.files.length > 1 ?
|
|
1012
1046
|
( localizeWithPath(
|
|
1013
1047
|
_moduleId,
|
|
1014
|
-
|
|
1048
|
+
72,
|
|
1015
1049
|
"Are you sure you want to paste the following {0} items?",
|
|
1016
1050
|
toPaste.files.length
|
|
1017
1051
|
)) :
|
|
1018
1052
|
( localizeWithPath(
|
|
1019
1053
|
_moduleId,
|
|
1020
|
-
|
|
1054
|
+
73,
|
|
1021
1055
|
"Are you sure you want to paste '{0}'?",
|
|
1022
1056
|
basename$1(toPaste.type === 'paths' ? toPaste.files[0].fsPath : toPaste.files[0].name)
|
|
1023
1057
|
));
|
|
@@ -1028,7 +1062,7 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1028
1062
|
checkbox: {
|
|
1029
1063
|
label: ( localizeWithPath(_moduleId, 23, "Do not ask me again"))
|
|
1030
1064
|
},
|
|
1031
|
-
primaryButton: ( localizeWithPath(_moduleId,
|
|
1065
|
+
primaryButton: ( localizeWithPath(_moduleId, 74, "&&Paste"))
|
|
1032
1066
|
});
|
|
1033
1067
|
if (!confirmation.confirmed) {
|
|
1034
1068
|
return;
|
|
@@ -1049,7 +1083,7 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1049
1083
|
const sourceTargetPairs = coalesce(await Promise.all(( (toPaste.files.map(async (fileToPaste) => {
|
|
1050
1084
|
if (( (element.resource.toString())) !== ( (fileToPaste.toString())) && isEqualOrParent(element.resource, fileToPaste)) {
|
|
1051
1085
|
throw ( (new Error(
|
|
1052
|
-
localizeWithPath(_moduleId,
|
|
1086
|
+
localizeWithPath(_moduleId, 75, "File to paste is an ancestor of the destination folder")
|
|
1053
1087
|
)));
|
|
1054
1088
|
}
|
|
1055
1089
|
const fileToPasteStat = await fileService.stat(fileToPaste);
|
|
@@ -1073,17 +1107,17 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1073
1107
|
)));
|
|
1074
1108
|
const options = {
|
|
1075
1109
|
confirmBeforeUndo: configurationService.getValue().explorer.confirmUndo === "verbose" ,
|
|
1076
|
-
progressLabel: sourceTargetPairs.length > 1 ? ( localizeWithPath(_moduleId,
|
|
1110
|
+
progressLabel: sourceTargetPairs.length > 1 ? ( localizeWithPath(_moduleId, 76, "Moving {0} files", sourceTargetPairs.length))
|
|
1077
1111
|
: ( localizeWithPath(
|
|
1078
1112
|
_moduleId,
|
|
1079
|
-
|
|
1113
|
+
77,
|
|
1080
1114
|
"Moving {0}",
|
|
1081
1115
|
basenameOrAuthority(sourceTargetPairs[0].target)
|
|
1082
1116
|
)),
|
|
1083
|
-
undoLabel: sourceTargetPairs.length > 1 ? ( localizeWithPath(_moduleId,
|
|
1117
|
+
undoLabel: sourceTargetPairs.length > 1 ? ( localizeWithPath(_moduleId, 78, "Move {0} files", sourceTargetPairs.length))
|
|
1084
1118
|
: ( localizeWithPath(
|
|
1085
1119
|
_moduleId,
|
|
1086
|
-
|
|
1120
|
+
79,
|
|
1087
1121
|
"Move {0}",
|
|
1088
1122
|
basenameOrAuthority(sourceTargetPairs[0].target)
|
|
1089
1123
|
))
|
|
@@ -1133,7 +1167,7 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1133
1167
|
catch (e) {
|
|
1134
1168
|
onError(notificationService, ( (new Error(( localizeWithPath(
|
|
1135
1169
|
_moduleId,
|
|
1136
|
-
|
|
1170
|
+
80,
|
|
1137
1171
|
"The file(s) to paste have been deleted or moved since you copied them. {0}",
|
|
1138
1172
|
getErrorMessage(e)
|
|
1139
1173
|
))))));
|
|
@@ -1148,10 +1182,10 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1148
1182
|
const undoLevel = configurationService.getValue().explorer.confirmUndo;
|
|
1149
1183
|
const options = {
|
|
1150
1184
|
confirmBeforeUndo: undoLevel === "default" || undoLevel === "verbose" ,
|
|
1151
|
-
progressLabel: targets.length > 1 ? ( localizeWithPath(_moduleId,
|
|
1152
|
-
: ( localizeWithPath(_moduleId,
|
|
1153
|
-
undoLabel: targets.length > 1 ? ( localizeWithPath(_moduleId,
|
|
1154
|
-
: ( localizeWithPath(_moduleId,
|
|
1185
|
+
progressLabel: targets.length > 1 ? ( localizeWithPath(_moduleId, 81, "Copying {0} files", targets.length))
|
|
1186
|
+
: ( localizeWithPath(_moduleId, 82, "Copying {0}", basenameOrAuthority(targets[0]))),
|
|
1187
|
+
undoLabel: targets.length > 1 ? ( localizeWithPath(_moduleId, 83, "Paste {0} files", targets.length))
|
|
1188
|
+
: ( localizeWithPath(_moduleId, 84, "Paste {0}", basenameOrAuthority(targets[0])))
|
|
1155
1189
|
};
|
|
1156
1190
|
await explorerService.applyBulkEdit(resourceFileEdits, options);
|
|
1157
1191
|
}
|
|
@@ -1200,28 +1234,28 @@ class BaseSetActiveEditorReadonlyInSession extends Action2 {
|
|
|
1200
1234
|
}
|
|
1201
1235
|
class SetActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
|
|
1202
1236
|
static { this.ID = 'workbench.action.files.setActiveEditorReadonlyInSession'; }
|
|
1203
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
1237
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 85, "Set Active Editor Read-only in Session")); }
|
|
1204
1238
|
constructor() {
|
|
1205
1239
|
super(SetActiveEditorReadonlyInSession.ID, SetActiveEditorReadonlyInSession.LABEL, true);
|
|
1206
1240
|
}
|
|
1207
1241
|
}
|
|
1208
1242
|
class SetActiveEditorWriteableInSession extends BaseSetActiveEditorReadonlyInSession {
|
|
1209
1243
|
static { this.ID = 'workbench.action.files.setActiveEditorWriteableInSession'; }
|
|
1210
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
1244
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 86, "Set Active Editor Writeable in Session")); }
|
|
1211
1245
|
constructor() {
|
|
1212
1246
|
super(SetActiveEditorWriteableInSession.ID, SetActiveEditorWriteableInSession.LABEL, false);
|
|
1213
1247
|
}
|
|
1214
1248
|
}
|
|
1215
1249
|
class ToggleActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
|
|
1216
1250
|
static { this.ID = 'workbench.action.files.toggleActiveEditorReadonlyInSession'; }
|
|
1217
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
1251
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 87, "Toggle Active Editor Read-only in Session")); }
|
|
1218
1252
|
constructor() {
|
|
1219
1253
|
super(ToggleActiveEditorReadonlyInSession.ID, ToggleActiveEditorReadonlyInSession.LABEL, 'toggle');
|
|
1220
1254
|
}
|
|
1221
1255
|
}
|
|
1222
1256
|
class ResetActiveEditorReadonlyInSession extends BaseSetActiveEditorReadonlyInSession {
|
|
1223
1257
|
static { this.ID = 'workbench.action.files.resetActiveEditorReadonlyInSession'; }
|
|
1224
|
-
static { this.LABEL = ( localize2WithPath(_moduleId,
|
|
1258
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 88, "Reset Active Editor Read-only in Session")); }
|
|
1225
1259
|
constructor() {
|
|
1226
1260
|
super(ResetActiveEditorReadonlyInSession.ID, ResetActiveEditorReadonlyInSession.LABEL, 'reset');
|
|
1227
1261
|
}
|
package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js}
RENAMED
|
@@ -23,7 +23,7 @@ import { IEditorService } from '../../../services/editor/common/editorService.se
|
|
|
23
23
|
import { ITextFileService } from '../../../services/textfile/common/textfiles.service.js';
|
|
24
24
|
import { SAVE_FILE_COMMAND_ID, SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID, SAVE_FILE_AS_COMMAND_ID, SAVE_ALL_COMMAND_ID, SAVE_ALL_IN_GROUP_COMMAND_ID, SAVE_FILES_COMMAND_ID } from './fileConstants.js';
|
|
25
25
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
26
|
-
const _moduleId = "vs/workbench/contrib/files/browser/fileCommands
|
|
26
|
+
const _moduleId = "vs/workbench/contrib/files/browser/fileCommands";
|
|
27
27
|
async function saveSelectedEditors(accessor, options) {
|
|
28
28
|
const listService = accessor.get(IListService);
|
|
29
29
|
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
@@ -87,15 +87,15 @@ async function doSaveEditors(accessor, editors, options) {
|
|
|
87
87
|
severity: Severity$1.Error,
|
|
88
88
|
message: ( localizeWithPath(
|
|
89
89
|
_moduleId,
|
|
90
|
-
|
|
90
|
+
3,
|
|
91
91
|
"Failed to save '{0}': {1}",
|
|
92
92
|
( (editors.map(({ editor }) => editor.getName()))).join(', '),
|
|
93
93
|
toErrorMessage(error, false)
|
|
94
94
|
)),
|
|
95
95
|
actions: {
|
|
96
96
|
primary: [
|
|
97
|
-
toAction({ id: 'workbench.action.files.saveEditors', label: ( localizeWithPath(_moduleId,
|
|
98
|
-
toAction({ id: 'workbench.action.files.revertEditors', label: ( localizeWithPath(_moduleId,
|
|
97
|
+
toAction({ id: 'workbench.action.files.saveEditors', label: ( localizeWithPath(_moduleId, 4, "Retry")), run: () => instantiationService.invokeFunction(accessor => doSaveEditors(accessor, editors, options)) }),
|
|
98
|
+
toAction({ id: 'workbench.action.files.revertEditors', label: ( localizeWithPath(_moduleId, 5, "Discard")), run: () => editorService.revert(editors) })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
});
|
|
@@ -5,7 +5,7 @@ import { Extensions } from '../../../../platform/configuration/common/configurat
|
|
|
5
5
|
import { FILES_EXCLUDE_CONFIG, FILES_ASSOCIATIONS_CONFIG, AutoSaveConfiguration, FILES_READONLY_INCLUDE_CONFIG, FILES_READONLY_EXCLUDE_CONFIG, FILES_READONLY_FROM_PERMISSIONS_CONFIG, HotExitConfiguration } from '../../../../platform/files/common/files.js';
|
|
6
6
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
7
7
|
import { SUPPORTED_ENCODINGS } from '../../../services/textfile/common/encoding.js';
|
|
8
|
-
const _moduleId = "vs/workbench/contrib/files/browser/files.
|
|
8
|
+
const _moduleId = "vs/workbench/contrib/files/browser/files.contribution";
|
|
9
9
|
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
10
10
|
const hotExitConfiguration = isNative ?
|
|
11
11
|
{
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Schemas } from '../../../../base/common/network.js';
|
|
3
3
|
import { sep } from '../../../../base/common/path.js';
|
|
4
|
+
import { isWindows } from '../../../../base/common/platform.js';
|
|
5
|
+
import { ModesRegistry } from '../../../../editor/common/languages/modesRegistry.js';
|
|
6
|
+
import { localizeWithPath } from '../../../../nls.js';
|
|
7
|
+
import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
|
|
8
|
+
import { ILabelService } from '../../../../platform/label/common/label.service.js';
|
|
4
9
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
5
|
-
import {
|
|
10
|
+
import { EditorPaneDescriptor } from '../../../browser/editor.js';
|
|
11
|
+
import { registerWorkbenchContribution2 } from '../../../common/contributions.js';
|
|
6
12
|
import { EditorExtensions } from '../../../common/editor.js';
|
|
7
|
-
import {
|
|
13
|
+
import { BinaryFileEditor } from './editors/binaryFileEditor.js';
|
|
14
|
+
import { FileEditorInputSerializer, FileEditorWorkingCopyEditorHandler } from './editors/fileEditorHandler.js';
|
|
15
|
+
import { FileEditorInput } from './editors/fileEditorInput.js';
|
|
16
|
+
import { TextFileEditor } from './editors/textFileEditor.js';
|
|
8
17
|
import { TextFileEditorTracker } from './editors/textFileEditorTracker.js';
|
|
9
18
|
import { TextFileSaveErrorHandler } from './editors/textFileSaveErrorHandler.js';
|
|
10
|
-
import { FileEditorInput } from './editors/fileEditorInput.js';
|
|
11
|
-
import { BinaryFileEditor } from './editors/binaryFileEditor.js';
|
|
12
|
-
import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
|
|
13
|
-
import { isWindows } from '../../../../base/common/platform.js';
|
|
14
|
-
import { EditorPaneDescriptor } from '../../../browser/editor.js';
|
|
15
|
-
import { ILabelService } from '../../../../platform/label/common/label.service.js';
|
|
16
|
-
import { Schemas } from '../../../../base/common/network.js';
|
|
17
19
|
import { WorkspaceWatcher } from './workspaceWatcher.js';
|
|
18
20
|
import { DirtyFilesIndicator } from '../common/dirtyFilesIndicator.js';
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import './files.fileEditorFactory.contribution.js';
|
|
23
|
-
const _moduleId = "vs/workbench/contrib/files/browser/files.editorPane.contribution";
|
|
21
|
+
import { FILE_EDITOR_INPUT_ID, BINARY_TEXT_FILE_MODE } from '../common/files.js';
|
|
22
|
+
import './files.contribution._fileEditorFactory.js';
|
|
23
|
+
const _moduleId = "vs/workbench/contrib/files/browser/files.contribution";
|
|
24
24
|
let FileUriLabelContribution = class FileUriLabelContribution {
|
|
25
25
|
static { this.ID = 'workbench.contrib.fileUriLabel'; }
|
|
26
26
|
constructor(labelService) {
|
|
@@ -40,10 +40,10 @@ let FileUriLabelContribution = class FileUriLabelContribution {
|
|
|
40
40
|
FileUriLabelContribution = ( (__decorate([
|
|
41
41
|
( (__param(0, ILabelService)))
|
|
42
42
|
], FileUriLabelContribution)));
|
|
43
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localizeWithPath(_moduleId,
|
|
43
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localizeWithPath(_moduleId, 102, "Text File Editor"))), [
|
|
44
44
|
( (new SyncDescriptor(FileEditorInput)))
|
|
45
45
|
]);
|
|
46
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localizeWithPath(_moduleId,
|
|
46
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localizeWithPath(_moduleId, 103, "Binary File Editor"))), [
|
|
47
47
|
( (new SyncDescriptor(FileEditorInput)))
|
|
48
48
|
]);
|
|
49
49
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(FILE_EDITOR_INPUT_ID, FileEditorInputSerializer);
|
|
@@ -51,7 +51,7 @@ registerWorkbenchContribution2(FileEditorWorkingCopyEditorHandler.ID, FileEditor
|
|
|
51
51
|
registerWorkbenchContribution2(TextFileEditorTracker.ID, TextFileEditorTracker, 1 );
|
|
52
52
|
registerWorkbenchContribution2(TextFileSaveErrorHandler.ID, TextFileSaveErrorHandler, 1 );
|
|
53
53
|
registerWorkbenchContribution2(FileUriLabelContribution.ID, FileUriLabelContribution, 1 );
|
|
54
|
-
(
|
|
54
|
+
registerWorkbenchContribution2(WorkspaceWatcher.ID, WorkspaceWatcher, 3 );
|
|
55
55
|
registerWorkbenchContribution2(DirtyFilesIndicator.ID, DirtyFilesIndicator, 1 );
|
|
56
56
|
ModesRegistry.registerLanguage({
|
|
57
57
|
id: BINARY_TEXT_FILE_MODE,
|
|
@@ -27,14 +27,15 @@ import { IOpenerService } from '../../../../../platform/opener/common/opener.ser
|
|
|
27
27
|
import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.service.js';
|
|
28
28
|
import { isWeb } from '../../../../../base/common/platform.js';
|
|
29
29
|
import { DragAndDropObserver, getWindow } from '../../../../../base/browser/dom.js';
|
|
30
|
+
import { IHoverService } from '../../../../../platform/hover/browser/hover.service.js';
|
|
30
31
|
var EmptyView_1;
|
|
31
32
|
const _moduleId = "vs/workbench/contrib/files/browser/views/emptyView";
|
|
32
33
|
let EmptyView = class EmptyView extends ViewPane {
|
|
33
34
|
static { EmptyView_1 = this; }
|
|
34
35
|
static { this.ID = 'workbench.explorer.emptyView'; }
|
|
35
36
|
static { this.NAME = ( localize2WithPath(_moduleId, 0, "No Folder Opened")); }
|
|
36
|
-
constructor(options, themeService, viewDescriptorService, instantiationService, keybindingService, contextMenuService, contextService, configurationService, labelService, contextKeyService, openerService, telemetryService) {
|
|
37
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
37
|
+
constructor(options, themeService, viewDescriptorService, instantiationService, keybindingService, contextMenuService, contextService, configurationService, labelService, contextKeyService, openerService, telemetryService, hoverService) {
|
|
38
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
38
39
|
this.contextService = contextService;
|
|
39
40
|
this.labelService = labelService;
|
|
40
41
|
this._disposed = false;
|
|
@@ -97,6 +98,7 @@ EmptyView = EmptyView_1 = ( (__decorate([
|
|
|
97
98
|
( (__param(8, ILabelService))),
|
|
98
99
|
( (__param(9, IContextKeyService))),
|
|
99
100
|
( (__param(10, IOpenerService))),
|
|
100
|
-
( (__param(11, ITelemetryService)))
|
|
101
|
+
( (__param(11, ITelemetryService))),
|
|
102
|
+
( (__param(12, IHoverService)))
|
|
101
103
|
], EmptyView)));
|
|
102
104
|
export { EmptyView };
|
|
@@ -33,7 +33,6 @@ import { IStorageService } from '../../../../../platform/storage/common/storage.
|
|
|
33
33
|
import { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.service.js';
|
|
34
34
|
import { IFileService } from '../../../../../platform/files/common/files.service.js';
|
|
35
35
|
import { Event } from '../../../../../base/common/event.js';
|
|
36
|
-
import { SIDE_BAR_BACKGROUND } from '../../../../common/theme.js';
|
|
37
36
|
import { IViewDescriptorService } from '../../../../common/views.service.js';
|
|
38
37
|
import { IViewsService } from '../../../../services/views/common/viewsService.service.js';
|
|
39
38
|
import { IOpenerService } from '../../../../../platform/opener/common/opener.service.js';
|
|
@@ -46,6 +45,7 @@ import { IEditorResolverService } from '../../../../services/editor/common/edito
|
|
|
46
45
|
import { EditorOpenSource } from '../../../../../platform/editor/common/editor.js';
|
|
47
46
|
import { ResourceMap } from '../../../../../base/common/map.js';
|
|
48
47
|
import { isInputElement } from '../../../../../base/browser/ui/list/listWidget.js';
|
|
48
|
+
import { IHoverService } from '../../../../../platform/hover/browser/hover.service.js';
|
|
49
49
|
var ExplorerView_1;
|
|
50
50
|
const _moduleId = "vs/workbench/contrib/files/browser/views/explorerView";
|
|
51
51
|
function hasExpandedRootChild(tree, treeInput) {
|
|
@@ -118,8 +118,8 @@ function getContext(focus, selection, respectMultiSelection, compressedNavigatio
|
|
|
118
118
|
let ExplorerView = class ExplorerView extends ViewPane {
|
|
119
119
|
static { ExplorerView_1 = this; }
|
|
120
120
|
static { this.TREE_VIEW_STATE_STORAGE_KEY = 'workbench.explorer.treeViewState'; }
|
|
121
|
-
constructor(options, contextMenuService, viewDescriptorService, instantiationService, contextService, progressService, editorService, editorResolverService, layoutService, keybindingService, contextKeyService, configurationService, decorationService, labelService, themeService, telemetryService, explorerService, storageService, clipboardService, fileService, uriIdentityService, commandService, openerService) {
|
|
122
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
121
|
+
constructor(options, contextMenuService, viewDescriptorService, instantiationService, contextService, progressService, editorService, editorResolverService, layoutService, keybindingService, contextKeyService, configurationService, decorationService, labelService, themeService, telemetryService, hoverService, explorerService, storageService, clipboardService, fileService, uriIdentityService, commandService, openerService) {
|
|
122
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
123
123
|
this.contextService = contextService;
|
|
124
124
|
this.progressService = progressService;
|
|
125
125
|
this.editorService = editorService;
|
|
@@ -349,9 +349,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
349
349
|
return false;
|
|
350
350
|
},
|
|
351
351
|
paddingBottom: ExplorerDelegate.ITEM_HEIGHT,
|
|
352
|
-
overrideStyles:
|
|
353
|
-
listBackground: SIDE_BAR_BACKGROUND
|
|
354
|
-
}
|
|
352
|
+
overrideStyles: this.getLocationBasedColors().listOverrideStyles
|
|
355
353
|
});
|
|
356
354
|
this._register(this.tree);
|
|
357
355
|
this._register(this.themeService.onDidColorThemeChange(() => this.tree.rerender()));
|
|
@@ -749,13 +747,14 @@ ExplorerView = ExplorerView_1 = ( (__decorate([
|
|
|
749
747
|
( (__param(13, ILabelService))),
|
|
750
748
|
( (__param(14, IThemeService))),
|
|
751
749
|
( (__param(15, ITelemetryService))),
|
|
752
|
-
( (__param(16,
|
|
753
|
-
( (__param(17,
|
|
754
|
-
( (__param(18,
|
|
755
|
-
( (__param(19,
|
|
756
|
-
( (__param(20,
|
|
757
|
-
( (__param(21,
|
|
758
|
-
( (__param(22,
|
|
750
|
+
( (__param(16, IHoverService))),
|
|
751
|
+
( (__param(17, IExplorerService))),
|
|
752
|
+
( (__param(18, IStorageService))),
|
|
753
|
+
( (__param(19, IClipboardService))),
|
|
754
|
+
( (__param(20, IFileService))),
|
|
755
|
+
( (__param(21, IUriIdentityService))),
|
|
756
|
+
( (__param(22, ICommandService))),
|
|
757
|
+
( (__param(23, IOpenerService)))
|
|
759
758
|
], ExplorerView)));
|
|
760
759
|
function createFileIconThemableTreeContainerScope(container, themeService) {
|
|
761
760
|
container.classList.add('file-icon-themable-tree');
|
|
@@ -821,6 +820,9 @@ registerAction2(class extends Action2 {
|
|
|
821
820
|
group: 'navigation',
|
|
822
821
|
when: ( (ContextKeyExpr.equals('view', VIEW_ID))),
|
|
823
822
|
order: 30
|
|
823
|
+
},
|
|
824
|
+
metadata: {
|
|
825
|
+
description: ( localize2WithPath(_moduleId, 4, "Forces a refresh of the Explorer."))
|
|
824
826
|
}
|
|
825
827
|
});
|
|
826
828
|
}
|
|
@@ -835,7 +837,7 @@ registerAction2(class extends Action2 {
|
|
|
835
837
|
constructor() {
|
|
836
838
|
super({
|
|
837
839
|
id: 'workbench.files.action.collapseExplorerFolders',
|
|
838
|
-
title: ( localize2WithPath(_moduleId,
|
|
840
|
+
title: ( localize2WithPath(_moduleId, 5, "Collapse Folders in Explorer")),
|
|
839
841
|
f1: true,
|
|
840
842
|
icon: Codicon.collapseAll,
|
|
841
843
|
menu: {
|
|
@@ -843,6 +845,9 @@ registerAction2(class extends Action2 {
|
|
|
843
845
|
group: 'navigation',
|
|
844
846
|
when: ( (ContextKeyExpr.equals('view', VIEW_ID))),
|
|
845
847
|
order: 40
|
|
848
|
+
},
|
|
849
|
+
metadata: {
|
|
850
|
+
description: ( localize2WithPath(_moduleId, 6, "Folds all folders in the Explorer."))
|
|
846
851
|
}
|
|
847
852
|
});
|
|
848
853
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".pane-header .open-editors-dirty-count-container{align-items:center;display:flex;min-width:fit-content}.pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge.hidden,.pane.horizontal:not(.expanded) .pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge{display:none}.pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge{margin-left:6px;min-height:auto;padding:2px 4px}.open-editors .monaco-list .monaco-list-row.dirty>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row.focused>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row.sticky>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row:hover>.monaco-action-bar{visibility:visible}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .action-label{display:block;padding:2px}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .codicon{color:inherit}.open-editors .monaco-list .monaco-list-row.dirty:not(:hover)>.monaco-action-bar .codicon-pinned:before{content
|
|
2
|
+
var css = ".pane-header .open-editors-dirty-count-container{align-items:center;display:flex;min-width:fit-content}.pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge.hidden,.pane.horizontal:not(.expanded) .pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge{display:none}.pane-header .open-editors-dirty-count-container>.dirty-count.monaco-count-badge{margin-left:6px;min-height:auto;padding:2px 4px}.open-editors .monaco-list .monaco-list-row.dirty>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row.focused>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row.sticky>.monaco-action-bar,.open-editors .monaco-list .monaco-list-row:hover>.monaco-action-bar{visibility:visible}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .action-label{display:block;padding:2px}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .codicon{color:inherit}.open-editors .monaco-list .monaco-list-row.dirty:not(:hover)>.monaco-action-bar .codicon-pinned:before{content:var(--vscode-icon-pinned-dirty-content);font-family:var(--vscode-icon-pinned-dirty-font-family)}.open-editors .monaco-list .monaco-list-row.dirty:not(:hover)>.monaco-action-bar .codicon-close:before{content:var(--vscode-icon-circle-filled-content);font-family:var(--vscode-icon-circle-filled-font-family)}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .action-close-all-files,.open-editors .monaco-list .monaco-list-row>.monaco-action-bar .save-all{height:22px;width:23px}.open-editors .monaco-list .monaco-list-row>.editor-group,.open-editors .monaco-list .monaco-list-row>.open-editor{flex:1}.open-editors .monaco-list .monaco-list-row{display:flex;padding-left:22px}.open-editors .monaco-list .monaco-list-row>.monaco-action-bar{align-items:center;display:flex;visibility:hidden}.open-editors .monaco-list .monaco-list-row .editor-group{cursor:default;font-size:11px;font-weight:700;text-transform:uppercase}.composite:lang(ja) .open-editors .monaco-list .monaco-list-row .editor-group,.composite:lang(ko) .open-editors .monaco-list .monaco-list-row .editor-group,.composite:lang(zh-Hans) .open-editors .monaco-list .monaco-list-row .editor-group,.composite:lang(zh-Hant) .open-editors .monaco-list .monaco-list-row .editor-group{font-weight:400}.open-editors .editor-group,.open-editors .open-editor{height:22px;line-height:22px}.open-editors .editor-group,.open-editors .open-editor>a{overflow:hidden;text-overflow:ellipsis}.monaco-workbench.hc-black .open-editors .editor-group,.monaco-workbench.hc-black .open-editors .open-editor,.monaco-workbench.hc-light .open-editors .editor-group,.monaco-workbench.hc-light .open-editors .open-editor{line-height:20px}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|