@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
|
@@ -64,7 +64,8 @@ import { makeAddress, forwardedPortsViewEnabled, parseAddress, TunnelCloseReason
|
|
|
64
64
|
import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
65
65
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
66
66
|
var TunnelPanel_1;
|
|
67
|
-
const
|
|
67
|
+
const _moduleId = "vs/workbench/contrib/remote/browser/tunnelView";
|
|
68
|
+
const openPreviewEnabledContext = ( (new RawContextKey('openPreviewEnabled', false)));
|
|
68
69
|
class TunnelTreeVirtualDelegate {
|
|
69
70
|
constructor(remoteExplorerService) {
|
|
70
71
|
this.remoteExplorerService = remoteExplorerService;
|
|
@@ -78,13 +79,9 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
78
79
|
constructor(remoteExplorerService, tunnelService) {
|
|
79
80
|
this.remoteExplorerService = remoteExplorerService;
|
|
80
81
|
this.tunnelService = tunnelService;
|
|
81
|
-
this._candidates = ( new Map());
|
|
82
|
+
this._candidates = ( (new Map()));
|
|
82
83
|
this.input = {
|
|
83
|
-
label: ( localizeWithPath(
|
|
84
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
85
|
-
'remote.tunnelsView.addPort',
|
|
86
|
-
"Add Port"
|
|
87
|
-
)),
|
|
84
|
+
label: ( localizeWithPath(_moduleId, 0, "Add Port")),
|
|
88
85
|
icon: undefined,
|
|
89
86
|
tunnelType: TunnelType.Add,
|
|
90
87
|
hasRunningProcess: false,
|
|
@@ -102,11 +99,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
102
99
|
privacy: {
|
|
103
100
|
id: TunnelPrivacyId.Private,
|
|
104
101
|
themeIcon: privatePortIcon.id,
|
|
105
|
-
label: ( localizeWithPath(
|
|
106
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
107
|
-
'tunnelPrivacy.private',
|
|
108
|
-
"Private"
|
|
109
|
-
))
|
|
102
|
+
label: ( localizeWithPath(_moduleId, 1, "Private"))
|
|
110
103
|
},
|
|
111
104
|
strip: () => undefined
|
|
112
105
|
};
|
|
@@ -115,7 +108,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
115
108
|
}
|
|
116
109
|
get all() {
|
|
117
110
|
const result = [];
|
|
118
|
-
this._candidates = ( new Map());
|
|
111
|
+
this._candidates = ( (new Map()));
|
|
119
112
|
this.model.candidates.forEach(candidate => {
|
|
120
113
|
this._candidates.set(makeAddress(candidate.host, candidate.port), candidate);
|
|
121
114
|
});
|
|
@@ -130,16 +123,16 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
130
123
|
}
|
|
131
124
|
addProcessInfoFromCandidate(tunnelItem) {
|
|
132
125
|
const key = makeAddress(tunnelItem.remoteHost, tunnelItem.remotePort);
|
|
133
|
-
if (( this._candidates.has(key))) {
|
|
126
|
+
if (( (this._candidates.has(key)))) {
|
|
134
127
|
tunnelItem.processDescription = this._candidates.get(key).detail;
|
|
135
128
|
}
|
|
136
129
|
}
|
|
137
130
|
get forwarded() {
|
|
138
|
-
const forwarded = ( Array.from(( this.model.forwarded.values())).map(tunnel => {
|
|
131
|
+
const forwarded = ( (Array.from(( (this.model.forwarded.values()))).map(tunnel => {
|
|
139
132
|
const tunnelItem = TunnelItem.createFromTunnel(this.remoteExplorerService, this.tunnelService, tunnel);
|
|
140
133
|
this.addProcessInfoFromCandidate(tunnelItem);
|
|
141
134
|
return tunnelItem;
|
|
142
|
-
})).sort((a, b) => {
|
|
135
|
+
}))).sort((a, b) => {
|
|
143
136
|
if (a.remotePort === b.remotePort) {
|
|
144
137
|
return a.remoteHost < b.remoteHost ? -1 : 1;
|
|
145
138
|
}
|
|
@@ -150,11 +143,13 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
150
143
|
return forwarded;
|
|
151
144
|
}
|
|
152
145
|
get detected() {
|
|
153
|
-
return (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
146
|
+
return (
|
|
147
|
+
(Array.from(( (this.model.detected.values()))).map(tunnel => {
|
|
148
|
+
const tunnelItem = TunnelItem.createFromTunnel(this.remoteExplorerService, this.tunnelService, tunnel, TunnelType.Detected, false);
|
|
149
|
+
this.addProcessInfoFromCandidate(tunnelItem);
|
|
150
|
+
return tunnelItem;
|
|
151
|
+
}))
|
|
152
|
+
);
|
|
158
153
|
}
|
|
159
154
|
isEmpty() {
|
|
160
155
|
return (this.detected.length === 0) &&
|
|
@@ -162,10 +157,10 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
162
157
|
(this.forwarded[0].tunnelType === TunnelType.Add) && !this.remoteExplorerService.getEditableData(undefined)));
|
|
163
158
|
}
|
|
164
159
|
};
|
|
165
|
-
TunnelViewModel = ( __decorate([
|
|
166
|
-
( __param(0, IRemoteExplorerService)),
|
|
167
|
-
( __param(1, ITunnelService))
|
|
168
|
-
], TunnelViewModel));
|
|
160
|
+
TunnelViewModel = ( (__decorate([
|
|
161
|
+
( (__param(0, IRemoteExplorerService))),
|
|
162
|
+
( (__param(1, ITunnelService)))
|
|
163
|
+
], TunnelViewModel)));
|
|
169
164
|
function emptyCell(item) {
|
|
170
165
|
return { label: '', tunnel: item, editId: TunnelEditId.None, tooltip: '' };
|
|
171
166
|
}
|
|
@@ -194,16 +189,8 @@ class IconColumn {
|
|
|
194
189
|
}
|
|
195
190
|
class PortColumn {
|
|
196
191
|
constructor() {
|
|
197
|
-
this.label = ( localizeWithPath(
|
|
198
|
-
|
|
199
|
-
'tunnel.portColumn.label',
|
|
200
|
-
"Port"
|
|
201
|
-
));
|
|
202
|
-
this.tooltip = ( localizeWithPath(
|
|
203
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
204
|
-
'tunnel.portColumn.tooltip',
|
|
205
|
-
"The label and remote port number of the forwarded port."
|
|
206
|
-
));
|
|
192
|
+
this.label = ( localizeWithPath(_moduleId, 2, "Port"));
|
|
193
|
+
this.tooltip = ( localizeWithPath(_moduleId, 3, "The label and remote port number of the forwarded port."));
|
|
207
194
|
this.weight = 1;
|
|
208
195
|
this.templateId = 'actionbar';
|
|
209
196
|
}
|
|
@@ -225,16 +212,8 @@ class PortColumn {
|
|
|
225
212
|
}
|
|
226
213
|
class LocalAddressColumn {
|
|
227
214
|
constructor() {
|
|
228
|
-
this.label = ( localizeWithPath(
|
|
229
|
-
|
|
230
|
-
'tunnel.addressColumn.label',
|
|
231
|
-
"Forwarded Address"
|
|
232
|
-
));
|
|
233
|
-
this.tooltip = ( localizeWithPath(
|
|
234
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
235
|
-
'tunnel.addressColumn.tooltip',
|
|
236
|
-
"The address that the forwarded port is available at."
|
|
237
|
-
));
|
|
215
|
+
this.label = ( localizeWithPath(_moduleId, 4, "Forwarded Address"));
|
|
216
|
+
this.tooltip = ( localizeWithPath(_moduleId, 5, "The address that the forwarded port is available at."));
|
|
238
217
|
this.weight = 1;
|
|
239
218
|
this.templateId = 'actionbar';
|
|
240
219
|
}
|
|
@@ -262,37 +241,21 @@ class LocalAddressColumn {
|
|
|
262
241
|
let clickLabel = '';
|
|
263
242
|
if (editorConf.multiCursorModifier === 'ctrlCmd') {
|
|
264
243
|
if (isMacintosh) {
|
|
265
|
-
clickLabel = ( localizeWithPath(
|
|
266
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
267
|
-
'portsLink.followLinkAlt.mac',
|
|
268
|
-
"option + click"
|
|
269
|
-
));
|
|
244
|
+
clickLabel = ( localizeWithPath(_moduleId, 6, "option + click"));
|
|
270
245
|
}
|
|
271
246
|
else {
|
|
272
|
-
clickLabel = ( localizeWithPath(
|
|
273
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
274
|
-
'portsLink.followLinkAlt',
|
|
275
|
-
"alt + click"
|
|
276
|
-
));
|
|
247
|
+
clickLabel = ( localizeWithPath(_moduleId, 7, "alt + click"));
|
|
277
248
|
}
|
|
278
249
|
}
|
|
279
250
|
else {
|
|
280
251
|
if (isMacintosh) {
|
|
281
|
-
clickLabel = ( localizeWithPath(
|
|
282
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
283
|
-
'portsLink.followLinkCmd',
|
|
284
|
-
"cmd + click"
|
|
285
|
-
));
|
|
252
|
+
clickLabel = ( localizeWithPath(_moduleId, 8, "cmd + click"));
|
|
286
253
|
}
|
|
287
254
|
else {
|
|
288
|
-
clickLabel = ( localizeWithPath(
|
|
289
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
290
|
-
'portsLink.followLinkCtrl',
|
|
291
|
-
"ctrl + click"
|
|
292
|
-
));
|
|
255
|
+
clickLabel = ( localizeWithPath(_moduleId, 9, "ctrl + click"));
|
|
293
256
|
}
|
|
294
257
|
}
|
|
295
|
-
const markdown = ( new MarkdownString('', true));
|
|
258
|
+
const markdown = ( (new MarkdownString('', true)));
|
|
296
259
|
const uri = localAddress.startsWith('http') ? localAddress : `http://${localAddress}`;
|
|
297
260
|
return markdown.appendLink(uri, 'Follow link').appendMarkdown(` (${clickLabel})`);
|
|
298
261
|
};
|
|
@@ -300,16 +263,8 @@ class LocalAddressColumn {
|
|
|
300
263
|
}
|
|
301
264
|
class RunningProcessColumn {
|
|
302
265
|
constructor() {
|
|
303
|
-
this.label = ( localizeWithPath(
|
|
304
|
-
|
|
305
|
-
'tunnel.processColumn.label',
|
|
306
|
-
"Running Process"
|
|
307
|
-
));
|
|
308
|
-
this.tooltip = ( localizeWithPath(
|
|
309
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
310
|
-
'tunnel.processColumn.tooltip',
|
|
311
|
-
"The command line of the process that is using the port."
|
|
312
|
-
));
|
|
266
|
+
this.label = ( localizeWithPath(_moduleId, 10, "Running Process"));
|
|
267
|
+
this.tooltip = ( localizeWithPath(_moduleId, 11, "The command line of the process that is using the port."));
|
|
313
268
|
this.weight = 2;
|
|
314
269
|
this.templateId = 'actionbar';
|
|
315
270
|
}
|
|
@@ -323,14 +278,10 @@ class RunningProcessColumn {
|
|
|
323
278
|
}
|
|
324
279
|
class OriginColumn {
|
|
325
280
|
constructor() {
|
|
326
|
-
this.label = ( localizeWithPath(
|
|
327
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
328
|
-
'tunnel.originColumn.label',
|
|
329
|
-
"Origin"
|
|
330
|
-
));
|
|
281
|
+
this.label = ( localizeWithPath(_moduleId, 12, "Origin"));
|
|
331
282
|
this.tooltip = ( localizeWithPath(
|
|
332
|
-
|
|
333
|
-
|
|
283
|
+
_moduleId,
|
|
284
|
+
13,
|
|
334
285
|
"The source that a forwarded port originates from. Can be an extension, user forwarded, statically forwarded, or automatically forwarded."
|
|
335
286
|
));
|
|
336
287
|
this.weight = 1;
|
|
@@ -347,16 +298,8 @@ class OriginColumn {
|
|
|
347
298
|
}
|
|
348
299
|
class PrivacyColumn {
|
|
349
300
|
constructor() {
|
|
350
|
-
this.label = ( localizeWithPath(
|
|
351
|
-
|
|
352
|
-
'tunnel.privacyColumn.label',
|
|
353
|
-
"Visibility"
|
|
354
|
-
));
|
|
355
|
-
this.tooltip = ( localizeWithPath(
|
|
356
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
357
|
-
'tunnel.privacyColumn.tooltip',
|
|
358
|
-
"The availability of the forwarded port."
|
|
359
|
-
));
|
|
301
|
+
this.label = ( localizeWithPath(_moduleId, 14, "Visibility"));
|
|
302
|
+
this.tooltip = ( localizeWithPath(_moduleId, 15, "The availability of the forwarded port."));
|
|
360
303
|
this.weight = 1;
|
|
361
304
|
this.templateId = 'actionbar';
|
|
362
305
|
}
|
|
@@ -391,15 +334,15 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
391
334
|
renderTemplate(container) {
|
|
392
335
|
const cell = append(container, $('.ports-view-actionbar-cell'));
|
|
393
336
|
const icon = append(cell, $('.ports-view-actionbar-cell-icon'));
|
|
394
|
-
const label = ( new IconLabel(cell, {
|
|
337
|
+
const label = ( (new IconLabel(cell, {
|
|
395
338
|
supportHighlights: true,
|
|
396
339
|
hoverDelegate: this._hoverDelegate
|
|
397
|
-
}));
|
|
340
|
+
})));
|
|
398
341
|
const actionsContainer = append(cell, $('.actions'));
|
|
399
|
-
const actionBar = ( new ActionBar(actionsContainer, {
|
|
342
|
+
const actionBar = ( (new ActionBar(actionsContainer, {
|
|
400
343
|
actionViewItemProvider: createActionViewItem.bind(undefined, this.instantiationService),
|
|
401
344
|
hoverDelegate: this._hoverDelegate
|
|
402
|
-
}));
|
|
345
|
+
})));
|
|
403
346
|
return { label, icon, actionBar, container: cell, elementDisposable: Disposable.None };
|
|
404
347
|
}
|
|
405
348
|
renderElement(element, index, templateData) {
|
|
@@ -435,7 +378,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
435
378
|
renderButton(element, templateData) {
|
|
436
379
|
templateData.container.style.paddingLeft = '7px';
|
|
437
380
|
templateData.container.style.height = '28px';
|
|
438
|
-
templateData.button = this._register(( new Button(templateData.container, defaultButtonStyles)));
|
|
381
|
+
templateData.button = this._register(( (new Button(templateData.container, defaultButtonStyles))));
|
|
439
382
|
templateData.button.label = element.label;
|
|
440
383
|
templateData.button.element.title = element.tooltip;
|
|
441
384
|
this._register(templateData.button.onDidClick(() => {
|
|
@@ -484,7 +427,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
484
427
|
[TunnelProtocolContextKey.key, element.tunnel.protocol]
|
|
485
428
|
];
|
|
486
429
|
const contextKeyService = this.contextKeyService.createOverlay(context);
|
|
487
|
-
const disposableStore = ( new DisposableStore());
|
|
430
|
+
const disposableStore = ( (new DisposableStore()));
|
|
488
431
|
templateData.elementDisposable = disposableStore;
|
|
489
432
|
if (element.menuId) {
|
|
490
433
|
const menu = disposableStore.add(this.menuService.createMenu(element.menuId, contextKeyService));
|
|
@@ -516,12 +459,8 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
516
459
|
}
|
|
517
460
|
container.style.paddingLeft = '5px';
|
|
518
461
|
const value = editableData.startingValue || '';
|
|
519
|
-
const inputBox = ( new InputBox(container, this.contextViewService, {
|
|
520
|
-
ariaLabel: ( localizeWithPath(
|
|
521
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
522
|
-
'remote.tunnelsView.input',
|
|
523
|
-
"Press Enter to confirm or Escape to cancel."
|
|
524
|
-
)),
|
|
462
|
+
const inputBox = ( (new InputBox(container, this.contextViewService, {
|
|
463
|
+
ariaLabel: ( localizeWithPath(_moduleId, 16, "Press Enter to confirm or Escape to cancel.")),
|
|
525
464
|
validationOptions: {
|
|
526
465
|
validation: (value) => {
|
|
527
466
|
const message = editableData.validationMessage(value);
|
|
@@ -537,7 +476,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
537
476
|
},
|
|
538
477
|
placeholder: editableData.placeholder || '',
|
|
539
478
|
inputBoxStyles: defaultInputBoxStyles
|
|
540
|
-
}));
|
|
479
|
+
})));
|
|
541
480
|
inputBox.value = value;
|
|
542
481
|
inputBox.focus();
|
|
543
482
|
inputBox.select({ start: 0, end: editableData.startingValue ? editableData.startingValue.length : 0 });
|
|
@@ -589,53 +528,57 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
589
528
|
templateData.button?.dispose();
|
|
590
529
|
}
|
|
591
530
|
};
|
|
592
|
-
ActionBarRenderer = ( __decorate([
|
|
593
|
-
( __param(0, IInstantiationService)),
|
|
594
|
-
( __param(1, IContextKeyService)),
|
|
595
|
-
( __param(2, IMenuService)),
|
|
596
|
-
( __param(3, IContextViewService)),
|
|
597
|
-
( __param(4, IRemoteExplorerService)),
|
|
598
|
-
( __param(5, ICommandService)),
|
|
599
|
-
( __param(6, IConfigurationService))
|
|
600
|
-
], ActionBarRenderer));
|
|
531
|
+
ActionBarRenderer = ( (__decorate([
|
|
532
|
+
( (__param(0, IInstantiationService))),
|
|
533
|
+
( (__param(1, IContextKeyService))),
|
|
534
|
+
( (__param(2, IMenuService))),
|
|
535
|
+
( (__param(3, IContextViewService))),
|
|
536
|
+
( (__param(4, IRemoteExplorerService))),
|
|
537
|
+
( (__param(5, ICommandService))),
|
|
538
|
+
( (__param(6, IConfigurationService)))
|
|
539
|
+
], ActionBarRenderer)));
|
|
601
540
|
class TunnelItem {
|
|
602
541
|
static createFromTunnel(remoteExplorerService, tunnelService, tunnel, type = TunnelType.Forwarded, closeable) {
|
|
603
|
-
return (
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
542
|
+
return (
|
|
543
|
+
(new TunnelItem(
|
|
544
|
+
type,
|
|
545
|
+
tunnel.remoteHost,
|
|
546
|
+
tunnel.remotePort,
|
|
547
|
+
tunnel.source,
|
|
548
|
+
!!tunnel.hasRunningProcess,
|
|
549
|
+
tunnel.protocol,
|
|
550
|
+
tunnel.localUri,
|
|
551
|
+
tunnel.localAddress,
|
|
552
|
+
tunnel.localPort,
|
|
553
|
+
closeable === undefined ? tunnel.closeable : closeable,
|
|
554
|
+
tunnel.name,
|
|
555
|
+
tunnel.runningProcess,
|
|
556
|
+
tunnel.pid,
|
|
557
|
+
tunnel.privacy,
|
|
558
|
+
remoteExplorerService,
|
|
559
|
+
tunnelService
|
|
560
|
+
))
|
|
561
|
+
);
|
|
621
562
|
}
|
|
622
563
|
strip() {
|
|
623
|
-
return (
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
564
|
+
return (
|
|
565
|
+
(new TunnelItem(
|
|
566
|
+
this.tunnelType,
|
|
567
|
+
this.remoteHost,
|
|
568
|
+
this.remotePort,
|
|
569
|
+
this.source,
|
|
570
|
+
this.hasRunningProcess,
|
|
571
|
+
this.protocol,
|
|
572
|
+
this.localUri,
|
|
573
|
+
this.localAddress,
|
|
574
|
+
this.localPort,
|
|
575
|
+
this.closeable,
|
|
576
|
+
this.name,
|
|
577
|
+
this.runningProcess,
|
|
578
|
+
this.pid,
|
|
579
|
+
this._privacy
|
|
580
|
+
))
|
|
581
|
+
);
|
|
639
582
|
}
|
|
640
583
|
constructor(tunnelType, remoteHost, remotePort, source, hasRunningProcess, protocol, localUri, localAddress, localPort, closeable, name, runningProcess, pid, _privacy, remoteExplorerService, tunnelService) {
|
|
641
584
|
this.tunnelType = tunnelType;
|
|
@@ -686,11 +629,7 @@ class TunnelItem {
|
|
|
686
629
|
}
|
|
687
630
|
}
|
|
688
631
|
else if (this.hasRunningProcess) {
|
|
689
|
-
description = ( localizeWithPath(
|
|
690
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
691
|
-
'tunnelView.runningProcess.inacessable',
|
|
692
|
-
"Process information unavailable"
|
|
693
|
-
));
|
|
632
|
+
description = ( localizeWithPath(_moduleId, 17, "Process information unavailable"));
|
|
694
633
|
}
|
|
695
634
|
return description;
|
|
696
635
|
}
|
|
@@ -698,8 +637,8 @@ class TunnelItem {
|
|
|
698
637
|
let information;
|
|
699
638
|
if (this.localAddress) {
|
|
700
639
|
information = ( localizeWithPath(
|
|
701
|
-
|
|
702
|
-
|
|
640
|
+
_moduleId,
|
|
641
|
+
18,
|
|
703
642
|
"Remote port {0}:{1} forwarded to local address {2}. ",
|
|
704
643
|
this.remoteHost,
|
|
705
644
|
this.remotePort,
|
|
@@ -708,8 +647,8 @@ class TunnelItem {
|
|
|
708
647
|
}
|
|
709
648
|
else {
|
|
710
649
|
information = ( localizeWithPath(
|
|
711
|
-
|
|
712
|
-
|
|
650
|
+
_moduleId,
|
|
651
|
+
19,
|
|
713
652
|
"Remote port {0}:{1} not forwarded. ",
|
|
714
653
|
this.remoteHost,
|
|
715
654
|
this.remotePort
|
|
@@ -720,16 +659,8 @@ class TunnelItem {
|
|
|
720
659
|
get iconTooltip() {
|
|
721
660
|
const isAdd = this.tunnelType === TunnelType.Add;
|
|
722
661
|
if (!isAdd) {
|
|
723
|
-
return `${this.processDescription ? ( localizeWithPath(
|
|
724
|
-
|
|
725
|
-
'tunnel.iconColumn.running',
|
|
726
|
-
"Port has running process."
|
|
727
|
-
)) :
|
|
728
|
-
( localizeWithPath(
|
|
729
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
730
|
-
'tunnel.iconColumn.notRunning',
|
|
731
|
-
"No running process."
|
|
732
|
-
))}`;
|
|
662
|
+
return `${this.processDescription ? ( localizeWithPath(_moduleId, 20, "Port has running process.")) :
|
|
663
|
+
( localizeWithPath(_moduleId, 21, "No running process."))}`;
|
|
733
664
|
}
|
|
734
665
|
else {
|
|
735
666
|
return this.label;
|
|
@@ -738,12 +669,7 @@ class TunnelItem {
|
|
|
738
669
|
get portTooltip() {
|
|
739
670
|
const isAdd = this.tunnelType === TunnelType.Add;
|
|
740
671
|
if (!isAdd) {
|
|
741
|
-
return `${this.name ? ( localizeWithPath(
|
|
742
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
743
|
-
'remote.tunnel.tooltipName',
|
|
744
|
-
"Port labeled {0}. ",
|
|
745
|
-
this.name
|
|
746
|
-
)) : ''}`;
|
|
672
|
+
return `${this.name ? ( localizeWithPath(_moduleId, 22, "Port labeled {0}. ", this.name)) : ''}`;
|
|
747
673
|
}
|
|
748
674
|
else {
|
|
749
675
|
return '';
|
|
@@ -761,46 +687,34 @@ class TunnelItem {
|
|
|
761
687
|
{
|
|
762
688
|
id: '',
|
|
763
689
|
themeIcon: Codicon.question.id,
|
|
764
|
-
label: ( localizeWithPath(
|
|
765
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
766
|
-
'tunnelPrivacy.unknown',
|
|
767
|
-
"Unknown"
|
|
768
|
-
))
|
|
690
|
+
label: ( localizeWithPath(_moduleId, 23, "Unknown"))
|
|
769
691
|
};
|
|
770
692
|
}
|
|
771
693
|
else {
|
|
772
694
|
return {
|
|
773
695
|
id: TunnelPrivacyId.Private,
|
|
774
696
|
themeIcon: privatePortIcon.id,
|
|
775
|
-
label: ( localizeWithPath(
|
|
776
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
777
|
-
'tunnelPrivacy.private',
|
|
778
|
-
"Private"
|
|
779
|
-
))
|
|
697
|
+
label: ( localizeWithPath(_moduleId, 1, "Private"))
|
|
780
698
|
};
|
|
781
699
|
}
|
|
782
700
|
}
|
|
783
701
|
}
|
|
784
|
-
const TunnelTypeContextKey = ( new RawContextKey('tunnelType', TunnelType.Add, true));
|
|
785
|
-
const TunnelCloseableContextKey = ( new RawContextKey('tunnelCloseable', false, true));
|
|
786
|
-
const TunnelPrivacyContextKey = ( new RawContextKey('tunnelPrivacy', undefined, true));
|
|
787
|
-
const TunnelPrivacyEnabledContextKey = ( new RawContextKey('tunnelPrivacyEnabled', false, true));
|
|
788
|
-
const TunnelProtocolContextKey = ( new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true));
|
|
789
|
-
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localizeWithPath(
|
|
790
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
791
|
-
'tunnel.focusContext',
|
|
792
|
-
"Whether the Ports view has focus."
|
|
793
|
-
))));
|
|
702
|
+
const TunnelTypeContextKey = ( (new RawContextKey('tunnelType', TunnelType.Add, true)));
|
|
703
|
+
const TunnelCloseableContextKey = ( (new RawContextKey('tunnelCloseable', false, true)));
|
|
704
|
+
const TunnelPrivacyContextKey = ( (new RawContextKey('tunnelPrivacy', undefined, true)));
|
|
705
|
+
const TunnelPrivacyEnabledContextKey = ( (new RawContextKey('tunnelPrivacyEnabled', false, true)));
|
|
706
|
+
const TunnelProtocolContextKey = ( (new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true)));
|
|
707
|
+
const TunnelViewFocusContextKey = ( (new RawContextKey('tunnelViewFocus', false, ( localizeWithPath(_moduleId, 24, "Whether the Ports view has focus.")))));
|
|
794
708
|
const TunnelViewSelectionKeyName = 'tunnelViewSelection';
|
|
795
|
-
const TunnelViewSelectionContextKey = ( new RawContextKey(TunnelViewSelectionKeyName, undefined, true));
|
|
709
|
+
const TunnelViewSelectionContextKey = ( (new RawContextKey(TunnelViewSelectionKeyName, undefined, true)));
|
|
796
710
|
const TunnelViewMultiSelectionKeyName = 'tunnelViewMultiSelection';
|
|
797
|
-
const TunnelViewMultiSelectionContextKey = ( new RawContextKey(TunnelViewMultiSelectionKeyName, undefined, true));
|
|
798
|
-
const PortChangableContextKey = ( new RawContextKey('portChangable', false, true));
|
|
799
|
-
const ProtocolChangeableContextKey = ( new RawContextKey('protocolChangable', true, true));
|
|
711
|
+
const TunnelViewMultiSelectionContextKey = ( (new RawContextKey(TunnelViewMultiSelectionKeyName, undefined, true)));
|
|
712
|
+
const PortChangableContextKey = ( (new RawContextKey('portChangable', false, true)));
|
|
713
|
+
const ProtocolChangeableContextKey = ( (new RawContextKey('protocolChangable', true, true)));
|
|
800
714
|
let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
801
715
|
static { TunnelPanel_1 = this; }
|
|
802
716
|
static { this.ID = TUNNEL_VIEW_ID; }
|
|
803
|
-
static { this.TITLE = ( localize2WithPath(
|
|
717
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 25, "Ports")); }
|
|
804
718
|
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService, telemetryService, tunnelService, contextViewService) {
|
|
805
719
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
806
720
|
this.viewModel = viewModel;
|
|
@@ -810,7 +724,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
810
724
|
this.remoteExplorerService = remoteExplorerService;
|
|
811
725
|
this.tunnelService = tunnelService;
|
|
812
726
|
this.contextViewService = contextViewService;
|
|
813
|
-
this.tableDisposables = this._register(( new DisposableStore()));
|
|
727
|
+
this.tableDisposables = this._register(( (new DisposableStore())));
|
|
814
728
|
this.isEditing = false;
|
|
815
729
|
this.titleActions = [];
|
|
816
730
|
this.lastFocus = [];
|
|
@@ -868,7 +782,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
868
782
|
command: {
|
|
869
783
|
id: optionId,
|
|
870
784
|
title: privacyOption.label,
|
|
871
|
-
toggled: ( TunnelPrivacyContextKey.isEqualTo(privacyOption.id))
|
|
785
|
+
toggled: ( (TunnelPrivacyContextKey.isEqualTo(privacyOption.id)))
|
|
872
786
|
}
|
|
873
787
|
}));
|
|
874
788
|
}
|
|
@@ -885,7 +799,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
885
799
|
const widgetContainer = append(this.panelContainer, $('.customview-tree'));
|
|
886
800
|
widgetContainer.classList.add('ports-view');
|
|
887
801
|
widgetContainer.classList.add('file-icon-themable-tree', 'show-file-icons');
|
|
888
|
-
const actionBarRenderer = ( new ActionBarRenderer(
|
|
802
|
+
const actionBarRenderer = ( (new ActionBarRenderer(
|
|
889
803
|
this.instantiationService,
|
|
890
804
|
this.contextKeyService,
|
|
891
805
|
this.menuService,
|
|
@@ -893,13 +807,13 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
893
807
|
this.remoteExplorerService,
|
|
894
808
|
this.commandService,
|
|
895
809
|
this.configurationService
|
|
896
|
-
));
|
|
897
|
-
const columns = [( new IconColumn()), ( new PortColumn()), ( new LocalAddressColumn()), ( new RunningProcessColumn())];
|
|
810
|
+
)));
|
|
811
|
+
const columns = [( (new IconColumn())), ( (new PortColumn())), ( (new LocalAddressColumn())), ( (new RunningProcessColumn()))];
|
|
898
812
|
if (this.tunnelService.canChangePrivacy) {
|
|
899
|
-
columns.push(( new PrivacyColumn()));
|
|
813
|
+
columns.push(( (new PrivacyColumn())));
|
|
900
814
|
}
|
|
901
|
-
columns.push(( new OriginColumn()));
|
|
902
|
-
this.table = this.instantiationService.createInstance(WorkbenchTable, 'RemoteTunnels', widgetContainer, ( new TunnelTreeVirtualDelegate(this.remoteExplorerService)), columns, [actionBarRenderer], {
|
|
815
|
+
columns.push(( (new OriginColumn())));
|
|
816
|
+
this.table = this.instantiationService.createInstance(WorkbenchTable, 'RemoteTunnels', widgetContainer, ( (new TunnelTreeVirtualDelegate(this.remoteExplorerService))), columns, [actionBarRenderer], {
|
|
903
817
|
keyboardNavigationLabelProvider: {
|
|
904
818
|
getKeyboardNavigationLabel: (item) => {
|
|
905
819
|
return item.label;
|
|
@@ -915,15 +829,11 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
915
829
|
return item.label;
|
|
916
830
|
}
|
|
917
831
|
},
|
|
918
|
-
getWidgetAriaLabel: () => ( localizeWithPath(
|
|
919
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
920
|
-
'tunnelView',
|
|
921
|
-
"Tunnel View"
|
|
922
|
-
))
|
|
832
|
+
getWidgetAriaLabel: () => ( localizeWithPath(_moduleId, 26, "Tunnel View"))
|
|
923
833
|
},
|
|
924
834
|
openOnSingleClick: true
|
|
925
835
|
});
|
|
926
|
-
const actionRunner = ( new ActionRunner());
|
|
836
|
+
const actionRunner = ( (new ActionRunner()));
|
|
927
837
|
actionBarRenderer.actionRunner = actionRunner;
|
|
928
838
|
this.tableDisposables.add(this.table);
|
|
929
839
|
this.tableDisposables.add(this.table.onContextMenu(e => this.onContextMenu(e, actionRunner)));
|
|
@@ -1035,7 +945,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1035
945
|
onSelectionChanged(event) {
|
|
1036
946
|
const elements = event.elements;
|
|
1037
947
|
if (elements.length > 1) {
|
|
1038
|
-
this.tunnelViewMultiSelectionContext.set(( elements.map(element => makeAddress(element.remoteHost, element.remotePort))));
|
|
948
|
+
this.tunnelViewMultiSelectionContext.set(( (elements.map(element => makeAddress(element.remoteHost, element.remotePort)))));
|
|
1039
949
|
}
|
|
1040
950
|
else {
|
|
1041
951
|
this.tunnelViewMultiSelectionContext.set(undefined);
|
|
@@ -1071,7 +981,9 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1071
981
|
getActionViewItem: (action) => {
|
|
1072
982
|
const keybinding = this.keybindingService.lookupKeybinding(action.id);
|
|
1073
983
|
if (keybinding) {
|
|
1074
|
-
return (
|
|
984
|
+
return (
|
|
985
|
+
(new ActionViewItem(action, action, { label: true, keybinding: keybinding.getLabel() }))
|
|
986
|
+
);
|
|
1075
987
|
}
|
|
1076
988
|
return undefined;
|
|
1077
989
|
},
|
|
@@ -1096,23 +1008,23 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1096
1008
|
this.table.layout(height, width);
|
|
1097
1009
|
}
|
|
1098
1010
|
};
|
|
1099
|
-
TunnelPanel = TunnelPanel_1 = ( __decorate([
|
|
1100
|
-
( __param(2, IKeybindingService)),
|
|
1101
|
-
( __param(3, IContextMenuService)),
|
|
1102
|
-
( __param(4, IContextKeyService)),
|
|
1103
|
-
( __param(5, IConfigurationService)),
|
|
1104
|
-
( __param(6, IInstantiationService)),
|
|
1105
|
-
( __param(7, IViewDescriptorService)),
|
|
1106
|
-
( __param(8, IOpenerService)),
|
|
1107
|
-
( __param(9, IQuickInputService)),
|
|
1108
|
-
( __param(10, ICommandService)),
|
|
1109
|
-
( __param(11, IMenuService)),
|
|
1110
|
-
( __param(12, IThemeService)),
|
|
1111
|
-
( __param(13, IRemoteExplorerService)),
|
|
1112
|
-
( __param(14, ITelemetryService)),
|
|
1113
|
-
( __param(15, ITunnelService)),
|
|
1114
|
-
( __param(16, IContextViewService))
|
|
1115
|
-
], TunnelPanel));
|
|
1011
|
+
TunnelPanel = TunnelPanel_1 = ( (__decorate([
|
|
1012
|
+
( (__param(2, IKeybindingService))),
|
|
1013
|
+
( (__param(3, IContextMenuService))),
|
|
1014
|
+
( (__param(4, IContextKeyService))),
|
|
1015
|
+
( (__param(5, IConfigurationService))),
|
|
1016
|
+
( (__param(6, IInstantiationService))),
|
|
1017
|
+
( (__param(7, IViewDescriptorService))),
|
|
1018
|
+
( (__param(8, IOpenerService))),
|
|
1019
|
+
( (__param(9, IQuickInputService))),
|
|
1020
|
+
( (__param(10, ICommandService))),
|
|
1021
|
+
( (__param(11, IMenuService))),
|
|
1022
|
+
( (__param(12, IThemeService))),
|
|
1023
|
+
( (__param(13, IRemoteExplorerService))),
|
|
1024
|
+
( (__param(14, ITelemetryService))),
|
|
1025
|
+
( (__param(15, ITunnelService))),
|
|
1026
|
+
( (__param(16, IContextViewService)))
|
|
1027
|
+
], TunnelPanel)));
|
|
1116
1028
|
class TunnelPanelDescriptor {
|
|
1117
1029
|
constructor(viewModel, environmentService) {
|
|
1118
1030
|
this.id = TunnelPanel.ID;
|
|
@@ -1123,7 +1035,7 @@ class TunnelPanelDescriptor {
|
|
|
1123
1035
|
this.order = -500;
|
|
1124
1036
|
this.canMoveView = true;
|
|
1125
1037
|
this.containerIcon = portsViewIcon;
|
|
1126
|
-
this.ctorDescriptor = ( new SyncDescriptor(TunnelPanel, [viewModel]));
|
|
1038
|
+
this.ctorDescriptor = ( (new SyncDescriptor(TunnelPanel, [viewModel])));
|
|
1127
1039
|
this.remoteAuthority = environmentService.remoteAuthority ? environmentService.remoteAuthority.split('+')[0] : undefined;
|
|
1128
1040
|
}
|
|
1129
1041
|
}
|
|
@@ -1131,13 +1043,9 @@ function isITunnelItem(item) {
|
|
|
1131
1043
|
return item && item.tunnelType && item.remoteHost && item.source;
|
|
1132
1044
|
}
|
|
1133
1045
|
var LabelTunnelAction;
|
|
1134
|
-
( (function(LabelTunnelAction) {
|
|
1046
|
+
( ((function(LabelTunnelAction) {
|
|
1135
1047
|
LabelTunnelAction.ID = 'remote.tunnel.label';
|
|
1136
|
-
LabelTunnelAction.LABEL = ( localizeWithPath(
|
|
1137
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1138
|
-
'remote.tunnel.label',
|
|
1139
|
-
"Set Port Label"
|
|
1140
|
-
));
|
|
1048
|
+
LabelTunnelAction.LABEL = ( localizeWithPath(_moduleId, 27, "Set Port Label"));
|
|
1141
1049
|
LabelTunnelAction.COMMAND_ID_KEYWORD = 'label';
|
|
1142
1050
|
function handler() {
|
|
1143
1051
|
return async (accessor, arg) => {
|
|
@@ -1156,74 +1064,43 @@ var LabelTunnelAction;
|
|
|
1156
1064
|
}
|
|
1157
1065
|
if (tunnelContext) {
|
|
1158
1066
|
const tunnelItem = tunnelContext;
|
|
1159
|
-
return (
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
});
|
|
1179
|
-
}));
|
|
1067
|
+
return (
|
|
1068
|
+
(new Promise(resolve => {
|
|
1069
|
+
const startingValue = tunnelItem.name ? tunnelItem.name : `${tunnelItem.remotePort}`;
|
|
1070
|
+
remoteExplorerService.setEditable(tunnelItem, TunnelEditId.Label, {
|
|
1071
|
+
onFinish: async (value, success) => {
|
|
1072
|
+
value = value.trim();
|
|
1073
|
+
remoteExplorerService.setEditable(tunnelItem, TunnelEditId.Label, null);
|
|
1074
|
+
const changed = success && (value !== startingValue);
|
|
1075
|
+
if (changed) {
|
|
1076
|
+
await remoteExplorerService.tunnelModel.name(tunnelItem.remoteHost, tunnelItem.remotePort, value);
|
|
1077
|
+
}
|
|
1078
|
+
resolve(changed ? { port: tunnelItem.remotePort, label: value } : undefined);
|
|
1079
|
+
},
|
|
1080
|
+
validationMessage: () => null,
|
|
1081
|
+
placeholder: ( localizeWithPath(_moduleId, 28, "Port label")),
|
|
1082
|
+
startingValue
|
|
1083
|
+
});
|
|
1084
|
+
}))
|
|
1085
|
+
);
|
|
1180
1086
|
}
|
|
1181
1087
|
return undefined;
|
|
1182
1088
|
};
|
|
1183
1089
|
}
|
|
1184
1090
|
LabelTunnelAction.handler = handler;
|
|
1185
|
-
})(LabelTunnelAction || (LabelTunnelAction = {})));
|
|
1186
|
-
const invalidPortString = ( localizeWithPath(
|
|
1187
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1188
|
-
'remote.tunnelsView.portNumberValid',
|
|
1189
|
-
"Forwarded port should be a number or a host:port."
|
|
1190
|
-
));
|
|
1091
|
+
})(LabelTunnelAction || (LabelTunnelAction = {}))));
|
|
1092
|
+
const invalidPortString = ( localizeWithPath(_moduleId, 29, "Forwarded port should be a number or a host:port."));
|
|
1191
1093
|
const maxPortNumber = 65536;
|
|
1192
|
-
const invalidPortNumberString = ( localizeWithPath(
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
"Port number must be \u2265 0 and < {0}.",
|
|
1196
|
-
maxPortNumber
|
|
1197
|
-
));
|
|
1198
|
-
const requiresSudoString = ( localizeWithPath(
|
|
1199
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1200
|
-
'remote.tunnelView.inlineElevationMessage',
|
|
1201
|
-
"May Require Sudo"
|
|
1202
|
-
));
|
|
1203
|
-
const alreadyForwarded = ( localizeWithPath(
|
|
1204
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1205
|
-
'remote.tunnelView.alreadyForwarded',
|
|
1206
|
-
"Port is already forwarded"
|
|
1207
|
-
));
|
|
1094
|
+
const invalidPortNumberString = ( localizeWithPath(_moduleId, 30, "Port number must be \u2265 0 and < {0}.", maxPortNumber));
|
|
1095
|
+
const requiresSudoString = ( localizeWithPath(_moduleId, 31, "May Require Sudo"));
|
|
1096
|
+
const alreadyForwarded = ( localizeWithPath(_moduleId, 32, "Port is already forwarded"));
|
|
1208
1097
|
var ForwardPortAction;
|
|
1209
|
-
( (function(ForwardPortAction) {
|
|
1098
|
+
( ((function(ForwardPortAction) {
|
|
1210
1099
|
ForwardPortAction.INLINE_ID = 'remote.tunnel.forwardInline';
|
|
1211
1100
|
ForwardPortAction.COMMANDPALETTE_ID = 'remote.tunnel.forwardCommandPalette';
|
|
1212
|
-
ForwardPortAction.LABEL = ( localize2WithPath(
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
"Forward a Port"
|
|
1216
|
-
));
|
|
1217
|
-
ForwardPortAction.TREEITEM_LABEL = ( localizeWithPath(
|
|
1218
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1219
|
-
'remote.tunnel.forwardItem',
|
|
1220
|
-
"Forward Port"
|
|
1221
|
-
));
|
|
1222
|
-
const forwardPrompt = ( localizeWithPath(
|
|
1223
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1224
|
-
'remote.tunnel.forwardPrompt',
|
|
1225
|
-
"Port number or address (eg. 3000 or 10.10.10.10:2000)."
|
|
1226
|
-
));
|
|
1101
|
+
ForwardPortAction.LABEL = ( localize2WithPath(_moduleId, 33, "Forward a Port"));
|
|
1102
|
+
ForwardPortAction.TREEITEM_LABEL = ( localizeWithPath(_moduleId, 34, "Forward Port"));
|
|
1103
|
+
const forwardPrompt = ( localizeWithPath(_moduleId, 35, "Port number or address (eg. 3000 or 10.10.10.10:2000)."));
|
|
1227
1104
|
function validateInput(remoteExplorerService, tunnelService, value, canElevate) {
|
|
1228
1105
|
const parsed = parseAddress(value);
|
|
1229
1106
|
if (!parsed) {
|
|
@@ -1243,22 +1120,15 @@ var ForwardPortAction;
|
|
|
1243
1120
|
function error(notificationService, tunnelOrError, host, port) {
|
|
1244
1121
|
if (!tunnelOrError) {
|
|
1245
1122
|
notificationService.warn(( localizeWithPath(
|
|
1246
|
-
|
|
1247
|
-
|
|
1123
|
+
_moduleId,
|
|
1124
|
+
36,
|
|
1248
1125
|
"Unable to forward {0}:{1}. The host may not be available or that remote port may already be forwarded",
|
|
1249
1126
|
host,
|
|
1250
1127
|
port
|
|
1251
1128
|
)));
|
|
1252
1129
|
}
|
|
1253
1130
|
else if (typeof tunnelOrError === 'string') {
|
|
1254
|
-
notificationService.warn(( localizeWithPath(
|
|
1255
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1256
|
-
'remote.tunnel.forwardErrorProvided',
|
|
1257
|
-
"Unable to forward {0}:{1}. {2}",
|
|
1258
|
-
host,
|
|
1259
|
-
port,
|
|
1260
|
-
tunnelOrError
|
|
1261
|
-
)));
|
|
1131
|
+
notificationService.warn(( localizeWithPath(_moduleId, 37, "Unable to forward {0}:{1}. {2}", host, port, tunnelOrError)));
|
|
1262
1132
|
}
|
|
1263
1133
|
}
|
|
1264
1134
|
function inlineHandler() {
|
|
@@ -1305,21 +1175,21 @@ var ForwardPortAction;
|
|
|
1305
1175
|
};
|
|
1306
1176
|
}
|
|
1307
1177
|
ForwardPortAction.commandPaletteHandler = commandPaletteHandler;
|
|
1308
|
-
})(ForwardPortAction || (ForwardPortAction = {})));
|
|
1178
|
+
})(ForwardPortAction || (ForwardPortAction = {}))));
|
|
1309
1179
|
function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
1310
|
-
const picks = ( tunnels.map(forwarded => {
|
|
1180
|
+
const picks = ( (tunnels.map(forwarded => {
|
|
1311
1181
|
const item = TunnelItem.createFromTunnel(remoteExplorerService, tunnelService, forwarded);
|
|
1312
1182
|
return {
|
|
1313
1183
|
label: item.label,
|
|
1314
1184
|
description: item.processDescription,
|
|
1315
1185
|
tunnel: item
|
|
1316
1186
|
};
|
|
1317
|
-
}));
|
|
1187
|
+
})));
|
|
1318
1188
|
if (picks.length === 0) {
|
|
1319
1189
|
picks.push({
|
|
1320
1190
|
label: ( localizeWithPath(
|
|
1321
|
-
|
|
1322
|
-
|
|
1191
|
+
_moduleId,
|
|
1192
|
+
38,
|
|
1323
1193
|
"No ports currently forwarded. Try running the {0} command",
|
|
1324
1194
|
ForwardPortAction.LABEL.value
|
|
1325
1195
|
))
|
|
@@ -1328,14 +1198,10 @@ function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
|
1328
1198
|
return picks;
|
|
1329
1199
|
}
|
|
1330
1200
|
var ClosePortAction;
|
|
1331
|
-
( (function(ClosePortAction) {
|
|
1201
|
+
( ((function(ClosePortAction) {
|
|
1332
1202
|
ClosePortAction.INLINE_ID = 'remote.tunnel.closeInline';
|
|
1333
1203
|
ClosePortAction.COMMANDPALETTE_ID = 'remote.tunnel.closeCommandPalette';
|
|
1334
|
-
ClosePortAction.LABEL = ( localize2WithPath(
|
|
1335
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1336
|
-
'remote.tunnel.close',
|
|
1337
|
-
"Stop Forwarding Port"
|
|
1338
|
-
));
|
|
1204
|
+
ClosePortAction.LABEL = ( localize2WithPath(_moduleId, 39, "Stop Forwarding Port"));
|
|
1339
1205
|
function inlineHandler() {
|
|
1340
1206
|
return async (accessor, arg) => {
|
|
1341
1207
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -1363,9 +1229,9 @@ var ClosePortAction;
|
|
|
1363
1229
|
if (!ports || ports.length === 0) {
|
|
1364
1230
|
return;
|
|
1365
1231
|
}
|
|
1366
|
-
return Promise.all(( ports.map(
|
|
1232
|
+
return Promise.all(( (ports.map(
|
|
1367
1233
|
port => remoteExplorerService.close({ host: port.remoteHost, port: port.remotePort }, TunnelCloseReason.User)
|
|
1368
|
-
)));
|
|
1234
|
+
))));
|
|
1369
1235
|
};
|
|
1370
1236
|
}
|
|
1371
1237
|
ClosePortAction.inlineHandler = inlineHandler;
|
|
@@ -1375,12 +1241,8 @@ var ClosePortAction;
|
|
|
1375
1241
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
|
1376
1242
|
const tunnelService = accessor.get(ITunnelService);
|
|
1377
1243
|
const commandService = accessor.get(ICommandService);
|
|
1378
|
-
const picks = makeTunnelPicks(Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
|
1379
|
-
const result = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
1380
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1381
|
-
'remote.tunnel.closePlaceholder',
|
|
1382
|
-
"Choose a port to stop forwarding"
|
|
1383
|
-
)) });
|
|
1244
|
+
const picks = makeTunnelPicks(Array.from(( (remoteExplorerService.tunnelModel.forwarded.values()))).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
|
1245
|
+
const result = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(_moduleId, 40, "Choose a port to stop forwarding")) });
|
|
1384
1246
|
if (result && result.tunnel) {
|
|
1385
1247
|
await remoteExplorerService.close({ host: result.tunnel.remoteHost, port: result.tunnel.remotePort }, TunnelCloseReason.User);
|
|
1386
1248
|
}
|
|
@@ -1390,15 +1252,11 @@ var ClosePortAction;
|
|
|
1390
1252
|
};
|
|
1391
1253
|
}
|
|
1392
1254
|
ClosePortAction.commandPaletteHandler = commandPaletteHandler;
|
|
1393
|
-
})(ClosePortAction || (ClosePortAction = {})));
|
|
1255
|
+
})(ClosePortAction || (ClosePortAction = {}))));
|
|
1394
1256
|
var OpenPortInBrowserAction;
|
|
1395
|
-
( (function(OpenPortInBrowserAction) {
|
|
1257
|
+
( ((function(OpenPortInBrowserAction) {
|
|
1396
1258
|
OpenPortInBrowserAction.ID = 'remote.tunnel.open';
|
|
1397
|
-
OpenPortInBrowserAction.LABEL = ( localizeWithPath(
|
|
1398
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1399
|
-
'remote.tunnel.open',
|
|
1400
|
-
"Open in Browser"
|
|
1401
|
-
));
|
|
1259
|
+
OpenPortInBrowserAction.LABEL = ( localizeWithPath(_moduleId, 41, "Open in Browser"));
|
|
1402
1260
|
function handler() {
|
|
1403
1261
|
return async (accessor, arg) => {
|
|
1404
1262
|
let key;
|
|
@@ -1424,15 +1282,11 @@ var OpenPortInBrowserAction;
|
|
|
1424
1282
|
return Promise.resolve();
|
|
1425
1283
|
}
|
|
1426
1284
|
OpenPortInBrowserAction.run = run;
|
|
1427
|
-
})(OpenPortInBrowserAction || (OpenPortInBrowserAction = {})));
|
|
1285
|
+
})(OpenPortInBrowserAction || (OpenPortInBrowserAction = {}))));
|
|
1428
1286
|
var OpenPortInPreviewAction;
|
|
1429
|
-
( (function(OpenPortInPreviewAction) {
|
|
1287
|
+
( ((function(OpenPortInPreviewAction) {
|
|
1430
1288
|
OpenPortInPreviewAction.ID = 'remote.tunnel.openPreview';
|
|
1431
|
-
OpenPortInPreviewAction.LABEL = ( localizeWithPath(
|
|
1432
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1433
|
-
'remote.tunnel.openPreview',
|
|
1434
|
-
"Preview in Editor"
|
|
1435
|
-
));
|
|
1289
|
+
OpenPortInPreviewAction.LABEL = ( localizeWithPath(_moduleId, 42, "Preview in Editor"));
|
|
1436
1290
|
function handler() {
|
|
1437
1291
|
return async (accessor, arg) => {
|
|
1438
1292
|
let key;
|
|
@@ -1455,7 +1309,7 @@ var OpenPortInPreviewAction;
|
|
|
1455
1309
|
const tunnel = model.forwarded.get(key) || model.detected.get(key);
|
|
1456
1310
|
if (tunnel) {
|
|
1457
1311
|
const remoteHost = tunnel.remoteHost.includes(':') ? `[${tunnel.remoteHost}]` : tunnel.remoteHost;
|
|
1458
|
-
const sourceUri = ( URI.parse(`http://${remoteHost}:${tunnel.remotePort}`));
|
|
1312
|
+
const sourceUri = ( (URI.parse(`http://${remoteHost}:${tunnel.remotePort}`)));
|
|
1459
1313
|
const opener = await externalOpenerService.getOpener(tunnel.localUri, { sourceUri }, CancellationToken.None);
|
|
1460
1314
|
if (opener) {
|
|
1461
1315
|
return opener.openExternalUri(tunnel.localUri, { sourceUri }, CancellationToken.None);
|
|
@@ -1465,15 +1319,11 @@ var OpenPortInPreviewAction;
|
|
|
1465
1319
|
return Promise.resolve();
|
|
1466
1320
|
}
|
|
1467
1321
|
OpenPortInPreviewAction.run = run;
|
|
1468
|
-
})(OpenPortInPreviewAction || (OpenPortInPreviewAction = {})));
|
|
1322
|
+
})(OpenPortInPreviewAction || (OpenPortInPreviewAction = {}))));
|
|
1469
1323
|
var OpenPortInBrowserCommandPaletteAction;
|
|
1470
|
-
( (function(OpenPortInBrowserCommandPaletteAction) {
|
|
1324
|
+
( ((function(OpenPortInBrowserCommandPaletteAction) {
|
|
1471
1325
|
OpenPortInBrowserCommandPaletteAction.ID = 'remote.tunnel.openCommandPalette';
|
|
1472
|
-
OpenPortInBrowserCommandPaletteAction.LABEL = ( localizeWithPath(
|
|
1473
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1474
|
-
'remote.tunnel.openCommandPalette',
|
|
1475
|
-
"Open Port in Browser"
|
|
1476
|
-
));
|
|
1326
|
+
OpenPortInBrowserCommandPaletteAction.LABEL = ( localizeWithPath(_moduleId, 43, "Open Port in Browser"));
|
|
1477
1327
|
function handler() {
|
|
1478
1328
|
return async (accessor, arg) => {
|
|
1479
1329
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
|
@@ -1482,37 +1332,29 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
|
1482
1332
|
const quickPickService = accessor.get(IQuickInputService);
|
|
1483
1333
|
const openerService = accessor.get(IOpenerService);
|
|
1484
1334
|
const commandService = accessor.get(ICommandService);
|
|
1485
|
-
const options = ( [...model.forwarded, ...model.detected].map(value => {
|
|
1335
|
+
const options = ( ([...model.forwarded, ...model.detected].map(value => {
|
|
1486
1336
|
const tunnelItem = TunnelItem.createFromTunnel(remoteExplorerService, tunnelService, value[1]);
|
|
1487
1337
|
return {
|
|
1488
1338
|
label: tunnelItem.label,
|
|
1489
1339
|
description: tunnelItem.processDescription,
|
|
1490
1340
|
tunnel: tunnelItem
|
|
1491
1341
|
};
|
|
1492
|
-
}));
|
|
1342
|
+
})));
|
|
1493
1343
|
if (options.length === 0) {
|
|
1494
1344
|
options.push({
|
|
1495
1345
|
label: ( localizeWithPath(
|
|
1496
|
-
|
|
1497
|
-
|
|
1346
|
+
_moduleId,
|
|
1347
|
+
44,
|
|
1498
1348
|
"No ports currently forwarded. Open the Ports view to get started."
|
|
1499
1349
|
))
|
|
1500
1350
|
});
|
|
1501
1351
|
}
|
|
1502
1352
|
else {
|
|
1503
1353
|
options.push({
|
|
1504
|
-
label: ( localizeWithPath(
|
|
1505
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1506
|
-
'remote.tunnel.openCommandPaletteView',
|
|
1507
|
-
"Open the Ports view..."
|
|
1508
|
-
))
|
|
1354
|
+
label: ( localizeWithPath(_moduleId, 45, "Open the Ports view..."))
|
|
1509
1355
|
});
|
|
1510
1356
|
}
|
|
1511
|
-
const picked = await quickPickService.pick(options, { placeHolder: ( localizeWithPath(
|
|
1512
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1513
|
-
'remote.tunnel.openCommandPalettePick',
|
|
1514
|
-
"Choose the port to open"
|
|
1515
|
-
)) });
|
|
1357
|
+
const picked = await quickPickService.pick(options, { placeHolder: ( localizeWithPath(_moduleId, 46, "Choose the port to open")) });
|
|
1516
1358
|
if (picked && picked.tunnel) {
|
|
1517
1359
|
return OpenPortInBrowserAction.run(model, openerService, makeAddress(picked.tunnel.remoteHost, picked.tunnel.remotePort));
|
|
1518
1360
|
}
|
|
@@ -1524,25 +1366,17 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
|
1524
1366
|
OpenPortInBrowserCommandPaletteAction.handler = handler;
|
|
1525
1367
|
})(
|
|
1526
1368
|
OpenPortInBrowserCommandPaletteAction || (OpenPortInBrowserCommandPaletteAction = {})
|
|
1527
|
-
));
|
|
1369
|
+
)));
|
|
1528
1370
|
var CopyAddressAction;
|
|
1529
|
-
( (function(CopyAddressAction) {
|
|
1371
|
+
( ((function(CopyAddressAction) {
|
|
1530
1372
|
CopyAddressAction.INLINE_ID = 'remote.tunnel.copyAddressInline';
|
|
1531
1373
|
CopyAddressAction.COMMANDPALETTE_ID = 'remote.tunnel.copyAddressCommandPalette';
|
|
1532
|
-
CopyAddressAction.INLINE_LABEL = ( localizeWithPath(
|
|
1533
|
-
|
|
1534
|
-
'remote.tunnel.copyAddressInline',
|
|
1535
|
-
"Copy Local Address"
|
|
1536
|
-
));
|
|
1537
|
-
CopyAddressAction.COMMANDPALETTE_LABEL = ( localizeWithPath(
|
|
1538
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1539
|
-
'remote.tunnel.copyAddressCommandPalette',
|
|
1540
|
-
"Copy Forwarded Port Address"
|
|
1541
|
-
));
|
|
1374
|
+
CopyAddressAction.INLINE_LABEL = ( localizeWithPath(_moduleId, 47, "Copy Local Address"));
|
|
1375
|
+
CopyAddressAction.COMMANDPALETTE_LABEL = ( localizeWithPath(_moduleId, 48, "Copy Forwarded Port Address"));
|
|
1542
1376
|
async function copyAddress(remoteExplorerService, clipboardService, tunnelItem) {
|
|
1543
1377
|
const address = remoteExplorerService.tunnelModel.address(tunnelItem.remoteHost, tunnelItem.remotePort);
|
|
1544
1378
|
if (address) {
|
|
1545
|
-
await clipboardService.writeText(( address.toString()));
|
|
1379
|
+
await clipboardService.writeText(( (address.toString())));
|
|
1546
1380
|
}
|
|
1547
1381
|
}
|
|
1548
1382
|
function inlineHandler() {
|
|
@@ -1569,12 +1403,8 @@ var CopyAddressAction;
|
|
|
1569
1403
|
const tunnelService = accessor.get(ITunnelService);
|
|
1570
1404
|
const commandService = accessor.get(ICommandService);
|
|
1571
1405
|
const clipboardService = accessor.get(IClipboardService);
|
|
1572
|
-
const tunnels = Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).concat(Array.from(( remoteExplorerService.tunnelModel.detected.values())));
|
|
1573
|
-
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localizeWithPath(
|
|
1574
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1575
|
-
'remote.tunnel.copyAddressPlaceholdter',
|
|
1576
|
-
"Choose a forwarded port"
|
|
1577
|
-
)) });
|
|
1406
|
+
const tunnels = Array.from(( (remoteExplorerService.tunnelModel.forwarded.values()))).concat(Array.from(( (remoteExplorerService.tunnelModel.detected.values()))));
|
|
1407
|
+
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localizeWithPath(_moduleId, 49, "Choose a forwarded port")) });
|
|
1578
1408
|
if (result && result.tunnel) {
|
|
1579
1409
|
await copyAddress(remoteExplorerService, clipboardService, result.tunnel);
|
|
1580
1410
|
}
|
|
@@ -1584,22 +1414,14 @@ var CopyAddressAction;
|
|
|
1584
1414
|
};
|
|
1585
1415
|
}
|
|
1586
1416
|
CopyAddressAction.commandPaletteHandler = commandPaletteHandler;
|
|
1587
|
-
})(CopyAddressAction || (CopyAddressAction = {})));
|
|
1417
|
+
})(CopyAddressAction || (CopyAddressAction = {}))));
|
|
1588
1418
|
var ChangeLocalPortAction;
|
|
1589
|
-
( (function(ChangeLocalPortAction) {
|
|
1419
|
+
( ((function(ChangeLocalPortAction) {
|
|
1590
1420
|
ChangeLocalPortAction.ID = 'remote.tunnel.changeLocalPort';
|
|
1591
|
-
ChangeLocalPortAction.LABEL = ( localizeWithPath(
|
|
1592
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1593
|
-
'remote.tunnel.changeLocalPort',
|
|
1594
|
-
"Change Local Address Port"
|
|
1595
|
-
));
|
|
1421
|
+
ChangeLocalPortAction.LABEL = ( localizeWithPath(_moduleId, 50, "Change Local Address Port"));
|
|
1596
1422
|
function validateInput(tunnelService, value, canElevate) {
|
|
1597
1423
|
if (!value.match(/^[0-9]+$/)) {
|
|
1598
|
-
return { content: ( localizeWithPath(
|
|
1599
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1600
|
-
'remote.tunnelsView.portShouldBeNumber',
|
|
1601
|
-
"Local port should be a number."
|
|
1602
|
-
)), severity: Severity$1.Error };
|
|
1424
|
+
return { content: ( localizeWithPath(_moduleId, 51, "Local port should be a number.")), severity: Severity$1.Error };
|
|
1603
1425
|
}
|
|
1604
1426
|
else if (Number(value) >= maxPortNumber) {
|
|
1605
1427
|
return { content: invalidPortNumberString, severity: Severity$1.Error };
|
|
@@ -1643,8 +1465,8 @@ var ChangeLocalPortAction;
|
|
|
1643
1465
|
});
|
|
1644
1466
|
if (newForward && (typeof newForward !== 'string') && newForward.tunnelLocalPort !== numberValue) {
|
|
1645
1467
|
notificationService.warn(( localizeWithPath(
|
|
1646
|
-
|
|
1647
|
-
|
|
1468
|
+
_moduleId,
|
|
1469
|
+
52,
|
|
1648
1470
|
"The local port {0} is not available. Port number {1} has been used instead",
|
|
1649
1471
|
value,
|
|
1650
1472
|
newForward.tunnelLocalPort ?? newForward.localAddress
|
|
@@ -1653,19 +1475,15 @@ var ChangeLocalPortAction;
|
|
|
1653
1475
|
}
|
|
1654
1476
|
},
|
|
1655
1477
|
validationMessage: (value) => validateInput(tunnelService, value, tunnelService.canElevate),
|
|
1656
|
-
placeholder: ( localizeWithPath(
|
|
1657
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1658
|
-
'remote.tunnelsView.changePort',
|
|
1659
|
-
"New local port"
|
|
1660
|
-
))
|
|
1478
|
+
placeholder: ( localizeWithPath(_moduleId, 53, "New local port"))
|
|
1661
1479
|
});
|
|
1662
1480
|
}
|
|
1663
1481
|
};
|
|
1664
1482
|
}
|
|
1665
1483
|
ChangeLocalPortAction.handler = handler;
|
|
1666
|
-
})(ChangeLocalPortAction || (ChangeLocalPortAction = {})));
|
|
1484
|
+
})(ChangeLocalPortAction || (ChangeLocalPortAction = {}))));
|
|
1667
1485
|
var ChangeTunnelPrivacyAction;
|
|
1668
|
-
( (function(ChangeTunnelPrivacyAction) {
|
|
1486
|
+
( ((function(ChangeTunnelPrivacyAction) {
|
|
1669
1487
|
function handler(privacyId) {
|
|
1670
1488
|
return async (accessor, arg) => {
|
|
1671
1489
|
if (isITunnelItem(arg)) {
|
|
@@ -1684,21 +1502,13 @@ var ChangeTunnelPrivacyAction;
|
|
|
1684
1502
|
};
|
|
1685
1503
|
}
|
|
1686
1504
|
ChangeTunnelPrivacyAction.handler = handler;
|
|
1687
|
-
})(ChangeTunnelPrivacyAction || (ChangeTunnelPrivacyAction = {})));
|
|
1505
|
+
})(ChangeTunnelPrivacyAction || (ChangeTunnelPrivacyAction = {}))));
|
|
1688
1506
|
var SetTunnelProtocolAction;
|
|
1689
|
-
( (function(SetTunnelProtocolAction) {
|
|
1507
|
+
( ((function(SetTunnelProtocolAction) {
|
|
1690
1508
|
SetTunnelProtocolAction.ID_HTTP = 'remote.tunnel.setProtocolHttp';
|
|
1691
1509
|
SetTunnelProtocolAction.ID_HTTPS = 'remote.tunnel.setProtocolHttps';
|
|
1692
|
-
SetTunnelProtocolAction.LABEL_HTTP = ( localizeWithPath(
|
|
1693
|
-
|
|
1694
|
-
'remote.tunnel.protocolHttp',
|
|
1695
|
-
"HTTP"
|
|
1696
|
-
));
|
|
1697
|
-
SetTunnelProtocolAction.LABEL_HTTPS = ( localizeWithPath(
|
|
1698
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1699
|
-
'remote.tunnel.protocolHttps',
|
|
1700
|
-
"HTTPS"
|
|
1701
|
-
));
|
|
1510
|
+
SetTunnelProtocolAction.LABEL_HTTP = ( localizeWithPath(_moduleId, 54, "HTTP"));
|
|
1511
|
+
SetTunnelProtocolAction.LABEL_HTTPS = ( localizeWithPath(_moduleId, 55, "HTTPS"));
|
|
1702
1512
|
async function handler(arg, protocol, remoteExplorerService) {
|
|
1703
1513
|
if (isITunnelItem(arg)) {
|
|
1704
1514
|
const attributes = {
|
|
@@ -1719,15 +1529,18 @@ var SetTunnelProtocolAction;
|
|
|
1719
1529
|
};
|
|
1720
1530
|
}
|
|
1721
1531
|
SetTunnelProtocolAction.handlerHttps = handlerHttps;
|
|
1722
|
-
})(SetTunnelProtocolAction || (SetTunnelProtocolAction = {})));
|
|
1532
|
+
})(SetTunnelProtocolAction || (SetTunnelProtocolAction = {}))));
|
|
1723
1533
|
const tunnelViewCommandsWeightBonus = 10;
|
|
1724
|
-
const isForwardedExpr = ( TunnelTypeContextKey.isEqualTo(TunnelType.Forwarded));
|
|
1725
|
-
const isForwardedOrDetectedExpr = ( ContextKeyExpr.or(
|
|
1726
|
-
|
|
1534
|
+
const isForwardedExpr = ( (TunnelTypeContextKey.isEqualTo(TunnelType.Forwarded)));
|
|
1535
|
+
const isForwardedOrDetectedExpr = ( (ContextKeyExpr.or(
|
|
1536
|
+
isForwardedExpr,
|
|
1537
|
+
(TunnelTypeContextKey.isEqualTo(TunnelType.Detected))
|
|
1538
|
+
)));
|
|
1539
|
+
const isNotMultiSelectionExpr = ( (TunnelViewMultiSelectionContextKey.isEqualTo(undefined)));
|
|
1727
1540
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1728
1541
|
id: LabelTunnelAction.ID,
|
|
1729
1542
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1730
|
-
when: ( ContextKeyExpr.and(TunnelViewFocusContextKey, isForwardedExpr, isNotMultiSelectionExpr)),
|
|
1543
|
+
when: ( (ContextKeyExpr.and(TunnelViewFocusContextKey, isForwardedExpr, isNotMultiSelectionExpr))),
|
|
1731
1544
|
primary: 60 ,
|
|
1732
1545
|
mac: {
|
|
1733
1546
|
primary: 3
|
|
@@ -1739,7 +1552,7 @@ CommandsRegistry.registerCommand(ForwardPortAction.COMMANDPALETTE_ID, ForwardPor
|
|
|
1739
1552
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1740
1553
|
id: ClosePortAction.INLINE_ID,
|
|
1741
1554
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1742
|
-
when: ( ContextKeyExpr.and(TunnelCloseableContextKey, TunnelViewFocusContextKey)),
|
|
1555
|
+
when: ( (ContextKeyExpr.and(TunnelCloseableContextKey, TunnelViewFocusContextKey))),
|
|
1743
1556
|
primary: 20 ,
|
|
1744
1557
|
mac: {
|
|
1745
1558
|
primary: 2048 | 1 ,
|
|
@@ -1754,11 +1567,11 @@ CommandsRegistry.registerCommand(OpenPortInBrowserCommandPaletteAction.ID, OpenP
|
|
|
1754
1567
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1755
1568
|
id: CopyAddressAction.INLINE_ID,
|
|
1756
1569
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1757
|
-
when: ( ContextKeyExpr.and(
|
|
1570
|
+
when: ( (ContextKeyExpr.and(
|
|
1758
1571
|
TunnelViewFocusContextKey,
|
|
1759
1572
|
isForwardedOrDetectedExpr,
|
|
1760
1573
|
isNotMultiSelectionExpr
|
|
1761
|
-
)),
|
|
1574
|
+
))),
|
|
1762
1575
|
primary: 2048 | 33 ,
|
|
1763
1576
|
handler: CopyAddressAction.inlineHandler()
|
|
1764
1577
|
});
|
|
@@ -1801,7 +1614,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1801
1614
|
id: OpenPortInBrowserAction.ID,
|
|
1802
1615
|
title: OpenPortInBrowserAction.LABEL,
|
|
1803
1616
|
},
|
|
1804
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1617
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1805
1618
|
}));
|
|
1806
1619
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1807
1620
|
group: '._open',
|
|
@@ -1810,7 +1623,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1810
1623
|
id: OpenPortInPreviewAction.ID,
|
|
1811
1624
|
title: OpenPortInPreviewAction.LABEL,
|
|
1812
1625
|
},
|
|
1813
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1626
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1814
1627
|
}));
|
|
1815
1628
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1816
1629
|
group: '0_manage',
|
|
@@ -1820,7 +1633,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1820
1633
|
title: LabelTunnelAction.LABEL,
|
|
1821
1634
|
icon: labelPortIcon
|
|
1822
1635
|
},
|
|
1823
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr))
|
|
1636
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr)))
|
|
1824
1637
|
}));
|
|
1825
1638
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1826
1639
|
group: '2_localaddress',
|
|
@@ -1829,7 +1642,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1829
1642
|
id: CopyAddressAction.INLINE_ID,
|
|
1830
1643
|
title: CopyAddressAction.INLINE_LABEL,
|
|
1831
1644
|
},
|
|
1832
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1645
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1833
1646
|
}));
|
|
1834
1647
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1835
1648
|
group: '2_localaddress',
|
|
@@ -1838,29 +1651,21 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1838
1651
|
id: ChangeLocalPortAction.ID,
|
|
1839
1652
|
title: ChangeLocalPortAction.LABEL,
|
|
1840
1653
|
},
|
|
1841
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, PortChangableContextKey, isNotMultiSelectionExpr))
|
|
1654
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, PortChangableContextKey, isNotMultiSelectionExpr)))
|
|
1842
1655
|
}));
|
|
1843
1656
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1844
1657
|
group: '2_localaddress',
|
|
1845
1658
|
order: 2,
|
|
1846
1659
|
submenu: MenuId.TunnelPrivacy,
|
|
1847
|
-
title: ( localizeWithPath(
|
|
1848
|
-
|
|
1849
|
-
'tunnelContext.privacyMenu',
|
|
1850
|
-
"Port Visibility"
|
|
1851
|
-
)),
|
|
1852
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey))
|
|
1660
|
+
title: ( localizeWithPath(_moduleId, 56, "Port Visibility")),
|
|
1661
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey)))
|
|
1853
1662
|
}));
|
|
1854
1663
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1855
1664
|
group: '2_localaddress',
|
|
1856
1665
|
order: 3,
|
|
1857
1666
|
submenu: MenuId.TunnelProtocol,
|
|
1858
|
-
title: ( localizeWithPath(
|
|
1859
|
-
|
|
1860
|
-
'tunnelContext.protocolMenu',
|
|
1861
|
-
"Change Port Protocol"
|
|
1862
|
-
)),
|
|
1863
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey))
|
|
1667
|
+
title: ( localizeWithPath(_moduleId, 57, "Change Port Protocol")),
|
|
1668
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey)))
|
|
1864
1669
|
}));
|
|
1865
1670
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1866
1671
|
group: '3_forward',
|
|
@@ -1884,7 +1689,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
|
1884
1689
|
command: {
|
|
1885
1690
|
id: SetTunnelProtocolAction.ID_HTTP,
|
|
1886
1691
|
title: SetTunnelProtocolAction.LABEL_HTTP,
|
|
1887
|
-
toggled: ( TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Http))
|
|
1692
|
+
toggled: ( (TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Http)))
|
|
1888
1693
|
}
|
|
1889
1694
|
}));
|
|
1890
1695
|
MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
@@ -1892,7 +1697,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
|
1892
1697
|
command: {
|
|
1893
1698
|
id: SetTunnelProtocolAction.ID_HTTPS,
|
|
1894
1699
|
title: SetTunnelProtocolAction.LABEL_HTTPS,
|
|
1895
|
-
toggled: ( TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Https))
|
|
1700
|
+
toggled: ( (TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Https)))
|
|
1896
1701
|
}
|
|
1897
1702
|
}));
|
|
1898
1703
|
MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
@@ -1903,7 +1708,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
|
1903
1708
|
title: ForwardPortAction.TREEITEM_LABEL,
|
|
1904
1709
|
icon: forwardPortIcon
|
|
1905
1710
|
},
|
|
1906
|
-
when: ( TunnelTypeContextKey.isEqualTo(TunnelType.Candidate))
|
|
1711
|
+
when: ( (TunnelTypeContextKey.isEqualTo(TunnelType.Candidate)))
|
|
1907
1712
|
}));
|
|
1908
1713
|
MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
1909
1714
|
group: '0_manage',
|
|
@@ -1958,8 +1763,8 @@ registerColor('ports.iconRunningProcessForeground', {
|
|
|
1958
1763
|
hcDark: STATUS_BAR_REMOTE_ITEM_BACKGROUND,
|
|
1959
1764
|
hcLight: STATUS_BAR_REMOTE_ITEM_BACKGROUND
|
|
1960
1765
|
}, ( localizeWithPath(
|
|
1961
|
-
|
|
1962
|
-
|
|
1766
|
+
_moduleId,
|
|
1767
|
+
58,
|
|
1963
1768
|
"The color of the icon for a port that has an associated running process."
|
|
1964
1769
|
)));
|
|
1965
1770
|
export { ForwardPortAction, OpenPortInBrowserAction, OpenPortInPreviewAction, TunnelPanel, TunnelPanelDescriptor, TunnelViewModel, openPreviewEnabledContext };
|