monaco-editor-core 0.58.0 → 0.59.0-dev-20261124
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +3 -1
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
- package/esm/vs/editor/browser/view.js +3 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +246 -238
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
- package/esm/vs/editor/common/model/textModel.js +1 -0
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
- package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +11 -10
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +5 -0
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +5 -0
- package/package.json +3 -3
|
@@ -39,7 +39,7 @@ class ConfigurationRegistry extends Disposable {
|
|
|
39
39
|
this.configurationDefaultsOverrides = new Map();
|
|
40
40
|
this.defaultLanguageConfigurationOverridesNode = {
|
|
41
41
|
id: 'defaultOverrides',
|
|
42
|
-
title: nls.localize(
|
|
42
|
+
title: nls.localize(1768, "Default Language Configuration Overrides"),
|
|
43
43
|
properties: {}
|
|
44
44
|
};
|
|
45
45
|
this.configurationContributors = [this.defaultLanguageConfigurationOverridesNode];
|
|
@@ -125,7 +125,7 @@ class ConfigurationRegistry extends Disposable {
|
|
|
125
125
|
},
|
|
126
126
|
type: 'object',
|
|
127
127
|
default: newDefaultOverride.value,
|
|
128
|
-
description: nls.localize(
|
|
128
|
+
description: nls.localize(1769, "Configure settings to be overridden for {0}.", getLanguageTagSettingPlainKey(key)),
|
|
129
129
|
$ref: resourceLanguageSettingsSchemaId,
|
|
130
130
|
defaultDefaultValue: newDefaultOverride.value,
|
|
131
131
|
source,
|
|
@@ -367,8 +367,8 @@ class ConfigurationRegistry extends Disposable {
|
|
|
367
367
|
const overrideIdentifierProperty = `[${overrideIdentifier}]`;
|
|
368
368
|
const resourceLanguagePropertiesSchema = {
|
|
369
369
|
type: 'object',
|
|
370
|
-
description: nls.localize(
|
|
371
|
-
errorMessage: nls.localize(
|
|
370
|
+
description: nls.localize(1770, "Configure editor settings to be overridden for a language."),
|
|
371
|
+
errorMessage: nls.localize(1771, "This setting does not support per-language configuration."),
|
|
372
372
|
$ref: resourceLanguageSettingsSchemaId,
|
|
373
373
|
};
|
|
374
374
|
this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
|
|
@@ -384,8 +384,8 @@ class ConfigurationRegistry extends Disposable {
|
|
|
384
384
|
registerOverridePropertyPatternKey() {
|
|
385
385
|
const resourceLanguagePropertiesSchema = {
|
|
386
386
|
type: 'object',
|
|
387
|
-
description: nls.localize(
|
|
388
|
-
errorMessage: nls.localize(
|
|
387
|
+
description: nls.localize(1772, "Configure editor settings to be overridden for a language."),
|
|
388
|
+
errorMessage: nls.localize(1773, "This setting does not support per-language configuration."),
|
|
389
389
|
$ref: resourceLanguageSettingsSchemaId,
|
|
390
390
|
};
|
|
391
391
|
allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
@@ -458,24 +458,24 @@ const configurationRegistry = new ConfigurationRegistry();
|
|
|
458
458
|
Registry.add(Extensions.Configuration, configurationRegistry);
|
|
459
459
|
export function validateProperty(property, schema, extensionId) {
|
|
460
460
|
if (!property.trim()) {
|
|
461
|
-
return nls.localize(
|
|
461
|
+
return nls.localize(1774, "Cannot register an empty property");
|
|
462
462
|
}
|
|
463
463
|
if (OVERRIDE_PROPERTY_REGEX.test(property)) {
|
|
464
|
-
return nls.localize(
|
|
464
|
+
return nls.localize(1775, "Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.", property);
|
|
465
465
|
}
|
|
466
466
|
if (configurationRegistry.getConfigurationProperties()[property] !== undefined && (!extensionId || !EXTENSION_UNIFICATION_EXTENSION_IDS.has(extensionId.toLowerCase()))) {
|
|
467
|
-
return nls.localize(
|
|
467
|
+
return nls.localize(1776, "Cannot register '{0}'. This property is already registered.", property);
|
|
468
468
|
}
|
|
469
469
|
if (schema.policy && schema.policyReference) {
|
|
470
|
-
return nls.localize(
|
|
470
|
+
return nls.localize(1777, "Cannot register '{0}'. A setting must not declare both 'policy' and 'policyReference'.", property);
|
|
471
471
|
}
|
|
472
472
|
if (schema.policy?.name && configurationRegistry.getPolicyConfigurations().get(schema.policy?.name) !== undefined) {
|
|
473
|
-
return nls.localize(
|
|
473
|
+
return nls.localize(1778, "Cannot register '{0}'. The associated policy {1} is already registered with {2}. To attach another setting to the same policy, use 'policyReference'.", property, schema.policy?.name, configurationRegistry.getPolicyConfigurations().get(schema.policy?.name));
|
|
474
474
|
}
|
|
475
475
|
if (schema.agentHost) {
|
|
476
476
|
for (const [owner, sync] of configurationRegistry.getAgentHostSyncConfigurations()) {
|
|
477
477
|
if (sync.key === schema.agentHost.key && owner !== property) {
|
|
478
|
-
return nls.localize(
|
|
478
|
+
return nls.localize(1779, "Cannot register '{0}'. The agent host configuration key '{1}' is already mirrored from '{2}'.", property, schema.agentHost.key, owner);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -447,7 +447,7 @@ CommandsRegistry.registerCommand({
|
|
|
447
447
|
return [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));
|
|
448
448
|
},
|
|
449
449
|
metadata: {
|
|
450
|
-
description: localize(
|
|
450
|
+
description: localize(1780, "A command that returns information about context keys"),
|
|
451
451
|
args: []
|
|
452
452
|
}
|
|
453
453
|
});
|
|
@@ -24,14 +24,14 @@ const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
24
24
|
const defaultConfig = {
|
|
25
25
|
regexParsingWithErrorRecovery: true
|
|
26
26
|
};
|
|
27
|
-
const errorEmptyString = localize(
|
|
28
|
-
const hintEmptyString = localize(
|
|
29
|
-
const errorNoInAfterNot = localize(
|
|
30
|
-
const errorClosingParenthesis = localize(
|
|
31
|
-
const errorUnexpectedToken = localize(
|
|
32
|
-
const hintUnexpectedToken = localize(
|
|
33
|
-
const errorUnexpectedEOF = localize(
|
|
34
|
-
const hintUnexpectedEOF = localize(
|
|
27
|
+
const errorEmptyString = localize(1781, "Empty context key expression");
|
|
28
|
+
const hintEmptyString = localize(1782, "Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.");
|
|
29
|
+
const errorNoInAfterNot = localize(1783, "'in' after 'not'.");
|
|
30
|
+
const errorClosingParenthesis = localize(1784, "closing parenthesis ')'");
|
|
31
|
+
const errorUnexpectedToken = localize(1785, "Unexpected token");
|
|
32
|
+
const hintUnexpectedToken = localize(1786, "Did you forget to put && or || before the token?");
|
|
33
|
+
const errorUnexpectedEOF = localize(1787, "Unexpected end of expression");
|
|
34
|
+
const hintUnexpectedEOF = localize(1788, "Did you forget to put a context key?");
|
|
35
35
|
/**
|
|
36
36
|
* A parser for context key expressions.
|
|
37
37
|
*
|
|
@@ -376,7 +376,7 @@ export class Parser {
|
|
|
376
376
|
throw this._errExpectedButGot(message, this._peek());
|
|
377
377
|
}
|
|
378
378
|
_errExpectedButGot(expected, got, additionalInfo) {
|
|
379
|
-
const message = localize(
|
|
379
|
+
const message = localize(1789, "Expected: {0}\nReceived: '{1}'.", expected, Scanner.getLexeme(got));
|
|
380
380
|
const offset = got.offset;
|
|
381
381
|
const lexeme = Scanner.getLexeme(got);
|
|
382
382
|
this._parsingErrors.push({ message, offset, lexeme, additionalInfo });
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
import { isIOS, isLinux, isMacintosh, isMobile, isWeb, isWindows, isChromeOS } from '../../../base/common/platform.js';
|
|
6
6
|
import { localize } from '../../../nls.js';
|
|
7
7
|
import { RawContextKey } from './contextkey.js';
|
|
8
|
-
export const IsMacContext = new RawContextKey('isMac', isMacintosh, localize(
|
|
9
|
-
export const IsLinuxContext = new RawContextKey('isLinux', isLinux, localize(
|
|
10
|
-
export const IsWindowsContext = new RawContextKey('isWindows', isWindows, localize(
|
|
11
|
-
export const IsChromeOSContext = new RawContextKey('isChromeOS', isChromeOS, localize(
|
|
12
|
-
export const IsWebContext = new RawContextKey('isWeb', isWeb, localize(
|
|
13
|
-
export const IsMacNativeContext = new RawContextKey('isMacNative', isMacintosh && !isWeb, localize(
|
|
14
|
-
export const IsIOSContext = new RawContextKey('isIOS', isIOS, localize(
|
|
15
|
-
export const IsMobileContext = new RawContextKey('isMobile', isMobile, localize(
|
|
8
|
+
export const IsMacContext = new RawContextKey('isMac', isMacintosh, localize(1790, "Whether the operating system is macOS"));
|
|
9
|
+
export const IsLinuxContext = new RawContextKey('isLinux', isLinux, localize(1791, "Whether the operating system is Linux"));
|
|
10
|
+
export const IsWindowsContext = new RawContextKey('isWindows', isWindows, localize(1792, "Whether the operating system is Windows"));
|
|
11
|
+
export const IsChromeOSContext = new RawContextKey('isChromeOS', isChromeOS, localize(1793, "Whether the operating system is ChromeOS"));
|
|
12
|
+
export const IsWebContext = new RawContextKey('isWeb', isWeb, localize(1794, "Whether the platform is a web browser"));
|
|
13
|
+
export const IsMacNativeContext = new RawContextKey('isMacNative', isMacintosh && !isWeb, localize(1795, "Whether the operating system is macOS on a non-browser platform"));
|
|
14
|
+
export const IsIOSContext = new RawContextKey('isIOS', isIOS, localize(1796, "Whether the operating system is iOS"));
|
|
15
|
+
export const IsMobileContext = new RawContextKey('isMobile', isMobile, localize(1797, "Whether the platform is a mobile web browser"));
|
|
16
16
|
export const IsDevelopmentContext = new RawContextKey('isDevelopment', false, true);
|
|
17
|
-
export const ProductQualityContext = new RawContextKey('productQualityType', '', localize(
|
|
17
|
+
export const ProductQualityContext = new RawContextKey('productQualityType', '', localize(1798, "Quality type of VS Code"));
|
|
18
18
|
export const InputFocusedContextKey = 'inputFocus';
|
|
19
|
-
export const InputFocusedContext = new RawContextKey(InputFocusedContextKey, false, localize(
|
|
19
|
+
export const InputFocusedContext = new RawContextKey(InputFocusedContextKey, false, localize(1799, "Whether keyboard focus is inside an input box"));
|
|
20
20
|
//# sourceMappingURL=contextkeys.js.map
|
|
@@ -7,17 +7,17 @@ import { localize } from '../../../nls.js';
|
|
|
7
7
|
function hintDidYouMean(...meant) {
|
|
8
8
|
switch (meant.length) {
|
|
9
9
|
case 1:
|
|
10
|
-
return localize(
|
|
10
|
+
return localize(1800, "Did you mean {0}?", meant[0]);
|
|
11
11
|
case 2:
|
|
12
|
-
return localize(
|
|
12
|
+
return localize(1801, "Did you mean {0} or {1}?", meant[0], meant[1]);
|
|
13
13
|
case 3:
|
|
14
|
-
return localize(
|
|
14
|
+
return localize(1802, "Did you mean {0}, {1} or {2}?", meant[0], meant[1], meant[2]);
|
|
15
15
|
default: // we just don't expect that many
|
|
16
16
|
return undefined;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const hintDidYouForgetToOpenOrCloseQuote = localize(
|
|
20
|
-
const hintDidYouForgetToEscapeSlash = localize(
|
|
19
|
+
const hintDidYouForgetToOpenOrCloseQuote = localize(1803, "Did you forget to open or close the quote?");
|
|
20
|
+
const hintDidYouForgetToEscapeSlash = localize(1804, "Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/\'.");
|
|
21
21
|
/**
|
|
22
22
|
* A simple scanner for context keys.
|
|
23
23
|
*
|
|
@@ -18,7 +18,7 @@ import { KeybindingsRegistry } from '../../keybinding/common/keybindingsRegistry
|
|
|
18
18
|
import { localize } from '../../../nls.js';
|
|
19
19
|
import { DisposableStore, toDisposable } from '../../../base/common/lifecycle.js';
|
|
20
20
|
import { isActiveElement } from '../../../base/browser/dom.js';
|
|
21
|
-
export const historyNavigationVisible = new RawContextKey('suggestWidgetVisible', false, localize(
|
|
21
|
+
export const historyNavigationVisible = new RawContextKey('suggestWidgetVisible', false, localize(1805, "Whether suggestion are visible"));
|
|
22
22
|
const HistoryNavigationWidgetFocusContext = 'historyNavigationWidgetFocus';
|
|
23
23
|
const HistoryNavigationForwardsEnablementContext = 'historyNavigationForwardsEnabled';
|
|
24
24
|
const HistoryNavigationBackwardsEnablementContext = 'historyNavigationBackwardsEnabled';
|
|
@@ -218,7 +218,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
218
218
|
if (options.appearance?.showHoverHint) {
|
|
219
219
|
const statusBarElement = $('div.hover-row.status-bar');
|
|
220
220
|
const infoElement = $('div.info');
|
|
221
|
-
infoElement.textContent = localize(
|
|
221
|
+
infoElement.textContent = localize(1806, 'Hold {0} key to mouse over', isMacintosh ? 'Option' : 'Alt');
|
|
222
222
|
statusBarElement.appendChild(infoElement);
|
|
223
223
|
this._hover.containerDomNode.appendChild(statusBarElement);
|
|
224
224
|
}
|
|
@@ -55,7 +55,7 @@ export class ManagedHoverWidget {
|
|
|
55
55
|
if (managedContent instanceof Promise) {
|
|
56
56
|
// show 'Loading' if no hover is up yet
|
|
57
57
|
if (!this._hoverWidget) {
|
|
58
|
-
this.show(localize(
|
|
58
|
+
this.show(localize(1807, "Loading..."), focus, options, false);
|
|
59
59
|
}
|
|
60
60
|
resolvedContent = await managedContent;
|
|
61
61
|
}
|
|
@@ -107,11 +107,11 @@ export class AbstractKeybindingService extends Disposable {
|
|
|
107
107
|
throw illegalState('impossible');
|
|
108
108
|
case 1:
|
|
109
109
|
// TODO@ulugbekna: revise this message and the one below (at least, fix terminology)
|
|
110
|
-
this._currentChordStatusMessage = this._notificationService.status(nls.localize(
|
|
110
|
+
this._currentChordStatusMessage = this._notificationService.status(nls.localize(1808, "({0}) was pressed. Waiting for second key of chord...", keypressLabel));
|
|
111
111
|
break;
|
|
112
112
|
default: {
|
|
113
113
|
const fullKeypressLabel = this._currentChords.map(({ label }) => label).join(', ');
|
|
114
|
-
this._currentChordStatusMessage = this._notificationService.status(nls.localize(
|
|
114
|
+
this._currentChordStatusMessage = this._notificationService.status(nls.localize(1809, "({0}) was pressed. Waiting for next key of chord...", fullKeypressLabel));
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
this._scheduleLeaveChordMode();
|
|
@@ -221,7 +221,7 @@ export class AbstractKeybindingService extends Disposable {
|
|
|
221
221
|
if (this.inChordMode) {
|
|
222
222
|
const currentChordsLabel = this._currentChords.map(({ label }) => label).join(', ');
|
|
223
223
|
this._log(`+ Leaving multi-chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
224
|
-
this._notificationService.status(nls.localize(
|
|
224
|
+
this._notificationService.status(nls.localize(1810, "The key combination ({0}, {1}) is not a command.", currentChordsLabel, keypressLabel), { hideAfter: 10 * 1000 /* 10s */ });
|
|
225
225
|
this._leaveChordMode();
|
|
226
226
|
shouldPreventDefault = true;
|
|
227
227
|
}
|
|
@@ -240,7 +240,7 @@ export class AbstractKeybindingService extends Disposable {
|
|
|
240
240
|
if (this.inChordMode) {
|
|
241
241
|
const currentChordsLabel = this._currentChords.map(({ label }) => label).join(', ');
|
|
242
242
|
this._log(`+ Leaving chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
243
|
-
this._notificationService.status(nls.localize(
|
|
243
|
+
this._notificationService.status(nls.localize(1811, "The key combination ({0}, {1}) is not a command.", currentChordsLabel, keypressLabel), { hideAfter: 10 * 1000 /* 10s */ });
|
|
244
244
|
this._leaveChordMode();
|
|
245
245
|
shouldPreventDefault = true;
|
|
246
246
|
}
|
|
@@ -290,7 +290,7 @@ export class AbstractKeybindingService extends Disposable {
|
|
|
290
290
|
if (commandId) {
|
|
291
291
|
const keybindingLabel = this.lookupKeybinding(commandId, context, enforceContextCheck)?.getLabel();
|
|
292
292
|
if (keybindingLabel) {
|
|
293
|
-
return nls.localize(
|
|
293
|
+
return nls.localize(1812, "{0} ({1})", label, keybindingLabel);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
return label;
|
|
@@ -907,18 +907,18 @@ const configurationRegistry = Registry.as(ConfigurationExtensions.Configuration)
|
|
|
907
907
|
configurationRegistry.registerConfiguration({
|
|
908
908
|
id: 'workbench',
|
|
909
909
|
order: 7,
|
|
910
|
-
title: localize(
|
|
910
|
+
title: localize(1813, "Workbench"),
|
|
911
911
|
type: 'object',
|
|
912
912
|
properties: {
|
|
913
913
|
[multiSelectModifierSettingKey]: {
|
|
914
914
|
type: 'string',
|
|
915
915
|
enum: ['ctrlCmd', 'alt'],
|
|
916
916
|
markdownEnumDescriptions: [
|
|
917
|
-
localize(
|
|
918
|
-
localize(
|
|
917
|
+
localize(1814, "Maps to `Control` on Windows and Linux and to `Command` on macOS."),
|
|
918
|
+
localize(1815, "Maps to `Alt` on Windows and Linux and to `Option` on macOS.")
|
|
919
919
|
],
|
|
920
920
|
default: 'ctrlCmd',
|
|
921
|
-
description: localize(
|
|
921
|
+
description: localize(1816, "The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")
|
|
922
922
|
|
|
923
923
|
|
|
924
924
|
|
|
@@ -930,7 +930,7 @@ configurationRegistry.registerConfiguration({
|
|
|
930
930
|
type: 'string',
|
|
931
931
|
enum: ['singleClick', 'doubleClick'],
|
|
932
932
|
default: 'singleClick',
|
|
933
|
-
description: localize(
|
|
933
|
+
description: localize(1817, "Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")
|
|
934
934
|
|
|
935
935
|
|
|
936
936
|
|
|
@@ -938,96 +938,96 @@ configurationRegistry.registerConfiguration({
|
|
|
938
938
|
[horizontalScrollingKey]: {
|
|
939
939
|
type: 'boolean',
|
|
940
940
|
default: false,
|
|
941
|
-
description: localize(
|
|
941
|
+
description: localize(1818, "Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")
|
|
942
942
|
},
|
|
943
943
|
[scrollByPageKey]: {
|
|
944
944
|
type: 'boolean',
|
|
945
945
|
default: false,
|
|
946
|
-
description: localize(
|
|
946
|
+
description: localize(1819, "Controls whether clicks in the scrollbar scroll page by page.")
|
|
947
947
|
},
|
|
948
948
|
[treeIndentKey]: {
|
|
949
949
|
type: 'number',
|
|
950
950
|
default: 8,
|
|
951
951
|
minimum: 4,
|
|
952
952
|
maximum: 40,
|
|
953
|
-
description: localize(
|
|
953
|
+
description: localize(1820, "Controls tree indentation in pixels.")
|
|
954
954
|
},
|
|
955
955
|
[treeRenderIndentGuidesKey]: {
|
|
956
956
|
type: 'string',
|
|
957
957
|
enum: ['none', 'onHover', 'always'],
|
|
958
958
|
default: 'onHover',
|
|
959
|
-
description: localize(
|
|
959
|
+
description: localize(1821, "Controls whether the tree should render indent guides.")
|
|
960
960
|
},
|
|
961
961
|
[listSmoothScrolling]: {
|
|
962
962
|
type: 'boolean',
|
|
963
963
|
default: false,
|
|
964
|
-
description: localize(
|
|
964
|
+
description: localize(1822, "Controls whether lists and trees have smooth scrolling."),
|
|
965
965
|
},
|
|
966
966
|
[mouseWheelScrollSensitivityKey]: {
|
|
967
967
|
type: 'number',
|
|
968
968
|
default: 1,
|
|
969
|
-
markdownDescription: localize(
|
|
969
|
+
markdownDescription: localize(1823, "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")
|
|
970
970
|
},
|
|
971
971
|
[fastScrollSensitivityKey]: {
|
|
972
972
|
type: 'number',
|
|
973
973
|
default: 5,
|
|
974
|
-
markdownDescription: localize(
|
|
974
|
+
markdownDescription: localize(1824, "Scrolling speed multiplier when pressing `Alt`.")
|
|
975
975
|
},
|
|
976
976
|
[defaultFindModeSettingKey]: {
|
|
977
977
|
type: 'string',
|
|
978
978
|
enum: ['highlight', 'filter'],
|
|
979
979
|
enumDescriptions: [
|
|
980
|
-
localize(
|
|
981
|
-
localize(
|
|
980
|
+
localize(1825, "Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),
|
|
981
|
+
localize(1826, "Filter elements when searching.")
|
|
982
982
|
],
|
|
983
983
|
default: 'highlight',
|
|
984
|
-
description: localize(
|
|
984
|
+
description: localize(1827, "Controls the default find mode for lists and trees in the workbench.")
|
|
985
985
|
},
|
|
986
986
|
[keyboardNavigationSettingKey]: {
|
|
987
987
|
type: 'string',
|
|
988
988
|
enum: ['simple', 'highlight', 'filter'],
|
|
989
989
|
enumDescriptions: [
|
|
990
|
-
localize(
|
|
991
|
-
localize(
|
|
992
|
-
localize(
|
|
990
|
+
localize(1828, "Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),
|
|
991
|
+
localize(1829, "Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),
|
|
992
|
+
localize(1830, "Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")
|
|
993
993
|
],
|
|
994
994
|
default: 'highlight',
|
|
995
|
-
description: localize(
|
|
995
|
+
description: localize(1831, "Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),
|
|
996
996
|
deprecated: true,
|
|
997
|
-
deprecationMessage: localize(
|
|
997
|
+
deprecationMessage: localize(1832, "Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")
|
|
998
998
|
},
|
|
999
999
|
[defaultFindMatchTypeSettingKey]: {
|
|
1000
1000
|
type: 'string',
|
|
1001
1001
|
enum: ['fuzzy', 'contiguous'],
|
|
1002
1002
|
enumDescriptions: [
|
|
1003
|
-
localize(
|
|
1004
|
-
localize(
|
|
1003
|
+
localize(1833, "Use fuzzy matching when searching."),
|
|
1004
|
+
localize(1834, "Use contiguous matching when searching.")
|
|
1005
1005
|
],
|
|
1006
1006
|
default: 'fuzzy',
|
|
1007
|
-
description: localize(
|
|
1007
|
+
description: localize(1835, "Controls the type of matching used when searching lists and trees in the workbench.")
|
|
1008
1008
|
},
|
|
1009
1009
|
[treeExpandMode]: {
|
|
1010
1010
|
type: 'string',
|
|
1011
1011
|
enum: ['singleClick', 'doubleClick'],
|
|
1012
1012
|
default: 'singleClick',
|
|
1013
|
-
description: localize(
|
|
1013
|
+
description: localize(1836, "Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable."),
|
|
1014
1014
|
},
|
|
1015
1015
|
[treeStickyScroll]: {
|
|
1016
1016
|
type: 'boolean',
|
|
1017
1017
|
default: true,
|
|
1018
|
-
description: localize(
|
|
1018
|
+
description: localize(1837, "Controls whether sticky scrolling is enabled in trees."),
|
|
1019
1019
|
},
|
|
1020
1020
|
[treeStickyScrollMaxElements]: {
|
|
1021
1021
|
type: 'number',
|
|
1022
1022
|
minimum: 1,
|
|
1023
1023
|
default: 7,
|
|
1024
|
-
markdownDescription: localize(
|
|
1024
|
+
markdownDescription: localize(1838, "Controls the number of sticky elements displayed in the tree when {0} is enabled.", '`#workbench.tree.enableStickyScroll#`'),
|
|
1025
1025
|
},
|
|
1026
1026
|
[typeNavigationModeSettingKey]: {
|
|
1027
1027
|
type: 'string',
|
|
1028
1028
|
enum: ['automatic', 'trigger'],
|
|
1029
1029
|
default: 'automatic',
|
|
1030
|
-
markdownDescription: localize(
|
|
1030
|
+
markdownDescription: localize(1839, "Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run."),
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
@@ -248,8 +248,8 @@ export class MarkerService {
|
|
|
248
248
|
*/
|
|
249
249
|
_createFilteredMarker(resource, reasons) {
|
|
250
250
|
const message = reasons.length === 1
|
|
251
|
-
? localize(
|
|
252
|
-
: localize(
|
|
251
|
+
? localize(1846, "Problems are paused because: \"{0}\"", reasons[0])
|
|
252
|
+
: localize(1847, "Problems are paused because: \"{0}\" and {1} more", reasons[0], reasons.length - 1);
|
|
253
253
|
return {
|
|
254
254
|
owner: 'markersFilter',
|
|
255
255
|
resource,
|
|
@@ -18,17 +18,17 @@ export var MarkerSeverity;
|
|
|
18
18
|
}
|
|
19
19
|
MarkerSeverity.compare = compare;
|
|
20
20
|
const _displayStrings = Object.create(null);
|
|
21
|
-
_displayStrings[MarkerSeverity.Error] = localize(
|
|
22
|
-
_displayStrings[MarkerSeverity.Warning] = localize(
|
|
23
|
-
_displayStrings[MarkerSeverity.Info] = localize(
|
|
21
|
+
_displayStrings[MarkerSeverity.Error] = localize(1840, "Error");
|
|
22
|
+
_displayStrings[MarkerSeverity.Warning] = localize(1841, "Warning");
|
|
23
|
+
_displayStrings[MarkerSeverity.Info] = localize(1842, "Info");
|
|
24
24
|
function toString(a) {
|
|
25
25
|
return _displayStrings[a] || '';
|
|
26
26
|
}
|
|
27
27
|
MarkerSeverity.toString = toString;
|
|
28
28
|
const _displayStringsPlural = Object.create(null);
|
|
29
|
-
_displayStringsPlural[MarkerSeverity.Error] = localize(
|
|
30
|
-
_displayStringsPlural[MarkerSeverity.Warning] = localize(
|
|
31
|
-
_displayStringsPlural[MarkerSeverity.Info] = localize(
|
|
29
|
+
_displayStringsPlural[MarkerSeverity.Error] = localize(1843, "Errors");
|
|
30
|
+
_displayStringsPlural[MarkerSeverity.Warning] = localize(1844, "Warnings");
|
|
31
|
+
_displayStringsPlural[MarkerSeverity.Info] = localize(1845, "Infos");
|
|
32
32
|
function toStringPlural(a) {
|
|
33
33
|
return _displayStringsPlural[a] || '';
|
|
34
34
|
}
|
|
@@ -170,22 +170,22 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
170
170
|
const isInHistory = !!this.commandsHistory.peek(commandPick.commandId);
|
|
171
171
|
// Separator: recently used
|
|
172
172
|
if (i === 0 && isInHistory) {
|
|
173
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
173
|
+
commandPicks.push({ type: 'separator', label: localize(1848, "recently used") });
|
|
174
174
|
addOtherSeparator = true;
|
|
175
175
|
}
|
|
176
176
|
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
177
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
177
|
+
commandPicks.push({ type: 'separator', label: localize(1849, "similar commands") });
|
|
178
178
|
addSuggestedSeparator = false;
|
|
179
179
|
}
|
|
180
180
|
// Separator: commonly used
|
|
181
181
|
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !isInHistory && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
182
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
182
|
+
commandPicks.push({ type: 'separator', label: localize(1850, "commonly used") });
|
|
183
183
|
addOtherSeparator = true;
|
|
184
184
|
addCommonlyUsedSeparator = false;
|
|
185
185
|
}
|
|
186
186
|
// Separator: other commands
|
|
187
187
|
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !isInHistory && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
188
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
188
|
+
commandPicks.push({ type: 'separator', label: localize(1851, "other commands") });
|
|
189
189
|
addOtherSeparator = false;
|
|
190
190
|
}
|
|
191
191
|
// Command
|
|
@@ -205,7 +205,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
205
205
|
// Basically, if we haven't already added a separator, we add one before the additional picks so long
|
|
206
206
|
// as one hasn't been added to the start of the array.
|
|
207
207
|
if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
|
|
208
|
-
commandPicks.unshift({ type: 'separator', label: localize(
|
|
208
|
+
commandPicks.unshift({ type: 'separator', label: localize(1852, "similar commands") });
|
|
209
209
|
}
|
|
210
210
|
return commandPicks;
|
|
211
211
|
})()
|
|
@@ -219,7 +219,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
219
219
|
?? commandPick.commandDescription?.value;
|
|
220
220
|
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
221
221
|
const ariaLabel = keybinding ?
|
|
222
|
-
localize(
|
|
222
|
+
localize(1853, "{0}, {1}", commandPick.label, keybinding.getAriaLabel()) :
|
|
223
223
|
commandPick.label;
|
|
224
224
|
// Add remove button for recently used items (as the last button, to the right)
|
|
225
225
|
const existingButtons = commandPick.buttons || [];
|
|
@@ -227,7 +227,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
227
227
|
...existingButtons,
|
|
228
228
|
{
|
|
229
229
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
230
|
-
tooltip: localize(
|
|
230
|
+
tooltip: localize(1854, "Remove from Recently Used")
|
|
231
231
|
}
|
|
232
232
|
] : commandPick.buttons;
|
|
233
233
|
return {
|
|
@@ -254,7 +254,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
254
254
|
}
|
|
255
255
|
catch (error) {
|
|
256
256
|
if (!isCancellationError(error)) {
|
|
257
|
-
this.dialogService.error(localize(
|
|
257
|
+
this.dialogService.error(localize(1855, "Command '{0}' resulted in an error", commandPick.label), toErrorMessage(error));
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
},
|
|
@@ -64,7 +64,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
64
64
|
prefix,
|
|
65
65
|
label,
|
|
66
66
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
67
|
-
ariaLabel: localize(
|
|
67
|
+
ariaLabel: localize(1856, "{0}, {1}", label, helpEntry.description),
|
|
68
68
|
description: helpEntry.description
|
|
69
69
|
};
|
|
70
70
|
});
|
|
@@ -30,22 +30,22 @@ import { IHoverService, WorkbenchHoverDelegate } from '../../hover/browser/hover
|
|
|
30
30
|
import { ContextKeyExpr, RawContextKey } from '../../contextkey/common/contextkey.js';
|
|
31
31
|
import { observableValue } from '../../../base/common/observable.js';
|
|
32
32
|
export const inQuickInputContextKeyValue = 'inQuickInput';
|
|
33
|
-
export const InQuickInputContextKey = new RawContextKey(inQuickInputContextKeyValue, false, localize(
|
|
33
|
+
export const InQuickInputContextKey = new RawContextKey(inQuickInputContextKeyValue, false, localize(1857, "Whether keyboard focus is inside the quick input control"));
|
|
34
34
|
export const inQuickInputContext = ContextKeyExpr.has(inQuickInputContextKeyValue);
|
|
35
35
|
export const quickInputAlignmentContextKeyValue = 'quickInputAlignment';
|
|
36
|
-
export const QuickInputAlignmentContextKey = new RawContextKey(quickInputAlignmentContextKeyValue, 'top', localize(
|
|
36
|
+
export const QuickInputAlignmentContextKey = new RawContextKey(quickInputAlignmentContextKeyValue, 'top', localize(1858, "The alignment of the quick input"));
|
|
37
37
|
export const quickInputTypeContextKeyValue = 'quickInputType';
|
|
38
|
-
export const QuickInputTypeContextKey = new RawContextKey(quickInputTypeContextKeyValue, undefined, localize(
|
|
38
|
+
export const QuickInputTypeContextKey = new RawContextKey(quickInputTypeContextKeyValue, undefined, localize(1859, "The type of the currently visible quick input"));
|
|
39
39
|
export const endOfQuickInputBoxContextKeyValue = 'cursorAtEndOfQuickInputBox';
|
|
40
|
-
export const EndOfQuickInputBoxContextKey = new RawContextKey(endOfQuickInputBoxContextKeyValue, false, localize(
|
|
40
|
+
export const EndOfQuickInputBoxContextKey = new RawContextKey(endOfQuickInputBoxContextKeyValue, false, localize(1860, "Whether the cursor in the quick input is at the end of the input box"));
|
|
41
41
|
export const endOfQuickInputBoxContext = ContextKeyExpr.has(endOfQuickInputBoxContextKeyValue);
|
|
42
42
|
export const backButton = {
|
|
43
43
|
iconClass: ThemeIcon.asClassName(Codicon.quickInputBack),
|
|
44
|
-
tooltip: localize(
|
|
44
|
+
tooltip: localize(1861, "Back"),
|
|
45
45
|
handle: -1 // TODO
|
|
46
46
|
};
|
|
47
47
|
export class QuickInput extends Disposable {
|
|
48
|
-
static { this.noPromptMessage = localize(
|
|
48
|
+
static { this.noPromptMessage = localize(1862, "Press 'Enter' to confirm your input or 'Escape' to cancel"); }
|
|
49
49
|
constructor(ui) {
|
|
50
50
|
super();
|
|
51
51
|
this.ui = ui;
|
|
@@ -309,7 +309,7 @@ export class QuickInput extends Disposable {
|
|
|
309
309
|
}
|
|
310
310
|
getSteps() {
|
|
311
311
|
if (this.step && this.totalSteps) {
|
|
312
|
-
return localize(
|
|
312
|
+
return localize(1863, "{0}/{1}", this.step, this.totalSteps);
|
|
313
313
|
}
|
|
314
314
|
if (this.step) {
|
|
315
315
|
return String(this.step);
|
|
@@ -339,7 +339,7 @@ export class QuickInput extends Disposable {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
export class QuickPick extends QuickInput {
|
|
342
|
-
static { this.DEFAULT_ARIA_LABEL = localize(
|
|
342
|
+
static { this.DEFAULT_ARIA_LABEL = localize(1864, "Type to narrow down results."); }
|
|
343
343
|
constructor(ui) {
|
|
344
344
|
super(ui);
|
|
345
345
|
this._value = '';
|
|
@@ -581,7 +581,7 @@ export class QuickPick extends QuickInput {
|
|
|
581
581
|
this.update();
|
|
582
582
|
}
|
|
583
583
|
get okLabel() {
|
|
584
|
-
return this._okLabel ?? localize(
|
|
584
|
+
return this._okLabel ?? localize(1865, "OK");
|
|
585
585
|
}
|
|
586
586
|
set okLabel(okLabel) {
|
|
587
587
|
this._okLabel = okLabel;
|
|
@@ -928,7 +928,7 @@ export class InputBox extends QuickInput {
|
|
|
928
928
|
set prompt(prompt) {
|
|
929
929
|
this._prompt = prompt;
|
|
930
930
|
this.noValidationMessage = prompt
|
|
931
|
-
? localize(
|
|
931
|
+
? localize(1866, "{0} (Press 'Enter' to confirm or 'Escape' to cancel)", prompt)
|
|
932
932
|
: QuickInput.noPromptMessage;
|
|
933
933
|
this.update();
|
|
934
934
|
}
|
|
@@ -13,7 +13,7 @@ function registerQuickInputCommandAndKeybindingRule(rule, options = {}) {
|
|
|
13
13
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
14
14
|
weight: 200 /* KeybindingWeight.WorkbenchContrib */,
|
|
15
15
|
when: inQuickInputContext,
|
|
16
|
-
metadata: { description: localize(
|
|
16
|
+
metadata: { description: localize(1867, "Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.") },
|
|
17
17
|
...rule,
|
|
18
18
|
secondary: getSecondary(rule.primary, rule.secondary ?? [], options)
|
|
19
19
|
});
|
|
@@ -24,7 +24,7 @@ function registerQuickPickCommandAndKeybindingRule(rule, options = {}) {
|
|
|
24
24
|
when: ContextKeyExpr.and(ContextKeyExpr.or(
|
|
25
25
|
// Only things that use Tree widgets
|
|
26
26
|
ContextKeyExpr.equals(quickInputTypeContextKeyValue, "quickPick" /* QuickInputType.QuickPick */), ContextKeyExpr.equals(quickInputTypeContextKeyValue, "quickTree" /* QuickInputType.QuickTree */)), inQuickInputContext),
|
|
27
|
-
metadata: { description: localize(
|
|
27
|
+
metadata: { description: localize(1868, "Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.") },
|
|
28
28
|
...rule,
|
|
29
29
|
secondary: getSecondary(rule.primary, rule.secondary ?? [], options)
|
|
30
30
|
});
|
|
@@ -91,8 +91,8 @@ registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.previous', primary:
|
|
|
91
91
|
// In this case, we want that modifier key+up/down to navigate to the next/previous item, not the next/previous separator.
|
|
92
92
|
// To handle this, we have a separate command for navigating to the next/previous separator when we are not in quick access mode.
|
|
93
93
|
// If, however, we are in quick access mode, and you hold down an additional modifier key, we will navigate to the next/previous separator.
|
|
94
|
-
const nextSeparatorFallbackDesc = localize(
|
|
95
|
-
const prevSeparatorFallbackDesc = localize(
|
|
94
|
+
const nextSeparatorFallbackDesc = localize(1869, "If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator.");
|
|
95
|
+
const prevSeparatorFallbackDesc = localize(1870, "If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");
|
|
96
96
|
if (isMacintosh) {
|
|
97
97
|
registerQuickPickCommandAndKeybindingRule({
|
|
98
98
|
id: 'quickInput.nextSeparatorWithQuickAccessFallback',
|
|
@@ -157,7 +157,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
157
157
|
// All other kinds of Quick things handle Accept, except Widget. In other words, Accepting is a detail on the things
|
|
158
158
|
// that extend IQuickInput
|
|
159
159
|
ContextKeyExpr.notEquals(quickInputTypeContextKeyValue, "quickWidget" /* QuickInputType.QuickWidget */), inQuickInputContext),
|
|
160
|
-
metadata: { description: localize(
|
|
160
|
+
metadata: { description: localize(1871, "Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.") },
|
|
161
161
|
handler: (accessor) => {
|
|
162
162
|
const currentQuickPick = accessor.get(IQuickInputService).currentQuickInput;
|
|
163
163
|
currentQuickPick?.accept();
|