@codingame/monaco-vscode-api 4.5.0 → 4.5.2
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/editor.api.d.ts +8 -0
- package/extensions.js +10 -2
- package/localExtensionHost.d.ts +41 -0
- package/package.json +10 -8
- package/service-override/accessibility.d.ts +5 -0
- package/service-override/ai.d.ts +5 -0
- package/service-override/authentication.d.ts +5 -0
- package/service-override/base.d.ts +5 -0
- package/service-override/bulkEdit.d.ts +5 -0
- package/service-override/chat.d.ts +5 -0
- package/service-override/comments.d.ts +5 -0
- package/service-override/configuration.d.ts +31 -0
- package/service-override/debug.d.ts +5 -0
- package/service-override/dialogs.d.ts +12 -0
- package/service-override/editSessions.d.ts +5 -0
- package/service-override/editor.d.ts +10 -0
- package/service-override/emmet.d.ts +5 -0
- package/service-override/environment.d.ts +10 -0
- package/service-override/explorer.d.ts +5 -0
- package/service-override/extensionGallery.d.ts +12 -0
- package/service-override/extensions.d.ts +43 -0
- package/service-override/files.d.ts +164 -0
- package/service-override/host.d.ts +5 -0
- package/service-override/interactive.d.ts +5 -0
- package/service-override/issue.d.ts +5 -0
- package/service-override/keybindings.d.ts +21 -0
- package/service-override/languageDetectionWorker.d.ts +5 -0
- package/service-override/languages.d.ts +6 -0
- package/service-override/layout.d.ts +128 -0
- package/service-override/lifecycle.d.ts +5 -0
- package/service-override/localization.d.ts +14 -0
- package/service-override/log.d.ts +14 -0
- package/service-override/markers.d.ts +5 -0
- package/service-override/model.d.ts +5 -0
- package/service-override/monarch.d.ts +5 -0
- package/service-override/multiDiffEditor.d.ts +5 -0
- package/service-override/notebook.d.ts +5 -0
- package/service-override/notifications.d.ts +5 -0
- package/service-override/outline.d.ts +5 -0
- package/service-override/output.d.ts +10 -0
- package/service-override/performance.d.ts +5 -0
- package/service-override/preferences.d.ts +5 -0
- package/service-override/quickaccess.d.ts +11 -0
- package/service-override/relauncher.d.ts +5 -0
- package/service-override/remoteAgent.d.ts +12 -0
- package/service-override/scm.d.ts +5 -0
- package/service-override/search.d.ts +12 -0
- package/service-override/secretStorage.d.ts +5 -0
- package/service-override/share.d.ts +5 -0
- package/service-override/snippets.d.ts +9 -0
- package/service-override/speech.d.ts +5 -0
- package/service-override/storage.d.ts +66 -0
- package/service-override/survey.d.ts +5 -0
- package/service-override/task.d.ts +5 -0
- package/service-override/terminal.d.ts +71 -0
- package/service-override/testing.d.ts +5 -0
- package/service-override/textmate.d.ts +6 -0
- package/service-override/theme.d.ts +7 -0
- package/service-override/timeline.d.ts +5 -0
- package/service-override/update.d.ts +5 -0
- package/service-override/userDataSync.d.ts +5 -0
- package/service-override/viewBanner.d.ts +6 -0
- package/service-override/viewCommon.d.ts +6 -0
- package/service-override/viewStatusBar.d.ts +6 -0
- package/service-override/viewTitleBar.d.ts +5 -0
- package/service-override/views.d.ts +47 -0
- package/service-override/walkthrough.d.ts +5 -0
- package/service-override/welcome.d.ts +5 -0
- package/service-override/workbench.d.ts +18 -0
- package/service-override/workingCopy.d.ts +5 -0
- package/service-override/workspaceTrust.d.ts +5 -0
- package/services.js +1 -0
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +4 -2
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/iframe.js +3 -1
- package/vscode/src/vs/base/browser/indexedDB.d.ts +17 -0
- package/vscode/src/vs/base/browser/indexedDB.js +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -9
- package/vscode/src/vs/base/browser/ui/button/button.js +16 -19
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +168 -165
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +5 -8
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +19 -18
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -15
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +13 -16
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +10 -12
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +13 -14
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -39
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +3 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +6 -6
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +7 -7
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -2
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +24 -23
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -15
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +25 -25
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +10 -10
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +62 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +11 -10
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +177 -152
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +7 -7
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +4 -4
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +2 -1
- package/vscode/src/vs/base/common/actions.js +6 -5
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/arraysFind.js +3 -1
- package/vscode/src/vs/base/common/assert.js +2 -2
- package/vscode/src/vs/base/common/async.js +3 -3
- package/vscode/src/vs/base/common/buffer.js +2 -2
- package/vscode/src/vs/base/common/codiconsUtil.js +1 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/date.js +70 -284
- package/vscode/src/vs/base/common/decorators.js +2 -2
- package/vscode/src/vs/base/common/diff/diff.js +1 -1
- package/vscode/src/vs/base/common/errorMessage.js +12 -22
- package/vscode/src/vs/base/common/errors.js +2 -2
- package/vscode/src/vs/base/common/event.js +2 -2
- package/vscode/src/vs/base/common/extpath.js +1 -1
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/history.js +1 -1
- package/vscode/src/vs/base/common/jsonEdit.js +6 -4
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -45
- package/vscode/src/vs/base/common/keyCodes.js +3 -1
- package/vscode/src/vs/base/common/keybindingLabels.js +29 -108
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/lifecycle.js +5 -5
- package/vscode/src/vs/base/common/map.js +11 -11
- package/vscode/src/vs/base/common/objects.js +1 -1
- package/vscode/src/vs/base/common/path.js +2 -2
- package/vscode/src/vs/base/common/platform.js +7 -26
- package/vscode/src/vs/base/common/stream.js +1 -1
- package/vscode/src/vs/base/common/strings.js +2 -2
- package/vscode/src/vs/base/common/ternarySearchTree.js +3 -3
- package/vscode/src/vs/base/common/types.js +7 -5
- package/vscode/src/vs/base/common/uri.js +11 -5
- package/vscode/src/vs/base/common/worker/simpleWorker.js +7 -7
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +47 -42
- package/vscode/src/vs/editor/browser/coreCommands.js +104 -115
- package/vscode/src/vs/editor/browser/editorExtensions.js +24 -35
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -2
- package/vscode/src/vs/editor/browser/services/bulkEditService.js +1 -1
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +18 -22
- package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +129 -128
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +25 -68
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +66 -99
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +10 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +15 -34
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +25 -41
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +27 -51
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +40 -31
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -20
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +8 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -15
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +83 -154
- package/vscode/src/vs/editor/common/config/editorOptions.js +863 -1427
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +110 -253
- package/vscode/src/vs/editor/common/core/lineRange.js +4 -2
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -3
- package/vscode/src/vs/editor/common/core/textEdit.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +80 -239
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +5 -8
- package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -2
- package/vscode/src/vs/editor/common/languages.js +68 -71
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +12 -12
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +47 -36
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +3 -3
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +2 -2
- package/vscode/src/vs/editor/common/model/textModel.js +9 -9
- package/vscode/src/vs/editor/common/model/textModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.js +2 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +56 -115
- package/vscode/src/vs/editor/common/textModelGuides.js +1 -1
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +2 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +79 -67
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +12 -12
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +12 -31
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +25 -40
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +4 -11
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -6
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +28 -76
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +36 -25
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +54 -143
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +8 -7
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +30 -37
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +25 -54
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +15 -28
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +30 -37
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +24 -31
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -24
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +11 -34
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +37 -70
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +15 -14
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +6 -13
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +33 -50
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +37 -68
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +4 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +20 -27
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +8 -7
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +83 -120
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +59 -143
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +51 -117
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +13 -32
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +2 -2
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +4 -15
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +28 -35
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +21 -52
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +38 -77
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +109 -246
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +21 -23
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +40 -30
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +23 -34
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +31 -42
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +33 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +24 -23
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +31 -95
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +41 -32
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +18 -37
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +11 -18
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +29 -76
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +80 -99
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +30 -63
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +45 -42
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +11 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +28 -23
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +39 -60
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +3 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +2 -5
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +135 -234
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +26 -33
- package/vscode/src/vs/editor/contrib/links/browser/links.js +32 -64
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +13 -16
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +122 -195
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +17 -20
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +16 -32
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +43 -86
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -24
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +46 -170
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -10
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +54 -76
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +37 -45
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +73 -86
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +23 -38
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +13 -80
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +20 -56
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +55 -72
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +161 -147
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +43 -95
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +21 -28
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +16 -23
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +11 -10
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +67 -66
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +6 -13
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +3 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +72 -136
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +11 -26
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +19 -22
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +66 -59
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +72 -51
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +7 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +2 -2
- package/vscode/src/vs/nls.js +1 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +88 -255
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +9 -16
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +21 -41
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +18 -45
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +19 -24
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +40 -51
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +73 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.js +24 -23
- package/vscode/src/vs/platform/actions/common/actions.contribution.js +5 -0
- package/vscode/src/vs/platform/actions/common/actions.js +4 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +21 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +49 -51
- package/vscode/src/vs/platform/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +38 -61
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +68 -51
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +168 -130
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +14 -45
- package/vscode/src/vs/platform/contextkey/common/scanner.js +12 -26
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +18 -33
- package/vscode/src/vs/platform/dnd/browser/dnd.js +24 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +8 -15
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +335 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +915 -0
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +36 -43
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +43 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +23 -16
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.d.ts +48 -0
- package/vscode/src/vs/platform/files/common/files.js +41 -58
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +59 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +28 -21
- package/vscode/src/vs/platform/hover/browser/hover.js +2 -2
- package/vscode/src/vs/platform/instantiation/common/instantiation.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -7
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +21 -20
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +75 -6
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +4 -2
- package/vscode/src/vs/platform/list/browser/listService.js +159 -189
- package/vscode/src/vs/platform/log/common/log.js +20 -19
- package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
- package/vscode/src/vs/platform/markers/common/markers.js +15 -14
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +34 -47
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +183 -193
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +107 -98
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +9 -8
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +5 -12
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +13 -0
- package/vscode/src/vs/platform/request/common/request.js +31 -40
- package/vscode/src/vs/platform/terminal/common/terminal.js +3 -1
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +28 -59
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -40
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +151 -350
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +51 -170
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +63 -90
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -35
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +14 -53
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +13 -32
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +14 -37
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +6 -13
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +9 -24
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +64 -207
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +111 -114
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +51 -54
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +20 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +25 -32
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +7 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +173 -35
- package/vscode/src/vs/platform/workspace/common/workspace.js +8 -9
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +55 -46
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +10 -4
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +17 -15
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +40 -24
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +37 -34
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +22 -7
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +16 -16
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +9 -9
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +272 -200
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +49 -42
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +6 -13
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +20 -14
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +20 -18
- package/vscode/src/vs/workbench/api/common/extHostNotebookRenderers.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostOutput.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +41 -38
- package/vscode/src/vs/workbench/api/common/extHostTask.js +15 -11
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +22 -21
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +109 -94
- package/vscode/src/vs/workbench/api/common/extHostTestItem.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +9 -7
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +6 -6
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +17 -10
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +11 -11
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +31 -27
- package/vscode/src/vs/workbench/api/common/extHostUriOpener.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostUrls.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebview.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostWebviewView.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +51 -48
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +29 -44
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +93 -157
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +270 -614
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +31 -30
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +49 -123
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +63 -119
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +11 -26
- package/vscode/src/vs/workbench/browser/dnd.d.ts +14 -0
- package/vscode/src/vs/workbench/browser/editor.js +62 -55
- package/vscode/src/vs/workbench/browser/labels.js +40 -51
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +61 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +23 -56
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +46 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +72 -115
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +89 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +12 -17
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +11 -18
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +51 -198
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +60 -101
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +51 -48
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +10 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +176 -684
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +51 -104
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +61 -91
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +26 -77
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +19 -27
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +41 -60
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +86 -94
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +124 -353
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +21 -30
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +45 -48
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +34 -31
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -5
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +27 -24
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +21 -18
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +117 -135
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +42 -109
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +11 -10
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +25 -52
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +24 -59
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +22 -30
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +21 -61
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +23 -25
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +32 -50
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +108 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +138 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +58 -196
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +73 -124
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +19 -30
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +6 -5
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +152 -141
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -16
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +62 -72
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +68 -85
- package/vscode/src/vs/workbench/browser/quickaccess.js +12 -12
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +381 -589
- package/vscode/src/vs/workbench/browser/workbench.d.ts +10 -0
- package/vscode/src/vs/workbench/common/configuration.js +33 -52
- package/vscode/src/vs/workbench/common/contextkeys.js +117 -348
- package/vscode/src/vs/workbench/common/contributions.js +9 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -15
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +18 -15
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +14 -11
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +31 -36
- package/vscode/src/vs/workbench/common/theme.js +359 -406
- package/vscode/src/vs/workbench/common/views.js +36 -35
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -488
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +4 -22
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +37 -52
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +56 -127
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +18 -41
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +55 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +27 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +13 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +13 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +17 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +8 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +40 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +83 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +31 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +7 -30
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +29 -64
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +14 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +33 -40
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +24 -61
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +11 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +22 -38
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +23 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +23 -67
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +14 -17
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +25 -45
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +47 -55
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +13 -28
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +29 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +14 -37
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +82 -88
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +19 -22
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +17 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +15 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +33 -64
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +108 -124
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +16 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +43 -79
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +46 -61
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -51
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +30 -44
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +24 -51
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +22 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +18 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +84 -242
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +33 -74
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +220 -412
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +14 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -67
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +62 -273
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +227 -290
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +147 -141
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +4 -11
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +25 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +617 -1086
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +42 -69
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +10 -13
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +9 -15
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +32 -29
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +9 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +26 -35
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +38 -49
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +60 -107
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +71 -100
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +161 -373
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +10 -13
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +11 -22
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +151 -244
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +105 -156
- package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +10 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +18 -21
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +14 -25
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +52 -72
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +122 -155
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +55 -78
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +22 -25
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +8 -16
- package/vscode/src/vs/workbench/contrib/files/common/files.js +61 -84
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +58 -106
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +9 -22
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +6 -9
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +15 -26
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +122 -171
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +53 -78
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +19 -30
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +46 -67
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +56 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +7 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +78 -165
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +14 -18
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +74 -145
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +64 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +19 -50
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +2 -5
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +58 -55
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +97 -157
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +40 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +57 -120
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +19 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +36 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +11 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +50 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +12 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +90 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +8 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +18 -45
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +6 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +58 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +155 -210
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +17 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +63 -82
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +16 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +8 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +8 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +12 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +20 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +89 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +66 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +10 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +48 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +15 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +21 -23
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +32 -44
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +16 -51
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +52 -91
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +52 -231
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +34 -105
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +128 -156
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -82
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +250 -445
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +9 -16
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +123 -180
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +2 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +21 -62
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -10
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +18 -24
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +71 -70
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +35 -146
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +18 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +19 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +134 -123
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +795 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +19 -26
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +168 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +238 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -29
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +42 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +106 -138
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +36 -31
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +4 -11
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -23
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +6 -9
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +28 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +18 -8
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +23 -62
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +99 -18
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +9 -8
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +53 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -6
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +106 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +40 -57
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +11 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +162 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +18 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +39 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +6 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +176 -223
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +6 -0
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/worker/polyfillNestedWorker.js +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +35 -38
- package/vscode/src/vs/workbench/services/language/common/languageService.js +55 -119
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +6 -13
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +33 -60
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +8 -15
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +79 -72
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +54 -141
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +50 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +30 -42
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +185 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +92 -101
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +50 -45
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +41 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.d.ts +11 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +15 -30
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +4 -1
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +3 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +32 -35
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +48 -83
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +26 -45
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +14 -23
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +22 -62
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +49 -78
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +48 -87
- package/tools/l10n.js +0 -177
|
@@ -86,6 +86,7 @@ import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
|
86
86
|
import { IUpdateService } from '../../../../platform/update/common/update.service.js';
|
|
87
87
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
88
88
|
var InstallAction_1, InstallInOtherServerAction_1, UninstallAction_1, ToggleAutoUpdateForExtensionAction_1, ToggleAutoUpdatesForPublisherAction_1, MigrateDeprecatedExtensionAction_1, ManageExtensionAction_1, TogglePreReleaseExtensionAction_1, InstallAnotherVersionAction_1, EnableForWorkspaceAction_1, EnableGloballyAction_1, DisableForWorkspaceAction_1, DisableGloballyAction_1, ExtensionRuntimeStateAction_1, SetColorThemeAction_1, SetFileIconThemeAction_1, SetProductIconThemeAction_1, SetLanguageAction_1, ClearLanguageAction_1, ShowRecommendedExtensionAction_1, InstallRecommendedExtensionAction_1, IgnoreExtensionRecommendationAction_1, UndoIgnoreExtensionRecommendationAction_1, ExtensionStatusLabelAction_1, ToggleSyncExtensionAction_1, ExtensionStatusAction_1, ReinstallAction_1, InstallSpecificVersionOfExtensionAction_1;
|
|
89
|
+
const _moduleId = "vs/workbench/contrib/extensions/browser/extensionsActions";
|
|
89
90
|
let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAction extends Action {
|
|
90
91
|
constructor(extension, version, installOperation, error, productService, openerService, notificationService, dialogService, commandService, logService, extensionManagementServerService, instantiationService, galleryService, extensionManifestPropertiesService) {
|
|
91
92
|
super('extension.promptExtensionInstallFailure');
|
|
@@ -110,15 +111,10 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
110
111
|
}
|
|
111
112
|
this.logService.error(this.error);
|
|
112
113
|
if (this.error.name === ExtensionManagementErrorCode.Unsupported) {
|
|
113
|
-
const productName = isWeb ? ( localizeWithPath(
|
|
114
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
115
|
-
'VS Code for Web',
|
|
116
|
-
"{0} for the Web",
|
|
117
|
-
this.productService.nameLong
|
|
118
|
-
)) : this.productService.nameLong;
|
|
114
|
+
const productName = isWeb ? ( localizeWithPath(_moduleId, 0, "{0} for the Web", this.productService.nameLong)) : this.productService.nameLong;
|
|
119
115
|
const message = ( localizeWithPath(
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
_moduleId,
|
|
117
|
+
1,
|
|
122
118
|
"The '{0}' extension is not available in {1}. Click 'More Information' to learn more.",
|
|
123
119
|
this.extension.displayName || this.extension.identifier.id,
|
|
124
120
|
productName
|
|
@@ -126,19 +122,11 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
126
122
|
const { confirmed } = await this.dialogService.confirm({
|
|
127
123
|
type: Severity$1.Info,
|
|
128
124
|
message,
|
|
129
|
-
primaryButton: ( localizeWithPath(
|
|
130
|
-
|
|
131
|
-
{ key: 'more information', comment: ['&& denotes a mnemonic'] },
|
|
132
|
-
"&&More Information"
|
|
133
|
-
)),
|
|
134
|
-
cancelButton: ( localizeWithPath(
|
|
135
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
136
|
-
'close',
|
|
137
|
-
"Close"
|
|
138
|
-
))
|
|
125
|
+
primaryButton: ( localizeWithPath(_moduleId, 2, "&&More Information")),
|
|
126
|
+
cancelButton: ( localizeWithPath(_moduleId, 3, "Close"))
|
|
139
127
|
});
|
|
140
128
|
if (confirmed) {
|
|
141
|
-
this.openerService.open(isWeb ? ( URI.parse('https://aka.ms/vscode-web-extensions-guide')) : ( URI.parse('https://aka.ms/vscode-remote')));
|
|
129
|
+
this.openerService.open(isWeb ? ( (URI.parse('https://aka.ms/vscode-web-extensions-guide'))) : ( (URI.parse('https://aka.ms/vscode-remote'))));
|
|
142
130
|
}
|
|
143
131
|
return;
|
|
144
132
|
}
|
|
@@ -147,22 +135,14 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
147
135
|
type: 'error',
|
|
148
136
|
message: getErrorMessage(this.error),
|
|
149
137
|
buttons: [{
|
|
150
|
-
label: ( localizeWithPath(
|
|
151
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
152
|
-
'install prerelease',
|
|
153
|
-
"Install Pre-Release"
|
|
154
|
-
)),
|
|
138
|
+
label: ( localizeWithPath(_moduleId, 4, "Install Pre-Release")),
|
|
155
139
|
run: () => {
|
|
156
140
|
const installAction = this.instantiationService.createInstance(InstallAction, { installPreReleaseVersion: true });
|
|
157
141
|
installAction.extension = this.extension;
|
|
158
142
|
return installAction.run();
|
|
159
143
|
}
|
|
160
144
|
}],
|
|
161
|
-
cancelButton: ( localizeWithPath(
|
|
162
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
163
|
-
'cancel',
|
|
164
|
-
"Cancel"
|
|
165
|
-
))
|
|
145
|
+
cancelButton: ( localizeWithPath(_moduleId, 5, "Cancel"))
|
|
166
146
|
});
|
|
167
147
|
return;
|
|
168
148
|
}
|
|
@@ -174,41 +154,33 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
174
154
|
await this.dialogService.prompt({
|
|
175
155
|
type: 'error',
|
|
176
156
|
message: ( localizeWithPath(
|
|
177
|
-
|
|
178
|
-
|
|
157
|
+
_moduleId,
|
|
158
|
+
6,
|
|
179
159
|
"{0} cannot verify the '{1}' extension. Are you sure you want to install it?",
|
|
180
160
|
this.productService.nameLong,
|
|
181
161
|
this.extension.displayName || this.extension.identifier.id
|
|
182
162
|
)),
|
|
183
163
|
buttons: [{
|
|
184
|
-
label: ( localizeWithPath(
|
|
185
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
186
|
-
'install anyway',
|
|
187
|
-
"Install Anyway"
|
|
188
|
-
)),
|
|
164
|
+
label: ( localizeWithPath(_moduleId, 7, "Install Anyway")),
|
|
189
165
|
run: () => {
|
|
190
166
|
const installAction = this.instantiationService.createInstance(InstallAction, { donotVerifySignature: true });
|
|
191
167
|
installAction.extension = this.extension;
|
|
192
168
|
return installAction.run();
|
|
193
169
|
}
|
|
194
170
|
}],
|
|
195
|
-
cancelButton: ( localizeWithPath(
|
|
196
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
197
|
-
'cancel',
|
|
198
|
-
"Cancel"
|
|
199
|
-
))
|
|
171
|
+
cancelButton: ( localizeWithPath(_moduleId, 5, "Cancel"))
|
|
200
172
|
});
|
|
201
173
|
return;
|
|
202
174
|
}
|
|
203
175
|
const operationMessage = this.installOperation === 3 ? ( localizeWithPath(
|
|
204
|
-
|
|
205
|
-
|
|
176
|
+
_moduleId,
|
|
177
|
+
8,
|
|
206
178
|
"Error while updating '{0}' extension.",
|
|
207
179
|
this.extension.displayName || this.extension.identifier.id
|
|
208
180
|
))
|
|
209
181
|
: ( localizeWithPath(
|
|
210
|
-
|
|
211
|
-
|
|
182
|
+
_moduleId,
|
|
183
|
+
9,
|
|
212
184
|
"Error while installing '{0}' extension.",
|
|
213
185
|
this.extension.displayName || this.extension.identifier.id
|
|
214
186
|
));
|
|
@@ -217,29 +189,21 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
217
189
|
const downloadUrl = await this.getDownloadUrl();
|
|
218
190
|
if (downloadUrl) {
|
|
219
191
|
additionalMessage = ( localizeWithPath(
|
|
220
|
-
|
|
221
|
-
|
|
192
|
+
_moduleId,
|
|
193
|
+
10,
|
|
222
194
|
"Please check the [log]({0}) for more details.",
|
|
223
195
|
`command:${showWindowLogActionId}`
|
|
224
196
|
));
|
|
225
197
|
promptChoices.push({
|
|
226
|
-
label: ( localizeWithPath(
|
|
227
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
228
|
-
'download',
|
|
229
|
-
"Try Downloading Manually..."
|
|
230
|
-
)),
|
|
198
|
+
label: ( localizeWithPath(_moduleId, 11, "Try Downloading Manually...")),
|
|
231
199
|
run: () => this.openerService.open(downloadUrl).then(() => {
|
|
232
200
|
this.notificationService.prompt(Severity$1.Info, ( localizeWithPath(
|
|
233
|
-
|
|
234
|
-
|
|
201
|
+
_moduleId,
|
|
202
|
+
12,
|
|
235
203
|
'Once downloaded, please manually install the downloaded VSIX of \'{0}\'.',
|
|
236
204
|
this.extension.identifier.id
|
|
237
205
|
)), [{
|
|
238
|
-
label: ( localizeWithPath(
|
|
239
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
240
|
-
'installVSIX',
|
|
241
|
-
"Install from VSIX..."
|
|
242
|
-
)),
|
|
206
|
+
label: ( localizeWithPath(_moduleId, 13, "Install from VSIX...")),
|
|
243
207
|
run: () => this.commandService.executeCommand(SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID)
|
|
244
208
|
}]);
|
|
245
209
|
})
|
|
@@ -277,23 +241,25 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
277
241
|
if (targetPlatform === "unknown" ) {
|
|
278
242
|
return undefined;
|
|
279
243
|
}
|
|
280
|
-
return (
|
|
281
|
-
|
|
282
|
-
|
|
244
|
+
return (
|
|
245
|
+
(URI.parse(
|
|
246
|
+
`${this.productService.extensionsGallery.serviceUrl}/publishers/${this.extension.publisher}/vsextensions/${this.extension.name}/${this.version}/vspackage${targetPlatform !== "undefined" ? `?targetPlatform=${targetPlatform}` : ''}`
|
|
247
|
+
))
|
|
248
|
+
);
|
|
283
249
|
}
|
|
284
250
|
};
|
|
285
|
-
PromptExtensionInstallFailureAction = ( __decorate([
|
|
286
|
-
( __param(4, IProductService)),
|
|
287
|
-
( __param(5, IOpenerService)),
|
|
288
|
-
( __param(6, INotificationService)),
|
|
289
|
-
( __param(7, IDialogService)),
|
|
290
|
-
( __param(8, ICommandService)),
|
|
291
|
-
( __param(9, ILogService)),
|
|
292
|
-
( __param(10, IExtensionManagementServerService)),
|
|
293
|
-
( __param(11, IInstantiationService)),
|
|
294
|
-
( __param(12, IExtensionGalleryService)),
|
|
295
|
-
( __param(13, IExtensionManifestPropertiesService))
|
|
296
|
-
], PromptExtensionInstallFailureAction));
|
|
251
|
+
PromptExtensionInstallFailureAction = ( (__decorate([
|
|
252
|
+
( (__param(4, IProductService))),
|
|
253
|
+
( (__param(5, IOpenerService))),
|
|
254
|
+
( (__param(6, INotificationService))),
|
|
255
|
+
( (__param(7, IDialogService))),
|
|
256
|
+
( (__param(8, ICommandService))),
|
|
257
|
+
( (__param(9, ILogService))),
|
|
258
|
+
( (__param(10, IExtensionManagementServerService))),
|
|
259
|
+
( (__param(11, IInstantiationService))),
|
|
260
|
+
( (__param(12, IExtensionGalleryService))),
|
|
261
|
+
( (__param(13, IExtensionManifestPropertiesService)))
|
|
262
|
+
], PromptExtensionInstallFailureAction)));
|
|
297
263
|
class ExtensionAction extends Action {
|
|
298
264
|
constructor() {
|
|
299
265
|
super(...arguments);
|
|
@@ -321,18 +287,18 @@ class ActionWithDropDownAction extends ExtensionAction {
|
|
|
321
287
|
this._menuActions = [];
|
|
322
288
|
this.extensionActions = flatten(actionsGroups);
|
|
323
289
|
this.update();
|
|
324
|
-
this._register(Event.any(...( this.extensionActions.map(a => a.onDidChange)))(() => this.update(true)));
|
|
290
|
+
this._register(Event.any(...( (this.extensionActions.map(a => a.onDidChange))))(() => this.update(true)));
|
|
325
291
|
this.extensionActions.forEach(a => this._register(a));
|
|
326
292
|
}
|
|
327
293
|
update(donotUpdateActions) {
|
|
328
294
|
if (!donotUpdateActions) {
|
|
329
295
|
this.extensionActions.forEach(a => a.update());
|
|
330
296
|
}
|
|
331
|
-
const enabledActionsGroups = ( this.actionsGroups.map(actionsGroup => actionsGroup.filter(a => a.enabled)));
|
|
297
|
+
const enabledActionsGroups = ( (this.actionsGroups.map(actionsGroup => actionsGroup.filter(a => a.enabled))));
|
|
332
298
|
let actions = [];
|
|
333
299
|
for (const enabledActions of enabledActionsGroups) {
|
|
334
300
|
if (enabledActions.length) {
|
|
335
|
-
actions = [...actions, ...enabledActions, ( new Separator())];
|
|
301
|
+
actions = [...actions, ...enabledActions, ( (new Separator()))];
|
|
336
302
|
}
|
|
337
303
|
}
|
|
338
304
|
actions = actions.length ? actions.slice(0, actions.length - 1) : actions;
|
|
@@ -366,11 +332,7 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
366
332
|
this.updateLabel();
|
|
367
333
|
}
|
|
368
334
|
constructor(options, extensionsWorkbenchService, instantiationService, runtimeExtensionService, workbenchThemeService, labelService, dialogService, preferencesService, telemetryService, contextService) {
|
|
369
|
-
super('extensions.install', ( localizeWithPath(
|
|
370
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
371
|
-
'install',
|
|
372
|
-
"Install"
|
|
373
|
-
)), InstallAction_1.Class, false);
|
|
335
|
+
super('extensions.install', ( localizeWithPath(_moduleId, 14, "Install")), InstallAction_1.Class, false);
|
|
374
336
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
375
337
|
this.instantiationService = instantiationService;
|
|
376
338
|
this.runtimeExtensionService = runtimeExtensionService;
|
|
@@ -381,7 +343,7 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
381
343
|
this.telemetryService = telemetryService;
|
|
382
344
|
this.contextService = contextService;
|
|
383
345
|
this._manifest = null;
|
|
384
|
-
this.updateThrottler = ( new Throttler());
|
|
346
|
+
this.updateThrottler = ( (new Throttler()));
|
|
385
347
|
this.options = { ...options, isMachineScoped: false };
|
|
386
348
|
this.update();
|
|
387
349
|
this._register(this.labelService.onDidChangeFormatters(() => this.updateLabel(), this));
|
|
@@ -411,39 +373,35 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
411
373
|
}
|
|
412
374
|
if (this.extension.deprecationInfo) {
|
|
413
375
|
let detail = ( localizeWithPath(
|
|
414
|
-
|
|
415
|
-
|
|
376
|
+
_moduleId,
|
|
377
|
+
15,
|
|
416
378
|
"This extension is deprecated as it is no longer being maintained."
|
|
417
379
|
));
|
|
418
380
|
let DeprecationChoice;
|
|
419
|
-
( (function(DeprecationChoice) {
|
|
381
|
+
( ((function(DeprecationChoice) {
|
|
420
382
|
DeprecationChoice[DeprecationChoice["InstallAnyway"] = 0] = "InstallAnyway";
|
|
421
383
|
DeprecationChoice[DeprecationChoice["ShowAlternateExtension"] = 1] = "ShowAlternateExtension";
|
|
422
384
|
DeprecationChoice[DeprecationChoice["ConfigureSettings"] = 2] = "ConfigureSettings";
|
|
423
385
|
DeprecationChoice[DeprecationChoice["Cancel"] = 3] = "Cancel";
|
|
424
|
-
})(DeprecationChoice || (DeprecationChoice = {})));
|
|
386
|
+
})(DeprecationChoice || (DeprecationChoice = {}))));
|
|
425
387
|
const buttons = [
|
|
426
388
|
{
|
|
427
|
-
label: ( localizeWithPath(
|
|
428
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
429
|
-
'install anyway',
|
|
430
|
-
"Install Anyway"
|
|
431
|
-
)),
|
|
389
|
+
label: ( localizeWithPath(_moduleId, 7, "Install Anyway")),
|
|
432
390
|
run: () => DeprecationChoice.InstallAnyway
|
|
433
391
|
}
|
|
434
392
|
];
|
|
435
393
|
if (this.extension.deprecationInfo.extension) {
|
|
436
394
|
detail = ( localizeWithPath(
|
|
437
|
-
|
|
438
|
-
|
|
395
|
+
_moduleId,
|
|
396
|
+
16,
|
|
439
397
|
"This extension is deprecated. Use the {0} extension instead.",
|
|
440
398
|
this.extension.deprecationInfo.extension.displayName
|
|
441
399
|
));
|
|
442
400
|
const alternateExtension = this.extension.deprecationInfo.extension;
|
|
443
401
|
buttons.push({
|
|
444
402
|
label: ( localizeWithPath(
|
|
445
|
-
|
|
446
|
-
|
|
403
|
+
_moduleId,
|
|
404
|
+
17,
|
|
447
405
|
"&&Open {0}",
|
|
448
406
|
this.extension.deprecationInfo.extension.displayName
|
|
449
407
|
)),
|
|
@@ -456,31 +414,27 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
456
414
|
}
|
|
457
415
|
else if (this.extension.deprecationInfo.settings) {
|
|
458
416
|
detail = ( localizeWithPath(
|
|
459
|
-
|
|
460
|
-
|
|
417
|
+
_moduleId,
|
|
418
|
+
18,
|
|
461
419
|
"This extension is deprecated as this functionality is now built-in to VS Code."
|
|
462
420
|
));
|
|
463
421
|
const settings = this.extension.deprecationInfo.settings;
|
|
464
422
|
buttons.push({
|
|
465
|
-
label: ( localizeWithPath(
|
|
466
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
467
|
-
{ key: 'configure in settings', comment: ['&& denotes a mnemonic'] },
|
|
468
|
-
"&&Configure Settings"
|
|
469
|
-
)),
|
|
423
|
+
label: ( localizeWithPath(_moduleId, 19, "&&Configure Settings")),
|
|
470
424
|
run: async () => {
|
|
471
|
-
await this.preferencesService.openSettings({ query: ( settings.map(setting => `@id:${setting}`)).join(' ') });
|
|
425
|
+
await this.preferencesService.openSettings({ query: ( (settings.map(setting => `@id:${setting}`))).join(' ') });
|
|
472
426
|
return DeprecationChoice.ConfigureSettings;
|
|
473
427
|
}
|
|
474
428
|
});
|
|
475
429
|
}
|
|
476
430
|
else if (this.extension.deprecationInfo.additionalInfo) {
|
|
477
|
-
detail = ( new MarkdownString(`${detail} ${this.extension.deprecationInfo.additionalInfo}`));
|
|
431
|
+
detail = ( (new MarkdownString(`${detail} ${this.extension.deprecationInfo.additionalInfo}`)));
|
|
478
432
|
}
|
|
479
433
|
const { result } = await this.dialogService.prompt({
|
|
480
434
|
type: Severity$1.Warning,
|
|
481
435
|
message: ( localizeWithPath(
|
|
482
|
-
|
|
483
|
-
|
|
436
|
+
_moduleId,
|
|
437
|
+
20,
|
|
484
438
|
"Are you sure you want to install '{0}'?",
|
|
485
439
|
this.extension.displayName
|
|
486
440
|
)),
|
|
@@ -501,8 +455,8 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
501
455
|
}
|
|
502
456
|
this.extensionsWorkbenchService.open(this.extension, { showPreReleaseVersion: this.options.installPreReleaseVersion });
|
|
503
457
|
alert(( localizeWithPath(
|
|
504
|
-
|
|
505
|
-
|
|
458
|
+
_moduleId,
|
|
459
|
+
21,
|
|
506
460
|
"Installing extension {0} started. An editor is now open with more details on this extension",
|
|
507
461
|
this.extension.displayName
|
|
508
462
|
)));
|
|
@@ -510,13 +464,13 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
510
464
|
const extension = await this.install(this.extension);
|
|
511
465
|
if (extension?.local) {
|
|
512
466
|
alert(( localizeWithPath(
|
|
513
|
-
|
|
514
|
-
|
|
467
|
+
_moduleId,
|
|
468
|
+
22,
|
|
515
469
|
"Installing extension {0} is completed.",
|
|
516
470
|
this.extension.displayName
|
|
517
471
|
)));
|
|
518
472
|
const runningExtension = await this.getRunningExtension(extension.local);
|
|
519
|
-
if (runningExtension && !(runningExtension.activationEvents && ( runningExtension.activationEvents.some(activationEent => activationEent.startsWith('onLanguage'))))) {
|
|
473
|
+
if (runningExtension && !(runningExtension.activationEvents && ( (runningExtension.activationEvents.some(activationEent => activationEent.startsWith('onLanguage')))))) {
|
|
520
474
|
const action = await this.getThemeAction(extension);
|
|
521
475
|
if (action) {
|
|
522
476
|
action.extension = extension;
|
|
@@ -532,15 +486,15 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
532
486
|
}
|
|
533
487
|
async getThemeAction(extension) {
|
|
534
488
|
const colorThemes = await this.workbenchThemeService.getColorThemes();
|
|
535
|
-
if (( colorThemes.some(theme => isThemeFromExtension(theme, extension)))) {
|
|
489
|
+
if (( (colorThemes.some(theme => isThemeFromExtension(theme, extension))))) {
|
|
536
490
|
return this.instantiationService.createInstance(SetColorThemeAction);
|
|
537
491
|
}
|
|
538
492
|
const fileIconThemes = await this.workbenchThemeService.getFileIconThemes();
|
|
539
|
-
if (( fileIconThemes.some(theme => isThemeFromExtension(theme, extension)))) {
|
|
493
|
+
if (( (fileIconThemes.some(theme => isThemeFromExtension(theme, extension))))) {
|
|
540
494
|
return this.instantiationService.createInstance(SetFileIconThemeAction);
|
|
541
495
|
}
|
|
542
496
|
const productIconThemes = await this.workbenchThemeService.getProductIconThemes();
|
|
543
|
-
if (( productIconThemes.some(theme => isThemeFromExtension(theme, extension)))) {
|
|
497
|
+
if (( (productIconThemes.some(theme => isThemeFromExtension(theme, extension))))) {
|
|
544
498
|
return this.instantiationService.createInstance(SetProductIconThemeAction);
|
|
545
499
|
}
|
|
546
500
|
return undefined;
|
|
@@ -560,15 +514,17 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
560
514
|
return runningExtension;
|
|
561
515
|
}
|
|
562
516
|
if (this.runtimeExtensionService.canAddExtension(toExtensionDescription(extension))) {
|
|
563
|
-
return (
|
|
564
|
-
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
517
|
+
return (
|
|
518
|
+
(new Promise((c, e) => {
|
|
519
|
+
const disposable = this.runtimeExtensionService.onDidChangeExtensions(async () => {
|
|
520
|
+
const runningExtension = await this.runtimeExtensionService.getExtension(extension.identifier.id);
|
|
521
|
+
if (runningExtension) {
|
|
522
|
+
disposable.dispose();
|
|
523
|
+
c(runningExtension);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}))
|
|
527
|
+
);
|
|
572
528
|
}
|
|
573
529
|
return null;
|
|
574
530
|
}
|
|
@@ -577,52 +533,28 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
577
533
|
}
|
|
578
534
|
getLabel(primary) {
|
|
579
535
|
if (this.extension?.isWorkspaceScoped && this.extension.resourceExtension && this.contextService.isInsideWorkspace(this.extension.resourceExtension.location)) {
|
|
580
|
-
return ( localizeWithPath(
|
|
581
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
582
|
-
'install workspace version',
|
|
583
|
-
"Install Workspace Extension"
|
|
584
|
-
));
|
|
536
|
+
return ( localizeWithPath(_moduleId, 23, "Install Workspace Extension"));
|
|
585
537
|
}
|
|
586
538
|
if (this.options.installPreReleaseVersion && this.extension?.hasPreReleaseVersion) {
|
|
587
|
-
return primary ? ( localizeWithPath(
|
|
588
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
589
|
-
'install pre-release',
|
|
590
|
-
"Install Pre-Release"
|
|
591
|
-
)) : ( localizeWithPath(
|
|
592
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
593
|
-
'install pre-release version',
|
|
594
|
-
"Install Pre-Release Version"
|
|
595
|
-
));
|
|
539
|
+
return primary ? ( localizeWithPath(_moduleId, 24, "Install Pre-Release")) : ( localizeWithPath(_moduleId, 25, "Install Pre-Release Version"));
|
|
596
540
|
}
|
|
597
541
|
if (this.extension?.hasPreReleaseVersion) {
|
|
598
|
-
return primary ? ( localizeWithPath(
|
|
599
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
600
|
-
'install',
|
|
601
|
-
"Install"
|
|
602
|
-
)) : ( localizeWithPath(
|
|
603
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
604
|
-
'install release version',
|
|
605
|
-
"Install Release Version"
|
|
606
|
-
));
|
|
542
|
+
return primary ? ( localizeWithPath(_moduleId, 14, "Install")) : ( localizeWithPath(_moduleId, 26, "Install Release Version"));
|
|
607
543
|
}
|
|
608
|
-
return ( localizeWithPath(
|
|
609
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
610
|
-
'install',
|
|
611
|
-
"Install"
|
|
612
|
-
));
|
|
544
|
+
return ( localizeWithPath(_moduleId, 14, "Install"));
|
|
613
545
|
}
|
|
614
546
|
};
|
|
615
|
-
InstallAction = InstallAction_1 = ( __decorate([
|
|
616
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
617
|
-
( __param(2, IInstantiationService)),
|
|
618
|
-
( __param(3, IExtensionService)),
|
|
619
|
-
( __param(4, IWorkbenchThemeService)),
|
|
620
|
-
( __param(5, ILabelService)),
|
|
621
|
-
( __param(6, IDialogService)),
|
|
622
|
-
( __param(7, IPreferencesService)),
|
|
623
|
-
( __param(8, ITelemetryService)),
|
|
624
|
-
( __param(9, IWorkspaceContextService))
|
|
625
|
-
], InstallAction));
|
|
547
|
+
InstallAction = InstallAction_1 = ( (__decorate([
|
|
548
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
549
|
+
( (__param(2, IInstantiationService))),
|
|
550
|
+
( (__param(3, IExtensionService))),
|
|
551
|
+
( (__param(4, IWorkbenchThemeService))),
|
|
552
|
+
( (__param(5, ILabelService))),
|
|
553
|
+
( (__param(6, IDialogService))),
|
|
554
|
+
( (__param(7, IPreferencesService))),
|
|
555
|
+
( (__param(8, ITelemetryService))),
|
|
556
|
+
( (__param(9, IWorkspaceContextService)))
|
|
557
|
+
], InstallAction)));
|
|
626
558
|
let InstallDropdownAction = class InstallDropdownAction extends ActionWithDropDownAction {
|
|
627
559
|
set manifest(manifest) {
|
|
628
560
|
this.extensionActions.forEach(a => a.manifest = manifest);
|
|
@@ -640,16 +572,12 @@ let InstallDropdownAction = class InstallDropdownAction extends ActionWithDropDo
|
|
|
640
572
|
return action.getLabel(true);
|
|
641
573
|
}
|
|
642
574
|
};
|
|
643
|
-
InstallDropdownAction = ( __decorate([
|
|
644
|
-
( __param(0, IInstantiationService)),
|
|
645
|
-
( __param(1, IExtensionsWorkbenchService))
|
|
646
|
-
], InstallDropdownAction));
|
|
575
|
+
InstallDropdownAction = ( (__decorate([
|
|
576
|
+
( (__param(0, IInstantiationService))),
|
|
577
|
+
( (__param(1, IExtensionsWorkbenchService)))
|
|
578
|
+
], InstallDropdownAction)));
|
|
647
579
|
class InstallingLabelAction extends ExtensionAction {
|
|
648
|
-
static { this.LABEL = ( localizeWithPath(
|
|
649
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
650
|
-
'installing',
|
|
651
|
-
"Installing"
|
|
652
|
-
)); }
|
|
580
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 27, "Installing")); }
|
|
653
581
|
static { this.CLASS = `${ExtensionAction.LABEL_ACTION_CLASS} install installing`; }
|
|
654
582
|
constructor() {
|
|
655
583
|
super('extension.installing', InstallingLabelAction.LABEL, InstallingLabelAction.CLASS, false);
|
|
@@ -660,16 +588,8 @@ class InstallingLabelAction extends ExtensionAction {
|
|
|
660
588
|
}
|
|
661
589
|
let InstallInOtherServerAction = class InstallInOtherServerAction extends ExtensionAction {
|
|
662
590
|
static { InstallInOtherServerAction_1 = this; }
|
|
663
|
-
static { this.INSTALL_LABEL = ( localizeWithPath(
|
|
664
|
-
|
|
665
|
-
'install',
|
|
666
|
-
"Install"
|
|
667
|
-
)); }
|
|
668
|
-
static { this.INSTALLING_LABEL = ( localizeWithPath(
|
|
669
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
670
|
-
'installing',
|
|
671
|
-
"Installing"
|
|
672
|
-
)); }
|
|
591
|
+
static { this.INSTALL_LABEL = ( localizeWithPath(_moduleId, 14, "Install")); }
|
|
592
|
+
static { this.INSTALLING_LABEL = ( localizeWithPath(_moduleId, 27, "Installing")); }
|
|
673
593
|
static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} prominent install`; }
|
|
674
594
|
static { this.InstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} install installing`; }
|
|
675
595
|
constructor(id, server, canInstallAnyWhere, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
|
|
@@ -743,19 +663,19 @@ let InstallInOtherServerAction = class InstallInOtherServerAction extends Extens
|
|
|
743
663
|
}
|
|
744
664
|
this.extensionsWorkbenchService.open(this.extension);
|
|
745
665
|
alert(( localizeWithPath(
|
|
746
|
-
|
|
747
|
-
|
|
666
|
+
_moduleId,
|
|
667
|
+
21,
|
|
748
668
|
"Installing extension {0} started. An editor is now open with more details on this extension",
|
|
749
669
|
this.extension.displayName
|
|
750
670
|
)));
|
|
751
671
|
return this.extensionsWorkbenchService.installInServer(this.extension, this.server);
|
|
752
672
|
}
|
|
753
673
|
};
|
|
754
|
-
InstallInOtherServerAction = InstallInOtherServerAction_1 = ( __decorate([
|
|
755
|
-
( __param(3, IExtensionsWorkbenchService)),
|
|
756
|
-
( __param(4, IExtensionManagementServerService)),
|
|
757
|
-
( __param(5, IExtensionManifestPropertiesService))
|
|
758
|
-
], InstallInOtherServerAction));
|
|
674
|
+
InstallInOtherServerAction = InstallInOtherServerAction_1 = ( (__decorate([
|
|
675
|
+
( (__param(3, IExtensionsWorkbenchService))),
|
|
676
|
+
( (__param(4, IExtensionManagementServerService))),
|
|
677
|
+
( (__param(5, IExtensionManifestPropertiesService)))
|
|
678
|
+
], InstallInOtherServerAction)));
|
|
759
679
|
let RemoteInstallAction = class RemoteInstallAction extends InstallInOtherServerAction {
|
|
760
680
|
constructor(canInstallAnyWhere, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
|
|
761
681
|
super(`extensions.remoteinstall`, extensionManagementServerService.remoteExtensionManagementServer, canInstallAnyWhere, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService);
|
|
@@ -763,65 +683,49 @@ let RemoteInstallAction = class RemoteInstallAction extends InstallInOtherServer
|
|
|
763
683
|
getInstallLabel() {
|
|
764
684
|
return this.extensionManagementServerService.remoteExtensionManagementServer
|
|
765
685
|
? ( localizeWithPath(
|
|
766
|
-
|
|
767
|
-
|
|
686
|
+
_moduleId,
|
|
687
|
+
28,
|
|
768
688
|
"Install in {0}",
|
|
769
689
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
770
690
|
))
|
|
771
691
|
: InstallInOtherServerAction.INSTALL_LABEL;
|
|
772
692
|
}
|
|
773
693
|
};
|
|
774
|
-
RemoteInstallAction = ( __decorate([
|
|
775
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
776
|
-
( __param(2, IExtensionManagementServerService)),
|
|
777
|
-
( __param(3, IExtensionManifestPropertiesService))
|
|
778
|
-
], RemoteInstallAction));
|
|
694
|
+
RemoteInstallAction = ( (__decorate([
|
|
695
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
696
|
+
( (__param(2, IExtensionManagementServerService))),
|
|
697
|
+
( (__param(3, IExtensionManifestPropertiesService)))
|
|
698
|
+
], RemoteInstallAction)));
|
|
779
699
|
let LocalInstallAction = class LocalInstallAction extends InstallInOtherServerAction {
|
|
780
700
|
constructor(extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
|
|
781
701
|
super(`extensions.localinstall`, extensionManagementServerService.localExtensionManagementServer, false, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService);
|
|
782
702
|
}
|
|
783
703
|
getInstallLabel() {
|
|
784
|
-
return ( localizeWithPath(
|
|
785
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
786
|
-
'install locally',
|
|
787
|
-
"Install Locally"
|
|
788
|
-
));
|
|
704
|
+
return ( localizeWithPath(_moduleId, 29, "Install Locally"));
|
|
789
705
|
}
|
|
790
706
|
};
|
|
791
|
-
LocalInstallAction = ( __decorate([
|
|
792
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
793
|
-
( __param(1, IExtensionManagementServerService)),
|
|
794
|
-
( __param(2, IExtensionManifestPropertiesService))
|
|
795
|
-
], LocalInstallAction));
|
|
707
|
+
LocalInstallAction = ( (__decorate([
|
|
708
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
709
|
+
( (__param(1, IExtensionManagementServerService))),
|
|
710
|
+
( (__param(2, IExtensionManifestPropertiesService)))
|
|
711
|
+
], LocalInstallAction)));
|
|
796
712
|
let WebInstallAction = class WebInstallAction extends InstallInOtherServerAction {
|
|
797
713
|
constructor(extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
|
|
798
714
|
super(`extensions.webInstall`, extensionManagementServerService.webExtensionManagementServer, false, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService);
|
|
799
715
|
}
|
|
800
716
|
getInstallLabel() {
|
|
801
|
-
return ( localizeWithPath(
|
|
802
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
803
|
-
'install browser',
|
|
804
|
-
"Install in Browser"
|
|
805
|
-
));
|
|
717
|
+
return ( localizeWithPath(_moduleId, 30, "Install in Browser"));
|
|
806
718
|
}
|
|
807
719
|
};
|
|
808
|
-
WebInstallAction = ( __decorate([
|
|
809
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
810
|
-
( __param(1, IExtensionManagementServerService)),
|
|
811
|
-
( __param(2, IExtensionManifestPropertiesService))
|
|
812
|
-
], WebInstallAction));
|
|
720
|
+
WebInstallAction = ( (__decorate([
|
|
721
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
722
|
+
( (__param(1, IExtensionManagementServerService))),
|
|
723
|
+
( (__param(2, IExtensionManifestPropertiesService)))
|
|
724
|
+
], WebInstallAction)));
|
|
813
725
|
let UninstallAction = class UninstallAction extends ExtensionAction {
|
|
814
726
|
static { UninstallAction_1 = this; }
|
|
815
|
-
static { this.UninstallLabel = ( localizeWithPath(
|
|
816
|
-
|
|
817
|
-
'uninstallAction',
|
|
818
|
-
"Uninstall"
|
|
819
|
-
)); }
|
|
820
|
-
static { this.UninstallingLabel = ( localizeWithPath(
|
|
821
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
822
|
-
'Uninstalling',
|
|
823
|
-
"Uninstalling"
|
|
824
|
-
)); }
|
|
727
|
+
static { this.UninstallLabel = ( localizeWithPath(_moduleId, 31, "Uninstall")); }
|
|
728
|
+
static { this.UninstallingLabel = ( localizeWithPath(_moduleId, 32, "Uninstalling")); }
|
|
825
729
|
static { this.UninstallClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall`; }
|
|
826
730
|
static { this.UnInstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall uninstalling`; }
|
|
827
731
|
constructor(extensionsWorkbenchService, dialogService) {
|
|
@@ -860,16 +764,16 @@ let UninstallAction = class UninstallAction extends ExtensionAction {
|
|
|
860
764
|
return;
|
|
861
765
|
}
|
|
862
766
|
alert(( localizeWithPath(
|
|
863
|
-
|
|
864
|
-
|
|
767
|
+
_moduleId,
|
|
768
|
+
33,
|
|
865
769
|
"Uninstalling extension {0} started.",
|
|
866
770
|
this.extension.displayName
|
|
867
771
|
)));
|
|
868
772
|
try {
|
|
869
773
|
await this.extensionsWorkbenchService.uninstall(this.extension);
|
|
870
774
|
alert(( localizeWithPath(
|
|
871
|
-
|
|
872
|
-
|
|
775
|
+
_moduleId,
|
|
776
|
+
34,
|
|
873
777
|
"Please reload Visual Studio Code to complete the uninstallation of the extension {0}.",
|
|
874
778
|
this.extension.displayName
|
|
875
779
|
)));
|
|
@@ -879,17 +783,17 @@ let UninstallAction = class UninstallAction extends ExtensionAction {
|
|
|
879
783
|
}
|
|
880
784
|
}
|
|
881
785
|
};
|
|
882
|
-
UninstallAction = UninstallAction_1 = ( __decorate([
|
|
883
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
884
|
-
( __param(1, IDialogService))
|
|
885
|
-
], UninstallAction));
|
|
786
|
+
UninstallAction = UninstallAction_1 = ( (__decorate([
|
|
787
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
788
|
+
( (__param(1, IDialogService)))
|
|
789
|
+
], UninstallAction)));
|
|
886
790
|
class AbstractUpdateAction extends ExtensionAction {
|
|
887
791
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} prominent update`; }
|
|
888
792
|
static { this.DisabledClass = `${AbstractUpdateAction.EnabledClass} disabled`; }
|
|
889
793
|
constructor(id, label, extensionsWorkbenchService) {
|
|
890
794
|
super(id, label, AbstractUpdateAction.DisabledClass, false);
|
|
891
795
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
892
|
-
this.updateThrottler = ( new Throttler());
|
|
796
|
+
this.updateThrottler = ( (new Throttler()));
|
|
893
797
|
this.update();
|
|
894
798
|
}
|
|
895
799
|
update() {
|
|
@@ -912,27 +816,14 @@ class AbstractUpdateAction extends ExtensionAction {
|
|
|
912
816
|
}
|
|
913
817
|
let UpdateAction = class UpdateAction extends AbstractUpdateAction {
|
|
914
818
|
constructor(verbose, extensionsWorkbenchService, instantiationService) {
|
|
915
|
-
super(`extensions.update`, ( localizeWithPath(
|
|
916
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
917
|
-
'update',
|
|
918
|
-
"Update"
|
|
919
|
-
)), extensionsWorkbenchService);
|
|
819
|
+
super(`extensions.update`, ( localizeWithPath(_moduleId, 35, "Update")), extensionsWorkbenchService);
|
|
920
820
|
this.verbose = verbose;
|
|
921
821
|
this.instantiationService = instantiationService;
|
|
922
822
|
}
|
|
923
823
|
update() {
|
|
924
824
|
super.update();
|
|
925
825
|
if (this.extension) {
|
|
926
|
-
this.label = this.verbose ? ( localizeWithPath(
|
|
927
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
928
|
-
'update to',
|
|
929
|
-
"Update to v{0}",
|
|
930
|
-
this.extension.latestVersion
|
|
931
|
-
)) : ( localizeWithPath(
|
|
932
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
933
|
-
'update',
|
|
934
|
-
"Update"
|
|
935
|
-
));
|
|
826
|
+
this.label = this.verbose ? ( localizeWithPath(_moduleId, 36, "Update to v{0}", this.extension.latestVersion)) : ( localizeWithPath(_moduleId, 35, "Update"));
|
|
936
827
|
}
|
|
937
828
|
}
|
|
938
829
|
async run() {
|
|
@@ -940,8 +831,8 @@ let UpdateAction = class UpdateAction extends AbstractUpdateAction {
|
|
|
940
831
|
return;
|
|
941
832
|
}
|
|
942
833
|
alert(( localizeWithPath(
|
|
943
|
-
|
|
944
|
-
|
|
834
|
+
_moduleId,
|
|
835
|
+
37,
|
|
945
836
|
"Updating extension {0} to version {1} started.",
|
|
946
837
|
this.extension.displayName,
|
|
947
838
|
this.extension.latestVersion
|
|
@@ -952,8 +843,8 @@ let UpdateAction = class UpdateAction extends AbstractUpdateAction {
|
|
|
952
843
|
try {
|
|
953
844
|
await this.extensionsWorkbenchService.install(extension, extension.local?.preRelease ? { installPreReleaseVersion: true } : undefined);
|
|
954
845
|
alert(( localizeWithPath(
|
|
955
|
-
|
|
956
|
-
|
|
846
|
+
_moduleId,
|
|
847
|
+
38,
|
|
957
848
|
"Updating extension {0} to version {1} completed.",
|
|
958
849
|
extension.displayName,
|
|
959
850
|
extension.latestVersion
|
|
@@ -964,18 +855,14 @@ let UpdateAction = class UpdateAction extends AbstractUpdateAction {
|
|
|
964
855
|
}
|
|
965
856
|
}
|
|
966
857
|
};
|
|
967
|
-
UpdateAction = ( __decorate([
|
|
968
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
969
|
-
( __param(2, IInstantiationService))
|
|
970
|
-
], UpdateAction));
|
|
858
|
+
UpdateAction = ( (__decorate([
|
|
859
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
860
|
+
( (__param(2, IInstantiationService)))
|
|
861
|
+
], UpdateAction)));
|
|
971
862
|
let ToggleAutoUpdateForExtensionAction = class ToggleAutoUpdateForExtensionAction extends ExtensionAction {
|
|
972
863
|
static { ToggleAutoUpdateForExtensionAction_1 = this; }
|
|
973
864
|
static { this.ID = 'workbench.extensions.action.toggleAutoUpdateForExtension'; }
|
|
974
|
-
static { this.LABEL = ( localize2WithPath(
|
|
975
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
976
|
-
'enableAutoUpdateLabel',
|
|
977
|
-
"Auto Update"
|
|
978
|
-
)); }
|
|
865
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 39, "Auto Update")); }
|
|
979
866
|
static { this.EnabledClass = `${ExtensionAction.EXTENSION_ACTION_CLASS} auto-update`; }
|
|
980
867
|
static { this.DisabledClass = `${ToggleAutoUpdateForExtensionAction_1.EnabledClass} hide`; }
|
|
981
868
|
constructor(enableWhenOutdated, enableWhenAutoUpdateValue, extensionsWorkbenchService, configurationService) {
|
|
@@ -1016,35 +903,21 @@ let ToggleAutoUpdateForExtensionAction = class ToggleAutoUpdateForExtensionActio
|
|
|
1016
903
|
const enableAutoUpdate = !this.extensionsWorkbenchService.isAutoUpdateEnabledFor(this.extension);
|
|
1017
904
|
await this.extensionsWorkbenchService.updateAutoUpdateEnablementFor(this.extension, enableAutoUpdate);
|
|
1018
905
|
if (enableAutoUpdate) {
|
|
1019
|
-
alert(( localizeWithPath(
|
|
1020
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1021
|
-
'enableAutoUpdate',
|
|
1022
|
-
"Enabled auto updates for",
|
|
1023
|
-
this.extension.displayName
|
|
1024
|
-
)));
|
|
906
|
+
alert(( localizeWithPath(_moduleId, 40, "Enabled auto updates for", this.extension.displayName)));
|
|
1025
907
|
}
|
|
1026
908
|
else {
|
|
1027
|
-
alert(( localizeWithPath(
|
|
1028
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1029
|
-
'disableAutoUpdate',
|
|
1030
|
-
"Disabled auto updates for",
|
|
1031
|
-
this.extension.displayName
|
|
1032
|
-
)));
|
|
909
|
+
alert(( localizeWithPath(_moduleId, 41, "Disabled auto updates for", this.extension.displayName)));
|
|
1033
910
|
}
|
|
1034
911
|
}
|
|
1035
912
|
};
|
|
1036
|
-
ToggleAutoUpdateForExtensionAction = ToggleAutoUpdateForExtensionAction_1 = ( __decorate([
|
|
1037
|
-
( __param(2, IExtensionsWorkbenchService)),
|
|
1038
|
-
( __param(3, IConfigurationService))
|
|
1039
|
-
], ToggleAutoUpdateForExtensionAction));
|
|
913
|
+
ToggleAutoUpdateForExtensionAction = ToggleAutoUpdateForExtensionAction_1 = ( (__decorate([
|
|
914
|
+
( (__param(2, IExtensionsWorkbenchService))),
|
|
915
|
+
( (__param(3, IConfigurationService)))
|
|
916
|
+
], ToggleAutoUpdateForExtensionAction)));
|
|
1040
917
|
let ToggleAutoUpdatesForPublisherAction = class ToggleAutoUpdatesForPublisherAction extends ExtensionAction {
|
|
1041
918
|
static { ToggleAutoUpdatesForPublisherAction_1 = this; }
|
|
1042
919
|
static { this.ID = 'workbench.extensions.action.toggleAutoUpdatesForPublisher'; }
|
|
1043
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1044
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1045
|
-
'toggleAutoUpdatesForPublisherLabel',
|
|
1046
|
-
"Auto Update All (From Publisher)"
|
|
1047
|
-
)); }
|
|
920
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 42, "Auto Update All (From Publisher)")); }
|
|
1048
921
|
constructor(extensionsWorkbenchService) {
|
|
1049
922
|
super(ToggleAutoUpdatesForPublisherAction_1.ID, ToggleAutoUpdatesForPublisherAction_1.LABEL);
|
|
1050
923
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -1055,44 +928,30 @@ let ToggleAutoUpdatesForPublisherAction = class ToggleAutoUpdatesForPublisherAct
|
|
|
1055
928
|
return;
|
|
1056
929
|
}
|
|
1057
930
|
alert(( localizeWithPath(
|
|
1058
|
-
|
|
1059
|
-
|
|
931
|
+
_moduleId,
|
|
932
|
+
43,
|
|
1060
933
|
"Ignoring updates published by {0}.",
|
|
1061
934
|
this.extension.publisherDisplayName
|
|
1062
935
|
)));
|
|
1063
936
|
const enableAutoUpdate = !this.extensionsWorkbenchService.isAutoUpdateEnabledFor(this.extension.publisher);
|
|
1064
937
|
await this.extensionsWorkbenchService.updateAutoUpdateEnablementFor(this.extension.publisher, enableAutoUpdate);
|
|
1065
938
|
if (enableAutoUpdate) {
|
|
1066
|
-
alert(( localizeWithPath(
|
|
1067
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1068
|
-
'enableAutoUpdate',
|
|
1069
|
-
"Enabled auto updates for",
|
|
1070
|
-
this.extension.displayName
|
|
1071
|
-
)));
|
|
939
|
+
alert(( localizeWithPath(_moduleId, 40, "Enabled auto updates for", this.extension.displayName)));
|
|
1072
940
|
}
|
|
1073
941
|
else {
|
|
1074
|
-
alert(( localizeWithPath(
|
|
1075
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1076
|
-
'disableAutoUpdate',
|
|
1077
|
-
"Disabled auto updates for",
|
|
1078
|
-
this.extension.displayName
|
|
1079
|
-
)));
|
|
942
|
+
alert(( localizeWithPath(_moduleId, 41, "Disabled auto updates for", this.extension.displayName)));
|
|
1080
943
|
}
|
|
1081
944
|
}
|
|
1082
945
|
};
|
|
1083
|
-
ToggleAutoUpdatesForPublisherAction = ToggleAutoUpdatesForPublisherAction_1 = ( __decorate([
|
|
1084
|
-
( __param(0, IExtensionsWorkbenchService))
|
|
1085
|
-
], ToggleAutoUpdatesForPublisherAction));
|
|
946
|
+
ToggleAutoUpdatesForPublisherAction = ToggleAutoUpdatesForPublisherAction_1 = ( (__decorate([
|
|
947
|
+
( (__param(0, IExtensionsWorkbenchService)))
|
|
948
|
+
], ToggleAutoUpdatesForPublisherAction)));
|
|
1086
949
|
let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction extends ExtensionAction {
|
|
1087
950
|
static { MigrateDeprecatedExtensionAction_1 = this; }
|
|
1088
951
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} migrate`; }
|
|
1089
952
|
static { this.DisabledClass = `${MigrateDeprecatedExtensionAction_1.EnabledClass} disabled`; }
|
|
1090
953
|
constructor(small, extensionsWorkbenchService) {
|
|
1091
|
-
super('extensionsAction.migrateDeprecatedExtension', ( localizeWithPath(
|
|
1092
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1093
|
-
'migrateExtension',
|
|
1094
|
-
"Migrate"
|
|
1095
|
-
)), MigrateDeprecatedExtensionAction_1.DisabledClass, false);
|
|
954
|
+
super('extensionsAction.migrateDeprecatedExtension', ( localizeWithPath(_moduleId, 44, "Migrate")), MigrateDeprecatedExtensionAction_1.DisabledClass, false);
|
|
1096
955
|
this.small = small;
|
|
1097
956
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1098
957
|
this.update();
|
|
@@ -1110,22 +969,18 @@ let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction ex
|
|
|
1110
969
|
return;
|
|
1111
970
|
}
|
|
1112
971
|
const id = this.extension.deprecationInfo.extension.id;
|
|
1113
|
-
if (( this.extensionsWorkbenchService.local.some(e => areSameExtensions(e.identifier, { id })))) {
|
|
972
|
+
if (( (this.extensionsWorkbenchService.local.some(e => areSameExtensions(e.identifier, { id }))))) {
|
|
1114
973
|
return;
|
|
1115
974
|
}
|
|
1116
975
|
this.enabled = true;
|
|
1117
976
|
this.class = MigrateDeprecatedExtensionAction_1.EnabledClass;
|
|
1118
977
|
this.tooltip = ( localizeWithPath(
|
|
1119
|
-
|
|
1120
|
-
|
|
978
|
+
_moduleId,
|
|
979
|
+
45,
|
|
1121
980
|
"Migrate to {0}",
|
|
1122
981
|
this.extension.deprecationInfo.extension.displayName
|
|
1123
982
|
));
|
|
1124
|
-
this.label = this.small ? ( localizeWithPath(
|
|
1125
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1126
|
-
'migrate',
|
|
1127
|
-
"Migrate"
|
|
1128
|
-
)) : this.tooltip;
|
|
983
|
+
this.label = this.small ? ( localizeWithPath(_moduleId, 46, "Migrate")) : this.tooltip;
|
|
1129
984
|
}
|
|
1130
985
|
async run() {
|
|
1131
986
|
if (!this.extension?.deprecationInfo?.extension) {
|
|
@@ -1137,9 +992,9 @@ let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction ex
|
|
|
1137
992
|
await this.extensionsWorkbenchService.install(extension, { isMachineScoped: local?.isMachineScoped });
|
|
1138
993
|
}
|
|
1139
994
|
};
|
|
1140
|
-
MigrateDeprecatedExtensionAction = MigrateDeprecatedExtensionAction_1 = ( __decorate([
|
|
1141
|
-
( __param(1, IExtensionsWorkbenchService))
|
|
1142
|
-
], MigrateDeprecatedExtensionAction));
|
|
995
|
+
MigrateDeprecatedExtensionAction = MigrateDeprecatedExtensionAction_1 = ( (__decorate([
|
|
996
|
+
( (__param(1, IExtensionsWorkbenchService)))
|
|
997
|
+
], MigrateDeprecatedExtensionAction)));
|
|
1143
998
|
class ExtensionActionWithDropdownActionViewItem extends ActionWithDropdownActionViewItem {
|
|
1144
999
|
constructor(action, options, contextMenuProvider) {
|
|
1145
1000
|
super(null, action, options, contextMenuProvider);
|
|
@@ -1171,9 +1026,9 @@ let ExtensionDropDownAction = class ExtensionDropDownAction extends ExtensionAct
|
|
|
1171
1026
|
return Promise.resolve();
|
|
1172
1027
|
}
|
|
1173
1028
|
};
|
|
1174
|
-
ExtensionDropDownAction = ( __decorate([
|
|
1175
|
-
( __param(4, IInstantiationService))
|
|
1176
|
-
], ExtensionDropDownAction));
|
|
1029
|
+
ExtensionDropDownAction = ( (__decorate([
|
|
1030
|
+
( (__param(4, IInstantiationService)))
|
|
1031
|
+
], ExtensionDropDownAction)));
|
|
1177
1032
|
let DropDownMenuActionViewItem = class DropDownMenuActionViewItem extends ActionViewItem {
|
|
1178
1033
|
constructor(action, options, contextMenuService) {
|
|
1179
1034
|
super(null, action, { ...options, icon: true, label: true });
|
|
@@ -1197,14 +1052,14 @@ let DropDownMenuActionViewItem = class DropDownMenuActionViewItem extends Action
|
|
|
1197
1052
|
getActions(menuActionGroups) {
|
|
1198
1053
|
let actions = [];
|
|
1199
1054
|
for (const menuActions of menuActionGroups) {
|
|
1200
|
-
actions = [...actions, ...menuActions, ( new Separator())];
|
|
1055
|
+
actions = [...actions, ...menuActions, ( (new Separator()))];
|
|
1201
1056
|
}
|
|
1202
1057
|
return actions.length ? actions.slice(0, actions.length - 1) : actions;
|
|
1203
1058
|
}
|
|
1204
1059
|
};
|
|
1205
|
-
DropDownMenuActionViewItem = ( __decorate([
|
|
1206
|
-
( __param(2, IContextMenuService))
|
|
1207
|
-
], DropDownMenuActionViewItem));
|
|
1060
|
+
DropDownMenuActionViewItem = ( (__decorate([
|
|
1061
|
+
( (__param(2, IContextMenuService)))
|
|
1062
|
+
], DropDownMenuActionViewItem)));
|
|
1208
1063
|
async function getContextMenuActionsGroups(extension, contextKeyService, instantiationService) {
|
|
1209
1064
|
return instantiationService.invokeFunction(async (accessor) => {
|
|
1210
1065
|
const extensionsWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
@@ -1227,7 +1082,7 @@ async function getContextMenuActionsGroups(extension, contextKeyService, instant
|
|
|
1227
1082
|
cksOverlay.push(['extensionHasCommands', extension.local && !!extension.local.manifest.contributes && !!extension.local.manifest.contributes?.commands]);
|
|
1228
1083
|
cksOverlay.push(['isExtensionRecommended', !!extensionRecommendationsService.getAllRecommendationsWithReason()[extension.identifier.id.toLowerCase()]]);
|
|
1229
1084
|
cksOverlay.push(['isExtensionWorkspaceRecommended', extensionRecommendationsService.getAllRecommendationsWithReason()[extension.identifier.id.toLowerCase()]?.reasonId === 0 ]);
|
|
1230
|
-
cksOverlay.push(['isUserIgnoredRecommendation', ( extensionIgnoredRecommendationsService.globalIgnoredRecommendations.some(e => e === extension.identifier.id.toLowerCase()))]);
|
|
1085
|
+
cksOverlay.push(['isUserIgnoredRecommendation', ( (extensionIgnoredRecommendationsService.globalIgnoredRecommendations.some(e => e === extension.identifier.id.toLowerCase())))]);
|
|
1231
1086
|
if (extension.state === 1 ) {
|
|
1232
1087
|
cksOverlay.push(['extensionStatus', 'installed']);
|
|
1233
1088
|
}
|
|
@@ -1237,9 +1092,9 @@ async function getContextMenuActionsGroups(extension, contextKeyService, instant
|
|
|
1237
1092
|
cksOverlay.push(['galleryExtensionHasPreReleaseVersion', extension.gallery?.hasPreReleaseVersion]);
|
|
1238
1093
|
cksOverlay.push(['extensionHasReleaseVersion', extension.hasReleaseVersion]);
|
|
1239
1094
|
const [colorThemes, fileIconThemes, productIconThemes] = await Promise.all([workbenchThemeService.getColorThemes(), workbenchThemeService.getFileIconThemes(), workbenchThemeService.getProductIconThemes()]);
|
|
1240
|
-
cksOverlay.push(['extensionHasColorThemes', ( colorThemes.some(theme => isThemeFromExtension(theme, extension)))]);
|
|
1241
|
-
cksOverlay.push(['extensionHasFileIconThemes', ( fileIconThemes.some(theme => isThemeFromExtension(theme, extension)))]);
|
|
1242
|
-
cksOverlay.push(['extensionHasProductIconThemes', ( productIconThemes.some(theme => isThemeFromExtension(theme, extension)))]);
|
|
1095
|
+
cksOverlay.push(['extensionHasColorThemes', ( (colorThemes.some(theme => isThemeFromExtension(theme, extension))))]);
|
|
1096
|
+
cksOverlay.push(['extensionHasFileIconThemes', ( (fileIconThemes.some(theme => isThemeFromExtension(theme, extension))))]);
|
|
1097
|
+
cksOverlay.push(['extensionHasProductIconThemes', ( (productIconThemes.some(theme => isThemeFromExtension(theme, extension))))]);
|
|
1243
1098
|
cksOverlay.push(['canSetLanguage', extensionsWorkbenchService.canSetLanguage(extension)]);
|
|
1244
1099
|
cksOverlay.push(['isActiveLanguagePackExtension', extension.gallery && language === getLocale(extension.gallery)]);
|
|
1245
1100
|
}
|
|
@@ -1252,12 +1107,12 @@ async function getContextMenuActionsGroups(extension, contextKeyService, instant
|
|
|
1252
1107
|
function toActions(actionsGroups, instantiationService) {
|
|
1253
1108
|
const result = [];
|
|
1254
1109
|
for (const [, actions] of actionsGroups) {
|
|
1255
|
-
result.push(( actions.map(action => {
|
|
1110
|
+
result.push(( (actions.map(action => {
|
|
1256
1111
|
if (action instanceof SubmenuAction) {
|
|
1257
1112
|
return action;
|
|
1258
1113
|
}
|
|
1259
1114
|
return instantiationService.createInstance(MenuItemExtensionAction, action);
|
|
1260
|
-
})));
|
|
1115
|
+
}))));
|
|
1261
1116
|
}
|
|
1262
1117
|
return result;
|
|
1263
1118
|
}
|
|
@@ -1274,11 +1129,7 @@ let ManageExtensionAction = class ManageExtensionAction extends ExtensionDropDow
|
|
|
1274
1129
|
super(ManageExtensionAction_1.ID, '', '', true, instantiationService);
|
|
1275
1130
|
this.extensionService = extensionService;
|
|
1276
1131
|
this.contextKeyService = contextKeyService;
|
|
1277
|
-
this.tooltip = ( localizeWithPath(
|
|
1278
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1279
|
-
'manage',
|
|
1280
|
-
"Manage"
|
|
1281
|
-
));
|
|
1132
|
+
this.tooltip = ( localizeWithPath(_moduleId, 47, "Manage"));
|
|
1282
1133
|
this.update();
|
|
1283
1134
|
}
|
|
1284
1135
|
async getActionGroups() {
|
|
@@ -1340,20 +1191,16 @@ let ManageExtensionAction = class ManageExtensionAction extends ExtensionDropDow
|
|
|
1340
1191
|
}
|
|
1341
1192
|
}
|
|
1342
1193
|
};
|
|
1343
|
-
ManageExtensionAction = ManageExtensionAction_1 = ( __decorate([
|
|
1344
|
-
( __param(0, IInstantiationService)),
|
|
1345
|
-
( __param(1, IExtensionService)),
|
|
1346
|
-
( __param(2, IContextKeyService))
|
|
1347
|
-
], ManageExtensionAction));
|
|
1194
|
+
ManageExtensionAction = ManageExtensionAction_1 = ( (__decorate([
|
|
1195
|
+
( (__param(0, IInstantiationService))),
|
|
1196
|
+
( (__param(1, IExtensionService))),
|
|
1197
|
+
( (__param(2, IContextKeyService)))
|
|
1198
|
+
], ManageExtensionAction)));
|
|
1348
1199
|
class ExtensionEditorManageExtensionAction extends ExtensionDropDownAction {
|
|
1349
1200
|
constructor(contextKeyService, instantiationService) {
|
|
1350
1201
|
super('extensionEditor.manageExtension', '', `${ExtensionAction.ICON_ACTION_CLASS} manage ${ThemeIcon.asClassName(manageExtensionIcon)}`, true, instantiationService);
|
|
1351
1202
|
this.contextKeyService = contextKeyService;
|
|
1352
|
-
this.tooltip = ( localizeWithPath(
|
|
1353
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1354
|
-
'manage',
|
|
1355
|
-
"Manage"
|
|
1356
|
-
));
|
|
1203
|
+
this.tooltip = ( localizeWithPath(_moduleId, 47, "Manage"));
|
|
1357
1204
|
}
|
|
1358
1205
|
update() { }
|
|
1359
1206
|
async run() {
|
|
@@ -1398,17 +1245,13 @@ let MenuItemExtensionAction = class MenuItemExtensionAction extends ExtensionAct
|
|
|
1398
1245
|
}
|
|
1399
1246
|
}
|
|
1400
1247
|
};
|
|
1401
|
-
MenuItemExtensionAction = ( __decorate([
|
|
1402
|
-
( __param(1, IExtensionsWorkbenchService))
|
|
1403
|
-
], MenuItemExtensionAction));
|
|
1248
|
+
MenuItemExtensionAction = ( (__decorate([
|
|
1249
|
+
( (__param(1, IExtensionsWorkbenchService)))
|
|
1250
|
+
], MenuItemExtensionAction)));
|
|
1404
1251
|
let TogglePreReleaseExtensionAction = class TogglePreReleaseExtensionAction extends ExtensionAction {
|
|
1405
1252
|
static { TogglePreReleaseExtensionAction_1 = this; }
|
|
1406
1253
|
static { this.ID = 'workbench.extensions.action.togglePreRlease'; }
|
|
1407
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1408
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1409
|
-
'togglePreRleaseLabel',
|
|
1410
|
-
"Pre-Release"
|
|
1411
|
-
)); }
|
|
1254
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 48, "Pre-Release")); }
|
|
1412
1255
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} pre-release`; }
|
|
1413
1256
|
static { this.DisabledClass = `${TogglePreReleaseExtensionAction_1.EnabledClass} hide`; }
|
|
1414
1257
|
constructor(extensionsWorkbenchService) {
|
|
@@ -1443,26 +1286,14 @@ let TogglePreReleaseExtensionAction = class TogglePreReleaseExtensionAction exte
|
|
|
1443
1286
|
this.enabled = true;
|
|
1444
1287
|
this.class = TogglePreReleaseExtensionAction_1.EnabledClass;
|
|
1445
1288
|
if (this.extension.preRelease) {
|
|
1446
|
-
this.label = ( localizeWithPath(
|
|
1447
|
-
|
|
1448
|
-
'togglePreRleaseDisableLabel',
|
|
1449
|
-
"Switch to Release Version"
|
|
1450
|
-
));
|
|
1451
|
-
this.tooltip = ( localizeWithPath(
|
|
1452
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1453
|
-
'togglePreRleaseDisableTooltip',
|
|
1454
|
-
"This will switch and enable updates to release versions"
|
|
1455
|
-
));
|
|
1289
|
+
this.label = ( localizeWithPath(_moduleId, 49, "Switch to Release Version"));
|
|
1290
|
+
this.tooltip = ( localizeWithPath(_moduleId, 50, "This will switch and enable updates to release versions"));
|
|
1456
1291
|
}
|
|
1457
1292
|
else {
|
|
1458
|
-
this.label = ( localizeWithPath(
|
|
1459
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1460
|
-
'switchToPreReleaseLabel',
|
|
1461
|
-
"Switch to Pre-Release Version"
|
|
1462
|
-
));
|
|
1293
|
+
this.label = ( localizeWithPath(_moduleId, 51, "Switch to Pre-Release Version"));
|
|
1463
1294
|
this.tooltip = ( localizeWithPath(
|
|
1464
|
-
|
|
1465
|
-
|
|
1295
|
+
_moduleId,
|
|
1296
|
+
52,
|
|
1466
1297
|
"This will switch to pre-release version and enable updates to latest version always"
|
|
1467
1298
|
));
|
|
1468
1299
|
}
|
|
@@ -1475,17 +1306,13 @@ let TogglePreReleaseExtensionAction = class TogglePreReleaseExtensionAction exte
|
|
|
1475
1306
|
await this.extensionsWorkbenchService.togglePreRelease(this.extension);
|
|
1476
1307
|
}
|
|
1477
1308
|
};
|
|
1478
|
-
TogglePreReleaseExtensionAction = TogglePreReleaseExtensionAction_1 = ( __decorate([
|
|
1479
|
-
( __param(0, IExtensionsWorkbenchService))
|
|
1480
|
-
], TogglePreReleaseExtensionAction));
|
|
1309
|
+
TogglePreReleaseExtensionAction = TogglePreReleaseExtensionAction_1 = ( (__decorate([
|
|
1310
|
+
( (__param(0, IExtensionsWorkbenchService)))
|
|
1311
|
+
], TogglePreReleaseExtensionAction)));
|
|
1481
1312
|
let InstallAnotherVersionAction = class InstallAnotherVersionAction extends ExtensionAction {
|
|
1482
1313
|
static { InstallAnotherVersionAction_1 = this; }
|
|
1483
1314
|
static { this.ID = 'workbench.extensions.action.install.anotherVersion'; }
|
|
1484
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1485
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1486
|
-
'install another version',
|
|
1487
|
-
"Install Another Version..."
|
|
1488
|
-
)); }
|
|
1315
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 53, "Install Another Version...")); }
|
|
1489
1316
|
constructor(extensionsWorkbenchService, extensionGalleryService, quickInputService, instantiationService, dialogService) {
|
|
1490
1317
|
super(InstallAnotherVersionAction_1.ID, InstallAnotherVersionAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1491
1318
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -1505,37 +1332,21 @@ let InstallAnotherVersionAction = class InstallAnotherVersionAction extends Exte
|
|
|
1505
1332
|
const targetPlatform = await this.extension.server.extensionManagementService.getTargetPlatform();
|
|
1506
1333
|
const allVersions = await this.extensionGalleryService.getAllCompatibleVersions(this.extension.gallery, this.extension.local.preRelease, targetPlatform);
|
|
1507
1334
|
if (!allVersions.length) {
|
|
1508
|
-
await this.dialogService.info(( localizeWithPath(
|
|
1509
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1510
|
-
'no versions',
|
|
1511
|
-
"This extension has no other versions."
|
|
1512
|
-
)));
|
|
1335
|
+
await this.dialogService.info(( localizeWithPath(_moduleId, 54, "This extension has no other versions.")));
|
|
1513
1336
|
return;
|
|
1514
1337
|
}
|
|
1515
|
-
const picks = ( allVersions.map((v, i) => {
|
|
1338
|
+
const picks = ( (allVersions.map((v, i) => {
|
|
1516
1339
|
return {
|
|
1517
1340
|
id: v.version,
|
|
1518
1341
|
label: v.version,
|
|
1519
|
-
description: `${fromNow(( new Date(Date.parse(v.date))), true)}${v.isPreReleaseVersion ? ` (${( localizeWithPath(
|
|
1520
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1521
|
-
'pre-release',
|
|
1522
|
-
"pre-release"
|
|
1523
|
-
))})` : ''}${v.version === this.extension.version ? ` (${( localizeWithPath(
|
|
1524
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1525
|
-
'current',
|
|
1526
|
-
"current"
|
|
1527
|
-
))})` : ''}`,
|
|
1342
|
+
description: `${fromNow(( (new Date(Date.parse(v.date)))), true)}${v.isPreReleaseVersion ? ` (${( localizeWithPath(_moduleId, 55, "pre-release"))})` : ''}${v.version === this.extension.version ? ` (${( localizeWithPath(_moduleId, 56, "current"))})` : ''}`,
|
|
1528
1343
|
latest: i === 0,
|
|
1529
1344
|
ariaLabel: `${v.isPreReleaseVersion ? 'Pre-Release version' : 'Release version'} ${v.version}`,
|
|
1530
1345
|
isPreReleaseVersion: v.isPreReleaseVersion
|
|
1531
1346
|
};
|
|
1532
|
-
}));
|
|
1347
|
+
})));
|
|
1533
1348
|
const pick = await this.quickInputService.pick(picks, {
|
|
1534
|
-
placeHolder: ( localizeWithPath(
|
|
1535
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1536
|
-
'selectVersion',
|
|
1537
|
-
"Select Version to Install"
|
|
1538
|
-
)),
|
|
1349
|
+
placeHolder: ( localizeWithPath(_moduleId, 57, "Select Version to Install")),
|
|
1539
1350
|
matchOnDetail: true
|
|
1540
1351
|
});
|
|
1541
1352
|
if (pick) {
|
|
@@ -1558,30 +1369,22 @@ let InstallAnotherVersionAction = class InstallAnotherVersionAction extends Exte
|
|
|
1558
1369
|
return null;
|
|
1559
1370
|
}
|
|
1560
1371
|
};
|
|
1561
|
-
InstallAnotherVersionAction = InstallAnotherVersionAction_1 = ( __decorate([
|
|
1562
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
1563
|
-
( __param(1, IExtensionGalleryService)),
|
|
1564
|
-
( __param(2, IQuickInputService)),
|
|
1565
|
-
( __param(3, IInstantiationService)),
|
|
1566
|
-
( __param(4, IDialogService))
|
|
1567
|
-
], InstallAnotherVersionAction));
|
|
1372
|
+
InstallAnotherVersionAction = InstallAnotherVersionAction_1 = ( (__decorate([
|
|
1373
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
1374
|
+
( (__param(1, IExtensionGalleryService))),
|
|
1375
|
+
( (__param(2, IQuickInputService))),
|
|
1376
|
+
( (__param(3, IInstantiationService))),
|
|
1377
|
+
( (__param(4, IDialogService)))
|
|
1378
|
+
], InstallAnotherVersionAction)));
|
|
1568
1379
|
let EnableForWorkspaceAction = class EnableForWorkspaceAction extends ExtensionAction {
|
|
1569
1380
|
static { EnableForWorkspaceAction_1 = this; }
|
|
1570
1381
|
static { this.ID = 'extensions.enableForWorkspace'; }
|
|
1571
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1572
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1573
|
-
'enableForWorkspaceAction',
|
|
1574
|
-
"Enable (Workspace)"
|
|
1575
|
-
)); }
|
|
1382
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 58, "Enable (Workspace)")); }
|
|
1576
1383
|
constructor(extensionsWorkbenchService, extensionEnablementService) {
|
|
1577
1384
|
super(EnableForWorkspaceAction_1.ID, EnableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1578
1385
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1579
1386
|
this.extensionEnablementService = extensionEnablementService;
|
|
1580
|
-
this.tooltip = ( localizeWithPath(
|
|
1581
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1582
|
-
'enableForWorkspaceActionToolTip',
|
|
1583
|
-
"Enable this extension only in this workspace"
|
|
1584
|
-
));
|
|
1387
|
+
this.tooltip = ( localizeWithPath(_moduleId, 59, "Enable this extension only in this workspace"));
|
|
1585
1388
|
this.update();
|
|
1586
1389
|
}
|
|
1587
1390
|
update() {
|
|
@@ -1599,27 +1402,19 @@ let EnableForWorkspaceAction = class EnableForWorkspaceAction extends ExtensionA
|
|
|
1599
1402
|
return this.extensionsWorkbenchService.setEnablement(this.extension, 9 );
|
|
1600
1403
|
}
|
|
1601
1404
|
};
|
|
1602
|
-
EnableForWorkspaceAction = EnableForWorkspaceAction_1 = ( __decorate([
|
|
1603
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
1604
|
-
( __param(1, IWorkbenchExtensionEnablementService))
|
|
1605
|
-
], EnableForWorkspaceAction));
|
|
1405
|
+
EnableForWorkspaceAction = EnableForWorkspaceAction_1 = ( (__decorate([
|
|
1406
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
1407
|
+
( (__param(1, IWorkbenchExtensionEnablementService)))
|
|
1408
|
+
], EnableForWorkspaceAction)));
|
|
1606
1409
|
let EnableGloballyAction = class EnableGloballyAction extends ExtensionAction {
|
|
1607
1410
|
static { EnableGloballyAction_1 = this; }
|
|
1608
1411
|
static { this.ID = 'extensions.enableGlobally'; }
|
|
1609
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1610
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1611
|
-
'enableGloballyAction',
|
|
1612
|
-
"Enable"
|
|
1613
|
-
)); }
|
|
1412
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 60, "Enable")); }
|
|
1614
1413
|
constructor(extensionsWorkbenchService, extensionEnablementService) {
|
|
1615
1414
|
super(EnableGloballyAction_1.ID, EnableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1616
1415
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1617
1416
|
this.extensionEnablementService = extensionEnablementService;
|
|
1618
|
-
this.tooltip = ( localizeWithPath(
|
|
1619
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1620
|
-
'enableGloballyActionToolTip',
|
|
1621
|
-
"Enable this extension"
|
|
1622
|
-
));
|
|
1417
|
+
this.tooltip = ( localizeWithPath(_moduleId, 61, "Enable this extension"));
|
|
1623
1418
|
this.update();
|
|
1624
1419
|
}
|
|
1625
1420
|
update() {
|
|
@@ -1637,37 +1432,29 @@ let EnableGloballyAction = class EnableGloballyAction extends ExtensionAction {
|
|
|
1637
1432
|
return this.extensionsWorkbenchService.setEnablement(this.extension, 8 );
|
|
1638
1433
|
}
|
|
1639
1434
|
};
|
|
1640
|
-
EnableGloballyAction = EnableGloballyAction_1 = ( __decorate([
|
|
1641
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
1642
|
-
( __param(1, IWorkbenchExtensionEnablementService))
|
|
1643
|
-
], EnableGloballyAction));
|
|
1435
|
+
EnableGloballyAction = EnableGloballyAction_1 = ( (__decorate([
|
|
1436
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
1437
|
+
( (__param(1, IWorkbenchExtensionEnablementService)))
|
|
1438
|
+
], EnableGloballyAction)));
|
|
1644
1439
|
let DisableForWorkspaceAction = class DisableForWorkspaceAction extends ExtensionAction {
|
|
1645
1440
|
static { DisableForWorkspaceAction_1 = this; }
|
|
1646
1441
|
static { this.ID = 'extensions.disableForWorkspace'; }
|
|
1647
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1648
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1649
|
-
'disableForWorkspaceAction',
|
|
1650
|
-
"Disable (Workspace)"
|
|
1651
|
-
)); }
|
|
1442
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 62, "Disable (Workspace)")); }
|
|
1652
1443
|
constructor(workspaceContextService, extensionsWorkbenchService, extensionEnablementService, extensionService) {
|
|
1653
1444
|
super(DisableForWorkspaceAction_1.ID, DisableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1654
1445
|
this.workspaceContextService = workspaceContextService;
|
|
1655
1446
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1656
1447
|
this.extensionEnablementService = extensionEnablementService;
|
|
1657
1448
|
this.extensionService = extensionService;
|
|
1658
|
-
this.tooltip = ( localizeWithPath(
|
|
1659
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1660
|
-
'disableForWorkspaceActionToolTip',
|
|
1661
|
-
"Disable this extension only in this workspace"
|
|
1662
|
-
));
|
|
1449
|
+
this.tooltip = ( localizeWithPath(_moduleId, 63, "Disable this extension only in this workspace"));
|
|
1663
1450
|
this.update();
|
|
1664
1451
|
this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
|
|
1665
1452
|
}
|
|
1666
1453
|
update() {
|
|
1667
1454
|
this.enabled = false;
|
|
1668
|
-
if (this.extension && this.extension.local && !this.extension.isWorkspaceScoped && ( this.extensionService.extensions.some(
|
|
1455
|
+
if (this.extension && this.extension.local && !this.extension.isWorkspaceScoped && ( (this.extensionService.extensions.some(
|
|
1669
1456
|
e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier) && this.workspaceContextService.getWorkbenchState() !== 1
|
|
1670
|
-
))) {
|
|
1457
|
+
)))) {
|
|
1671
1458
|
this.enabled = this.extension.state === 1
|
|
1672
1459
|
&& ((this.extension.enablementState === 8 || this.extension.enablementState === 9) )
|
|
1673
1460
|
&& this.extensionEnablementService.canChangeWorkspaceEnablement(this.extension.local);
|
|
@@ -1680,38 +1467,30 @@ let DisableForWorkspaceAction = class DisableForWorkspaceAction extends Extensio
|
|
|
1680
1467
|
return this.extensionsWorkbenchService.setEnablement(this.extension, 7 );
|
|
1681
1468
|
}
|
|
1682
1469
|
};
|
|
1683
|
-
DisableForWorkspaceAction = DisableForWorkspaceAction_1 = ( __decorate([
|
|
1684
|
-
( __param(0, IWorkspaceContextService)),
|
|
1685
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
1686
|
-
( __param(2, IWorkbenchExtensionEnablementService)),
|
|
1687
|
-
( __param(3, IExtensionService))
|
|
1688
|
-
], DisableForWorkspaceAction));
|
|
1470
|
+
DisableForWorkspaceAction = DisableForWorkspaceAction_1 = ( (__decorate([
|
|
1471
|
+
( (__param(0, IWorkspaceContextService))),
|
|
1472
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
1473
|
+
( (__param(2, IWorkbenchExtensionEnablementService))),
|
|
1474
|
+
( (__param(3, IExtensionService)))
|
|
1475
|
+
], DisableForWorkspaceAction)));
|
|
1689
1476
|
let DisableGloballyAction = class DisableGloballyAction extends ExtensionAction {
|
|
1690
1477
|
static { DisableGloballyAction_1 = this; }
|
|
1691
1478
|
static { this.ID = 'extensions.disableGlobally'; }
|
|
1692
|
-
static { this.LABEL = ( localizeWithPath(
|
|
1693
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1694
|
-
'disableGloballyAction',
|
|
1695
|
-
"Disable"
|
|
1696
|
-
)); }
|
|
1479
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 64, "Disable")); }
|
|
1697
1480
|
constructor(extensionsWorkbenchService, extensionEnablementService, extensionService) {
|
|
1698
1481
|
super(DisableGloballyAction_1.ID, DisableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1699
1482
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1700
1483
|
this.extensionEnablementService = extensionEnablementService;
|
|
1701
1484
|
this.extensionService = extensionService;
|
|
1702
|
-
this.tooltip = ( localizeWithPath(
|
|
1703
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1704
|
-
'disableGloballyActionToolTip',
|
|
1705
|
-
"Disable this extension"
|
|
1706
|
-
));
|
|
1485
|
+
this.tooltip = ( localizeWithPath(_moduleId, 65, "Disable this extension"));
|
|
1707
1486
|
this.update();
|
|
1708
1487
|
this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
|
|
1709
1488
|
}
|
|
1710
1489
|
update() {
|
|
1711
1490
|
this.enabled = false;
|
|
1712
|
-
if (this.extension && this.extension.local && !this.extension.isWorkspaceScoped && ( this.extensionService.extensions.some(
|
|
1491
|
+
if (this.extension && this.extension.local && !this.extension.isWorkspaceScoped && ( (this.extensionService.extensions.some(
|
|
1713
1492
|
e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier)
|
|
1714
|
-
))) {
|
|
1493
|
+
)))) {
|
|
1715
1494
|
this.enabled = this.extension.state === 1
|
|
1716
1495
|
&& ((this.extension.enablementState === 8 || this.extension.enablementState === 9) )
|
|
1717
1496
|
&& this.extensionEnablementService.canChangeEnablement(this.extension.local);
|
|
@@ -1724,18 +1503,14 @@ let DisableGloballyAction = class DisableGloballyAction extends ExtensionAction
|
|
|
1724
1503
|
return this.extensionsWorkbenchService.setEnablement(this.extension, 6 );
|
|
1725
1504
|
}
|
|
1726
1505
|
};
|
|
1727
|
-
DisableGloballyAction = DisableGloballyAction_1 = ( __decorate([
|
|
1728
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
1729
|
-
( __param(1, IWorkbenchExtensionEnablementService)),
|
|
1730
|
-
( __param(2, IExtensionService))
|
|
1731
|
-
], DisableGloballyAction));
|
|
1506
|
+
DisableGloballyAction = DisableGloballyAction_1 = ( (__decorate([
|
|
1507
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
1508
|
+
( (__param(1, IWorkbenchExtensionEnablementService))),
|
|
1509
|
+
( (__param(2, IExtensionService)))
|
|
1510
|
+
], DisableGloballyAction)));
|
|
1732
1511
|
let EnableDropDownAction = class EnableDropDownAction extends ActionWithDropDownAction {
|
|
1733
1512
|
constructor(instantiationService) {
|
|
1734
|
-
super('extensions.enable', ( localizeWithPath(
|
|
1735
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1736
|
-
'enableAction',
|
|
1737
|
-
"Enable"
|
|
1738
|
-
)), [
|
|
1513
|
+
super('extensions.enable', ( localizeWithPath(_moduleId, 66, "Enable")), [
|
|
1739
1514
|
[
|
|
1740
1515
|
instantiationService.createInstance(EnableGloballyAction),
|
|
1741
1516
|
instantiationService.createInstance(EnableForWorkspaceAction)
|
|
@@ -1743,24 +1518,20 @@ let EnableDropDownAction = class EnableDropDownAction extends ActionWithDropDown
|
|
|
1743
1518
|
]);
|
|
1744
1519
|
}
|
|
1745
1520
|
};
|
|
1746
|
-
EnableDropDownAction = ( __decorate([
|
|
1747
|
-
( __param(0, IInstantiationService))
|
|
1748
|
-
], EnableDropDownAction));
|
|
1521
|
+
EnableDropDownAction = ( (__decorate([
|
|
1522
|
+
( (__param(0, IInstantiationService)))
|
|
1523
|
+
], EnableDropDownAction)));
|
|
1749
1524
|
let DisableDropDownAction = class DisableDropDownAction extends ActionWithDropDownAction {
|
|
1750
1525
|
constructor(instantiationService) {
|
|
1751
|
-
super('extensions.disable', ( localizeWithPath(
|
|
1752
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1753
|
-
'disableAction',
|
|
1754
|
-
"Disable"
|
|
1755
|
-
)), [[
|
|
1526
|
+
super('extensions.disable', ( localizeWithPath(_moduleId, 67, "Disable")), [[
|
|
1756
1527
|
instantiationService.createInstance(DisableGloballyAction),
|
|
1757
1528
|
instantiationService.createInstance(DisableForWorkspaceAction)
|
|
1758
1529
|
]]);
|
|
1759
1530
|
}
|
|
1760
1531
|
};
|
|
1761
|
-
DisableDropDownAction = ( __decorate([
|
|
1762
|
-
( __param(0, IInstantiationService))
|
|
1763
|
-
], DisableDropDownAction));
|
|
1532
|
+
DisableDropDownAction = ( (__decorate([
|
|
1533
|
+
( (__param(0, IInstantiationService)))
|
|
1534
|
+
], DisableDropDownAction)));
|
|
1764
1535
|
let ExtensionRuntimeStateAction = class ExtensionRuntimeStateAction extends ExtensionAction {
|
|
1765
1536
|
static { ExtensionRuntimeStateAction_1 = this; }
|
|
1766
1537
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} reload`; }
|
|
@@ -1798,27 +1569,10 @@ let ExtensionRuntimeStateAction = class ExtensionRuntimeStateAction extends Exte
|
|
|
1798
1569
|
this.enabled = true;
|
|
1799
1570
|
this.class = ExtensionRuntimeStateAction_1.EnabledClass;
|
|
1800
1571
|
this.tooltip = runtimeState.reason;
|
|
1801
|
-
this.label = runtimeState.action === "reloadWindow" ? ( localizeWithPath(
|
|
1802
|
-
'
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
))
|
|
1806
|
-
: runtimeState.action === "restartExtensions" ? ( localizeWithPath(
|
|
1807
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1808
|
-
'restart extensions',
|
|
1809
|
-
'Restart Extensions'
|
|
1810
|
-
))
|
|
1811
|
-
: runtimeState.action === "quitAndInstall" ? ( localizeWithPath(
|
|
1812
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1813
|
-
'restart product',
|
|
1814
|
-
'Restart to Update'
|
|
1815
|
-
))
|
|
1816
|
-
: runtimeState.action === "applyUpdate" || runtimeState.action === "downloadUpdate" ? ( localizeWithPath(
|
|
1817
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1818
|
-
'update product',
|
|
1819
|
-
'Update {0}',
|
|
1820
|
-
this.productService.nameShort
|
|
1821
|
-
)) : '';
|
|
1572
|
+
this.label = runtimeState.action === "reloadWindow" ? ( localizeWithPath(_moduleId, 68, 'Reload Window'))
|
|
1573
|
+
: runtimeState.action === "restartExtensions" ? ( localizeWithPath(_moduleId, 69, 'Restart Extensions'))
|
|
1574
|
+
: runtimeState.action === "quitAndInstall" ? ( localizeWithPath(_moduleId, 70, 'Restart to Update'))
|
|
1575
|
+
: runtimeState.action === "applyUpdate" || runtimeState.action === "downloadUpdate" ? ( localizeWithPath(_moduleId, 71, 'Update {0}', this.productService.nameShort)) : '';
|
|
1822
1576
|
}
|
|
1823
1577
|
async run() {
|
|
1824
1578
|
const runtimeState = this.extension?.runtimeState;
|
|
@@ -1845,14 +1599,14 @@ let ExtensionRuntimeStateAction = class ExtensionRuntimeStateAction extends Exte
|
|
|
1845
1599
|
}
|
|
1846
1600
|
}
|
|
1847
1601
|
};
|
|
1848
|
-
ExtensionRuntimeStateAction = ExtensionRuntimeStateAction_1 = ( __decorate([
|
|
1849
|
-
( __param(0, IHostService)),
|
|
1850
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
1851
|
-
( __param(2, IUpdateService)),
|
|
1852
|
-
( __param(3, IExtensionService)),
|
|
1853
|
-
( __param(4, IProductService)),
|
|
1854
|
-
( __param(5, ITelemetryService))
|
|
1855
|
-
], ExtensionRuntimeStateAction));
|
|
1602
|
+
ExtensionRuntimeStateAction = ExtensionRuntimeStateAction_1 = ( (__decorate([
|
|
1603
|
+
( (__param(0, IHostService))),
|
|
1604
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
1605
|
+
( (__param(2, IUpdateService))),
|
|
1606
|
+
( (__param(3, IExtensionService))),
|
|
1607
|
+
( (__param(4, IProductService))),
|
|
1608
|
+
( (__param(5, ITelemetryService)))
|
|
1609
|
+
], ExtensionRuntimeStateAction)));
|
|
1856
1610
|
function isThemeFromExtension(theme, extension) {
|
|
1857
1611
|
return !!(extension && theme.extensionData && ExtensionIdentifier.equals(theme.extensionData.extensionId, extension.identifier.id));
|
|
1858
1612
|
}
|
|
@@ -1864,11 +1618,7 @@ function getQuickPickEntries(themes, currentTheme, extension, showCurrentTheme)
|
|
|
1864
1618
|
}
|
|
1865
1619
|
}
|
|
1866
1620
|
if (showCurrentTheme) {
|
|
1867
|
-
picks.push({ type: 'separator', label: ( localizeWithPath(
|
|
1868
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1869
|
-
'current',
|
|
1870
|
-
"current"
|
|
1871
|
-
)) });
|
|
1621
|
+
picks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 56, "current")) });
|
|
1872
1622
|
picks.push({ label: currentTheme.label, id: currentTheme.id });
|
|
1873
1623
|
}
|
|
1874
1624
|
return picks;
|
|
@@ -1876,11 +1626,7 @@ function getQuickPickEntries(themes, currentTheme, extension, showCurrentTheme)
|
|
|
1876
1626
|
let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
|
|
1877
1627
|
static { SetColorThemeAction_1 = this; }
|
|
1878
1628
|
static { this.ID = 'workbench.extensions.action.setColorTheme'; }
|
|
1879
|
-
static { this.TITLE = ( localize2WithPath(
|
|
1880
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1881
|
-
'workbench.extensions.action.setColorTheme',
|
|
1882
|
-
'Set Color Theme'
|
|
1883
|
-
)); }
|
|
1629
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 72, 'Set Color Theme')); }
|
|
1884
1630
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1885
1631
|
static { this.DisabledClass = `${SetColorThemeAction_1.EnabledClass} disabled`; }
|
|
1886
1632
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -1898,7 +1644,7 @@ let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
|
|
|
1898
1644
|
});
|
|
1899
1645
|
}
|
|
1900
1646
|
computeEnablement(colorThemes) {
|
|
1901
|
-
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( colorThemes.some(th => isThemeFromExtension(th, this.extension)));
|
|
1647
|
+
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (colorThemes.some(th => isThemeFromExtension(th, this.extension))));
|
|
1902
1648
|
}
|
|
1903
1649
|
async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
|
|
1904
1650
|
const colorThemes = await this.workbenchThemeService.getColorThemes();
|
|
@@ -1906,34 +1652,26 @@ let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
|
|
|
1906
1652
|
return;
|
|
1907
1653
|
}
|
|
1908
1654
|
const currentTheme = this.workbenchThemeService.getColorTheme();
|
|
1909
|
-
const delayer = ( new Delayer(100));
|
|
1655
|
+
const delayer = ( (new Delayer(100)));
|
|
1910
1656
|
const picks = getQuickPickEntries(colorThemes, currentTheme, this.extension, showCurrentTheme);
|
|
1911
1657
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
1912
|
-
placeHolder: ( localizeWithPath(
|
|
1913
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1914
|
-
'select color theme',
|
|
1915
|
-
"Select Color Theme"
|
|
1916
|
-
)),
|
|
1658
|
+
placeHolder: ( localizeWithPath(_moduleId, 73, "Select Color Theme")),
|
|
1917
1659
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setColorTheme(item.id, undefined)),
|
|
1918
1660
|
ignoreFocusLost
|
|
1919
1661
|
});
|
|
1920
1662
|
return this.workbenchThemeService.setColorTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
|
|
1921
1663
|
}
|
|
1922
1664
|
};
|
|
1923
|
-
SetColorThemeAction = SetColorThemeAction_1 = ( __decorate([
|
|
1924
|
-
( __param(0, IExtensionService)),
|
|
1925
|
-
( __param(1, IWorkbenchThemeService)),
|
|
1926
|
-
( __param(2, IQuickInputService)),
|
|
1927
|
-
( __param(3, IWorkbenchExtensionEnablementService))
|
|
1928
|
-
], SetColorThemeAction));
|
|
1665
|
+
SetColorThemeAction = SetColorThemeAction_1 = ( (__decorate([
|
|
1666
|
+
( (__param(0, IExtensionService))),
|
|
1667
|
+
( (__param(1, IWorkbenchThemeService))),
|
|
1668
|
+
( (__param(2, IQuickInputService))),
|
|
1669
|
+
( (__param(3, IWorkbenchExtensionEnablementService)))
|
|
1670
|
+
], SetColorThemeAction)));
|
|
1929
1671
|
let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionAction {
|
|
1930
1672
|
static { SetFileIconThemeAction_1 = this; }
|
|
1931
1673
|
static { this.ID = 'workbench.extensions.action.setFileIconTheme'; }
|
|
1932
|
-
static { this.TITLE = ( localize2WithPath(
|
|
1933
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1934
|
-
'workbench.extensions.action.setFileIconTheme',
|
|
1935
|
-
'Set File Icon Theme'
|
|
1936
|
-
)); }
|
|
1674
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 74, 'Set File Icon Theme')); }
|
|
1937
1675
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1938
1676
|
static { this.DisabledClass = `${SetFileIconThemeAction_1.EnabledClass} disabled`; }
|
|
1939
1677
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -1951,7 +1689,7 @@ let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionActio
|
|
|
1951
1689
|
});
|
|
1952
1690
|
}
|
|
1953
1691
|
computeEnablement(colorThemfileIconThemess) {
|
|
1954
|
-
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( colorThemfileIconThemess.some(th => isThemeFromExtension(th, this.extension)));
|
|
1692
|
+
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (colorThemfileIconThemess.some(th => isThemeFromExtension(th, this.extension))));
|
|
1955
1693
|
}
|
|
1956
1694
|
async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
|
|
1957
1695
|
const fileIconThemes = await this.workbenchThemeService.getFileIconThemes();
|
|
@@ -1959,34 +1697,26 @@ let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionActio
|
|
|
1959
1697
|
return;
|
|
1960
1698
|
}
|
|
1961
1699
|
const currentTheme = this.workbenchThemeService.getFileIconTheme();
|
|
1962
|
-
const delayer = ( new Delayer(100));
|
|
1700
|
+
const delayer = ( (new Delayer(100)));
|
|
1963
1701
|
const picks = getQuickPickEntries(fileIconThemes, currentTheme, this.extension, showCurrentTheme);
|
|
1964
1702
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
1965
|
-
placeHolder: ( localizeWithPath(
|
|
1966
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1967
|
-
'select file icon theme',
|
|
1968
|
-
"Select File Icon Theme"
|
|
1969
|
-
)),
|
|
1703
|
+
placeHolder: ( localizeWithPath(_moduleId, 75, "Select File Icon Theme")),
|
|
1970
1704
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setFileIconTheme(item.id, undefined)),
|
|
1971
1705
|
ignoreFocusLost
|
|
1972
1706
|
});
|
|
1973
1707
|
return this.workbenchThemeService.setFileIconTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
|
|
1974
1708
|
}
|
|
1975
1709
|
};
|
|
1976
|
-
SetFileIconThemeAction = SetFileIconThemeAction_1 = ( __decorate([
|
|
1977
|
-
( __param(0, IExtensionService)),
|
|
1978
|
-
( __param(1, IWorkbenchThemeService)),
|
|
1979
|
-
( __param(2, IQuickInputService)),
|
|
1980
|
-
( __param(3, IWorkbenchExtensionEnablementService))
|
|
1981
|
-
], SetFileIconThemeAction));
|
|
1710
|
+
SetFileIconThemeAction = SetFileIconThemeAction_1 = ( (__decorate([
|
|
1711
|
+
( (__param(0, IExtensionService))),
|
|
1712
|
+
( (__param(1, IWorkbenchThemeService))),
|
|
1713
|
+
( (__param(2, IQuickInputService))),
|
|
1714
|
+
( (__param(3, IWorkbenchExtensionEnablementService)))
|
|
1715
|
+
], SetFileIconThemeAction)));
|
|
1982
1716
|
let SetProductIconThemeAction = class SetProductIconThemeAction extends ExtensionAction {
|
|
1983
1717
|
static { SetProductIconThemeAction_1 = this; }
|
|
1984
1718
|
static { this.ID = 'workbench.extensions.action.setProductIconTheme'; }
|
|
1985
|
-
static { this.TITLE = ( localize2WithPath(
|
|
1986
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
1987
|
-
'workbench.extensions.action.setProductIconTheme',
|
|
1988
|
-
'Set Product Icon Theme'
|
|
1989
|
-
)); }
|
|
1719
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 76, 'Set Product Icon Theme')); }
|
|
1990
1720
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1991
1721
|
static { this.DisabledClass = `${SetProductIconThemeAction_1.EnabledClass} disabled`; }
|
|
1992
1722
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -2004,7 +1734,7 @@ let SetProductIconThemeAction = class SetProductIconThemeAction extends Extensio
|
|
|
2004
1734
|
});
|
|
2005
1735
|
}
|
|
2006
1736
|
computeEnablement(productIconThemes) {
|
|
2007
|
-
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( productIconThemes.some(th => isThemeFromExtension(th, this.extension)));
|
|
1737
|
+
return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (productIconThemes.some(th => isThemeFromExtension(th, this.extension))));
|
|
2008
1738
|
}
|
|
2009
1739
|
async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
|
|
2010
1740
|
const productIconThemes = await this.workbenchThemeService.getProductIconThemes();
|
|
@@ -2012,34 +1742,26 @@ let SetProductIconThemeAction = class SetProductIconThemeAction extends Extensio
|
|
|
2012
1742
|
return;
|
|
2013
1743
|
}
|
|
2014
1744
|
const currentTheme = this.workbenchThemeService.getProductIconTheme();
|
|
2015
|
-
const delayer = ( new Delayer(100));
|
|
1745
|
+
const delayer = ( (new Delayer(100)));
|
|
2016
1746
|
const picks = getQuickPickEntries(productIconThemes, currentTheme, this.extension, showCurrentTheme);
|
|
2017
1747
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
2018
|
-
placeHolder: ( localizeWithPath(
|
|
2019
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2020
|
-
'select product icon theme',
|
|
2021
|
-
"Select Product Icon Theme"
|
|
2022
|
-
)),
|
|
1748
|
+
placeHolder: ( localizeWithPath(_moduleId, 77, "Select Product Icon Theme")),
|
|
2023
1749
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setProductIconTheme(item.id, undefined)),
|
|
2024
1750
|
ignoreFocusLost
|
|
2025
1751
|
});
|
|
2026
1752
|
return this.workbenchThemeService.setProductIconTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
|
|
2027
1753
|
}
|
|
2028
1754
|
};
|
|
2029
|
-
SetProductIconThemeAction = SetProductIconThemeAction_1 = ( __decorate([
|
|
2030
|
-
( __param(0, IExtensionService)),
|
|
2031
|
-
( __param(1, IWorkbenchThemeService)),
|
|
2032
|
-
( __param(2, IQuickInputService)),
|
|
2033
|
-
( __param(3, IWorkbenchExtensionEnablementService))
|
|
2034
|
-
], SetProductIconThemeAction));
|
|
1755
|
+
SetProductIconThemeAction = SetProductIconThemeAction_1 = ( (__decorate([
|
|
1756
|
+
( (__param(0, IExtensionService))),
|
|
1757
|
+
( (__param(1, IWorkbenchThemeService))),
|
|
1758
|
+
( (__param(2, IQuickInputService))),
|
|
1759
|
+
( (__param(3, IWorkbenchExtensionEnablementService)))
|
|
1760
|
+
], SetProductIconThemeAction)));
|
|
2035
1761
|
let SetLanguageAction = class SetLanguageAction extends ExtensionAction {
|
|
2036
1762
|
static { SetLanguageAction_1 = this; }
|
|
2037
1763
|
static { this.ID = 'workbench.extensions.action.setDisplayLanguage'; }
|
|
2038
|
-
static { this.TITLE = ( localize2WithPath(
|
|
2039
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2040
|
-
'workbench.extensions.action.setDisplayLanguage',
|
|
2041
|
-
'Set Display Language'
|
|
2042
|
-
)); }
|
|
1764
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 78, 'Set Display Language')); }
|
|
2043
1765
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
|
|
2044
1766
|
static { this.DisabledClass = `${SetLanguageAction_1.EnabledClass} disabled`; }
|
|
2045
1767
|
constructor(extensionsWorkbenchService) {
|
|
@@ -2066,17 +1788,13 @@ let SetLanguageAction = class SetLanguageAction extends ExtensionAction {
|
|
|
2066
1788
|
return this.extension && this.extensionsWorkbenchService.setLanguage(this.extension);
|
|
2067
1789
|
}
|
|
2068
1790
|
};
|
|
2069
|
-
SetLanguageAction = SetLanguageAction_1 = ( __decorate([
|
|
2070
|
-
( __param(0, IExtensionsWorkbenchService))
|
|
2071
|
-
], SetLanguageAction));
|
|
1791
|
+
SetLanguageAction = SetLanguageAction_1 = ( (__decorate([
|
|
1792
|
+
( (__param(0, IExtensionsWorkbenchService)))
|
|
1793
|
+
], SetLanguageAction)));
|
|
2072
1794
|
let ClearLanguageAction = class ClearLanguageAction extends ExtensionAction {
|
|
2073
1795
|
static { ClearLanguageAction_1 = this; }
|
|
2074
1796
|
static { this.ID = 'workbench.extensions.action.clearLanguage'; }
|
|
2075
|
-
static { this.TITLE = ( localize2WithPath(
|
|
2076
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2077
|
-
'workbench.extensions.action.clearLanguage',
|
|
2078
|
-
'Clear Display Language'
|
|
2079
|
-
)); }
|
|
1797
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 79, 'Clear Display Language')); }
|
|
2080
1798
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
|
|
2081
1799
|
static { this.DisabledClass = `${ClearLanguageAction_1.EnabledClass} disabled`; }
|
|
2082
1800
|
constructor(extensionsWorkbenchService, localeService) {
|
|
@@ -2104,18 +1822,14 @@ let ClearLanguageAction = class ClearLanguageAction extends ExtensionAction {
|
|
|
2104
1822
|
return this.extension && this.localeService.clearLocalePreference();
|
|
2105
1823
|
}
|
|
2106
1824
|
};
|
|
2107
|
-
ClearLanguageAction = ClearLanguageAction_1 = ( __decorate([
|
|
2108
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
2109
|
-
( __param(1, ILocaleService))
|
|
2110
|
-
], ClearLanguageAction));
|
|
1825
|
+
ClearLanguageAction = ClearLanguageAction_1 = ( (__decorate([
|
|
1826
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
1827
|
+
( (__param(1, ILocaleService)))
|
|
1828
|
+
], ClearLanguageAction)));
|
|
2111
1829
|
let ShowRecommendedExtensionAction = class ShowRecommendedExtensionAction extends Action {
|
|
2112
1830
|
static { ShowRecommendedExtensionAction_1 = this; }
|
|
2113
1831
|
static { this.ID = 'workbench.extensions.action.showRecommendedExtension'; }
|
|
2114
|
-
static { this.LABEL = ( localizeWithPath(
|
|
2115
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2116
|
-
'showRecommendedExtension',
|
|
2117
|
-
"Show Recommended Extension"
|
|
2118
|
-
)); }
|
|
1832
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 80, "Show Recommended Extension")); }
|
|
2119
1833
|
constructor(extensionId, paneCompositeService, extensionWorkbenchService) {
|
|
2120
1834
|
super(ShowRecommendedExtensionAction_1.ID, ShowRecommendedExtensionAction_1.LABEL, undefined, false);
|
|
2121
1835
|
this.paneCompositeService = paneCompositeService;
|
|
@@ -2134,18 +1848,14 @@ let ShowRecommendedExtensionAction = class ShowRecommendedExtensionAction extend
|
|
|
2134
1848
|
return null;
|
|
2135
1849
|
}
|
|
2136
1850
|
};
|
|
2137
|
-
ShowRecommendedExtensionAction = ShowRecommendedExtensionAction_1 = ( __decorate([
|
|
2138
|
-
( __param(1, IPaneCompositePartService)),
|
|
2139
|
-
( __param(2, IExtensionsWorkbenchService))
|
|
2140
|
-
], ShowRecommendedExtensionAction));
|
|
1851
|
+
ShowRecommendedExtensionAction = ShowRecommendedExtensionAction_1 = ( (__decorate([
|
|
1852
|
+
( (__param(1, IPaneCompositePartService))),
|
|
1853
|
+
( (__param(2, IExtensionsWorkbenchService)))
|
|
1854
|
+
], ShowRecommendedExtensionAction)));
|
|
2141
1855
|
let InstallRecommendedExtensionAction = class InstallRecommendedExtensionAction extends Action {
|
|
2142
1856
|
static { InstallRecommendedExtensionAction_1 = this; }
|
|
2143
1857
|
static { this.ID = 'workbench.extensions.action.installRecommendedExtension'; }
|
|
2144
|
-
static { this.LABEL = ( localizeWithPath(
|
|
2145
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2146
|
-
'installRecommendedExtension',
|
|
2147
|
-
"Install Recommended Extension"
|
|
2148
|
-
)); }
|
|
1858
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 81, "Install Recommended Extension")); }
|
|
2149
1859
|
constructor(extensionId, paneCompositeService, instantiationService, extensionWorkbenchService) {
|
|
2150
1860
|
super(InstallRecommendedExtensionAction_1.ID, InstallRecommendedExtensionAction_1.LABEL, undefined, false);
|
|
2151
1861
|
this.paneCompositeService = paneCompositeService;
|
|
@@ -2170,11 +1880,11 @@ let InstallRecommendedExtensionAction = class InstallRecommendedExtensionAction
|
|
|
2170
1880
|
}
|
|
2171
1881
|
}
|
|
2172
1882
|
};
|
|
2173
|
-
InstallRecommendedExtensionAction = InstallRecommendedExtensionAction_1 = ( __decorate([
|
|
2174
|
-
( __param(1, IPaneCompositePartService)),
|
|
2175
|
-
( __param(2, IInstantiationService)),
|
|
2176
|
-
( __param(3, IExtensionsWorkbenchService))
|
|
2177
|
-
], InstallRecommendedExtensionAction));
|
|
1883
|
+
InstallRecommendedExtensionAction = InstallRecommendedExtensionAction_1 = ( (__decorate([
|
|
1884
|
+
( (__param(1, IPaneCompositePartService))),
|
|
1885
|
+
( (__param(2, IInstantiationService))),
|
|
1886
|
+
( (__param(3, IExtensionsWorkbenchService)))
|
|
1887
|
+
], InstallRecommendedExtensionAction)));
|
|
2178
1888
|
let IgnoreExtensionRecommendationAction = class IgnoreExtensionRecommendationAction extends Action {
|
|
2179
1889
|
static { IgnoreExtensionRecommendationAction_1 = this; }
|
|
2180
1890
|
static { this.ID = 'extensions.ignore'; }
|
|
@@ -2184,11 +1894,7 @@ let IgnoreExtensionRecommendationAction = class IgnoreExtensionRecommendationAct
|
|
|
2184
1894
|
this.extension = extension;
|
|
2185
1895
|
this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
|
|
2186
1896
|
this.class = IgnoreExtensionRecommendationAction_1.Class;
|
|
2187
|
-
this.tooltip = ( localizeWithPath(
|
|
2188
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2189
|
-
'ignoreExtensionRecommendation',
|
|
2190
|
-
"Do not recommend this extension again"
|
|
2191
|
-
));
|
|
1897
|
+
this.tooltip = ( localizeWithPath(_moduleId, 82, "Do not recommend this extension again"));
|
|
2192
1898
|
this.enabled = true;
|
|
2193
1899
|
}
|
|
2194
1900
|
run() {
|
|
@@ -2196,9 +1902,9 @@ let IgnoreExtensionRecommendationAction = class IgnoreExtensionRecommendationAct
|
|
|
2196
1902
|
return Promise.resolve();
|
|
2197
1903
|
}
|
|
2198
1904
|
};
|
|
2199
|
-
IgnoreExtensionRecommendationAction = IgnoreExtensionRecommendationAction_1 = ( __decorate([
|
|
2200
|
-
( __param(1, IExtensionIgnoredRecommendationsService))
|
|
2201
|
-
], IgnoreExtensionRecommendationAction));
|
|
1905
|
+
IgnoreExtensionRecommendationAction = IgnoreExtensionRecommendationAction_1 = ( (__decorate([
|
|
1906
|
+
( (__param(1, IExtensionIgnoredRecommendationsService)))
|
|
1907
|
+
], IgnoreExtensionRecommendationAction)));
|
|
2202
1908
|
let UndoIgnoreExtensionRecommendationAction = class UndoIgnoreExtensionRecommendationAction extends Action {
|
|
2203
1909
|
static { UndoIgnoreExtensionRecommendationAction_1 = this; }
|
|
2204
1910
|
static { this.ID = 'extensions.ignore'; }
|
|
@@ -2208,11 +1914,7 @@ let UndoIgnoreExtensionRecommendationAction = class UndoIgnoreExtensionRecommend
|
|
|
2208
1914
|
this.extension = extension;
|
|
2209
1915
|
this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
|
|
2210
1916
|
this.class = UndoIgnoreExtensionRecommendationAction_1.Class;
|
|
2211
|
-
this.tooltip = ( localizeWithPath(
|
|
2212
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2213
|
-
'undo',
|
|
2214
|
-
"Undo"
|
|
2215
|
-
));
|
|
1917
|
+
this.tooltip = ( localizeWithPath(_moduleId, 83, "Undo"));
|
|
2216
1918
|
this.enabled = true;
|
|
2217
1919
|
}
|
|
2218
1920
|
run() {
|
|
@@ -2220,16 +1922,12 @@ let UndoIgnoreExtensionRecommendationAction = class UndoIgnoreExtensionRecommend
|
|
|
2220
1922
|
return Promise.resolve();
|
|
2221
1923
|
}
|
|
2222
1924
|
};
|
|
2223
|
-
UndoIgnoreExtensionRecommendationAction = UndoIgnoreExtensionRecommendationAction_1 = ( __decorate([
|
|
2224
|
-
( __param(1, IExtensionIgnoredRecommendationsService))
|
|
2225
|
-
], UndoIgnoreExtensionRecommendationAction));
|
|
1925
|
+
UndoIgnoreExtensionRecommendationAction = UndoIgnoreExtensionRecommendationAction_1 = ( (__decorate([
|
|
1926
|
+
( (__param(1, IExtensionIgnoredRecommendationsService)))
|
|
1927
|
+
], UndoIgnoreExtensionRecommendationAction)));
|
|
2226
1928
|
let SearchExtensionsAction = class SearchExtensionsAction extends Action {
|
|
2227
1929
|
constructor(searchValue, paneCompositeService) {
|
|
2228
|
-
super('extensions.searchExtensions', ( localizeWithPath(
|
|
2229
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2230
|
-
'search recommendations',
|
|
2231
|
-
"Search Extensions"
|
|
2232
|
-
)), undefined, true);
|
|
1930
|
+
super('extensions.searchExtensions', ( localizeWithPath(_moduleId, 84, "Search Extensions")), undefined, true);
|
|
2233
1931
|
this.searchValue = searchValue;
|
|
2234
1932
|
this.paneCompositeService = paneCompositeService;
|
|
2235
1933
|
}
|
|
@@ -2239,9 +1937,9 @@ let SearchExtensionsAction = class SearchExtensionsAction extends Action {
|
|
|
2239
1937
|
viewPaneContainer.focus();
|
|
2240
1938
|
}
|
|
2241
1939
|
};
|
|
2242
|
-
SearchExtensionsAction = ( __decorate([
|
|
2243
|
-
( __param(1, IPaneCompositePartService))
|
|
2244
|
-
], SearchExtensionsAction));
|
|
1940
|
+
SearchExtensionsAction = ( (__decorate([
|
|
1941
|
+
( (__param(1, IPaneCompositePartService)))
|
|
1942
|
+
], SearchExtensionsAction)));
|
|
2245
1943
|
let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecommendedExtensionsAction extends Action {
|
|
2246
1944
|
constructor(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService) {
|
|
2247
1945
|
super(id, label);
|
|
@@ -2261,16 +1959,16 @@ let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecomm
|
|
|
2261
1959
|
pinned: created,
|
|
2262
1960
|
selection
|
|
2263
1961
|
}
|
|
2264
|
-
})), error => Promise.reject(( new Error(( localizeWithPath(
|
|
2265
|
-
|
|
2266
|
-
|
|
1962
|
+
})), error => Promise.reject(( (new Error(( localizeWithPath(
|
|
1963
|
+
_moduleId,
|
|
1964
|
+
85,
|
|
2267
1965
|
"Unable to create 'extensions.json' file inside the '.vscode' folder ({0}).",
|
|
2268
1966
|
error
|
|
2269
|
-
))))));
|
|
1967
|
+
)))))));
|
|
2270
1968
|
}
|
|
2271
1969
|
openWorkspaceConfigurationFile(workspaceConfigurationFile) {
|
|
2272
1970
|
return this.getOrUpdateWorkspaceConfigurationFile(workspaceConfigurationFile)
|
|
2273
|
-
.then(content => this.getSelectionPosition(( content.value.toString()), content.resource, ['extensions', 'recommendations']))
|
|
1971
|
+
.then(content => this.getSelectionPosition(( (content.value.toString())), content.resource, ['extensions', 'recommendations']))
|
|
2274
1972
|
.then(selection => this.editorService.openEditor({
|
|
2275
1973
|
resource: workspaceConfigurationFile,
|
|
2276
1974
|
options: {
|
|
@@ -2282,7 +1980,7 @@ let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecomm
|
|
|
2282
1980
|
getOrUpdateWorkspaceConfigurationFile(workspaceConfigurationFile) {
|
|
2283
1981
|
return Promise.resolve(this.fileService.readFile(workspaceConfigurationFile))
|
|
2284
1982
|
.then(content => {
|
|
2285
|
-
const workspaceRecommendations = parse(( content.value.toString()))['extensions'];
|
|
1983
|
+
const workspaceRecommendations = parse(( (content.value.toString())))['extensions'];
|
|
2286
1984
|
if (!workspaceRecommendations || !workspaceRecommendations.recommendations) {
|
|
2287
1985
|
return this.jsonEditingService.write(workspaceConfigurationFile, [{ path: ['extensions'], value: { recommendations: [] } }], true)
|
|
2288
1986
|
.then(() => this.fileService.readFile(workspaceConfigurationFile));
|
|
@@ -2313,7 +2011,7 @@ let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecomm
|
|
|
2313
2011
|
}
|
|
2314
2012
|
getOrCreateExtensionsFile(extensionsFileResource) {
|
|
2315
2013
|
return Promise.resolve(this.fileService.readFile(extensionsFileResource)).then(content => {
|
|
2316
|
-
return { created: false, extensionsFileResource, content: ( content.value.toString()) };
|
|
2014
|
+
return { created: false, extensionsFileResource, content: ( (content.value.toString())) };
|
|
2317
2015
|
}, err => {
|
|
2318
2016
|
return this.textFileService.write(extensionsFileResource, ExtensionsConfigurationInitialContent).then(() => {
|
|
2319
2017
|
return { created: true, extensionsFileResource, content: ExtensionsConfigurationInitialContent };
|
|
@@ -2321,21 +2019,17 @@ let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecomm
|
|
|
2321
2019
|
});
|
|
2322
2020
|
}
|
|
2323
2021
|
};
|
|
2324
|
-
AbstractConfigureRecommendedExtensionsAction = ( __decorate([
|
|
2325
|
-
( __param(2, IWorkspaceContextService)),
|
|
2326
|
-
( __param(3, IFileService)),
|
|
2327
|
-
( __param(4, ITextFileService)),
|
|
2328
|
-
( __param(5, IEditorService)),
|
|
2329
|
-
( __param(6, IJSONEditingService)),
|
|
2330
|
-
( __param(7, ITextModelService))
|
|
2331
|
-
], AbstractConfigureRecommendedExtensionsAction));
|
|
2022
|
+
AbstractConfigureRecommendedExtensionsAction = ( (__decorate([
|
|
2023
|
+
( (__param(2, IWorkspaceContextService))),
|
|
2024
|
+
( (__param(3, IFileService))),
|
|
2025
|
+
( (__param(4, ITextFileService))),
|
|
2026
|
+
( (__param(5, IEditorService))),
|
|
2027
|
+
( (__param(6, IJSONEditingService))),
|
|
2028
|
+
( (__param(7, ITextModelService)))
|
|
2029
|
+
], AbstractConfigureRecommendedExtensionsAction)));
|
|
2332
2030
|
let ConfigureWorkspaceRecommendedExtensionsAction = class ConfigureWorkspaceRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
|
2333
2031
|
static { this.ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions'; }
|
|
2334
|
-
static { this.LABEL = ( localizeWithPath(
|
|
2335
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2336
|
-
'configureWorkspaceRecommendedExtensions',
|
|
2337
|
-
"Configure Recommended Extensions (Workspace)"
|
|
2338
|
-
)); }
|
|
2032
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 86, "Configure Recommended Extensions (Workspace)")); }
|
|
2339
2033
|
constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService) {
|
|
2340
2034
|
super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
|
|
2341
2035
|
this._register(this.contextService.onDidChangeWorkbenchState(() => this.update(), this));
|
|
@@ -2354,21 +2048,17 @@ let ConfigureWorkspaceRecommendedExtensionsAction = class ConfigureWorkspaceReco
|
|
|
2354
2048
|
return Promise.resolve();
|
|
2355
2049
|
}
|
|
2356
2050
|
};
|
|
2357
|
-
ConfigureWorkspaceRecommendedExtensionsAction = ( __decorate([
|
|
2358
|
-
( __param(2, IFileService)),
|
|
2359
|
-
( __param(3, ITextFileService)),
|
|
2360
|
-
( __param(4, IWorkspaceContextService)),
|
|
2361
|
-
( __param(5, IEditorService)),
|
|
2362
|
-
( __param(6, IJSONEditingService)),
|
|
2363
|
-
( __param(7, ITextModelService))
|
|
2364
|
-
], ConfigureWorkspaceRecommendedExtensionsAction));
|
|
2051
|
+
ConfigureWorkspaceRecommendedExtensionsAction = ( (__decorate([
|
|
2052
|
+
( (__param(2, IFileService))),
|
|
2053
|
+
( (__param(3, ITextFileService))),
|
|
2054
|
+
( (__param(4, IWorkspaceContextService))),
|
|
2055
|
+
( (__param(5, IEditorService))),
|
|
2056
|
+
( (__param(6, IJSONEditingService))),
|
|
2057
|
+
( (__param(7, ITextModelService)))
|
|
2058
|
+
], ConfigureWorkspaceRecommendedExtensionsAction)));
|
|
2365
2059
|
let ConfigureWorkspaceFolderRecommendedExtensionsAction = class ConfigureWorkspaceFolderRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
|
2366
2060
|
static { this.ID = 'workbench.extensions.action.configureWorkspaceFolderRecommendedExtensions'; }
|
|
2367
|
-
static { this.LABEL = ( localizeWithPath(
|
|
2368
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2369
|
-
'configureWorkspaceFolderRecommendedExtensions',
|
|
2370
|
-
"Configure Recommended Extensions (Workspace Folder)"
|
|
2371
|
-
)); }
|
|
2061
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 87, "Configure Recommended Extensions (Workspace Folder)")); }
|
|
2372
2062
|
constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService, commandService) {
|
|
2373
2063
|
super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
|
|
2374
2064
|
this.commandService = commandService;
|
|
@@ -2385,15 +2075,15 @@ let ConfigureWorkspaceFolderRecommendedExtensionsAction = class ConfigureWorkspa
|
|
|
2385
2075
|
});
|
|
2386
2076
|
}
|
|
2387
2077
|
};
|
|
2388
|
-
ConfigureWorkspaceFolderRecommendedExtensionsAction = ( __decorate([
|
|
2389
|
-
( __param(2, IFileService)),
|
|
2390
|
-
( __param(3, ITextFileService)),
|
|
2391
|
-
( __param(4, IWorkspaceContextService)),
|
|
2392
|
-
( __param(5, IEditorService)),
|
|
2393
|
-
( __param(6, IJSONEditingService)),
|
|
2394
|
-
( __param(7, ITextModelService)),
|
|
2395
|
-
( __param(8, ICommandService))
|
|
2396
|
-
], ConfigureWorkspaceFolderRecommendedExtensionsAction));
|
|
2078
|
+
ConfigureWorkspaceFolderRecommendedExtensionsAction = ( (__decorate([
|
|
2079
|
+
( (__param(2, IFileService))),
|
|
2080
|
+
( (__param(3, ITextFileService))),
|
|
2081
|
+
( (__param(4, IWorkspaceContextService))),
|
|
2082
|
+
( (__param(5, IEditorService))),
|
|
2083
|
+
( (__param(6, IJSONEditingService))),
|
|
2084
|
+
( (__param(7, ITextModelService))),
|
|
2085
|
+
( (__param(8, ICommandService)))
|
|
2086
|
+
], ConfigureWorkspaceFolderRecommendedExtensionsAction)));
|
|
2397
2087
|
let ExtensionStatusLabelAction = class ExtensionStatusLabelAction extends Action {
|
|
2398
2088
|
static { ExtensionStatusLabelAction_1 = this; }
|
|
2399
2089
|
static { this.ENABLED_CLASS = `${ExtensionAction.TEXT_ACTION_CLASS} extension-status-label`; }
|
|
@@ -2458,41 +2148,21 @@ let ExtensionStatusLabelAction = class ExtensionStatusLabelAction extends Action
|
|
|
2458
2148
|
};
|
|
2459
2149
|
if (currentStatus !== null) {
|
|
2460
2150
|
if (currentStatus === 0 && this.status === 1 ) {
|
|
2461
|
-
return canAddExtension() ? this.initialStatus === 1 && this.version !== currentVersion ? ( localizeWithPath(
|
|
2462
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2463
|
-
'updated',
|
|
2464
|
-
"Updated"
|
|
2465
|
-
)) : ( localizeWithPath(
|
|
2466
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2467
|
-
'installed',
|
|
2468
|
-
"Installed"
|
|
2469
|
-
)) : null;
|
|
2151
|
+
return canAddExtension() ? this.initialStatus === 1 && this.version !== currentVersion ? ( localizeWithPath(_moduleId, 88, "Updated")) : ( localizeWithPath(_moduleId, 89, "Installed")) : null;
|
|
2470
2152
|
}
|
|
2471
2153
|
if (currentStatus === 2 && this.status === 3 ) {
|
|
2472
2154
|
this.initialStatus = this.status;
|
|
2473
|
-
return canRemoveExtension() ? ( localizeWithPath(
|
|
2474
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2475
|
-
'uninstalled',
|
|
2476
|
-
"Uninstalled"
|
|
2477
|
-
)) : null;
|
|
2155
|
+
return canRemoveExtension() ? ( localizeWithPath(_moduleId, 90, "Uninstalled")) : null;
|
|
2478
2156
|
}
|
|
2479
2157
|
}
|
|
2480
2158
|
if (currentEnablementState !== null) {
|
|
2481
2159
|
const currentlyEnabled = this.extensionEnablementService.isEnabledEnablementState(currentEnablementState);
|
|
2482
2160
|
const enabled = this.extensionEnablementService.isEnabledEnablementState(this.enablementState);
|
|
2483
2161
|
if (!currentlyEnabled && enabled) {
|
|
2484
|
-
return canAddExtension() ? ( localizeWithPath(
|
|
2485
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2486
|
-
'enabled',
|
|
2487
|
-
"Enabled"
|
|
2488
|
-
)) : null;
|
|
2162
|
+
return canAddExtension() ? ( localizeWithPath(_moduleId, 91, "Enabled")) : null;
|
|
2489
2163
|
}
|
|
2490
2164
|
if (currentlyEnabled && !enabled) {
|
|
2491
|
-
return canRemoveExtension() ? ( localizeWithPath(
|
|
2492
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2493
|
-
'disabled',
|
|
2494
|
-
"Disabled"
|
|
2495
|
-
)) : null;
|
|
2165
|
+
return canRemoveExtension() ? ( localizeWithPath(_moduleId, 92, "Disabled")) : null;
|
|
2496
2166
|
}
|
|
2497
2167
|
}
|
|
2498
2168
|
return null;
|
|
@@ -2501,11 +2171,11 @@ let ExtensionStatusLabelAction = class ExtensionStatusLabelAction extends Action
|
|
|
2501
2171
|
return Promise.resolve();
|
|
2502
2172
|
}
|
|
2503
2173
|
};
|
|
2504
|
-
ExtensionStatusLabelAction = ExtensionStatusLabelAction_1 = ( __decorate([
|
|
2505
|
-
( __param(0, IExtensionService)),
|
|
2506
|
-
( __param(1, IExtensionManagementServerService)),
|
|
2507
|
-
( __param(2, IWorkbenchExtensionEnablementService))
|
|
2508
|
-
], ExtensionStatusLabelAction));
|
|
2174
|
+
ExtensionStatusLabelAction = ExtensionStatusLabelAction_1 = ( (__decorate([
|
|
2175
|
+
( (__param(0, IExtensionService))),
|
|
2176
|
+
( (__param(1, IExtensionManagementServerService))),
|
|
2177
|
+
( (__param(2, IWorkbenchExtensionEnablementService)))
|
|
2178
|
+
], ExtensionStatusLabelAction)));
|
|
2509
2179
|
let ToggleSyncExtensionAction = class ToggleSyncExtensionAction extends ExtensionDropDownAction {
|
|
2510
2180
|
static { ToggleSyncExtensionAction_1 = this; }
|
|
2511
2181
|
static { this.IGNORED_SYNC_CLASS = `${ExtensionAction.ICON_ACTION_CLASS} extension-sync ${ThemeIcon.asClassName(syncIgnoredIcon)}`; }
|
|
@@ -2524,47 +2194,31 @@ let ToggleSyncExtensionAction = class ToggleSyncExtensionAction extends Extensio
|
|
|
2524
2194
|
if (this.extension) {
|
|
2525
2195
|
const isIgnored = this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension);
|
|
2526
2196
|
this.class = isIgnored ? ToggleSyncExtensionAction_1.IGNORED_SYNC_CLASS : ToggleSyncExtensionAction_1.SYNC_CLASS;
|
|
2527
|
-
this.tooltip = isIgnored ? ( localizeWithPath(
|
|
2528
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2529
|
-
'ignored',
|
|
2530
|
-
"This extension is ignored during sync"
|
|
2531
|
-
)) : ( localizeWithPath(
|
|
2532
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2533
|
-
'synced',
|
|
2534
|
-
"This extension is synced"
|
|
2535
|
-
));
|
|
2197
|
+
this.tooltip = isIgnored ? ( localizeWithPath(_moduleId, 93, "This extension is ignored during sync")) : ( localizeWithPath(_moduleId, 94, "This extension is synced"));
|
|
2536
2198
|
}
|
|
2537
2199
|
}
|
|
2538
2200
|
async run() {
|
|
2539
2201
|
return super.run({
|
|
2540
2202
|
actionGroups: [
|
|
2541
2203
|
[
|
|
2542
|
-
( new Action(
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2550
|
-
'do not sync',
|
|
2551
|
-
"Do not sync this extension"
|
|
2552
|
-
)),
|
|
2553
|
-
undefined,
|
|
2554
|
-
true,
|
|
2555
|
-
() => this.extensionsWorkbenchService.toggleExtensionIgnoredToSync(this.extension)
|
|
2556
|
-
))
|
|
2204
|
+
( (new Action(
|
|
2205
|
+
'extensions.syncignore',
|
|
2206
|
+
this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension) ? ( localizeWithPath(_moduleId, 95, "Sync this extension")) : ( localizeWithPath(_moduleId, 96, "Do not sync this extension")),
|
|
2207
|
+
undefined,
|
|
2208
|
+
true,
|
|
2209
|
+
() => this.extensionsWorkbenchService.toggleExtensionIgnoredToSync(this.extension)
|
|
2210
|
+
)))
|
|
2557
2211
|
]
|
|
2558
2212
|
], disposeActionsOnHide: true
|
|
2559
2213
|
});
|
|
2560
2214
|
}
|
|
2561
2215
|
};
|
|
2562
|
-
ToggleSyncExtensionAction = ToggleSyncExtensionAction_1 = ( __decorate([
|
|
2563
|
-
( __param(0, IConfigurationService)),
|
|
2564
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
2565
|
-
( __param(2, IUserDataSyncEnablementService)),
|
|
2566
|
-
( __param(3, IInstantiationService))
|
|
2567
|
-
], ToggleSyncExtensionAction));
|
|
2216
|
+
ToggleSyncExtensionAction = ToggleSyncExtensionAction_1 = ( (__decorate([
|
|
2217
|
+
( (__param(0, IConfigurationService))),
|
|
2218
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
2219
|
+
( (__param(2, IUserDataSyncEnablementService))),
|
|
2220
|
+
( (__param(3, IInstantiationService)))
|
|
2221
|
+
], ToggleSyncExtensionAction)));
|
|
2568
2222
|
let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction {
|
|
2569
2223
|
static { ExtensionStatusAction_1 = this; }
|
|
2570
2224
|
static { this.CLASS = `${ExtensionAction.ICON_ACTION_CLASS} extension-status`; }
|
|
@@ -2584,9 +2238,9 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2584
2238
|
this.workbenchExtensionEnablementService = workbenchExtensionEnablementService;
|
|
2585
2239
|
this.extensionFeaturesManagementService = extensionFeaturesManagementService;
|
|
2586
2240
|
this.updateWhenCounterExtensionChanges = true;
|
|
2587
|
-
this._onDidChangeStatus = this._register(( new Emitter()));
|
|
2241
|
+
this._onDidChangeStatus = this._register(( (new Emitter())));
|
|
2588
2242
|
this.onDidChangeStatus = this._onDidChangeStatus.event;
|
|
2589
|
-
this.updateThrottler = ( new Throttler());
|
|
2243
|
+
this.updateThrottler = ( (new Throttler()));
|
|
2590
2244
|
this._register(this.labelService.onDidChangeFormatters(() => this.update(), this));
|
|
2591
2245
|
this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
|
|
2592
2246
|
this._register(this.extensionFeaturesManagementService.onDidChangeAccessData(() => this.update()));
|
|
@@ -2602,46 +2256,38 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2602
2256
|
return;
|
|
2603
2257
|
}
|
|
2604
2258
|
if (this.extension.isMalicious) {
|
|
2605
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString(( localizeWithPath(
|
|
2606
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2607
|
-
'malicious tooltip',
|
|
2608
|
-
"This extension was reported to be problematic."
|
|
2609
|
-
)))) }, true);
|
|
2259
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localizeWithPath(_moduleId, 97, "This extension was reported to be problematic."))))) }, true);
|
|
2610
2260
|
return;
|
|
2611
2261
|
}
|
|
2612
2262
|
if (this.extension.deprecationInfo) {
|
|
2613
2263
|
if (this.extension.deprecationInfo.extension) {
|
|
2614
|
-
const link = `[${this.extension.deprecationInfo.extension.displayName}](${( URI.parse(
|
|
2264
|
+
const link = `[${this.extension.deprecationInfo.extension.displayName}](${( (URI.parse(
|
|
2615
2265
|
`command:extension.open?${encodeURIComponent(JSON.stringify([this.extension.deprecationInfo.extension.id]))}`
|
|
2616
|
-
))})`;
|
|
2617
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString(( localizeWithPath(
|
|
2618
|
-
|
|
2619
|
-
|
|
2266
|
+
)))})`;
|
|
2267
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localizeWithPath(
|
|
2268
|
+
_moduleId,
|
|
2269
|
+
98,
|
|
2620
2270
|
"This extension is deprecated. Use the {0} extension instead.",
|
|
2621
2271
|
link
|
|
2622
|
-
)))) }, true);
|
|
2272
|
+
))))) }, true);
|
|
2623
2273
|
}
|
|
2624
2274
|
else if (this.extension.deprecationInfo.settings) {
|
|
2625
|
-
const link = `[${( localizeWithPath(
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
))})`;
|
|
2632
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString(( localizeWithPath(
|
|
2633
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2634
|
-
'deprecated with alternate settings tooltip',
|
|
2275
|
+
const link = `[${( localizeWithPath(_moduleId, 99, "settings"))}](${( (URI.parse(
|
|
2276
|
+
`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify([( (this.extension.deprecationInfo.settings.map(setting => `@id:${setting}`))).join(' ')]))}`
|
|
2277
|
+
)))})`;
|
|
2278
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localizeWithPath(
|
|
2279
|
+
_moduleId,
|
|
2280
|
+
100,
|
|
2635
2281
|
"This extension is deprecated as this functionality is now built-in to VS Code. Configure these {0} to use this functionality.",
|
|
2636
2282
|
link
|
|
2637
|
-
)))) }, true);
|
|
2283
|
+
))))) }, true);
|
|
2638
2284
|
}
|
|
2639
2285
|
else {
|
|
2640
|
-
const message = ( new MarkdownString(( localizeWithPath(
|
|
2641
|
-
|
|
2642
|
-
|
|
2286
|
+
const message = ( (new MarkdownString(( localizeWithPath(
|
|
2287
|
+
_moduleId,
|
|
2288
|
+
101,
|
|
2643
2289
|
"This extension is deprecated as it is no longer being maintained."
|
|
2644
|
-
))));
|
|
2290
|
+
)))));
|
|
2645
2291
|
if (this.extension.deprecationInfo.additionalInfo) {
|
|
2646
2292
|
message.appendMarkdown(` ${this.extension.deprecationInfo.additionalInfo}`);
|
|
2647
2293
|
}
|
|
@@ -2655,39 +2301,26 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2655
2301
|
if (this.extension.gallery && this.extension.state === 3 && !(await this.extensionsWorkbenchService.canInstall(this.extension))) {
|
|
2656
2302
|
if (this.extensionManagementServerService.localExtensionManagementServer || this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2657
2303
|
const targetPlatform = await (this.extensionManagementServerService.localExtensionManagementServer ? this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getTargetPlatform() : this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getTargetPlatform());
|
|
2658
|
-
const message = ( new MarkdownString(`${( localizeWithPath(
|
|
2659
|
-
|
|
2660
|
-
|
|
2304
|
+
const message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2305
|
+
_moduleId,
|
|
2306
|
+
102,
|
|
2661
2307
|
"The '{0}' extension is not available in {1} for {2}.",
|
|
2662
2308
|
this.extension.displayName || this.extension.identifier.id,
|
|
2663
2309
|
this.productService.nameLong,
|
|
2664
2310
|
TargetPlatformToString(targetPlatform)
|
|
2665
|
-
))} [${( localizeWithPath(
|
|
2666
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2667
|
-
'learn more',
|
|
2668
|
-
"Learn More"
|
|
2669
|
-
))}](https://aka.ms/vscode-platform-specific-extensions)`));
|
|
2311
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-platform-specific-extensions)`)));
|
|
2670
2312
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
2671
2313
|
return;
|
|
2672
2314
|
}
|
|
2673
2315
|
if (this.extensionManagementServerService.webExtensionManagementServer) {
|
|
2674
|
-
const productName = ( localizeWithPath(
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
this.productService.nameLong
|
|
2679
|
-
));
|
|
2680
|
-
const message = ( new MarkdownString(`${( localizeWithPath(
|
|
2681
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2682
|
-
'not web tooltip',
|
|
2316
|
+
const productName = ( localizeWithPath(_moduleId, 0, "{0} for the Web", this.productService.nameLong));
|
|
2317
|
+
const message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2318
|
+
_moduleId,
|
|
2319
|
+
104,
|
|
2683
2320
|
"The '{0}' extension is not available in {1}.",
|
|
2684
2321
|
this.extension.displayName || this.extension.identifier.id,
|
|
2685
2322
|
productName
|
|
2686
|
-
))} [${( localizeWithPath(
|
|
2687
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2688
|
-
'learn why',
|
|
2689
|
-
"Learn Why"
|
|
2690
|
-
))}](https://aka.ms/vscode-web-extensions-guide)`));
|
|
2323
|
+
))} [${( localizeWithPath(_moduleId, 105, "Learn Why"))}](https://aka.ms/vscode-web-extensions-guide)`)));
|
|
2691
2324
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
2692
2325
|
return;
|
|
2693
2326
|
}
|
|
@@ -2698,39 +2331,35 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2698
2331
|
return;
|
|
2699
2332
|
}
|
|
2700
2333
|
if (this.extension.enablementState === 2 ) {
|
|
2701
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2702
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2703
|
-
'disabled by environment',
|
|
2704
|
-
"This extension is disabled by the environment."
|
|
2705
|
-
)))) }, true);
|
|
2334
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(_moduleId, 106, "This extension is disabled by the environment."))))) }, true);
|
|
2706
2335
|
return;
|
|
2707
2336
|
}
|
|
2708
2337
|
if (this.extension.enablementState === 3 ) {
|
|
2709
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2710
|
-
|
|
2711
|
-
|
|
2338
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(
|
|
2339
|
+
_moduleId,
|
|
2340
|
+
107,
|
|
2712
2341
|
"This extension is enabled because it is required in the current environment."
|
|
2713
|
-
)))) }, true);
|
|
2342
|
+
))))) }, true);
|
|
2714
2343
|
return;
|
|
2715
2344
|
}
|
|
2716
2345
|
if (this.extension.enablementState === 4 ) {
|
|
2717
2346
|
const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
|
|
2718
|
-
this.updateStatus({ icon: infoIcon, message: ( new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localizeWithPath(
|
|
2719
|
-
|
|
2720
|
-
|
|
2347
|
+
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localizeWithPath(
|
|
2348
|
+
_moduleId,
|
|
2349
|
+
108,
|
|
2721
2350
|
"This extension has been disabled because it does not support virtual workspaces."
|
|
2722
|
-
)))) }, true);
|
|
2351
|
+
))))) }, true);
|
|
2723
2352
|
return;
|
|
2724
2353
|
}
|
|
2725
2354
|
if (isVirtualWorkspace(this.contextService.getWorkspace())) {
|
|
2726
2355
|
const virtualSupportType = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(this.extension.local.manifest);
|
|
2727
2356
|
const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
|
|
2728
2357
|
if (virtualSupportType === 'limited' || details) {
|
|
2729
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localizeWithPath(
|
|
2730
|
-
|
|
2731
|
-
|
|
2358
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localizeWithPath(
|
|
2359
|
+
_moduleId,
|
|
2360
|
+
109,
|
|
2732
2361
|
"This extension has limited features because the current workspace is virtual."
|
|
2733
|
-
)))) }, true);
|
|
2362
|
+
))))) }, true);
|
|
2734
2363
|
return;
|
|
2735
2364
|
}
|
|
2736
2365
|
}
|
|
@@ -2738,13 +2367,13 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2738
2367
|
(this.extension.enablementState === 5 && this.workbenchExtensionEnablementService.getDependenciesEnablementStates(this.extension.local).every(([, enablementState]) => this.workbenchExtensionEnablementService.isEnabledEnablementState(enablementState) || enablementState === 0 ))) {
|
|
2739
2368
|
this.enabled = true;
|
|
2740
2369
|
const untrustedDetails = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.untrustedWorkspaces);
|
|
2741
|
-
this.updateStatus({ icon: trustIcon, message: ( new MarkdownString(
|
|
2370
|
+
this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
|
|
2742
2371
|
untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( localizeWithPath(
|
|
2743
|
-
|
|
2744
|
-
|
|
2372
|
+
_moduleId,
|
|
2373
|
+
110,
|
|
2745
2374
|
"This extension has been disabled because the current workspace is not trusted."
|
|
2746
2375
|
))
|
|
2747
|
-
)) }, true);
|
|
2376
|
+
))) }, true);
|
|
2748
2377
|
return;
|
|
2749
2378
|
}
|
|
2750
2379
|
if (this.workspaceTrustEnablementService.isWorkspaceTrustEnabled() && !this.workspaceTrustService.isWorkspaceTrusted()) {
|
|
@@ -2752,76 +2381,60 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2752
2381
|
const untrustedDetails = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.untrustedWorkspaces);
|
|
2753
2382
|
if (untrustedSupportType === 'limited' || untrustedDetails) {
|
|
2754
2383
|
this.enabled = true;
|
|
2755
|
-
this.updateStatus({ icon: trustIcon, message: ( new MarkdownString(
|
|
2384
|
+
this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
|
|
2756
2385
|
untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( localizeWithPath(
|
|
2757
|
-
|
|
2758
|
-
|
|
2386
|
+
_moduleId,
|
|
2387
|
+
111,
|
|
2759
2388
|
"This extension has limited features because the current workspace is not trusted."
|
|
2760
2389
|
))
|
|
2761
|
-
)) }, true);
|
|
2390
|
+
))) }, true);
|
|
2762
2391
|
return;
|
|
2763
2392
|
}
|
|
2764
2393
|
}
|
|
2765
2394
|
if (this.extension.enablementState === 1 ) {
|
|
2766
|
-
if (!( this.extensionsWorkbenchService.installed.some(
|
|
2395
|
+
if (!( (this.extensionsWorkbenchService.installed.some(
|
|
2767
2396
|
e => areSameExtensions(e.identifier, this.extension.identifier) && e.server !== this.extension.server
|
|
2768
|
-
))) {
|
|
2397
|
+
)))) {
|
|
2769
2398
|
let message;
|
|
2770
2399
|
if (this.extensionManagementServerService.localExtensionManagementServer === this.extension.server) {
|
|
2771
2400
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
|
|
2772
2401
|
if (this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2773
|
-
message = ( new MarkdownString(`${( localizeWithPath(
|
|
2774
|
-
|
|
2775
|
-
|
|
2402
|
+
message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2403
|
+
_moduleId,
|
|
2404
|
+
112,
|
|
2776
2405
|
"This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in '{0}' to enable.",
|
|
2777
2406
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2778
|
-
))} [${( localizeWithPath(
|
|
2779
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2780
|
-
'learn more',
|
|
2781
|
-
"Learn More"
|
|
2782
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`));
|
|
2407
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
|
|
2783
2408
|
}
|
|
2784
2409
|
}
|
|
2785
2410
|
}
|
|
2786
2411
|
else if (this.extensionManagementServerService.remoteExtensionManagementServer === this.extension.server) {
|
|
2787
2412
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
|
|
2788
2413
|
if (this.extensionManagementServerService.localExtensionManagementServer) {
|
|
2789
|
-
message = ( new MarkdownString(`${( localizeWithPath(
|
|
2790
|
-
|
|
2791
|
-
|
|
2414
|
+
message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2415
|
+
_moduleId,
|
|
2416
|
+
113,
|
|
2792
2417
|
"This extension is disabled in this workspace because it is defined to run in the Local Extension Host. Please install the extension locally to enable.",
|
|
2793
2418
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2794
|
-
))} [${( localizeWithPath(
|
|
2795
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2796
|
-
'learn more',
|
|
2797
|
-
"Learn More"
|
|
2798
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`));
|
|
2419
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
|
|
2799
2420
|
}
|
|
2800
2421
|
else if (isWeb) {
|
|
2801
|
-
message = ( new MarkdownString(`${( localizeWithPath(
|
|
2802
|
-
|
|
2803
|
-
|
|
2422
|
+
message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2423
|
+
_moduleId,
|
|
2424
|
+
114,
|
|
2804
2425
|
"This extension is disabled because it is defined to run only in {0} for the Desktop.",
|
|
2805
2426
|
this.productService.nameLong
|
|
2806
|
-
))} [${( localizeWithPath(
|
|
2807
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2808
|
-
'learn more',
|
|
2809
|
-
"Learn More"
|
|
2810
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`));
|
|
2427
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
|
|
2811
2428
|
}
|
|
2812
2429
|
}
|
|
2813
2430
|
}
|
|
2814
2431
|
else if (this.extensionManagementServerService.webExtensionManagementServer === this.extension.server) {
|
|
2815
|
-
message = ( new MarkdownString(`${( localizeWithPath(
|
|
2816
|
-
|
|
2817
|
-
|
|
2432
|
+
message = ( (new MarkdownString(`${( localizeWithPath(
|
|
2433
|
+
_moduleId,
|
|
2434
|
+
115,
|
|
2818
2435
|
"This extension is disabled because it is not supported in {0} for the Web.",
|
|
2819
2436
|
this.productService.nameLong
|
|
2820
|
-
))} [${( localizeWithPath(
|
|
2821
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2822
|
-
'learn more',
|
|
2823
|
-
"Learn More"
|
|
2824
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`));
|
|
2437
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
|
|
2825
2438
|
}
|
|
2826
2439
|
if (message) {
|
|
2827
2440
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
@@ -2829,43 +2442,39 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2829
2442
|
return;
|
|
2830
2443
|
}
|
|
2831
2444
|
}
|
|
2832
|
-
const extensionId = ( new ExtensionIdentifier(this.extension.identifier.id));
|
|
2833
|
-
const features = ( Registry.as(Extensions.ExtensionFeaturesRegistry)).getExtensionFeatures();
|
|
2445
|
+
const extensionId = ( (new ExtensionIdentifier(this.extension.identifier.id)));
|
|
2446
|
+
const features = ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).getExtensionFeatures();
|
|
2834
2447
|
for (const feature of features) {
|
|
2835
2448
|
const status = this.extensionFeaturesManagementService.getAccessData(extensionId, feature.id)?.current?.status;
|
|
2836
|
-
const manageAccessLink = `[${( localizeWithPath(
|
|
2837
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2838
|
-
'manage access',
|
|
2839
|
-
'Manage Access'
|
|
2840
|
-
))}](${( URI.parse(
|
|
2449
|
+
const manageAccessLink = `[${( localizeWithPath(_moduleId, 116, 'Manage Access'))}](${( (URI.parse(
|
|
2841
2450
|
`command:extension.open?${encodeURIComponent(JSON.stringify([this.extension.identifier.id, "features" , false, feature.id]))}`
|
|
2842
|
-
))})`;
|
|
2451
|
+
)))})`;
|
|
2843
2452
|
if (status?.severity === Severity$1.Error) {
|
|
2844
|
-
this.updateStatus({ icon: errorIcon, message: ( new MarkdownString()).appendText(status.message).appendMarkdown(` ${manageAccessLink}`) }, true);
|
|
2453
|
+
this.updateStatus({ icon: errorIcon, message: ( (new MarkdownString())).appendText(status.message).appendMarkdown(` ${manageAccessLink}`) }, true);
|
|
2845
2454
|
return;
|
|
2846
2455
|
}
|
|
2847
2456
|
if (status?.severity === Severity$1.Warning) {
|
|
2848
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString()).appendText(status.message).appendMarkdown(` ${manageAccessLink}`) }, true);
|
|
2457
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString())).appendText(status.message).appendMarkdown(` ${manageAccessLink}`) }, true);
|
|
2849
2458
|
return;
|
|
2850
2459
|
}
|
|
2851
2460
|
}
|
|
2852
2461
|
if (this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2853
2462
|
if (isLanguagePackExtension(this.extension.local.manifest)) {
|
|
2854
|
-
if (!( this.extensionsWorkbenchService.installed.some(
|
|
2463
|
+
if (!( (this.extensionsWorkbenchService.installed.some(
|
|
2855
2464
|
e => areSameExtensions(e.identifier, this.extension.identifier) && e.server !== this.extension.server
|
|
2856
|
-
))) {
|
|
2465
|
+
)))) {
|
|
2857
2466
|
const message = this.extension.server === this.extensionManagementServerService.localExtensionManagementServer
|
|
2858
|
-
? ( new MarkdownString(( localizeWithPath(
|
|
2859
|
-
|
|
2860
|
-
|
|
2467
|
+
? ( (new MarkdownString(( localizeWithPath(
|
|
2468
|
+
_moduleId,
|
|
2469
|
+
117,
|
|
2861
2470
|
"Install the language pack extension on '{0}' to enable it there also.",
|
|
2862
2471
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2863
|
-
))))
|
|
2864
|
-
: ( new MarkdownString(( localizeWithPath(
|
|
2865
|
-
|
|
2866
|
-
|
|
2472
|
+
)))))
|
|
2473
|
+
: ( (new MarkdownString(( localizeWithPath(
|
|
2474
|
+
_moduleId,
|
|
2475
|
+
118,
|
|
2867
2476
|
"Install the language pack extension locally to enable it there also."
|
|
2868
|
-
))));
|
|
2477
|
+
)))));
|
|
2869
2478
|
this.updateStatus({ icon: infoIcon, message }, true);
|
|
2870
2479
|
}
|
|
2871
2480
|
return;
|
|
@@ -2874,109 +2483,89 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2874
2483
|
const runningExtensionServer = runningExtension ? this.extensionManagementServerService.getExtensionManagementServer(toExtension(runningExtension)) : null;
|
|
2875
2484
|
if (this.extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2876
2485
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
|
|
2877
|
-
this.updateStatus({ icon: infoIcon, message: ( new MarkdownString(`${( localizeWithPath(
|
|
2878
|
-
|
|
2879
|
-
|
|
2486
|
+
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localizeWithPath(
|
|
2487
|
+
_moduleId,
|
|
2488
|
+
119,
|
|
2880
2489
|
"This extension is enabled in the Remote Extension Host because it prefers to run there."
|
|
2881
|
-
))} [${( localizeWithPath(
|
|
2882
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2883
|
-
'learn more',
|
|
2884
|
-
"Learn More"
|
|
2885
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)) }, true);
|
|
2490
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
|
|
2886
2491
|
}
|
|
2887
2492
|
return;
|
|
2888
2493
|
}
|
|
2889
2494
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
2890
2495
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
|
|
2891
|
-
this.updateStatus({ icon: infoIcon, message: ( new MarkdownString(`${( localizeWithPath(
|
|
2892
|
-
|
|
2893
|
-
|
|
2496
|
+
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localizeWithPath(
|
|
2497
|
+
_moduleId,
|
|
2498
|
+
120,
|
|
2894
2499
|
"This extension is enabled in the Local Extension Host because it prefers to run there."
|
|
2895
|
-
))} [${( localizeWithPath(
|
|
2896
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2897
|
-
'learn more',
|
|
2898
|
-
"Learn More"
|
|
2899
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)) }, true);
|
|
2500
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
|
|
2900
2501
|
}
|
|
2901
2502
|
return;
|
|
2902
2503
|
}
|
|
2903
2504
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.webExtensionManagementServer) {
|
|
2904
2505
|
if (this.extensionManifestPropertiesService.canExecuteOnWeb(this.extension.local.manifest)) {
|
|
2905
|
-
this.updateStatus({ icon: infoIcon, message: ( new MarkdownString(`${( localizeWithPath(
|
|
2906
|
-
|
|
2907
|
-
|
|
2506
|
+
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localizeWithPath(
|
|
2507
|
+
_moduleId,
|
|
2508
|
+
121,
|
|
2908
2509
|
"This extension is enabled in the Web Worker Extension Host because it prefers to run there."
|
|
2909
|
-
))} [${( localizeWithPath(
|
|
2910
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2911
|
-
'learn more',
|
|
2912
|
-
"Learn More"
|
|
2913
|
-
))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)) }, true);
|
|
2510
|
+
))} [${( localizeWithPath(_moduleId, 103, "Learn More"))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
|
|
2914
2511
|
}
|
|
2915
2512
|
return;
|
|
2916
2513
|
}
|
|
2917
2514
|
}
|
|
2918
2515
|
if (this.extension.enablementState === 5 ) {
|
|
2919
|
-
this.updateStatus({ icon: warningIcon, message: ( new MarkdownString(( localizeWithPath(
|
|
2920
|
-
|
|
2921
|
-
|
|
2516
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localizeWithPath(
|
|
2517
|
+
_moduleId,
|
|
2518
|
+
122,
|
|
2922
2519
|
"This extension has been disabled because it depends on an extension that is disabled."
|
|
2923
|
-
)))) }, true);
|
|
2520
|
+
))))) }, true);
|
|
2924
2521
|
return;
|
|
2925
2522
|
}
|
|
2926
2523
|
const isEnabled = this.workbenchExtensionEnablementService.isEnabled(this.extension.local);
|
|
2927
|
-
const isRunning = ( this.extensionService.extensions.some(
|
|
2524
|
+
const isRunning = ( (this.extensionService.extensions.some(
|
|
2928
2525
|
e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier)
|
|
2929
|
-
));
|
|
2526
|
+
)));
|
|
2930
2527
|
if (!this.extension.isWorkspaceScoped && isEnabled && isRunning) {
|
|
2931
2528
|
if (this.extension.enablementState === 9 ) {
|
|
2932
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2933
|
-
|
|
2934
|
-
|
|
2529
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(
|
|
2530
|
+
_moduleId,
|
|
2531
|
+
123,
|
|
2935
2532
|
"This extension is enabled for this workspace by the user."
|
|
2936
|
-
)))) }, true);
|
|
2533
|
+
))))) }, true);
|
|
2937
2534
|
return;
|
|
2938
2535
|
}
|
|
2939
2536
|
if (this.extensionManagementServerService.localExtensionManagementServer && this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2940
2537
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2941
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2942
|
-
|
|
2943
|
-
|
|
2538
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(
|
|
2539
|
+
_moduleId,
|
|
2540
|
+
124,
|
|
2944
2541
|
"Extension is enabled on '{0}'",
|
|
2945
2542
|
this.extension.server.label
|
|
2946
|
-
)))) }, true);
|
|
2543
|
+
))))) }, true);
|
|
2947
2544
|
return;
|
|
2948
2545
|
}
|
|
2949
2546
|
}
|
|
2950
2547
|
if (this.extension.enablementState === 8 ) {
|
|
2951
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2952
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2953
|
-
'globally enabled',
|
|
2954
|
-
"This extension is enabled globally."
|
|
2955
|
-
)))) }, true);
|
|
2548
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(_moduleId, 125, "This extension is enabled globally."))))) }, true);
|
|
2956
2549
|
return;
|
|
2957
2550
|
}
|
|
2958
2551
|
}
|
|
2959
2552
|
if (!isEnabled && !isRunning) {
|
|
2960
2553
|
if (this.extension.enablementState === 6 ) {
|
|
2961
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2962
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
2963
|
-
'globally disabled',
|
|
2964
|
-
"This extension is disabled globally by the user."
|
|
2965
|
-
)))) }, true);
|
|
2554
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(_moduleId, 126, "This extension is disabled globally by the user."))))) }, true);
|
|
2966
2555
|
return;
|
|
2967
2556
|
}
|
|
2968
2557
|
if (this.extension.enablementState === 7 ) {
|
|
2969
|
-
this.updateStatus({ message: ( new MarkdownString(( localizeWithPath(
|
|
2970
|
-
|
|
2971
|
-
|
|
2558
|
+
this.updateStatus({ message: ( (new MarkdownString(( localizeWithPath(
|
|
2559
|
+
_moduleId,
|
|
2560
|
+
127,
|
|
2972
2561
|
"This extension is disabled for this workspace by the user."
|
|
2973
|
-
)))) }, true);
|
|
2562
|
+
))))) }, true);
|
|
2974
2563
|
return;
|
|
2975
2564
|
}
|
|
2976
2565
|
}
|
|
2977
2566
|
if (isEnabled && !isRunning && !this.extension.local.isValid) {
|
|
2978
|
-
const errors = ( this.extension.local.validations.filter(([severity]) => severity === Severity$1.Error).map(([, message]) => message));
|
|
2979
|
-
this.updateStatus({ icon: errorIcon, message: ( new MarkdownString(errors.join(' ').trim())) }, true);
|
|
2567
|
+
const errors = ( (this.extension.local.validations.filter(([severity]) => severity === Severity$1.Error).map(([, message]) => message)));
|
|
2568
|
+
this.updateStatus({ icon: errorIcon, message: ( (new MarkdownString(errors.join(' ').trim()))) }, true);
|
|
2980
2569
|
}
|
|
2981
2570
|
}
|
|
2982
2571
|
updateStatus(status, updateClass) {
|
|
@@ -3012,28 +2601,24 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
3012
2601
|
}
|
|
3013
2602
|
}
|
|
3014
2603
|
};
|
|
3015
|
-
ExtensionStatusAction = ExtensionStatusAction_1 = ( __decorate([
|
|
3016
|
-
( __param(0, IExtensionManagementServerService)),
|
|
3017
|
-
( __param(1, ILabelService)),
|
|
3018
|
-
( __param(2, ICommandService)),
|
|
3019
|
-
( __param(3, IWorkspaceTrustEnablementService)),
|
|
3020
|
-
( __param(4, IWorkspaceTrustManagementService)),
|
|
3021
|
-
( __param(5, IExtensionsWorkbenchService)),
|
|
3022
|
-
( __param(6, IExtensionService)),
|
|
3023
|
-
( __param(7, IExtensionManifestPropertiesService)),
|
|
3024
|
-
( __param(8, IWorkspaceContextService)),
|
|
3025
|
-
( __param(9, IProductService)),
|
|
3026
|
-
( __param(10, IWorkbenchExtensionEnablementService)),
|
|
3027
|
-
( __param(11, IExtensionFeaturesManagementService))
|
|
3028
|
-
], ExtensionStatusAction));
|
|
2604
|
+
ExtensionStatusAction = ExtensionStatusAction_1 = ( (__decorate([
|
|
2605
|
+
( (__param(0, IExtensionManagementServerService))),
|
|
2606
|
+
( (__param(1, ILabelService))),
|
|
2607
|
+
( (__param(2, ICommandService))),
|
|
2608
|
+
( (__param(3, IWorkspaceTrustEnablementService))),
|
|
2609
|
+
( (__param(4, IWorkspaceTrustManagementService))),
|
|
2610
|
+
( (__param(5, IExtensionsWorkbenchService))),
|
|
2611
|
+
( (__param(6, IExtensionService))),
|
|
2612
|
+
( (__param(7, IExtensionManifestPropertiesService))),
|
|
2613
|
+
( (__param(8, IWorkspaceContextService))),
|
|
2614
|
+
( (__param(9, IProductService))),
|
|
2615
|
+
( (__param(10, IWorkbenchExtensionEnablementService))),
|
|
2616
|
+
( (__param(11, IExtensionFeaturesManagementService)))
|
|
2617
|
+
], ExtensionStatusAction)));
|
|
3029
2618
|
let ReinstallAction = class ReinstallAction extends Action {
|
|
3030
2619
|
static { ReinstallAction_1 = this; }
|
|
3031
2620
|
static { this.ID = 'workbench.extensions.action.reinstall'; }
|
|
3032
|
-
static { this.LABEL = ( localizeWithPath(
|
|
3033
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3034
|
-
'reinstall',
|
|
3035
|
-
"Reinstall Extension..."
|
|
3036
|
-
)); }
|
|
2621
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 128, "Reinstall Extension...")); }
|
|
3037
2622
|
constructor(id = ReinstallAction_1.ID, label = ReinstallAction_1.LABEL, extensionsWorkbenchService, extensionManagementServerService, quickInputService, notificationService, hostService, instantiationService, extensionService) {
|
|
3038
2623
|
super(id, label);
|
|
3039
2624
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -3048,17 +2633,13 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
3048
2633
|
return this.extensionsWorkbenchService.local.filter(l => !l.isBuiltin && l.local).length > 0;
|
|
3049
2634
|
}
|
|
3050
2635
|
run() {
|
|
3051
|
-
return this.quickInputService.pick(this.getEntries(), { placeHolder: ( localizeWithPath(
|
|
3052
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3053
|
-
'selectExtensionToReinstall',
|
|
3054
|
-
"Select Extension to Reinstall"
|
|
3055
|
-
)) })
|
|
2636
|
+
return this.quickInputService.pick(this.getEntries(), { placeHolder: ( localizeWithPath(_moduleId, 129, "Select Extension to Reinstall")) })
|
|
3056
2637
|
.then(pick => pick && this.reinstallExtension(pick.extension));
|
|
3057
2638
|
}
|
|
3058
2639
|
getEntries() {
|
|
3059
2640
|
return this.extensionsWorkbenchService.queryLocal()
|
|
3060
2641
|
.then(local => {
|
|
3061
|
-
const entries = ( local
|
|
2642
|
+
const entries = ( (local
|
|
3062
2643
|
.filter(extension => !extension.isBuiltin && extension.server !== this.extensionManagementServerService.webExtensionManagementServer)
|
|
3063
2644
|
.map(extension => {
|
|
3064
2645
|
return {
|
|
@@ -3067,7 +2648,7 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
3067
2648
|
description: extension.identifier.id,
|
|
3068
2649
|
extension,
|
|
3069
2650
|
};
|
|
3070
|
-
}));
|
|
2651
|
+
})));
|
|
3071
2652
|
return entries;
|
|
3072
2653
|
});
|
|
3073
2654
|
}
|
|
@@ -3078,23 +2659,19 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
3078
2659
|
.then(extension => {
|
|
3079
2660
|
const requireReload = !(extension.local && this.extensionService.canAddExtension(toExtensionDescription(extension.local)));
|
|
3080
2661
|
const message = requireReload ? ( localizeWithPath(
|
|
3081
|
-
|
|
3082
|
-
|
|
2662
|
+
_moduleId,
|
|
2663
|
+
130,
|
|
3083
2664
|
"Please reload Visual Studio Code to complete reinstalling the extension {0}.",
|
|
3084
2665
|
extension.identifier.id
|
|
3085
2666
|
))
|
|
3086
2667
|
: ( localizeWithPath(
|
|
3087
|
-
|
|
3088
|
-
|
|
2668
|
+
_moduleId,
|
|
2669
|
+
131,
|
|
3089
2670
|
"Reinstalling the extension {0} is completed.",
|
|
3090
2671
|
extension.identifier.id
|
|
3091
2672
|
));
|
|
3092
2673
|
const actions = requireReload ? [{
|
|
3093
|
-
label: ( localizeWithPath(
|
|
3094
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3095
|
-
'InstallVSIXAction.reloadNow',
|
|
3096
|
-
"Reload Now"
|
|
3097
|
-
)),
|
|
2674
|
+
label: ( localizeWithPath(_moduleId, 132, "Reload Now")),
|
|
3098
2675
|
run: () => this.hostService.reload()
|
|
3099
2676
|
}] : [];
|
|
3100
2677
|
this.notificationService.prompt(Severity$1.Info, message, actions, { sticky: true });
|
|
@@ -3102,23 +2679,19 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
3102
2679
|
});
|
|
3103
2680
|
}
|
|
3104
2681
|
};
|
|
3105
|
-
ReinstallAction = ReinstallAction_1 = ( __decorate([
|
|
3106
|
-
( __param(2, IExtensionsWorkbenchService)),
|
|
3107
|
-
( __param(3, IExtensionManagementServerService)),
|
|
3108
|
-
( __param(4, IQuickInputService)),
|
|
3109
|
-
( __param(5, INotificationService)),
|
|
3110
|
-
( __param(6, IHostService)),
|
|
3111
|
-
( __param(7, IInstantiationService)),
|
|
3112
|
-
( __param(8, IExtensionService))
|
|
3113
|
-
], ReinstallAction));
|
|
2682
|
+
ReinstallAction = ReinstallAction_1 = ( (__decorate([
|
|
2683
|
+
( (__param(2, IExtensionsWorkbenchService))),
|
|
2684
|
+
( (__param(3, IExtensionManagementServerService))),
|
|
2685
|
+
( (__param(4, IQuickInputService))),
|
|
2686
|
+
( (__param(5, INotificationService))),
|
|
2687
|
+
( (__param(6, IHostService))),
|
|
2688
|
+
( (__param(7, IInstantiationService))),
|
|
2689
|
+
( (__param(8, IExtensionService)))
|
|
2690
|
+
], ReinstallAction)));
|
|
3114
2691
|
let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExtensionAction extends Action {
|
|
3115
2692
|
static { InstallSpecificVersionOfExtensionAction_1 = this; }
|
|
3116
2693
|
static { this.ID = 'workbench.extensions.action.install.specificVersion'; }
|
|
3117
|
-
static { this.LABEL = ( localizeWithPath(
|
|
3118
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3119
|
-
'install previous version',
|
|
3120
|
-
"Install Specific Version of Extension..."
|
|
3121
|
-
)); }
|
|
2694
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 133, "Install Specific Version of Extension...")); }
|
|
3122
2695
|
constructor(id = InstallSpecificVersionOfExtensionAction_1.ID, label = InstallSpecificVersionOfExtensionAction_1.LABEL, extensionsWorkbenchService, quickInputService, instantiationService, extensionEnablementService) {
|
|
3123
2696
|
super(id, label);
|
|
3124
2697
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -3127,14 +2700,12 @@ let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExte
|
|
|
3127
2700
|
this.extensionEnablementService = extensionEnablementService;
|
|
3128
2701
|
}
|
|
3129
2702
|
get enabled() {
|
|
3130
|
-
return (
|
|
2703
|
+
return (
|
|
2704
|
+
(this.extensionsWorkbenchService.local.some(l => this.isEnabled(l)))
|
|
2705
|
+
);
|
|
3131
2706
|
}
|
|
3132
2707
|
async run() {
|
|
3133
|
-
const extensionPick = await this.quickInputService.pick(this.getExtensionEntries(), { placeHolder: ( localizeWithPath(
|
|
3134
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3135
|
-
'selectExtension',
|
|
3136
|
-
"Select Extension"
|
|
3137
|
-
)), matchOnDetail: true });
|
|
2708
|
+
const extensionPick = await this.quickInputService.pick(this.getExtensionEntries(), { placeHolder: ( localizeWithPath(_moduleId, 134, "Select Extension")), matchOnDetail: true });
|
|
3138
2709
|
if (extensionPick && extensionPick.extension) {
|
|
3139
2710
|
const action = this.instantiationService.createInstance(InstallAnotherVersionAction);
|
|
3140
2711
|
action.extension = extensionPick.extension;
|
|
@@ -3163,12 +2734,12 @@ let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExte
|
|
|
3163
2734
|
return entries.sort((e1, e2) => e1.extension.displayName.localeCompare(e2.extension.displayName));
|
|
3164
2735
|
}
|
|
3165
2736
|
};
|
|
3166
|
-
InstallSpecificVersionOfExtensionAction = InstallSpecificVersionOfExtensionAction_1 = ( __decorate([
|
|
3167
|
-
( __param(2, IExtensionsWorkbenchService)),
|
|
3168
|
-
( __param(3, IQuickInputService)),
|
|
3169
|
-
( __param(4, IInstantiationService)),
|
|
3170
|
-
( __param(5, IWorkbenchExtensionEnablementService))
|
|
3171
|
-
], InstallSpecificVersionOfExtensionAction));
|
|
2737
|
+
InstallSpecificVersionOfExtensionAction = InstallSpecificVersionOfExtensionAction_1 = ( (__decorate([
|
|
2738
|
+
( (__param(2, IExtensionsWorkbenchService))),
|
|
2739
|
+
( (__param(3, IQuickInputService))),
|
|
2740
|
+
( (__param(4, IInstantiationService))),
|
|
2741
|
+
( (__param(5, IWorkbenchExtensionEnablementService)))
|
|
2742
|
+
], InstallSpecificVersionOfExtensionAction)));
|
|
3172
2743
|
let AbstractInstallExtensionsInServerAction = class AbstractInstallExtensionsInServerAction extends Action {
|
|
3173
2744
|
constructor(id, extensionsWorkbenchService, quickInputService, notificationService, progressService) {
|
|
3174
2745
|
super(id);
|
|
@@ -3214,57 +2785,41 @@ let AbstractInstallExtensionsInServerAction = class AbstractInstallExtensionsInS
|
|
|
3214
2785
|
quickPick.busy = false;
|
|
3215
2786
|
if (localExtensionsToInstall.length) {
|
|
3216
2787
|
quickPick.title = this.getQuickPickTitle();
|
|
3217
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
3218
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3219
|
-
'select extensions to install',
|
|
3220
|
-
"Select extensions to install"
|
|
3221
|
-
));
|
|
2788
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 135, "Select extensions to install"));
|
|
3222
2789
|
quickPick.canSelectMany = true;
|
|
3223
2790
|
localExtensionsToInstall.sort((e1, e2) => e1.displayName.localeCompare(e2.displayName));
|
|
3224
|
-
quickPick.items = ( localExtensionsToInstall.map(
|
|
2791
|
+
quickPick.items = ( (localExtensionsToInstall.map(
|
|
3225
2792
|
extension => ({ extension, label: extension.displayName, description: extension.version })
|
|
3226
|
-
));
|
|
2793
|
+
)));
|
|
3227
2794
|
}
|
|
3228
2795
|
else {
|
|
3229
2796
|
quickPick.hide();
|
|
3230
2797
|
quickPick.dispose();
|
|
3231
2798
|
this.notificationService.notify({
|
|
3232
2799
|
severity: Severity$1.Info,
|
|
3233
|
-
message: ( localizeWithPath(
|
|
3234
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3235
|
-
'no local extensions',
|
|
3236
|
-
"There are no extensions to install."
|
|
3237
|
-
))
|
|
2800
|
+
message: ( localizeWithPath(_moduleId, 136, "There are no extensions to install."))
|
|
3238
2801
|
});
|
|
3239
2802
|
}
|
|
3240
2803
|
}
|
|
3241
2804
|
async onDidAccept(selectedItems) {
|
|
3242
2805
|
if (selectedItems.length) {
|
|
3243
|
-
const localExtensionsToInstall = ( selectedItems.filter(r => !!r.extension).map(r => r.extension));
|
|
2806
|
+
const localExtensionsToInstall = ( (selectedItems.filter(r => !!r.extension).map(r => r.extension)));
|
|
3244
2807
|
if (localExtensionsToInstall.length) {
|
|
3245
2808
|
await this.progressService.withProgress({
|
|
3246
2809
|
location: 15 ,
|
|
3247
|
-
title: ( localizeWithPath(
|
|
3248
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3249
|
-
'installing extensions',
|
|
3250
|
-
"Installing Extensions..."
|
|
3251
|
-
))
|
|
2810
|
+
title: ( localizeWithPath(_moduleId, 137, "Installing Extensions..."))
|
|
3252
2811
|
}, () => this.installExtensions(localExtensionsToInstall));
|
|
3253
|
-
this.notificationService.info(( localizeWithPath(
|
|
3254
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3255
|
-
'finished installing',
|
|
3256
|
-
"Successfully installed extensions."
|
|
3257
|
-
)));
|
|
2812
|
+
this.notificationService.info(( localizeWithPath(_moduleId, 138, "Successfully installed extensions.")));
|
|
3258
2813
|
}
|
|
3259
2814
|
}
|
|
3260
2815
|
}
|
|
3261
2816
|
};
|
|
3262
|
-
AbstractInstallExtensionsInServerAction = ( __decorate([
|
|
3263
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
3264
|
-
( __param(2, IQuickInputService)),
|
|
3265
|
-
( __param(3, INotificationService)),
|
|
3266
|
-
( __param(4, IProgressService))
|
|
3267
|
-
], AbstractInstallExtensionsInServerAction));
|
|
2817
|
+
AbstractInstallExtensionsInServerAction = ( (__decorate([
|
|
2818
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
2819
|
+
( (__param(2, IQuickInputService))),
|
|
2820
|
+
( (__param(3, INotificationService))),
|
|
2821
|
+
( (__param(4, IProgressService)))
|
|
2822
|
+
], AbstractInstallExtensionsInServerAction)));
|
|
3268
2823
|
let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteAction extends AbstractInstallExtensionsInServerAction {
|
|
3269
2824
|
constructor(extensionsWorkbenchService, quickInputService, progressService, notificationService, extensionManagementServerService, extensionGalleryService, instantiationService, fileService, logService) {
|
|
3270
2825
|
super('workbench.extensions.actions.installLocalExtensionsInRemote', extensionsWorkbenchService, quickInputService, notificationService, progressService);
|
|
@@ -3277,8 +2832,8 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
3277
2832
|
get label() {
|
|
3278
2833
|
if (this.extensionManagementServerService && this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
3279
2834
|
return ( localizeWithPath(
|
|
3280
|
-
|
|
3281
|
-
|
|
2835
|
+
_moduleId,
|
|
2836
|
+
139,
|
|
3282
2837
|
"Install Local Extensions in '{0}'...",
|
|
3283
2838
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
3284
2839
|
));
|
|
@@ -3287,8 +2842,8 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
3287
2842
|
}
|
|
3288
2843
|
getQuickPickTitle() {
|
|
3289
2844
|
return ( localizeWithPath(
|
|
3290
|
-
|
|
3291
|
-
|
|
2845
|
+
_moduleId,
|
|
2846
|
+
140,
|
|
3292
2847
|
"Install Local Extensions in '{0}'",
|
|
3293
2848
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
3294
2849
|
));
|
|
@@ -3304,7 +2859,7 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
3304
2859
|
const galleryExtensions = [];
|
|
3305
2860
|
const vsixs = [];
|
|
3306
2861
|
const targetPlatform = await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getTargetPlatform();
|
|
3307
|
-
await Promises.settled(( localExtensionsToInstall.map(async (extension) => {
|
|
2862
|
+
await Promises.settled(( (localExtensionsToInstall.map(async (extension) => {
|
|
3308
2863
|
if (this.extensionGalleryService.isEnabled()) {
|
|
3309
2864
|
const gallery = (await this.extensionGalleryService.getExtensions([{ ...extension.identifier, preRelease: !!extension.local?.preRelease }], { targetPlatform, compatible: true }, CancellationToken.None))[0];
|
|
3310
2865
|
if (gallery) {
|
|
@@ -3314,18 +2869,18 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
3314
2869
|
}
|
|
3315
2870
|
const vsix = await this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.zip(extension.local);
|
|
3316
2871
|
vsixs.push(vsix);
|
|
3317
|
-
})));
|
|
3318
|
-
await Promises.settled(( galleryExtensions.map(
|
|
2872
|
+
}))));
|
|
2873
|
+
await Promises.settled(( (galleryExtensions.map(
|
|
3319
2874
|
gallery => this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.installFromGallery(gallery)
|
|
3320
|
-
)));
|
|
2875
|
+
))));
|
|
3321
2876
|
try {
|
|
3322
|
-
await Promises.settled(( vsixs.map(
|
|
2877
|
+
await Promises.settled(( (vsixs.map(
|
|
3323
2878
|
vsix => this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.install(vsix)
|
|
3324
|
-
)));
|
|
2879
|
+
))));
|
|
3325
2880
|
}
|
|
3326
2881
|
finally {
|
|
3327
2882
|
try {
|
|
3328
|
-
await Promise.allSettled(( vsixs.map(vsix => this.fileService.del(vsix))));
|
|
2883
|
+
await Promise.allSettled(( (vsixs.map(vsix => this.fileService.del(vsix)))));
|
|
3329
2884
|
}
|
|
3330
2885
|
catch (error) {
|
|
3331
2886
|
this.logService.error(error);
|
|
@@ -3333,17 +2888,17 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
3333
2888
|
}
|
|
3334
2889
|
}
|
|
3335
2890
|
};
|
|
3336
|
-
InstallLocalExtensionsInRemoteAction = ( __decorate([
|
|
3337
|
-
( __param(0, IExtensionsWorkbenchService)),
|
|
3338
|
-
( __param(1, IQuickInputService)),
|
|
3339
|
-
( __param(2, IProgressService)),
|
|
3340
|
-
( __param(3, INotificationService)),
|
|
3341
|
-
( __param(4, IExtensionManagementServerService)),
|
|
3342
|
-
( __param(5, IExtensionGalleryService)),
|
|
3343
|
-
( __param(6, IInstantiationService)),
|
|
3344
|
-
( __param(7, IFileService)),
|
|
3345
|
-
( __param(8, ILogService))
|
|
3346
|
-
], InstallLocalExtensionsInRemoteAction));
|
|
2891
|
+
InstallLocalExtensionsInRemoteAction = ( (__decorate([
|
|
2892
|
+
( (__param(0, IExtensionsWorkbenchService))),
|
|
2893
|
+
( (__param(1, IQuickInputService))),
|
|
2894
|
+
( (__param(2, IProgressService))),
|
|
2895
|
+
( (__param(3, INotificationService))),
|
|
2896
|
+
( (__param(4, IExtensionManagementServerService))),
|
|
2897
|
+
( (__param(5, IExtensionGalleryService))),
|
|
2898
|
+
( (__param(6, IInstantiationService))),
|
|
2899
|
+
( (__param(7, IFileService))),
|
|
2900
|
+
( (__param(8, ILogService)))
|
|
2901
|
+
], InstallLocalExtensionsInRemoteAction)));
|
|
3347
2902
|
let InstallRemoteExtensionsInLocalAction = class InstallRemoteExtensionsInLocalAction extends AbstractInstallExtensionsInServerAction {
|
|
3348
2903
|
constructor(id, extensionsWorkbenchService, quickInputService, progressService, notificationService, extensionManagementServerService, extensionGalleryService, fileService, logService) {
|
|
3349
2904
|
super(id, extensionsWorkbenchService, quickInputService, notificationService, progressService);
|
|
@@ -3353,30 +2908,22 @@ let InstallRemoteExtensionsInLocalAction = class InstallRemoteExtensionsInLocalA
|
|
|
3353
2908
|
this.logService = logService;
|
|
3354
2909
|
}
|
|
3355
2910
|
get label() {
|
|
3356
|
-
return ( localizeWithPath(
|
|
3357
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3358
|
-
'select and install remote extensions',
|
|
3359
|
-
"Install Remote Extensions Locally..."
|
|
3360
|
-
));
|
|
2911
|
+
return ( localizeWithPath(_moduleId, 141, "Install Remote Extensions Locally..."));
|
|
3361
2912
|
}
|
|
3362
2913
|
getQuickPickTitle() {
|
|
3363
|
-
return ( localizeWithPath(
|
|
3364
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3365
|
-
'install remote extensions',
|
|
3366
|
-
"Install Remote Extensions Locally"
|
|
3367
|
-
));
|
|
2914
|
+
return ( localizeWithPath(_moduleId, 142, "Install Remote Extensions Locally"));
|
|
3368
2915
|
}
|
|
3369
2916
|
getExtensionsToInstall(local) {
|
|
3370
2917
|
return local.filter(extension => extension.type === 1 && extension.server !== this.extensionManagementServerService.localExtensionManagementServer
|
|
3371
|
-
&& !( this.extensionsWorkbenchService.installed.some(
|
|
2918
|
+
&& !( (this.extensionsWorkbenchService.installed.some(
|
|
3372
2919
|
e => e.server === this.extensionManagementServerService.localExtensionManagementServer && areSameExtensions(e.identifier, extension.identifier)
|
|
3373
|
-
)));
|
|
2920
|
+
))));
|
|
3374
2921
|
}
|
|
3375
2922
|
async installExtensions(extensions) {
|
|
3376
2923
|
const galleryExtensions = [];
|
|
3377
2924
|
const vsixs = [];
|
|
3378
2925
|
const targetPlatform = await this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getTargetPlatform();
|
|
3379
|
-
await Promises.settled(( extensions.map(async (extension) => {
|
|
2926
|
+
await Promises.settled(( (extensions.map(async (extension) => {
|
|
3380
2927
|
if (this.extensionGalleryService.isEnabled()) {
|
|
3381
2928
|
const gallery = (await this.extensionGalleryService.getExtensions([{ ...extension.identifier, preRelease: !!extension.local?.preRelease }], { targetPlatform, compatible: true }, CancellationToken.None))[0];
|
|
3382
2929
|
if (gallery) {
|
|
@@ -3386,18 +2933,18 @@ let InstallRemoteExtensionsInLocalAction = class InstallRemoteExtensionsInLocalA
|
|
|
3386
2933
|
}
|
|
3387
2934
|
const vsix = await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.zip(extension.local);
|
|
3388
2935
|
vsixs.push(vsix);
|
|
3389
|
-
})));
|
|
3390
|
-
await Promises.settled(( galleryExtensions.map(
|
|
2936
|
+
}))));
|
|
2937
|
+
await Promises.settled(( (galleryExtensions.map(
|
|
3391
2938
|
gallery => this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(gallery)
|
|
3392
|
-
)));
|
|
2939
|
+
))));
|
|
3393
2940
|
try {
|
|
3394
|
-
await Promises.settled(( vsixs.map(
|
|
2941
|
+
await Promises.settled(( (vsixs.map(
|
|
3395
2942
|
vsix => this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.install(vsix)
|
|
3396
|
-
)));
|
|
2943
|
+
))));
|
|
3397
2944
|
}
|
|
3398
2945
|
finally {
|
|
3399
2946
|
try {
|
|
3400
|
-
await Promise.allSettled(( vsixs.map(vsix => this.fileService.del(vsix))));
|
|
2947
|
+
await Promise.allSettled(( (vsixs.map(vsix => this.fileService.del(vsix)))));
|
|
3401
2948
|
}
|
|
3402
2949
|
catch (error) {
|
|
3403
2950
|
this.logService.error(error);
|
|
@@ -3405,16 +2952,16 @@ let InstallRemoteExtensionsInLocalAction = class InstallRemoteExtensionsInLocalA
|
|
|
3405
2952
|
}
|
|
3406
2953
|
}
|
|
3407
2954
|
};
|
|
3408
|
-
InstallRemoteExtensionsInLocalAction = ( __decorate([
|
|
3409
|
-
( __param(1, IExtensionsWorkbenchService)),
|
|
3410
|
-
( __param(2, IQuickInputService)),
|
|
3411
|
-
( __param(3, IProgressService)),
|
|
3412
|
-
( __param(4, INotificationService)),
|
|
3413
|
-
( __param(5, IExtensionManagementServerService)),
|
|
3414
|
-
( __param(6, IExtensionGalleryService)),
|
|
3415
|
-
( __param(7, IFileService)),
|
|
3416
|
-
( __param(8, ILogService))
|
|
3417
|
-
], InstallRemoteExtensionsInLocalAction));
|
|
2955
|
+
InstallRemoteExtensionsInLocalAction = ( (__decorate([
|
|
2956
|
+
( (__param(1, IExtensionsWorkbenchService))),
|
|
2957
|
+
( (__param(2, IQuickInputService))),
|
|
2958
|
+
( (__param(3, IProgressService))),
|
|
2959
|
+
( (__param(4, INotificationService))),
|
|
2960
|
+
( (__param(5, IExtensionManagementServerService))),
|
|
2961
|
+
( (__param(6, IExtensionGalleryService))),
|
|
2962
|
+
( (__param(7, IFileService))),
|
|
2963
|
+
( (__param(8, ILogService)))
|
|
2964
|
+
], InstallRemoteExtensionsInLocalAction)));
|
|
3418
2965
|
CommandsRegistry.registerCommand('workbench.extensions.action.showExtensionsForLanguage', function (accessor, fileExtension) {
|
|
3419
2966
|
const paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
3420
2967
|
return paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true)
|
|
@@ -3429,8 +2976,8 @@ CommandsRegistry.registerCommand('workbench.extensions.action.showExtensionsWith
|
|
|
3429
2976
|
return paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true)
|
|
3430
2977
|
.then(viewlet => viewlet?.getViewPaneContainer())
|
|
3431
2978
|
.then(viewlet => {
|
|
3432
|
-
const query = ( extensionIds
|
|
3433
|
-
.map(id => `@id:${id}`))
|
|
2979
|
+
const query = ( (extensionIds
|
|
2980
|
+
.map(id => `@id:${id}`)))
|
|
3434
2981
|
.join(' ');
|
|
3435
2982
|
viewlet.search(query);
|
|
3436
2983
|
viewlet.focus();
|
|
@@ -3441,49 +2988,33 @@ registerColor('extensionButton.background', {
|
|
|
3441
2988
|
light: buttonBackground,
|
|
3442
2989
|
hcDark: null,
|
|
3443
2990
|
hcLight: null
|
|
3444
|
-
}, ( localizeWithPath(
|
|
3445
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3446
|
-
'extensionButtonBackground',
|
|
3447
|
-
"Button background color for extension actions."
|
|
3448
|
-
)));
|
|
2991
|
+
}, ( localizeWithPath(_moduleId, 143, "Button background color for extension actions.")));
|
|
3449
2992
|
registerColor('extensionButton.foreground', {
|
|
3450
2993
|
dark: buttonForeground,
|
|
3451
2994
|
light: buttonForeground,
|
|
3452
2995
|
hcDark: null,
|
|
3453
2996
|
hcLight: null
|
|
3454
|
-
}, ( localizeWithPath(
|
|
3455
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3456
|
-
'extensionButtonForeground',
|
|
3457
|
-
"Button foreground color for extension actions."
|
|
3458
|
-
)));
|
|
2997
|
+
}, ( localizeWithPath(_moduleId, 144, "Button foreground color for extension actions.")));
|
|
3459
2998
|
registerColor('extensionButton.hoverBackground', {
|
|
3460
2999
|
dark: buttonHoverBackground,
|
|
3461
3000
|
light: buttonHoverBackground,
|
|
3462
3001
|
hcDark: null,
|
|
3463
3002
|
hcLight: null
|
|
3464
|
-
}, ( localizeWithPath(
|
|
3465
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3466
|
-
'extensionButtonHoverBackground',
|
|
3467
|
-
"Button background hover color for extension actions."
|
|
3468
|
-
)));
|
|
3003
|
+
}, ( localizeWithPath(_moduleId, 145, "Button background hover color for extension actions.")));
|
|
3469
3004
|
registerColor('extensionButton.separator', {
|
|
3470
3005
|
dark: buttonSeparator,
|
|
3471
3006
|
light: buttonSeparator,
|
|
3472
3007
|
hcDark: buttonSeparator,
|
|
3473
3008
|
hcLight: buttonSeparator
|
|
3474
|
-
}, ( localizeWithPath(
|
|
3475
|
-
'vs/workbench/contrib/extensions/browser/extensionsActions',
|
|
3476
|
-
'extensionButtonSeparator',
|
|
3477
|
-
"Button separator color for extension actions"
|
|
3478
|
-
)));
|
|
3009
|
+
}, ( localizeWithPath(_moduleId, 146, "Button separator color for extension actions")));
|
|
3479
3010
|
const extensionButtonProminentBackground = registerColor('extensionButton.prominentBackground', {
|
|
3480
3011
|
dark: buttonBackground,
|
|
3481
3012
|
light: buttonBackground,
|
|
3482
3013
|
hcDark: null,
|
|
3483
3014
|
hcLight: null
|
|
3484
3015
|
}, ( localizeWithPath(
|
|
3485
|
-
|
|
3486
|
-
|
|
3016
|
+
_moduleId,
|
|
3017
|
+
147,
|
|
3487
3018
|
"Button background color for extension actions that stand out (e.g. install button)."
|
|
3488
3019
|
)));
|
|
3489
3020
|
registerColor('extensionButton.prominentForeground', {
|
|
@@ -3492,8 +3023,8 @@ registerColor('extensionButton.prominentForeground', {
|
|
|
3492
3023
|
hcDark: null,
|
|
3493
3024
|
hcLight: null
|
|
3494
3025
|
}, ( localizeWithPath(
|
|
3495
|
-
|
|
3496
|
-
|
|
3026
|
+
_moduleId,
|
|
3027
|
+
148,
|
|
3497
3028
|
"Button foreground color for extension actions that stand out (e.g. install button)."
|
|
3498
3029
|
)));
|
|
3499
3030
|
registerColor('extensionButton.prominentHoverBackground', {
|
|
@@ -3502,8 +3033,8 @@ registerColor('extensionButton.prominentHoverBackground', {
|
|
|
3502
3033
|
hcDark: null,
|
|
3503
3034
|
hcLight: null
|
|
3504
3035
|
}, ( localizeWithPath(
|
|
3505
|
-
|
|
3506
|
-
|
|
3036
|
+
_moduleId,
|
|
3037
|
+
149,
|
|
3507
3038
|
"Button background hover color for extension actions that stand out (e.g. install button)."
|
|
3508
3039
|
)));
|
|
3509
3040
|
registerThemingParticipant((theme, collector) => {
|