@codingame/monaco-vscode-api 11.0.0 → 11.0.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/api.js +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +6 -6
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages.js +27 -27
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +6 -4
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -20
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +28 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/theme.js +156 -156
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +25 -25
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -195,17 +195,17 @@ let MenuEntryActionViewItem = class MenuEntryActionViewItem extends ActionViewIt
|
|
|
195
195
|
const keybindingLabel = keybinding && keybinding.getLabel();
|
|
196
196
|
const tooltip = this._commandAction.tooltip || this._commandAction.label;
|
|
197
197
|
let title = keybindingLabel
|
|
198
|
-
? ( localize(
|
|
198
|
+
? ( localize(4902, "{0} ({1})", tooltip, keybindingLabel))
|
|
199
199
|
: tooltip;
|
|
200
200
|
if (!this._wantsAltCommand && this._menuItemAction.alt?.enabled) {
|
|
201
201
|
const altTooltip = this._menuItemAction.alt.tooltip || this._menuItemAction.alt.label;
|
|
202
202
|
const altKeybinding = this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id, this._contextKeyService);
|
|
203
203
|
const altKeybindingLabel = altKeybinding && altKeybinding.getLabel();
|
|
204
204
|
const altTitleSection = altKeybindingLabel
|
|
205
|
-
? ( localize(
|
|
205
|
+
? ( localize(4902, "{0} ({1})", altTooltip, altKeybindingLabel))
|
|
206
206
|
: altTooltip;
|
|
207
207
|
title = ( localize(
|
|
208
|
-
|
|
208
|
+
4903,
|
|
209
209
|
"{0}\n[{1}] {2}",
|
|
210
210
|
title,
|
|
211
211
|
UILabelProvider.modifierLabels[OS].altKey,
|
|
@@ -281,10 +281,10 @@ class TextOnlyMenuEntryActionViewItem extends MenuEntryActionViewItem {
|
|
|
281
281
|
if (this.label) {
|
|
282
282
|
const kb2 = TextOnlyMenuEntryActionViewItem._symbolPrintEnter(kb);
|
|
283
283
|
if (this._options?.conversational) {
|
|
284
|
-
this.label.textContent = ( localize(
|
|
284
|
+
this.label.textContent = ( localize(4904, '{1} to {0}', this._action.label, kb2));
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
|
-
this.label.textContent = ( localize(
|
|
287
|
+
this.label.textContent = ( localize(4905, '{0} ({1})', this._action.label, kb2));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -137,7 +137,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
|
|
|
137
137
|
else {
|
|
138
138
|
primaryActions.push(toAction({
|
|
139
139
|
id: 'label',
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(5588, "Hide")),
|
|
141
141
|
enabled: false,
|
|
142
142
|
run() { }
|
|
143
143
|
}));
|
|
@@ -151,7 +151,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
|
|
|
151
151
|
actions.push(( (new Separator())));
|
|
152
152
|
actions.push(toAction({
|
|
153
153
|
id: 'resetThisMenu',
|
|
154
|
-
label: ( localize(
|
|
154
|
+
label: ( localize(5589, "Reset Menu")),
|
|
155
155
|
run: () => this._menuService.resetHiddenStates(menuIds)
|
|
156
156
|
}));
|
|
157
157
|
}
|
|
@@ -410,7 +410,7 @@ function createMenuHide(menu, command, states) {
|
|
|
410
410
|
const title = typeof command.title === 'string' ? command.title : command.title.value;
|
|
411
411
|
const hide = toAction({
|
|
412
412
|
id: `hide/${menu.id}/${id}`,
|
|
413
|
-
label: ( localize(
|
|
413
|
+
label: ( localize(1282, 'Hide \'{0}\'', title)),
|
|
414
414
|
run() { states.updateHidden(menu, id, true); }
|
|
415
415
|
});
|
|
416
416
|
const toggle = toAction({
|
|
@@ -428,7 +428,7 @@ function createMenuHide(menu, command, states) {
|
|
|
428
428
|
function createConfigureKeybindingAction(commandService, keybindingService, commandId, when = undefined, enabled = true) {
|
|
429
429
|
return toAction({
|
|
430
430
|
id: `configureKeybinding/${commandId}`,
|
|
431
|
-
label: ( localize(
|
|
431
|
+
label: ( localize(1283, "Configure Keybinding")),
|
|
432
432
|
enabled,
|
|
433
433
|
run() {
|
|
434
434
|
const hasKeybinding = !!keybindingService.lookupKeybinding(commandId);
|
|
@@ -372,10 +372,14 @@ class ConfigurationModelParser {
|
|
|
372
372
|
}
|
|
373
373
|
else {
|
|
374
374
|
const propertySchema = configurationProperties[key];
|
|
375
|
+
const scope = propertySchema ? typeof propertySchema.scope !== 'undefined' ? propertySchema.scope : 3 : undefined;
|
|
375
376
|
if (propertySchema?.restricted) {
|
|
376
377
|
restricted.push(key);
|
|
377
378
|
}
|
|
378
|
-
if (
|
|
379
|
+
if (!options.exclude?.includes(key)
|
|
380
|
+
&& (options.include?.includes(key)
|
|
381
|
+
|| ((scope === undefined || options.scopes === undefined || options.scopes.includes(scope))
|
|
382
|
+
&& !(options.skipRestricted && propertySchema?.restricted)))) {
|
|
379
383
|
raw[key] = properties[key];
|
|
380
384
|
}
|
|
381
385
|
else {
|
|
@@ -385,25 +389,6 @@ class ConfigurationModelParser {
|
|
|
385
389
|
}
|
|
386
390
|
return { raw, restricted, hasExcludedProperties };
|
|
387
391
|
}
|
|
388
|
-
shouldInclude(key, propertySchema, options) {
|
|
389
|
-
if (options.exclude?.includes(key)) {
|
|
390
|
-
return false;
|
|
391
|
-
}
|
|
392
|
-
if (options.include?.includes(key)) {
|
|
393
|
-
return true;
|
|
394
|
-
}
|
|
395
|
-
if (options.skipRestricted && propertySchema?.restricted) {
|
|
396
|
-
return false;
|
|
397
|
-
}
|
|
398
|
-
if (options.skipUnregistered && !propertySchema) {
|
|
399
|
-
return false;
|
|
400
|
-
}
|
|
401
|
-
const scope = propertySchema ? typeof propertySchema.scope !== 'undefined' ? propertySchema.scope : 3 : undefined;
|
|
402
|
-
if (scope === undefined || options.scopes === undefined) {
|
|
403
|
-
return true;
|
|
404
|
-
}
|
|
405
|
-
return options.scopes.includes(scope);
|
|
406
|
-
}
|
|
407
392
|
toOverrides(raw, conflictReporter) {
|
|
408
393
|
const overrides = [];
|
|
409
394
|
for (const key of ( Object.keys(raw))) {
|
|
@@ -504,7 +504,7 @@ CommandsRegistry.registerCommand({
|
|
|
504
504
|
return [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));
|
|
505
505
|
},
|
|
506
506
|
metadata: {
|
|
507
|
-
description: ( localize(
|
|
507
|
+
description: ( localize(1284, "A command that returns information about context keys")),
|
|
508
508
|
args: []
|
|
509
509
|
}
|
|
510
510
|
});
|
|
@@ -2,16 +2,16 @@ import { isMacintosh, isLinux, isWindows, isWeb, isIOS, isMobile } from '../../.
|
|
|
2
2
|
import { localize } from '../../../nls.js';
|
|
3
3
|
import { RawContextKey } from './contextkey.js';
|
|
4
4
|
|
|
5
|
-
const IsMacContext = ( (new RawContextKey('isMac', isMacintosh, ( localize(
|
|
6
|
-
const IsLinuxContext = ( (new RawContextKey('isLinux', isLinux, ( localize(
|
|
7
|
-
const IsWindowsContext = ( (new RawContextKey('isWindows', isWindows, ( localize(
|
|
8
|
-
const IsWebContext = ( (new RawContextKey('isWeb', isWeb, ( localize(
|
|
9
|
-
const IsMacNativeContext = ( (new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(
|
|
10
|
-
const IsIOSContext = ( (new RawContextKey('isIOS', isIOS, ( localize(
|
|
11
|
-
const IsMobileContext = ( (new RawContextKey('isMobile', isMobile, ( localize(
|
|
5
|
+
const IsMacContext = ( (new RawContextKey('isMac', isMacintosh, ( localize(4985, "Whether the operating system is macOS")))));
|
|
6
|
+
const IsLinuxContext = ( (new RawContextKey('isLinux', isLinux, ( localize(4986, "Whether the operating system is Linux")))));
|
|
7
|
+
const IsWindowsContext = ( (new RawContextKey('isWindows', isWindows, ( localize(4987, "Whether the operating system is Windows")))));
|
|
8
|
+
const IsWebContext = ( (new RawContextKey('isWeb', isWeb, ( localize(4988, "Whether the platform is a web browser")))));
|
|
9
|
+
const IsMacNativeContext = ( (new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(4989, "Whether the operating system is macOS on a non-browser platform")))));
|
|
10
|
+
const IsIOSContext = ( (new RawContextKey('isIOS', isIOS, ( localize(4990, "Whether the operating system is iOS")))));
|
|
11
|
+
const IsMobileContext = ( (new RawContextKey('isMobile', isMobile, ( localize(4991, "Whether the platform is a mobile web browser")))));
|
|
12
12
|
const IsDevelopmentContext = ( (new RawContextKey('isDevelopment', false, true)));
|
|
13
|
-
const ProductQualityContext = ( (new RawContextKey('productQualityType', '', ( localize(
|
|
13
|
+
const ProductQualityContext = ( (new RawContextKey('productQualityType', '', ( localize(4992, "Quality type of VS Code")))));
|
|
14
14
|
const InputFocusedContextKey = 'inputFocus';
|
|
15
|
-
const InputFocusedContext = ( (new RawContextKey(InputFocusedContextKey, false, ( localize(
|
|
15
|
+
const InputFocusedContext = ( (new RawContextKey(InputFocusedContextKey, false, ( localize(4993, "Whether keyboard focus is inside an input box")))));
|
|
16
16
|
|
|
17
17
|
export { InputFocusedContext, InputFocusedContextKey, IsDevelopmentContext, IsIOSContext, IsLinuxContext, IsMacContext, IsMacNativeContext, IsMobileContext, IsWebContext, IsWindowsContext, ProductQualityContext };
|
|
@@ -4,18 +4,18 @@ import { localize } from '../../../nls.js';
|
|
|
4
4
|
function hintDidYouMean(...meant) {
|
|
5
5
|
switch (meant.length) {
|
|
6
6
|
case 1:
|
|
7
|
-
return ( localize(
|
|
7
|
+
return ( localize(1949, "Did you mean {0}?", meant[0]));
|
|
8
8
|
case 2:
|
|
9
|
-
return ( localize(
|
|
9
|
+
return ( localize(1950, "Did you mean {0} or {1}?", meant[0], meant[1]));
|
|
10
10
|
case 3:
|
|
11
|
-
return ( localize(
|
|
11
|
+
return ( localize(1951, "Did you mean {0}, {1} or {2}?", meant[0], meant[1], meant[2]));
|
|
12
12
|
default:
|
|
13
13
|
return undefined;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
const hintDidYouForgetToOpenOrCloseQuote = ( localize(
|
|
16
|
+
const hintDidYouForgetToOpenOrCloseQuote = ( localize(1952, "Did you forget to open or close the quote?"));
|
|
17
17
|
const hintDidYouForgetToEscapeSlash = ( localize(
|
|
18
|
-
|
|
18
|
+
1953,
|
|
19
19
|
"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/\'."
|
|
20
20
|
));
|
|
21
21
|
class Scanner {
|
|
@@ -29,13 +29,13 @@ class AbstractDialogHandler {
|
|
|
29
29
|
buttons.push(confirmationDialog.primaryButton);
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
buttons.push(( localize(
|
|
32
|
+
buttons.push(( localize(5727, "&&Yes")));
|
|
33
33
|
}
|
|
34
34
|
if (confirmationDialog.cancelButton) {
|
|
35
35
|
buttons.push(confirmationDialog.cancelButton);
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
|
-
buttons.push(( localize(
|
|
38
|
+
buttons.push(( localize(5728, "Cancel")));
|
|
39
39
|
}
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
@@ -46,7 +46,7 @@ class AbstractDialogHandler {
|
|
|
46
46
|
}
|
|
47
47
|
if (promptDialog.cancelButton) {
|
|
48
48
|
if (promptDialog.cancelButton === true) {
|
|
49
|
-
buttons.push(( localize(
|
|
49
|
+
buttons.push(( localize(5728, "Cancel")));
|
|
50
50
|
}
|
|
51
51
|
else if (typeof promptDialog.cancelButton === 'string') {
|
|
52
52
|
buttons.push(promptDialog.cancelButton);
|
|
@@ -56,12 +56,12 @@ class AbstractDialogHandler {
|
|
|
56
56
|
buttons.push(promptDialog.cancelButton.label);
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
buttons.push(( localize(
|
|
59
|
+
buttons.push(( localize(5728, "Cancel")));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (buttons.length === 0) {
|
|
64
|
-
buttons.push(( localize(
|
|
64
|
+
buttons.push(( localize(5729, "&&OK")));
|
|
65
65
|
}
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
@@ -71,13 +71,13 @@ class AbstractDialogHandler {
|
|
|
71
71
|
buttons.push(inputDialog.primaryButton);
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
|
-
buttons.push(( localize(
|
|
74
|
+
buttons.push(( localize(5729, "&&OK")));
|
|
75
75
|
}
|
|
76
76
|
if (inputDialog.cancelButton) {
|
|
77
77
|
buttons.push(inputDialog.cancelButton);
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
|
-
buttons.push(( localize(
|
|
80
|
+
buttons.push(( localize(5728, "Cancel")));
|
|
81
81
|
}
|
|
82
82
|
break;
|
|
83
83
|
}
|
|
@@ -119,11 +119,11 @@ function getFileNamesMessage(fileNamesOrResources) {
|
|
|
119
119
|
))));
|
|
120
120
|
if (fileNamesOrResources.length > MAX_CONFIRM_FILES) {
|
|
121
121
|
if (fileNamesOrResources.length - MAX_CONFIRM_FILES === 1) {
|
|
122
|
-
message.push(( localize(
|
|
122
|
+
message.push(( localize(5730, "...1 additional file not shown")));
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
125
|
message.push(( localize(
|
|
126
|
-
|
|
126
|
+
5731,
|
|
127
127
|
"...{0} additional files not shown",
|
|
128
128
|
fileNamesOrResources.length - MAX_CONFIRM_FILES
|
|
129
129
|
)));
|
|
@@ -179,7 +179,7 @@ async function extractFileListData(accessor, files) {
|
|
|
179
179
|
if (file) {
|
|
180
180
|
if (file.size > 100 * ByteSize.MB) {
|
|
181
181
|
dialogService.warn(( localize(
|
|
182
|
-
|
|
182
|
+
5676,
|
|
183
183
|
"File is too large to open as untitled editor. Please upload it first into the file explorer and then try again."
|
|
184
184
|
)));
|
|
185
185
|
continue;
|
|
@@ -153,7 +153,7 @@ class ExtensionManagementError extends Error {
|
|
|
153
153
|
}
|
|
154
154
|
const DISABLED_EXTENSIONS_STORAGE_PATH = 'extensionsIdentifiers/disabled';
|
|
155
155
|
const ENABLED_EXTENSIONS_STORAGE_PATH = 'extensionsIdentifiers/enabled';
|
|
156
|
-
const ExtensionsLocalizedLabel = ( localize2(
|
|
157
|
-
const PreferencesLocalizedLabel = ( localize2(
|
|
156
|
+
const ExtensionsLocalizedLabel = ( localize2(1172, "Extensions"));
|
|
157
|
+
const PreferencesLocalizedLabel = ( localize2(1173, 'Preferences'));
|
|
158
158
|
|
|
159
159
|
export { DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionGalleryError, ExtensionManagementError, ExtensionSignatureVerificationCode, ExtensionsLocalizedLabel, PreferencesLocalizedLabel, TargetPlatformToString, WEB_EXTENSION_TAG, getTargetPlatform, isIExtensionIdentifier, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
|
|
@@ -27,7 +27,7 @@ function replaceNLStrings(logger, extensionManifest, messages, originalMessages)
|
|
|
27
27
|
const originalMessage = typeof original === 'string' ? original : original?.message;
|
|
28
28
|
if (!message) {
|
|
29
29
|
if (!originalMessage) {
|
|
30
|
-
logger.warn(`[${extensionManifest.name}]: ${( localize(
|
|
30
|
+
logger.warn(`[${extensionManifest.name}]: ${( localize(1341, "Couldn't find message for key {0}.", messageKey))}`);
|
|
31
31
|
}
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -458,7 +458,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
458
458
|
const reportErrors = (localized, errors) => {
|
|
459
459
|
errors.forEach((error) => {
|
|
460
460
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
461
|
-
|
|
461
|
+
443,
|
|
462
462
|
"Failed to parse {0}: {1}.",
|
|
463
463
|
localized?.path,
|
|
464
464
|
getParseErrorMessage(error.error)
|
|
@@ -466,7 +466,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
468
|
const reportInvalidFormat = (localized) => {
|
|
469
|
-
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
469
|
+
this.logService.error(this.formatMessage(extensionLocation, ( localize(444, "Invalid format {0}: JSON object expected.", localized?.path))));
|
|
470
470
|
};
|
|
471
471
|
const translationId = `${extensionManifest.publisher}.${extensionManifest.name}`;
|
|
472
472
|
const translationPath = nlsConfiguration.translations[translationId];
|
|
@@ -536,7 +536,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
536
536
|
if (errors.length > 0) {
|
|
537
537
|
errors.forEach((error) => {
|
|
538
538
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
539
|
-
|
|
539
|
+
443,
|
|
540
540
|
"Failed to parse {0}: {1}.",
|
|
541
541
|
localizedMessages.default?.path,
|
|
542
542
|
getParseErrorMessage(error.error)
|
|
@@ -546,7 +546,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
546
546
|
}
|
|
547
547
|
else if (getNodeType(localizedMessages) !== 'object') {
|
|
548
548
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
549
|
-
|
|
549
|
+
444,
|
|
550
550
|
"Invalid format {0}: JSON object expected.",
|
|
551
551
|
localizedMessages.default?.path
|
|
552
552
|
))));
|
|
@@ -779,7 +779,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
779
779
|
}
|
|
780
780
|
catch (error) {
|
|
781
781
|
if (toFileOperationResult(error) !== 1 ) {
|
|
782
|
-
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
782
|
+
this.logService.error(this.formatMessage(extensionLocation, ( localize(445, "Cannot read file {0}: {1}.", manifestLocation.path, error.message))));
|
|
783
783
|
}
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
@@ -792,7 +792,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
792
792
|
parse(content, errors);
|
|
793
793
|
for (const e of errors) {
|
|
794
794
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
795
|
-
|
|
795
|
+
446,
|
|
796
796
|
"Failed to parse {0}: [{1}, {2}] {3}.",
|
|
797
797
|
manifestLocation.path,
|
|
798
798
|
e.offset,
|
|
@@ -804,7 +804,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
804
804
|
}
|
|
805
805
|
if (getNodeType(manifest) !== 'object') {
|
|
806
806
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
807
|
-
|
|
807
|
+
447,
|
|
808
808
|
"Invalid manifest file {0}: Not a JSON object.",
|
|
809
809
|
manifestLocation.path
|
|
810
810
|
))));
|
|
@@ -170,24 +170,32 @@ function isValidVersion(_inputVersion, _inputDate, _desiredVersion) {
|
|
|
170
170
|
function validateExtensionManifest(productVersion, productDate, extensionLocation, extensionManifest, extensionIsBuiltin, validateApiVersion) {
|
|
171
171
|
const validations = [];
|
|
172
172
|
if (typeof extensionManifest.publisher !== 'undefined' && typeof extensionManifest.publisher !== 'string') {
|
|
173
|
-
validations.push([Severity$1.Error, ( localize(
|
|
173
|
+
validations.push([Severity$1.Error, ( localize(1321, "property publisher must be of type `string`."))]);
|
|
174
174
|
return validations;
|
|
175
175
|
}
|
|
176
176
|
if (typeof extensionManifest.name !== 'string') {
|
|
177
|
-
validations.push([Severity$1.Error, ( localize(
|
|
177
|
+
validations.push([Severity$1.Error, ( localize(1322, "property `{0}` is mandatory and must be of type `string`", 'name'))]);
|
|
178
178
|
return validations;
|
|
179
179
|
}
|
|
180
180
|
if (typeof extensionManifest.version !== 'string') {
|
|
181
|
-
validations.push([Severity$1.Error, ( localize(
|
|
181
|
+
validations.push([Severity$1.Error, ( localize(
|
|
182
|
+
1323,
|
|
183
|
+
"property `{0}` is mandatory and must be of type `string`",
|
|
184
|
+
'version'
|
|
185
|
+
))]);
|
|
182
186
|
return validations;
|
|
183
187
|
}
|
|
184
188
|
if (!extensionManifest.engines) {
|
|
185
|
-
validations.push([Severity$1.Error, ( localize(
|
|
189
|
+
validations.push([Severity$1.Error, ( localize(
|
|
190
|
+
1324,
|
|
191
|
+
"property `{0}` is mandatory and must be of type `object`",
|
|
192
|
+
'engines'
|
|
193
|
+
))]);
|
|
186
194
|
return validations;
|
|
187
195
|
}
|
|
188
196
|
if (typeof extensionManifest.engines.vscode !== 'string') {
|
|
189
197
|
validations.push([Severity$1.Error, ( localize(
|
|
190
|
-
|
|
198
|
+
1325,
|
|
191
199
|
"property `{0}` is mandatory and must be of type `string`",
|
|
192
200
|
'engines.vscode'
|
|
193
201
|
))]);
|
|
@@ -196,7 +204,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
196
204
|
if (typeof extensionManifest.extensionDependencies !== 'undefined') {
|
|
197
205
|
if (!isStringArray(extensionManifest.extensionDependencies)) {
|
|
198
206
|
validations.push([Severity$1.Error, ( localize(
|
|
199
|
-
|
|
207
|
+
1326,
|
|
200
208
|
"property `{0}` can be omitted or must be of type `string[]`",
|
|
201
209
|
'extensionDependencies'
|
|
202
210
|
))]);
|
|
@@ -206,7 +214,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
206
214
|
if (typeof extensionManifest.activationEvents !== 'undefined') {
|
|
207
215
|
if (!isStringArray(extensionManifest.activationEvents)) {
|
|
208
216
|
validations.push([Severity$1.Error, ( localize(
|
|
209
|
-
|
|
217
|
+
1327,
|
|
210
218
|
"property `{0}` can be omitted or must be of type `string[]`",
|
|
211
219
|
'activationEvents'
|
|
212
220
|
))]);
|
|
@@ -214,7 +222,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
214
222
|
}
|
|
215
223
|
if (typeof extensionManifest.main === 'undefined' && typeof extensionManifest.browser === 'undefined') {
|
|
216
224
|
validations.push([Severity$1.Error, ( localize(
|
|
217
|
-
|
|
225
|
+
1328,
|
|
218
226
|
"property `{0}` should be omitted if the extension doesn't have a `{1}` or `{2}` property.",
|
|
219
227
|
'activationEvents',
|
|
220
228
|
'main',
|
|
@@ -226,7 +234,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
226
234
|
if (typeof extensionManifest.extensionKind !== 'undefined') {
|
|
227
235
|
if (typeof extensionManifest.main === 'undefined') {
|
|
228
236
|
validations.push([Severity$1.Warning, ( localize(
|
|
229
|
-
|
|
237
|
+
1329,
|
|
230
238
|
"property `{0}` can be defined only if property `main` is also defined.",
|
|
231
239
|
'extensionKind'
|
|
232
240
|
))]);
|
|
@@ -234,14 +242,14 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
234
242
|
}
|
|
235
243
|
if (typeof extensionManifest.main !== 'undefined') {
|
|
236
244
|
if (typeof extensionManifest.main !== 'string') {
|
|
237
|
-
validations.push([Severity$1.Error, ( localize(
|
|
245
|
+
validations.push([Severity$1.Error, ( localize(1330, "property `{0}` can be omitted or must be of type `string`", 'main'))]);
|
|
238
246
|
return validations;
|
|
239
247
|
}
|
|
240
248
|
else {
|
|
241
249
|
const mainLocation = joinPath(extensionLocation, extensionManifest.main);
|
|
242
250
|
if (!isEqualOrParent(mainLocation, extensionLocation)) {
|
|
243
251
|
validations.push([Severity$1.Warning, ( localize(
|
|
244
|
-
|
|
252
|
+
1331,
|
|
245
253
|
"Expected `main` ({0}) to be included inside extension's folder ({1}). This might make the extension non-portable.",
|
|
246
254
|
mainLocation.path,
|
|
247
255
|
extensionLocation.path
|
|
@@ -252,7 +260,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
252
260
|
if (typeof extensionManifest.browser !== 'undefined') {
|
|
253
261
|
if (typeof extensionManifest.browser !== 'string') {
|
|
254
262
|
validations.push([Severity$1.Error, ( localize(
|
|
255
|
-
|
|
263
|
+
1332,
|
|
256
264
|
"property `{0}` can be omitted or must be of type `string`",
|
|
257
265
|
'browser'
|
|
258
266
|
))]);
|
|
@@ -262,7 +270,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
262
270
|
const browserLocation = joinPath(extensionLocation, extensionManifest.browser);
|
|
263
271
|
if (!isEqualOrParent(browserLocation, extensionLocation)) {
|
|
264
272
|
validations.push([Severity$1.Warning, ( localize(
|
|
265
|
-
|
|
273
|
+
1333,
|
|
266
274
|
"Expected `browser` ({0}) to be included inside extension's folder ({1}). This might make the extension non-portable.",
|
|
267
275
|
browserLocation.path,
|
|
268
276
|
extensionLocation.path
|
|
@@ -271,7 +279,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
271
279
|
}
|
|
272
280
|
}
|
|
273
281
|
if (!semverExports.valid(extensionManifest.version)) {
|
|
274
|
-
validations.push([Severity$1.Error, ( localize(
|
|
282
|
+
validations.push([Severity$1.Error, ( localize(1334, "Extension version is not semver compatible."))]);
|
|
275
283
|
return validations;
|
|
276
284
|
}
|
|
277
285
|
const notices = [];
|
|
@@ -324,14 +332,14 @@ function areApiProposalsCompatible(apiProposals, arg1) {
|
|
|
324
332
|
if (notices) {
|
|
325
333
|
if (incompatibleProposals.length === 1) {
|
|
326
334
|
notices.push(( localize(
|
|
327
|
-
|
|
335
|
+
1335,
|
|
328
336
|
"This extension is using the API proposal '{0}' that is not compatible with the current version of VS Code.",
|
|
329
337
|
incompatibleProposals[0]
|
|
330
338
|
)));
|
|
331
339
|
}
|
|
332
340
|
else {
|
|
333
341
|
notices.push(( localize(
|
|
334
|
-
|
|
342
|
+
1336,
|
|
335
343
|
"This extension is using the API proposals {0} and '{1}' that are not compatible with the current version of VS Code.",
|
|
336
344
|
( (incompatibleProposals.slice(0, incompatibleProposals.length - 1).map(p => `'${p}'`))).join(', '),
|
|
337
345
|
incompatibleProposals[incompatibleProposals.length - 1]
|
|
@@ -346,7 +354,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
346
354
|
const desiredVersion = normalizeVersion(parseVersion(requestedVersion));
|
|
347
355
|
if (!desiredVersion) {
|
|
348
356
|
notices.push(( localize(
|
|
349
|
-
|
|
357
|
+
1337,
|
|
350
358
|
"Could not parse `engines.vscode` value {0}. Please use, for example: ^1.22.0, ^1.22.x, etc.",
|
|
351
359
|
requestedVersion
|
|
352
360
|
)));
|
|
@@ -355,7 +363,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
355
363
|
if (desiredVersion.majorBase === 0) {
|
|
356
364
|
if (!desiredVersion.majorMustEqual || !desiredVersion.minorMustEqual) {
|
|
357
365
|
notices.push(( localize(
|
|
358
|
-
|
|
366
|
+
1338,
|
|
359
367
|
"Version specified in `engines.vscode` ({0}) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.",
|
|
360
368
|
requestedVersion
|
|
361
369
|
)));
|
|
@@ -365,7 +373,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
365
373
|
else {
|
|
366
374
|
if (!desiredVersion.majorMustEqual) {
|
|
367
375
|
notices.push(( localize(
|
|
368
|
-
|
|
376
|
+
1339,
|
|
369
377
|
"Version specified in `engines.vscode` ({0}) is not specific enough. For vscode versions after 1.0.0, please define at a minimum the major desired version. E.g. ^1.10.0, 1.10.x, 1.x.x, 2.x.x, etc.",
|
|
370
378
|
requestedVersion
|
|
371
379
|
)));
|
|
@@ -374,7 +382,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
374
382
|
}
|
|
375
383
|
if (!isValidVersion(currentVersion, date, desiredVersion)) {
|
|
376
384
|
notices.push(( localize(
|
|
377
|
-
|
|
385
|
+
1340,
|
|
378
386
|
"Extension is not compatible with Code {0}. Extension requires: {1}.",
|
|
379
387
|
currentVersion,
|
|
380
388
|
requestedVersion
|
|
@@ -207,7 +207,7 @@ class HTMLFileSystemProvider extends Disposable {
|
|
|
207
207
|
await this.delete(from, { recursive: false, useTrash: false, atomic: false });
|
|
208
208
|
}
|
|
209
209
|
else {
|
|
210
|
-
throw this.createFileSystemProviderError(from, localize(
|
|
210
|
+
throw this.createFileSystemProviderError(from, localize(734, "Rename is only supported for files."), FileSystemProviderErrorCode.Unavailable);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
catch (error) {
|
|
@@ -387,7 +387,7 @@ class HTMLFileSystemProvider extends Disposable {
|
|
|
387
387
|
}
|
|
388
388
|
let code = FileSystemProviderErrorCode.Unknown;
|
|
389
389
|
if (error.name === 'NotAllowedError') {
|
|
390
|
-
error = ( (new Error(( localize(
|
|
390
|
+
error = ( (new Error(( localize(735, "Insufficient permissions. Please retry and allow the operation.")))));
|
|
391
391
|
code = FileSystemProviderErrorCode.Unavailable;
|
|
392
392
|
}
|
|
393
393
|
return createFileSystemProviderError(error, code);
|
|
@@ -104,7 +104,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
104
104
|
throw illegalState('impossible');
|
|
105
105
|
case 1:
|
|
106
106
|
this._currentChordStatusMessage = this._notificationService.status(( localize(
|
|
107
|
-
|
|
107
|
+
1241,
|
|
108
108
|
"({0}) was pressed. Waiting for second key of chord...",
|
|
109
109
|
keypressLabel
|
|
110
110
|
)));
|
|
@@ -112,7 +112,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
112
112
|
default: {
|
|
113
113
|
const fullKeypressLabel = ( (this._currentChords.map(({ label }) => label))).join(', ');
|
|
114
114
|
this._currentChordStatusMessage = this._notificationService.status(( localize(
|
|
115
|
-
|
|
115
|
+
1242,
|
|
116
116
|
"({0}) was pressed. Waiting for next key of chord...",
|
|
117
117
|
fullKeypressLabel
|
|
118
118
|
)));
|
|
@@ -217,7 +217,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
217
217
|
const currentChordsLabel = ( (this._currentChords.map(({ label }) => label))).join(', ');
|
|
218
218
|
this._log(`+ Leaving multi-chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
219
219
|
this._notificationService.status(( localize(
|
|
220
|
-
|
|
220
|
+
1243,
|
|
221
221
|
"The key combination ({0}, {1}) is not a command.",
|
|
222
222
|
currentChordsLabel,
|
|
223
223
|
keypressLabel
|
|
@@ -241,7 +241,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
241
241
|
const currentChordsLabel = ( (this._currentChords.map(({ label }) => label))).join(', ');
|
|
242
242
|
this._log(`+ Leaving chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
243
243
|
this._notificationService.status(( localize(
|
|
244
|
-
|
|
244
|
+
1243,
|
|
245
245
|
"The key combination ({0}, {1}) is not a command.",
|
|
246
246
|
currentChordsLabel,
|
|
247
247
|
keypressLabel
|
|
@@ -48,7 +48,7 @@ let LanguagePackBaseService = class LanguagePackBaseService extends Disposable {
|
|
|
48
48
|
}
|
|
49
49
|
if (locale.toLowerCase() === language.toLowerCase()) {
|
|
50
50
|
description ??= '';
|
|
51
|
-
description += ( localize(
|
|
51
|
+
description += ( localize(3286, " (Current)"));
|
|
52
52
|
}
|
|
53
53
|
if (languagePack?.installCount) {
|
|
54
54
|
description ??= '';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { localize } from '../../../nls.js';
|
|
2
2
|
|
|
3
|
-
const open = ( localize(
|
|
4
|
-
const close = ( localize(
|
|
5
|
-
const find = ( localize(
|
|
3
|
+
const open = ( localize(11187, 'open'));
|
|
4
|
+
const close = ( localize(11188, 'close'));
|
|
5
|
+
const find = ( localize(11189, 'find'));
|
|
6
6
|
var localizedStrings = {
|
|
7
7
|
open: open,
|
|
8
8
|
close: close,
|