@codingame/monaco-vscode-api 4.5.1 → 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/extensions.js +10 -2
- package/package.json +8 -8
- 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.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.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.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.js +23 -16
- package/vscode/src/vs/platform/files/common/files.js +41 -58
- 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/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/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/auxiliarybar/auxiliaryBarActions.js +23 -56
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +72 -115
- 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/panel/panelActions.js +58 -196
- 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/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/terminalEditorInput.js +19 -26
- 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/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.js +3 -6
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +40 -57
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +6 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +176 -223
- 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.js +30 -42
- 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/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/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
|
@@ -11,371 +11,140 @@ import { Schemas } from '../../base/common/network.js';
|
|
|
11
11
|
import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
|
|
12
12
|
import { isLinux } from '../../base/common/platform.js';
|
|
13
13
|
var ResourceContextKey_1;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const _moduleId = "vs/workbench/common/contextkeys";
|
|
15
|
+
const WorkbenchStateContext = ( (new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localizeWithPath(
|
|
16
|
+
_moduleId,
|
|
17
|
+
0,
|
|
17
18
|
"The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
|
|
18
|
-
)) }));
|
|
19
|
-
const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localizeWithPath(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
))));
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localizeWithPath(
|
|
28
|
-
'vs/workbench/common/contextkeys',
|
|
29
|
-
'dirtyWorkingCopies',
|
|
30
|
-
"Whether there are any working copies with unsaved changes"
|
|
31
|
-
))));
|
|
32
|
-
const RemoteNameContext = ( new RawContextKey('remoteName', '', ( localizeWithPath(
|
|
33
|
-
'vs/workbench/common/contextkeys',
|
|
34
|
-
'remoteName',
|
|
19
|
+
)) })));
|
|
20
|
+
const WorkspaceFolderCountContext = ( (new RawContextKey('workspaceFolderCount', 0, ( localizeWithPath(_moduleId, 1, "The number of root folders in the workspace")))));
|
|
21
|
+
const OpenFolderWorkspaceSupportContext = ( (new RawContextKey('openFolderWorkspaceSupport', true, true)));
|
|
22
|
+
const EnterMultiRootWorkspaceSupportContext = ( (new RawContextKey('enterMultiRootWorkspaceSupport', true, true)));
|
|
23
|
+
const EmptyWorkspaceSupportContext = ( (new RawContextKey('emptyWorkspaceSupport', true, true)));
|
|
24
|
+
const DirtyWorkingCopiesContext = ( (new RawContextKey('dirtyWorkingCopies', false, ( localizeWithPath(_moduleId, 2, "Whether there are any working copies with unsaved changes")))));
|
|
25
|
+
const RemoteNameContext = ( (new RawContextKey('remoteName', '', ( localizeWithPath(
|
|
26
|
+
_moduleId,
|
|
27
|
+
3,
|
|
35
28
|
"The name of the remote the window is connected to or an empty string if not connected to any remote"
|
|
36
|
-
))));
|
|
37
|
-
const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( localizeWithPath(
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
)))));
|
|
30
|
+
const VirtualWorkspaceContext = ( (new RawContextKey('virtualWorkspace', '', ( localizeWithPath(
|
|
31
|
+
_moduleId,
|
|
32
|
+
4,
|
|
40
33
|
"The scheme of the current workspace is from a virtual file system or an empty string."
|
|
41
|
-
))));
|
|
42
|
-
const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localizeWithPath(
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
)))));
|
|
35
|
+
const TemporaryWorkspaceContext = ( (new RawContextKey('temporaryWorkspace', false, ( localizeWithPath(
|
|
36
|
+
_moduleId,
|
|
37
|
+
5,
|
|
45
38
|
"The scheme of the current workspace is from a temporary file system."
|
|
46
|
-
))));
|
|
47
|
-
const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localizeWithPath(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'vs/workbench/common/contextkeys',
|
|
54
|
-
'isAuxiliaryWindowFocusedContext',
|
|
55
|
-
"Whether an auxiliary window is focused"
|
|
56
|
-
))));
|
|
57
|
-
const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
|
|
58
|
-
const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localizeWithPath(
|
|
59
|
-
'vs/workbench/common/contextkeys',
|
|
60
|
-
'embedderIdentifier',
|
|
39
|
+
)))));
|
|
40
|
+
const IsMainWindowFullscreenContext = ( (new RawContextKey('isFullscreen', false, ( localizeWithPath(_moduleId, 6, "Whether the main window is in fullscreen mode")))));
|
|
41
|
+
const IsAuxiliaryWindowFocusedContext = ( (new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localizeWithPath(_moduleId, 7, "Whether an auxiliary window is focused")))));
|
|
42
|
+
const HasWebFileSystemAccess = ( (new RawContextKey('hasWebFileSystemAccess', false, true)));
|
|
43
|
+
const EmbedderIdentifierContext = ( (new RawContextKey('embedderIdentifier', undefined, ( localizeWithPath(
|
|
44
|
+
_moduleId,
|
|
45
|
+
8,
|
|
61
46
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
62
|
-
))));
|
|
63
|
-
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localizeWithPath(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
))));
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localizeWithPath(
|
|
74
|
-
'vs/workbench/common/contextkeys',
|
|
75
|
-
'activeEditorIsFirstInGroup',
|
|
76
|
-
"Whether the active editor is the first one in its group"
|
|
77
|
-
))));
|
|
78
|
-
const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localizeWithPath(
|
|
79
|
-
'vs/workbench/common/contextkeys',
|
|
80
|
-
'activeEditorIsLastInGroup',
|
|
81
|
-
"Whether the active editor is the last one in its group"
|
|
82
|
-
))));
|
|
83
|
-
const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localizeWithPath(
|
|
84
|
-
'vs/workbench/common/contextkeys',
|
|
85
|
-
'activeEditorIsPinned',
|
|
86
|
-
"Whether the active editor is pinned"
|
|
87
|
-
))));
|
|
88
|
-
const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localizeWithPath(
|
|
89
|
-
'vs/workbench/common/contextkeys',
|
|
90
|
-
'activeEditorIsReadonly',
|
|
91
|
-
"Whether the active editor is read-only"
|
|
92
|
-
))));
|
|
93
|
-
const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localizeWithPath(
|
|
94
|
-
'vs/workbench/common/contextkeys',
|
|
95
|
-
'activeCompareEditorCanSwap',
|
|
96
|
-
"Whether the active compare editor can swap sides"
|
|
97
|
-
))));
|
|
98
|
-
const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localizeWithPath(
|
|
99
|
-
'vs/workbench/common/contextkeys',
|
|
100
|
-
'activeEditorCanToggleReadonly',
|
|
47
|
+
)))));
|
|
48
|
+
const ActiveEditorDirtyContext = ( (new RawContextKey('activeEditorIsDirty', false, ( localizeWithPath(_moduleId, 9, "Whether the active editor has unsaved changes")))));
|
|
49
|
+
const ActiveEditorPinnedContext = ( (new RawContextKey('activeEditorIsNotPreview', false, ( localizeWithPath(_moduleId, 10, "Whether the active editor is not in preview mode")))));
|
|
50
|
+
const ActiveEditorFirstInGroupContext = ( (new RawContextKey('activeEditorIsFirstInGroup', false, ( localizeWithPath(_moduleId, 11, "Whether the active editor is the first one in its group")))));
|
|
51
|
+
const ActiveEditorLastInGroupContext = ( (new RawContextKey('activeEditorIsLastInGroup', false, ( localizeWithPath(_moduleId, 12, "Whether the active editor is the last one in its group")))));
|
|
52
|
+
const ActiveEditorStickyContext = ( (new RawContextKey('activeEditorIsPinned', false, ( localizeWithPath(_moduleId, 13, "Whether the active editor is pinned")))));
|
|
53
|
+
const ActiveEditorReadonlyContext = ( (new RawContextKey('activeEditorIsReadonly', false, ( localizeWithPath(_moduleId, 14, "Whether the active editor is read-only")))));
|
|
54
|
+
const ActiveCompareEditorCanSwapContext = ( (new RawContextKey('activeCompareEditorCanSwap', false, ( localizeWithPath(_moduleId, 15, "Whether the active compare editor can swap sides")))));
|
|
55
|
+
const ActiveEditorCanToggleReadonlyContext = ( (new RawContextKey('activeEditorCanToggleReadonly', true, ( localizeWithPath(
|
|
56
|
+
_moduleId,
|
|
57
|
+
16,
|
|
101
58
|
"Whether the active editor can toggle between being read-only or writeable"
|
|
102
|
-
))));
|
|
103
|
-
const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localizeWithPath(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localizeWithPath(
|
|
110
|
-
'vs/workbench/common/contextkeys',
|
|
111
|
-
'activeEditor',
|
|
112
|
-
"The identifier of the active editor"
|
|
113
|
-
)) }));
|
|
114
|
-
const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localizeWithPath(
|
|
115
|
-
'vs/workbench/common/contextkeys',
|
|
116
|
-
'activeEditorAvailableEditorIds',
|
|
59
|
+
)))));
|
|
60
|
+
const ActiveEditorCanRevertContext = ( (new RawContextKey('activeEditorCanRevert', false, ( localizeWithPath(_moduleId, 17, "Whether the active editor can revert")))));
|
|
61
|
+
const ActiveEditorCanSplitInGroupContext = ( (new RawContextKey('activeEditorCanSplitInGroup', true)));
|
|
62
|
+
const ActiveEditorContext = ( (new RawContextKey('activeEditor', null, { type: 'string', description: ( localizeWithPath(_moduleId, 18, "The identifier of the active editor")) })));
|
|
63
|
+
const ActiveEditorAvailableEditorIdsContext = ( (new RawContextKey('activeEditorAvailableEditorIds', '', ( localizeWithPath(
|
|
64
|
+
_moduleId,
|
|
65
|
+
19,
|
|
117
66
|
"The available editor identifiers that are usable for the active editor"
|
|
118
|
-
))));
|
|
119
|
-
const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localizeWithPath(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
))));
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'sideBySideEditorActive',
|
|
132
|
-
"Whether a side by side editor is active"
|
|
133
|
-
))));
|
|
134
|
-
const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localizeWithPath(
|
|
135
|
-
'vs/workbench/common/contextkeys',
|
|
136
|
-
'groupEditorsCount',
|
|
137
|
-
"The number of opened editor groups"
|
|
138
|
-
))));
|
|
139
|
-
const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localizeWithPath(
|
|
140
|
-
'vs/workbench/common/contextkeys',
|
|
141
|
-
'activeEditorGroupEmpty',
|
|
142
|
-
"Whether the active editor group is empty"
|
|
143
|
-
))));
|
|
144
|
-
const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localizeWithPath(
|
|
145
|
-
'vs/workbench/common/contextkeys',
|
|
146
|
-
'activeEditorGroupIndex',
|
|
147
|
-
"The index of the active editor group"
|
|
148
|
-
))));
|
|
149
|
-
const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localizeWithPath(
|
|
150
|
-
'vs/workbench/common/contextkeys',
|
|
151
|
-
'activeEditorGroupLast',
|
|
152
|
-
"Whether the active editor group is the last group"
|
|
153
|
-
))));
|
|
154
|
-
const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localizeWithPath(
|
|
155
|
-
'vs/workbench/common/contextkeys',
|
|
156
|
-
'activeEditorGroupLocked',
|
|
157
|
-
"Whether the active editor group is locked"
|
|
158
|
-
))));
|
|
159
|
-
const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localizeWithPath(
|
|
160
|
-
'vs/workbench/common/contextkeys',
|
|
161
|
-
'multipleEditorGroups',
|
|
162
|
-
"Whether there are multiple editor groups opened"
|
|
163
|
-
))));
|
|
164
|
-
const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localizeWithPath(
|
|
165
|
-
'vs/workbench/common/contextkeys',
|
|
166
|
-
'editorPartMultipleEditorGroups',
|
|
67
|
+
)))));
|
|
68
|
+
const TextCompareEditorVisibleContext = ( (new RawContextKey('textCompareEditorVisible', false, ( localizeWithPath(_moduleId, 20, "Whether a text compare editor is visible")))));
|
|
69
|
+
const TextCompareEditorActiveContext = ( (new RawContextKey('textCompareEditorActive', false, ( localizeWithPath(_moduleId, 21, "Whether a text compare editor is active")))));
|
|
70
|
+
const SideBySideEditorActiveContext = ( (new RawContextKey('sideBySideEditorActive', false, ( localizeWithPath(_moduleId, 22, "Whether a side by side editor is active")))));
|
|
71
|
+
const EditorGroupEditorsCountContext = ( (new RawContextKey('groupEditorsCount', 0, ( localizeWithPath(_moduleId, 23, "The number of opened editor groups")))));
|
|
72
|
+
const ActiveEditorGroupEmptyContext = ( (new RawContextKey('activeEditorGroupEmpty', false, ( localizeWithPath(_moduleId, 24, "Whether the active editor group is empty")))));
|
|
73
|
+
const ActiveEditorGroupIndexContext = ( (new RawContextKey('activeEditorGroupIndex', 0, ( localizeWithPath(_moduleId, 25, "The index of the active editor group")))));
|
|
74
|
+
const ActiveEditorGroupLastContext = ( (new RawContextKey('activeEditorGroupLast', false, ( localizeWithPath(_moduleId, 26, "Whether the active editor group is the last group")))));
|
|
75
|
+
const ActiveEditorGroupLockedContext = ( (new RawContextKey('activeEditorGroupLocked', false, ( localizeWithPath(_moduleId, 27, "Whether the active editor group is locked")))));
|
|
76
|
+
const MultipleEditorGroupsContext = ( (new RawContextKey('multipleEditorGroups', false, ( localizeWithPath(_moduleId, 28, "Whether there are multiple editor groups opened")))));
|
|
77
|
+
const EditorPartMultipleEditorGroupsContext = ( (new RawContextKey('editorPartMultipleEditorGroups', false, ( localizeWithPath(
|
|
78
|
+
_moduleId,
|
|
79
|
+
29,
|
|
167
80
|
"Whether there are multiple editor groups opened in an editor part"
|
|
168
|
-
))));
|
|
169
|
-
const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localizeWithPath(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
))));
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
))));
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
))));
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
))));
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
'splitEditorsVertically',
|
|
197
|
-
"Whether editors split vertically"
|
|
198
|
-
))));
|
|
199
|
-
const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localizeWithPath(
|
|
200
|
-
'vs/workbench/common/contextkeys',
|
|
201
|
-
'mainEditorAreaVisible',
|
|
202
|
-
"Whether the editor area in the main window is visible"
|
|
203
|
-
))));
|
|
204
|
-
const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localizeWithPath(
|
|
205
|
-
'vs/workbench/common/contextkeys',
|
|
206
|
-
'editorTabsVisible',
|
|
207
|
-
"Whether editor tabs are visible"
|
|
208
|
-
))));
|
|
209
|
-
const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localizeWithPath(
|
|
210
|
-
'vs/workbench/common/contextkeys',
|
|
211
|
-
'sideBarVisible',
|
|
212
|
-
"Whether the sidebar is visible"
|
|
213
|
-
))));
|
|
214
|
-
const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localizeWithPath(
|
|
215
|
-
'vs/workbench/common/contextkeys',
|
|
216
|
-
'sideBarFocus',
|
|
217
|
-
"Whether the sidebar has keyboard focus"
|
|
218
|
-
))));
|
|
219
|
-
const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localizeWithPath(
|
|
220
|
-
'vs/workbench/common/contextkeys',
|
|
221
|
-
'activeViewlet',
|
|
222
|
-
"The identifier of the active viewlet"
|
|
223
|
-
))));
|
|
224
|
-
const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localizeWithPath(
|
|
225
|
-
'vs/workbench/common/contextkeys',
|
|
226
|
-
'statusBarFocused',
|
|
227
|
-
"Whether the status bar has keyboard focus"
|
|
228
|
-
))));
|
|
229
|
-
const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localizeWithPath(
|
|
230
|
-
'vs/workbench/common/contextkeys',
|
|
231
|
-
'titleBarStyle',
|
|
232
|
-
"Style of the window title bar"
|
|
233
|
-
))));
|
|
234
|
-
const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localizeWithPath(
|
|
235
|
-
'vs/workbench/common/contextkeys',
|
|
236
|
-
'titleBarVisible',
|
|
237
|
-
"Whether the title bar is visible"
|
|
238
|
-
))));
|
|
239
|
-
const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localizeWithPath(
|
|
240
|
-
'vs/workbench/common/contextkeys',
|
|
241
|
-
'bannerFocused',
|
|
242
|
-
"Whether the banner has keyboard focus"
|
|
243
|
-
))));
|
|
244
|
-
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localizeWithPath(
|
|
245
|
-
'vs/workbench/common/contextkeys',
|
|
246
|
-
'notificationFocus',
|
|
247
|
-
"Whether a notification has keyboard focus"
|
|
248
|
-
))));
|
|
249
|
-
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localizeWithPath(
|
|
250
|
-
'vs/workbench/common/contextkeys',
|
|
251
|
-
'notificationCenterVisible',
|
|
252
|
-
"Whether the notifications center is visible"
|
|
253
|
-
))));
|
|
254
|
-
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localizeWithPath(
|
|
255
|
-
'vs/workbench/common/contextkeys',
|
|
256
|
-
'notificationToastsVisible',
|
|
257
|
-
"Whether a notification toast is visible"
|
|
258
|
-
))));
|
|
259
|
-
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localizeWithPath(
|
|
260
|
-
'vs/workbench/common/contextkeys',
|
|
261
|
-
'activeAuxiliary',
|
|
262
|
-
"The identifier of the active auxiliary panel"
|
|
263
|
-
))));
|
|
264
|
-
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localizeWithPath(
|
|
265
|
-
'vs/workbench/common/contextkeys',
|
|
266
|
-
'auxiliaryBarFocus',
|
|
267
|
-
"Whether the auxiliary bar has keyboard focus"
|
|
268
|
-
))));
|
|
269
|
-
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localizeWithPath(
|
|
270
|
-
'vs/workbench/common/contextkeys',
|
|
271
|
-
'auxiliaryBarVisible',
|
|
272
|
-
"Whether the auxiliary bar is visible"
|
|
273
|
-
))));
|
|
274
|
-
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localizeWithPath(
|
|
275
|
-
'vs/workbench/common/contextkeys',
|
|
276
|
-
'activePanel',
|
|
277
|
-
"The identifier of the active panel"
|
|
278
|
-
))));
|
|
279
|
-
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localizeWithPath(
|
|
280
|
-
'vs/workbench/common/contextkeys',
|
|
281
|
-
'panelFocus',
|
|
282
|
-
"Whether the panel has keyboard focus"
|
|
283
|
-
))));
|
|
284
|
-
const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localizeWithPath(
|
|
285
|
-
'vs/workbench/common/contextkeys',
|
|
286
|
-
'panelPosition',
|
|
287
|
-
"The position of the panel, always 'bottom'"
|
|
288
|
-
))));
|
|
289
|
-
const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localizeWithPath(
|
|
290
|
-
'vs/workbench/common/contextkeys',
|
|
291
|
-
'panelAlignment',
|
|
81
|
+
)))));
|
|
82
|
+
const EditorPartMaximizedEditorGroupContext = ( (new RawContextKey('editorPartMaximizedEditorGroup', false, ( localizeWithPath(_moduleId, 30, "Editor Part has a maximized group")))));
|
|
83
|
+
const IsAuxiliaryEditorPartContext = ( (new RawContextKey('isAuxiliaryEditorPart', false, ( localizeWithPath(_moduleId, 31, "Editor Part is in an auxiliary window")))));
|
|
84
|
+
const EditorsVisibleContext = ( (new RawContextKey('editorIsOpen', false, ( localizeWithPath(_moduleId, 32, "Whether an editor is open")))));
|
|
85
|
+
const InEditorZenModeContext = ( (new RawContextKey('inZenMode', false, ( localizeWithPath(_moduleId, 33, "Whether Zen mode is enabled")))));
|
|
86
|
+
const IsMainEditorCenteredLayoutContext = ( (new RawContextKey('isCenteredLayout', false, ( localizeWithPath(_moduleId, 34, "Whether centered layout is enabled for the main editor")))));
|
|
87
|
+
const SplitEditorsVertically = ( (new RawContextKey('splitEditorsVertically', false, ( localizeWithPath(_moduleId, 35, "Whether editors split vertically")))));
|
|
88
|
+
const MainEditorAreaVisibleContext = ( (new RawContextKey('mainEditorAreaVisible', true, ( localizeWithPath(_moduleId, 36, "Whether the editor area in the main window is visible")))));
|
|
89
|
+
const EditorTabsVisibleContext = ( (new RawContextKey('editorTabsVisible', true, ( localizeWithPath(_moduleId, 37, "Whether editor tabs are visible")))));
|
|
90
|
+
const SideBarVisibleContext = ( (new RawContextKey('sideBarVisible', false, ( localizeWithPath(_moduleId, 38, "Whether the sidebar is visible")))));
|
|
91
|
+
const SidebarFocusContext = ( (new RawContextKey('sideBarFocus', false, ( localizeWithPath(_moduleId, 39, "Whether the sidebar has keyboard focus")))));
|
|
92
|
+
const ActiveViewletContext = ( (new RawContextKey('activeViewlet', '', ( localizeWithPath(_moduleId, 40, "The identifier of the active viewlet")))));
|
|
93
|
+
const StatusBarFocused = ( (new RawContextKey('statusBarFocused', false, ( localizeWithPath(_moduleId, 41, "Whether the status bar has keyboard focus")))));
|
|
94
|
+
const TitleBarStyleContext = ( (new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localizeWithPath(_moduleId, 42, "Style of the window title bar")))));
|
|
95
|
+
const TitleBarVisibleContext = ( (new RawContextKey('titleBarVisible', false, ( localizeWithPath(_moduleId, 43, "Whether the title bar is visible")))));
|
|
96
|
+
const BannerFocused = ( (new RawContextKey('bannerFocused', false, ( localizeWithPath(_moduleId, 44, "Whether the banner has keyboard focus")))));
|
|
97
|
+
const NotificationFocusedContext = ( (new RawContextKey('notificationFocus', true, ( localizeWithPath(_moduleId, 45, "Whether a notification has keyboard focus")))));
|
|
98
|
+
const NotificationsCenterVisibleContext = ( (new RawContextKey('notificationCenterVisible', false, ( localizeWithPath(_moduleId, 46, "Whether the notifications center is visible")))));
|
|
99
|
+
const NotificationsToastsVisibleContext = ( (new RawContextKey('notificationToastsVisible', false, ( localizeWithPath(_moduleId, 47, "Whether a notification toast is visible")))));
|
|
100
|
+
const ActiveAuxiliaryContext = ( (new RawContextKey('activeAuxiliary', '', ( localizeWithPath(_moduleId, 48, "The identifier of the active auxiliary panel")))));
|
|
101
|
+
const AuxiliaryBarFocusContext = ( (new RawContextKey('auxiliaryBarFocus', false, ( localizeWithPath(_moduleId, 49, "Whether the auxiliary bar has keyboard focus")))));
|
|
102
|
+
const AuxiliaryBarVisibleContext = ( (new RawContextKey('auxiliaryBarVisible', false, ( localizeWithPath(_moduleId, 50, "Whether the auxiliary bar is visible")))));
|
|
103
|
+
const ActivePanelContext = ( (new RawContextKey('activePanel', '', ( localizeWithPath(_moduleId, 51, "The identifier of the active panel")))));
|
|
104
|
+
const PanelFocusContext = ( (new RawContextKey('panelFocus', false, ( localizeWithPath(_moduleId, 52, "Whether the panel has keyboard focus")))));
|
|
105
|
+
const PanelPositionContext = ( (new RawContextKey('panelPosition', 'bottom', ( localizeWithPath(_moduleId, 53, "The position of the panel, always 'bottom'")))));
|
|
106
|
+
const PanelAlignmentContext = ( (new RawContextKey('panelAlignment', 'center', ( localizeWithPath(
|
|
107
|
+
_moduleId,
|
|
108
|
+
54,
|
|
292
109
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
293
|
-
))));
|
|
294
|
-
const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localizeWithPath(
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
"Whether the panel is visible"
|
|
298
|
-
))));
|
|
299
|
-
const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localizeWithPath(
|
|
300
|
-
'vs/workbench/common/contextkeys',
|
|
301
|
-
'panelMaximized',
|
|
302
|
-
"Whether the panel is maximized"
|
|
303
|
-
))));
|
|
304
|
-
const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localizeWithPath(
|
|
305
|
-
'vs/workbench/common/contextkeys',
|
|
306
|
-
'focusedView',
|
|
307
|
-
"The identifier of the view that has keyboard focus"
|
|
308
|
-
))));
|
|
110
|
+
)))));
|
|
111
|
+
const PanelVisibleContext = ( (new RawContextKey('panelVisible', false, ( localizeWithPath(_moduleId, 55, "Whether the panel is visible")))));
|
|
112
|
+
const PanelMaximizedContext = ( (new RawContextKey('panelMaximized', false, ( localizeWithPath(_moduleId, 56, "Whether the panel is maximized")))));
|
|
113
|
+
const FocusedViewContext = ( (new RawContextKey('focusedView', '', ( localizeWithPath(_moduleId, 57, "The identifier of the view that has keyboard focus")))));
|
|
309
114
|
function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
|
|
310
115
|
let ResourceContextKey = class ResourceContextKey {
|
|
311
116
|
static { ResourceContextKey_1 = this; }
|
|
312
|
-
static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localizeWithPath(
|
|
313
|
-
|
|
314
|
-
'resourceScheme',
|
|
315
|
-
"The scheme of the resource"
|
|
316
|
-
)) })); }
|
|
317
|
-
static { this.Filename = ( new RawContextKey(
|
|
117
|
+
static { this.Scheme = ( (new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localizeWithPath(_moduleId, 58, "The scheme of the resource")) }))); }
|
|
118
|
+
static { this.Filename = ( (new RawContextKey(
|
|
318
119
|
'resourceFilename',
|
|
319
120
|
undefined,
|
|
320
|
-
{ type: 'string', description: ( localizeWithPath(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
"The file name of the resource"
|
|
324
|
-
)) }
|
|
325
|
-
)); }
|
|
326
|
-
static { this.Dirname = ( new RawContextKey(
|
|
121
|
+
{ type: 'string', description: ( localizeWithPath(_moduleId, 59, "The file name of the resource")) }
|
|
122
|
+
))); }
|
|
123
|
+
static { this.Dirname = ( (new RawContextKey(
|
|
327
124
|
'resourceDirname',
|
|
328
125
|
undefined,
|
|
329
|
-
{ type: 'string', description: ( localizeWithPath(
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localizeWithPath(
|
|
336
|
-
'vs/workbench/common/contextkeys',
|
|
337
|
-
'resourcePath',
|
|
338
|
-
"The full path of the resource"
|
|
339
|
-
)) })); }
|
|
340
|
-
static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localizeWithPath(
|
|
341
|
-
'vs/workbench/common/contextkeys',
|
|
342
|
-
'resourceLangId',
|
|
343
|
-
"The language identifier of the resource"
|
|
344
|
-
)) })); }
|
|
345
|
-
static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localizeWithPath(
|
|
346
|
-
'vs/workbench/common/contextkeys',
|
|
347
|
-
'resource',
|
|
348
|
-
"The full value of the resource including scheme and path"
|
|
349
|
-
)) })); }
|
|
350
|
-
static { this.Extension = ( new RawContextKey(
|
|
126
|
+
{ type: 'string', description: ( localizeWithPath(_moduleId, 60, "The folder name the resource is contained in")) }
|
|
127
|
+
))); }
|
|
128
|
+
static { this.Path = ( (new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localizeWithPath(_moduleId, 61, "The full path of the resource")) }))); }
|
|
129
|
+
static { this.LangId = ( (new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localizeWithPath(_moduleId, 62, "The language identifier of the resource")) }))); }
|
|
130
|
+
static { this.Resource = ( (new RawContextKey('resource', undefined, { type: 'URI', description: ( localizeWithPath(_moduleId, 63, "The full value of the resource including scheme and path")) }))); }
|
|
131
|
+
static { this.Extension = ( (new RawContextKey(
|
|
351
132
|
'resourceExtname',
|
|
352
133
|
undefined,
|
|
353
|
-
{ type: 'string', description: ( localizeWithPath(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
)) }
|
|
358
|
-
)); }
|
|
359
|
-
static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localizeWithPath(
|
|
360
|
-
'vs/workbench/common/contextkeys',
|
|
361
|
-
'resourceSet',
|
|
362
|
-
"Whether a resource is present or not"
|
|
363
|
-
)) })); }
|
|
364
|
-
static { this.IsFileSystemResource = ( new RawContextKey(
|
|
134
|
+
{ type: 'string', description: ( localizeWithPath(_moduleId, 64, "The extension name of the resource")) }
|
|
135
|
+
))); }
|
|
136
|
+
static { this.HasResource = ( (new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localizeWithPath(_moduleId, 65, "Whether a resource is present or not")) }))); }
|
|
137
|
+
static { this.IsFileSystemResource = ( (new RawContextKey(
|
|
365
138
|
'isFileSystemResource',
|
|
366
139
|
undefined,
|
|
367
|
-
{ type: 'boolean', description: ( localizeWithPath(
|
|
368
|
-
|
|
369
|
-
'isFileSystemResource',
|
|
370
|
-
"Whether the resource is backed by a file system provider"
|
|
371
|
-
)) }
|
|
372
|
-
)); }
|
|
140
|
+
{ type: 'boolean', description: ( localizeWithPath(_moduleId, 66, "Whether the resource is backed by a file system provider")) }
|
|
141
|
+
))); }
|
|
373
142
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
374
143
|
this._contextKeyService = _contextKeyService;
|
|
375
144
|
this._fileService = _fileService;
|
|
376
145
|
this._languageService = _languageService;
|
|
377
146
|
this._modelService = _modelService;
|
|
378
|
-
this._disposables = ( new DisposableStore());
|
|
147
|
+
this._disposables = ( (new DisposableStore()));
|
|
379
148
|
this._schemeKey = ResourceContextKey_1.Scheme.bindTo(this._contextKeyService);
|
|
380
149
|
this._filenameKey = ResourceContextKey_1.Filename.bindTo(this._contextKeyService);
|
|
381
150
|
this._dirnameKey = ResourceContextKey_1.Dirname.bindTo(this._contextKeyService);
|
|
@@ -419,7 +188,7 @@ let ResourceContextKey = class ResourceContextKey {
|
|
|
419
188
|
}
|
|
420
189
|
this._value = value;
|
|
421
190
|
this._contextKeyService.bufferChangeEvents(() => {
|
|
422
|
-
this._resourceKey.set(value ? ( value.toString()) : null);
|
|
191
|
+
this._resourceKey.set(value ? ( (value.toString())) : null);
|
|
423
192
|
this._schemeKey.set(value ? value.scheme : null);
|
|
424
193
|
this._filenameKey.set(value ? basename(value) : null);
|
|
425
194
|
this._dirnameKey.set(value ? this.uriToPath(dirname(value)) : null);
|
|
@@ -454,19 +223,19 @@ let ResourceContextKey = class ResourceContextKey {
|
|
|
454
223
|
return this._value;
|
|
455
224
|
}
|
|
456
225
|
};
|
|
457
|
-
ResourceContextKey = ResourceContextKey_1 = ( __decorate([
|
|
458
|
-
( __param(0, IContextKeyService)),
|
|
459
|
-
( __param(1, IFileService)),
|
|
460
|
-
( __param(2, ILanguageService)),
|
|
461
|
-
( __param(3, IModelService))
|
|
462
|
-
], ResourceContextKey));
|
|
226
|
+
ResourceContextKey = ResourceContextKey_1 = ( (__decorate([
|
|
227
|
+
( (__param(0, IContextKeyService))),
|
|
228
|
+
( (__param(1, IFileService))),
|
|
229
|
+
( (__param(2, ILanguageService))),
|
|
230
|
+
( (__param(3, IModelService)))
|
|
231
|
+
], ResourceContextKey)));
|
|
463
232
|
function applyAvailableEditorIds(contextKey, editor, editorResolverService) {
|
|
464
233
|
if (!editor) {
|
|
465
234
|
contextKey.set('');
|
|
466
235
|
return;
|
|
467
236
|
}
|
|
468
237
|
const editorResource = editor.resource;
|
|
469
|
-
const editors = editorResource ? ( editorResolverService.getEditors(editorResource).map(editor => editor.id)) : [];
|
|
238
|
+
const editors = editorResource ? ( (editorResolverService.getEditors(editorResource).map(editor => editor.id))) : [];
|
|
470
239
|
if (editorResource?.scheme === Schemas.untitled && editor.editorId !== DEFAULT_EDITOR_ASSOCIATION.id) {
|
|
471
240
|
contextKey.set('');
|
|
472
241
|
}
|
|
@@ -94,11 +94,15 @@ class WorkbenchContributionsRegistry extends Disposable {
|
|
|
94
94
|
const logService = this.logService;
|
|
95
95
|
const environmentService = this.environmentService;
|
|
96
96
|
if (!instantiationService || !lifecycleService || !logService || !environmentService) {
|
|
97
|
-
throw new Error(
|
|
97
|
+
throw ( new Error(
|
|
98
|
+
`IWorkbenchContributionsRegistry#getContribution('${id}'): cannot be called before registry started`
|
|
99
|
+
));
|
|
98
100
|
}
|
|
99
101
|
const contribution = this.contributionsById.get(id);
|
|
100
102
|
if (!contribution) {
|
|
101
|
-
throw new Error(
|
|
103
|
+
throw ( new Error(
|
|
104
|
+
`IWorkbenchContributionsRegistry#getContribution('${id}'): contribution with that identifier is unknown.`
|
|
105
|
+
));
|
|
102
106
|
}
|
|
103
107
|
if (lifecycleService.phase < 3 ) {
|
|
104
108
|
logService.warn(`IWorkbenchContributionsRegistry#getContribution('${id}'): contribution instantiated before LifecyclePhase.Restored!`);
|
|
@@ -106,7 +110,9 @@ class WorkbenchContributionsRegistry extends Disposable {
|
|
|
106
110
|
this.safeCreateContribution(instantiationService, logService, environmentService, contribution, lifecycleService.phase);
|
|
107
111
|
const instance = this.instancesById.get(id);
|
|
108
112
|
if (!instance) {
|
|
109
|
-
throw new Error(
|
|
113
|
+
throw ( new Error(
|
|
114
|
+
`IWorkbenchContributionsRegistry#getContribution('${id}'): failed to create contribution.`
|
|
115
|
+
));
|
|
110
116
|
}
|
|
111
117
|
return instance;
|
|
112
118
|
}
|
|
@@ -9,6 +9,7 @@ import { IEditorService } from '../../services/editor/common/editorService.servi
|
|
|
9
9
|
import { shorten } from '../../../base/common/labels.js';
|
|
10
10
|
import { isResolvedEditorModel } from '../../../platform/editor/common/editor.js';
|
|
11
11
|
var DiffEditorInput_1;
|
|
12
|
+
const _moduleId = "vs/workbench/common/editor/diffEditorInput";
|
|
12
13
|
let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
13
14
|
static { DiffEditorInput_1 = this; }
|
|
14
15
|
static { this.ID = 'workbench.editors.diffEditorInput'; }
|
|
@@ -42,13 +43,7 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
42
43
|
else {
|
|
43
44
|
const originalName = this.original.getName();
|
|
44
45
|
const modifiedName = this.modified.getName();
|
|
45
|
-
name = ( localizeWithPath(
|
|
46
|
-
'vs/workbench/common/editor/diffEditorInput',
|
|
47
|
-
'sideBySideLabels',
|
|
48
|
-
"{0} ↔ {1}",
|
|
49
|
-
originalName,
|
|
50
|
-
modifiedName
|
|
51
|
-
));
|
|
46
|
+
name = ( localizeWithPath(_moduleId, 0, "{0} ↔ {1}", originalName, modifiedName));
|
|
52
47
|
forceDescription = originalName === modifiedName;
|
|
53
48
|
}
|
|
54
49
|
let shortDescription;
|
|
@@ -134,12 +129,16 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
134
129
|
this.modified.resolve()
|
|
135
130
|
]);
|
|
136
131
|
if (modifiedEditorModel instanceof BaseTextEditorModel && originalEditorModel instanceof BaseTextEditorModel) {
|
|
137
|
-
return (
|
|
132
|
+
return (
|
|
133
|
+
(new TextDiffEditorModel(originalEditorModel, modifiedEditorModel))
|
|
134
|
+
);
|
|
138
135
|
}
|
|
139
|
-
return (
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
return (
|
|
137
|
+
(new DiffEditorModel(
|
|
138
|
+
isResolvedEditorModel(originalEditorModel) ? originalEditorModel : undefined,
|
|
139
|
+
isResolvedEditorModel(modifiedEditorModel) ? modifiedEditorModel : undefined
|
|
140
|
+
))
|
|
141
|
+
);
|
|
143
142
|
}
|
|
144
143
|
toUntyped(options) {
|
|
145
144
|
const untyped = super.toUntyped(options);
|
|
@@ -172,9 +171,9 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
172
171
|
super.dispose();
|
|
173
172
|
}
|
|
174
173
|
};
|
|
175
|
-
DiffEditorInput = DiffEditorInput_1 = ( __decorate([
|
|
176
|
-
( __param(5, IEditorService))
|
|
177
|
-
], DiffEditorInput));
|
|
174
|
+
DiffEditorInput = DiffEditorInput_1 = ( (__decorate([
|
|
175
|
+
( (__param(5, IEditorService)))
|
|
176
|
+
], DiffEditorInput)));
|
|
178
177
|
class DiffEditorInputSerializer extends AbstractSideBySideEditorInputSerializer {
|
|
179
178
|
createEditorInput(instantiationService, name, description, secondaryInput, primaryInput) {
|
|
180
179
|
return instantiationService.createInstance(DiffEditorInput, name, description, secondaryInput, primaryInput, undefined);
|