monaco-editor-core 0.53.0 → 0.54.0-dev-20250910
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.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.ru.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 +0 -2
- package/esm/vs/base/browser/domSanitize.js +18 -8
- package/esm/vs/base/browser/domSanitize.js.map +1 -1
- package/esm/vs/base/browser/domStylesheets.js +3 -0
- package/esm/vs/base/browser/domStylesheets.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/dropdown/dropdown.js +1 -2
- package/esm/vs/base/browser/ui/dropdown/dropdown.js.map +1 -1
- package/esm/vs/base/common/async.js +6 -173
- package/esm/vs/base/common/async.js.map +1 -1
- package/esm/vs/base/common/fuzzyScorer.js +6 -3
- package/esm/vs/base/common/fuzzyScorer.js.map +1 -1
- package/esm/vs/base/common/strings.js +0 -3
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +23 -13
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js.map +1 -1
- package/esm/vs/editor/browser/services/hoverService/hover.css +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +1 -1
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/viewModel/screenReaderSimpleModel.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +9 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +15 -10
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +5 -4
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js.map +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionList.js +2 -2
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +11 -12
- package/esm/vs/platform/actions/browser/actionViewItemService.js.map +1 -1
- package/esm/vs/platform/actions/browser/toolbar.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js.map +1 -1
- package/esm/vs/platform/contextkey/common/contextkeys.js +1 -2
- package/esm/vs/platform/contextkey/common/contextkeys.js.map +1 -1
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- 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 +7 -7
- 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 +3 -3
- 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/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- 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 +15 -15
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- 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/package.json +2 -2
- package/version.txt +1 -1
|
@@ -899,18 +899,18 @@ const configurationRegistry = Registry.as(ConfigurationExtensions.Configuration)
|
|
|
899
899
|
configurationRegistry.registerConfiguration({
|
|
900
900
|
id: 'workbench',
|
|
901
901
|
order: 7,
|
|
902
|
-
title: localize(
|
|
902
|
+
title: localize(1685, "Workbench"),
|
|
903
903
|
type: 'object',
|
|
904
904
|
properties: {
|
|
905
905
|
[multiSelectModifierSettingKey]: {
|
|
906
906
|
type: 'string',
|
|
907
907
|
enum: ['ctrlCmd', 'alt'],
|
|
908
908
|
markdownEnumDescriptions: [
|
|
909
|
-
localize(
|
|
910
|
-
localize(
|
|
909
|
+
localize(1686, "Maps to `Control` on Windows and Linux and to `Command` on macOS."),
|
|
910
|
+
localize(1687, "Maps to `Alt` on Windows and Linux and to `Option` on macOS.")
|
|
911
911
|
],
|
|
912
912
|
default: 'ctrlCmd',
|
|
913
|
-
description: localize(
|
|
913
|
+
description: localize(1688, "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.")
|
|
914
914
|
|
|
915
915
|
|
|
916
916
|
|
|
@@ -922,7 +922,7 @@ configurationRegistry.registerConfiguration({
|
|
|
922
922
|
type: 'string',
|
|
923
923
|
enum: ['singleClick', 'doubleClick'],
|
|
924
924
|
default: 'singleClick',
|
|
925
|
-
description: localize(
|
|
925
|
+
description: localize(1689, "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.")
|
|
926
926
|
|
|
927
927
|
|
|
928
928
|
|
|
@@ -930,96 +930,96 @@ configurationRegistry.registerConfiguration({
|
|
|
930
930
|
[horizontalScrollingKey]: {
|
|
931
931
|
type: 'boolean',
|
|
932
932
|
default: false,
|
|
933
|
-
description: localize(
|
|
933
|
+
description: localize(1690, "Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")
|
|
934
934
|
},
|
|
935
935
|
[scrollByPageKey]: {
|
|
936
936
|
type: 'boolean',
|
|
937
937
|
default: false,
|
|
938
|
-
description: localize(
|
|
938
|
+
description: localize(1691, "Controls whether clicks in the scrollbar scroll page by page.")
|
|
939
939
|
},
|
|
940
940
|
[treeIndentKey]: {
|
|
941
941
|
type: 'number',
|
|
942
942
|
default: 8,
|
|
943
943
|
minimum: 4,
|
|
944
944
|
maximum: 40,
|
|
945
|
-
description: localize(
|
|
945
|
+
description: localize(1692, "Controls tree indentation in pixels.")
|
|
946
946
|
},
|
|
947
947
|
[treeRenderIndentGuidesKey]: {
|
|
948
948
|
type: 'string',
|
|
949
949
|
enum: ['none', 'onHover', 'always'],
|
|
950
950
|
default: 'onHover',
|
|
951
|
-
description: localize(
|
|
951
|
+
description: localize(1693, "Controls whether the tree should render indent guides.")
|
|
952
952
|
},
|
|
953
953
|
[listSmoothScrolling]: {
|
|
954
954
|
type: 'boolean',
|
|
955
955
|
default: false,
|
|
956
|
-
description: localize(
|
|
956
|
+
description: localize(1694, "Controls whether lists and trees have smooth scrolling."),
|
|
957
957
|
},
|
|
958
958
|
[mouseWheelScrollSensitivityKey]: {
|
|
959
959
|
type: 'number',
|
|
960
960
|
default: 1,
|
|
961
|
-
markdownDescription: localize(
|
|
961
|
+
markdownDescription: localize(1695, "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")
|
|
962
962
|
},
|
|
963
963
|
[fastScrollSensitivityKey]: {
|
|
964
964
|
type: 'number',
|
|
965
965
|
default: 5,
|
|
966
|
-
markdownDescription: localize(
|
|
966
|
+
markdownDescription: localize(1696, "Scrolling speed multiplier when pressing `Alt`.")
|
|
967
967
|
},
|
|
968
968
|
[defaultFindModeSettingKey]: {
|
|
969
969
|
type: 'string',
|
|
970
970
|
enum: ['highlight', 'filter'],
|
|
971
971
|
enumDescriptions: [
|
|
972
|
-
localize(
|
|
973
|
-
localize(
|
|
972
|
+
localize(1697, "Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),
|
|
973
|
+
localize(1698, "Filter elements when searching.")
|
|
974
974
|
],
|
|
975
975
|
default: 'highlight',
|
|
976
|
-
description: localize(
|
|
976
|
+
description: localize(1699, "Controls the default find mode for lists and trees in the workbench.")
|
|
977
977
|
},
|
|
978
978
|
[keyboardNavigationSettingKey]: {
|
|
979
979
|
type: 'string',
|
|
980
980
|
enum: ['simple', 'highlight', 'filter'],
|
|
981
981
|
enumDescriptions: [
|
|
982
|
-
localize(
|
|
983
|
-
localize(
|
|
984
|
-
localize(
|
|
982
|
+
localize(1700, "Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),
|
|
983
|
+
localize(1701, "Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),
|
|
984
|
+
localize(1702, "Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")
|
|
985
985
|
],
|
|
986
986
|
default: 'highlight',
|
|
987
|
-
description: localize(
|
|
987
|
+
description: localize(1703, "Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),
|
|
988
988
|
deprecated: true,
|
|
989
|
-
deprecationMessage: localize(
|
|
989
|
+
deprecationMessage: localize(1704, "Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")
|
|
990
990
|
},
|
|
991
991
|
[defaultFindMatchTypeSettingKey]: {
|
|
992
992
|
type: 'string',
|
|
993
993
|
enum: ['fuzzy', 'contiguous'],
|
|
994
994
|
enumDescriptions: [
|
|
995
|
-
localize(
|
|
996
|
-
localize(
|
|
995
|
+
localize(1705, "Use fuzzy matching when searching."),
|
|
996
|
+
localize(1706, "Use contiguous matching when searching.")
|
|
997
997
|
],
|
|
998
998
|
default: 'fuzzy',
|
|
999
|
-
description: localize(
|
|
999
|
+
description: localize(1707, "Controls the type of matching used when searching lists and trees in the workbench.")
|
|
1000
1000
|
},
|
|
1001
1001
|
[treeExpandMode]: {
|
|
1002
1002
|
type: 'string',
|
|
1003
1003
|
enum: ['singleClick', 'doubleClick'],
|
|
1004
1004
|
default: 'singleClick',
|
|
1005
|
-
description: localize(
|
|
1005
|
+
description: localize(1708, "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."),
|
|
1006
1006
|
},
|
|
1007
1007
|
[treeStickyScroll]: {
|
|
1008
1008
|
type: 'boolean',
|
|
1009
1009
|
default: true,
|
|
1010
|
-
description: localize(
|
|
1010
|
+
description: localize(1709, "Controls whether sticky scrolling is enabled in trees."),
|
|
1011
1011
|
},
|
|
1012
1012
|
[treeStickyScrollMaxElements]: {
|
|
1013
1013
|
type: 'number',
|
|
1014
1014
|
minimum: 1,
|
|
1015
1015
|
default: 7,
|
|
1016
|
-
markdownDescription: localize(
|
|
1016
|
+
markdownDescription: localize(1710, "Controls the number of sticky elements displayed in the tree when {0} is enabled.", '`#workbench.tree.enableStickyScroll#`'),
|
|
1017
1017
|
},
|
|
1018
1018
|
[typeNavigationModeSettingKey]: {
|
|
1019
1019
|
type: 'string',
|
|
1020
1020
|
enum: ['automatic', 'trigger'],
|
|
1021
1021
|
default: 'automatic',
|
|
1022
|
-
markdownDescription: localize(
|
|
1022
|
+
markdownDescription: localize(1711, "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."),
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
@@ -239,8 +239,8 @@ export class MarkerService {
|
|
|
239
239
|
*/
|
|
240
240
|
_createFilteredMarker(resource, reasons) {
|
|
241
241
|
const message = reasons.length === 1
|
|
242
|
-
? localize(
|
|
243
|
-
: localize(
|
|
242
|
+
? localize(1718, "Problems are paused because: \"{0}\"", reasons[0])
|
|
243
|
+
: localize(1719, "Problems are paused because: \"{0}\" and {1} more", reasons[0], reasons.length - 1);
|
|
244
244
|
return {
|
|
245
245
|
owner: 'markersFilter',
|
|
246
246
|
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(1712, "Error");
|
|
22
|
+
_displayStrings[MarkerSeverity.Warning] = localize(1713, "Warning");
|
|
23
|
+
_displayStrings[MarkerSeverity.Info] = localize(1714, "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(1715, "Errors");
|
|
30
|
+
_displayStringsPlural[MarkerSeverity.Warning] = localize(1716, "Warnings");
|
|
31
|
+
_displayStringsPlural[MarkerSeverity.Info] = localize(1717, "Infos");
|
|
32
32
|
function toStringPlural(a) {
|
|
33
33
|
return _displayStringsPlural[a] || '';
|
|
34
34
|
}
|
|
@@ -154,22 +154,22 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
154
154
|
const commandPick = filteredCommandPicks[i];
|
|
155
155
|
// Separator: recently used
|
|
156
156
|
if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
|
|
157
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
157
|
+
commandPicks.push({ type: 'separator', label: localize(1720, "recently used") });
|
|
158
158
|
addOtherSeparator = true;
|
|
159
159
|
}
|
|
160
160
|
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
161
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
161
|
+
commandPicks.push({ type: 'separator', label: localize(1721, "similar commands") });
|
|
162
162
|
addSuggestedSeparator = false;
|
|
163
163
|
}
|
|
164
164
|
// Separator: commonly used
|
|
165
165
|
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
166
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
166
|
+
commandPicks.push({ type: 'separator', label: localize(1722, "commonly used") });
|
|
167
167
|
addOtherSeparator = true;
|
|
168
168
|
addCommonlyUsedSeparator = false;
|
|
169
169
|
}
|
|
170
170
|
// Separator: other commands
|
|
171
171
|
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
172
|
-
commandPicks.push({ type: 'separator', label: localize(
|
|
172
|
+
commandPicks.push({ type: 'separator', label: localize(1723, "other commands") });
|
|
173
173
|
addOtherSeparator = false;
|
|
174
174
|
}
|
|
175
175
|
// Command
|
|
@@ -189,7 +189,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
189
189
|
// Basically, if we haven't already added a separator, we add one before the additional picks so long
|
|
190
190
|
// as one hasn't been added to the start of the array.
|
|
191
191
|
if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
|
|
192
|
-
commandPicks.unshift({ type: 'separator', label: localize(
|
|
192
|
+
commandPicks.unshift({ type: 'separator', label: localize(1724, "similar commands") });
|
|
193
193
|
}
|
|
194
194
|
return commandPicks;
|
|
195
195
|
})()
|
|
@@ -201,7 +201,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
201
201
|
}
|
|
202
202
|
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
203
203
|
const ariaLabel = keybinding ?
|
|
204
|
-
localize(
|
|
204
|
+
localize(1725, "{0}, {1}", commandPick.label, keybinding.getAriaLabel()) :
|
|
205
205
|
commandPick.label;
|
|
206
206
|
return {
|
|
207
207
|
...commandPick,
|
|
@@ -224,7 +224,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
224
224
|
}
|
|
225
225
|
catch (error) {
|
|
226
226
|
if (!isCancellationError(error)) {
|
|
227
|
-
this.dialogService.error(localize(
|
|
227
|
+
this.dialogService.error(localize(1726, "Command '{0}' resulted in an error", commandPick.label), toErrorMessage(error));
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -62,7 +62,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
62
62
|
prefix,
|
|
63
63
|
label,
|
|
64
64
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
65
|
-
ariaLabel: localize(
|
|
65
|
+
ariaLabel: localize(1727, "{0}, {1}", label, helpEntry.description),
|
|
66
66
|
description: helpEntry.description
|
|
67
67
|
};
|
|
68
68
|
});
|
|
@@ -31,22 +31,22 @@ import { IHoverService, WorkbenchHoverDelegate } from '../../hover/browser/hover
|
|
|
31
31
|
import { ContextKeyExpr, RawContextKey } from '../../contextkey/common/contextkey.js';
|
|
32
32
|
import { observableValue } from '../../../base/common/observable.js';
|
|
33
33
|
export const inQuickInputContextKeyValue = 'inQuickInput';
|
|
34
|
-
export const InQuickInputContextKey = new RawContextKey(inQuickInputContextKeyValue, false, localize(
|
|
34
|
+
export const InQuickInputContextKey = new RawContextKey(inQuickInputContextKeyValue, false, localize(1728, "Whether keyboard focus is inside the quick input control"));
|
|
35
35
|
export const inQuickInputContext = ContextKeyExpr.has(inQuickInputContextKeyValue);
|
|
36
36
|
export const quickInputAlignmentContextKeyValue = 'quickInputAlignment';
|
|
37
|
-
export const QuickInputAlignmentContextKey = new RawContextKey(quickInputAlignmentContextKeyValue, 'top', localize(
|
|
37
|
+
export const QuickInputAlignmentContextKey = new RawContextKey(quickInputAlignmentContextKeyValue, 'top', localize(1729, "The alignment of the quick input"));
|
|
38
38
|
export const quickInputTypeContextKeyValue = 'quickInputType';
|
|
39
|
-
export const QuickInputTypeContextKey = new RawContextKey(quickInputTypeContextKeyValue, undefined, localize(
|
|
39
|
+
export const QuickInputTypeContextKey = new RawContextKey(quickInputTypeContextKeyValue, undefined, localize(1730, "The type of the currently visible quick input"));
|
|
40
40
|
export const endOfQuickInputBoxContextKeyValue = 'cursorAtEndOfQuickInputBox';
|
|
41
|
-
export const EndOfQuickInputBoxContextKey = new RawContextKey(endOfQuickInputBoxContextKeyValue, false, localize(
|
|
41
|
+
export const EndOfQuickInputBoxContextKey = new RawContextKey(endOfQuickInputBoxContextKeyValue, false, localize(1731, "Whether the cursor in the quick input is at the end of the input box"));
|
|
42
42
|
export const endOfQuickInputBoxContext = ContextKeyExpr.has(endOfQuickInputBoxContextKeyValue);
|
|
43
43
|
export const backButton = {
|
|
44
44
|
iconClass: ThemeIcon.asClassName(Codicon.quickInputBack),
|
|
45
|
-
tooltip: localize(
|
|
45
|
+
tooltip: localize(1732, "Back"),
|
|
46
46
|
handle: -1 // TODO
|
|
47
47
|
};
|
|
48
48
|
export class QuickInput extends Disposable {
|
|
49
|
-
static { this.noPromptMessage = localize(
|
|
49
|
+
static { this.noPromptMessage = localize(1733, "Press 'Enter' to confirm your input or 'Escape' to cancel"); }
|
|
50
50
|
constructor(ui) {
|
|
51
51
|
super();
|
|
52
52
|
this.ui = ui;
|
|
@@ -314,7 +314,7 @@ export class QuickInput extends Disposable {
|
|
|
314
314
|
}
|
|
315
315
|
getSteps() {
|
|
316
316
|
if (this.step && this.totalSteps) {
|
|
317
|
-
return localize(
|
|
317
|
+
return localize(1734, "{0}/{1}", this.step, this.totalSteps);
|
|
318
318
|
}
|
|
319
319
|
if (this.step) {
|
|
320
320
|
return String(this.step);
|
|
@@ -386,7 +386,7 @@ export class QuickPick extends QuickInput {
|
|
|
386
386
|
this.onDidTriggerItemButton = this.onDidTriggerItemButtonEmitter.event;
|
|
387
387
|
this.onDidTriggerSeparatorButton = this.onDidTriggerSeparatorButtonEmitter.event;
|
|
388
388
|
}
|
|
389
|
-
static { this.DEFAULT_ARIA_LABEL = localize(
|
|
389
|
+
static { this.DEFAULT_ARIA_LABEL = localize(1735, "Type to narrow down results."); }
|
|
390
390
|
get quickNavigate() {
|
|
391
391
|
return this._quickNavigate;
|
|
392
392
|
}
|
|
@@ -570,7 +570,7 @@ export class QuickPick extends QuickInput {
|
|
|
570
570
|
this.update();
|
|
571
571
|
}
|
|
572
572
|
get okLabel() {
|
|
573
|
-
return this._okLabel ?? localize(
|
|
573
|
+
return this._okLabel ?? localize(1736, "OK");
|
|
574
574
|
}
|
|
575
575
|
set okLabel(okLabel) {
|
|
576
576
|
this._okLabel = okLabel;
|
|
@@ -911,7 +911,7 @@ export class InputBox extends QuickInput {
|
|
|
911
911
|
set prompt(prompt) {
|
|
912
912
|
this._prompt = prompt;
|
|
913
913
|
this.noValidationMessage = prompt
|
|
914
|
-
? localize(
|
|
914
|
+
? localize(1737, "{0} (Press 'Enter' to confirm or 'Escape' to cancel)", prompt)
|
|
915
915
|
: QuickInput.noPromptMessage;
|
|
916
916
|
this.update();
|
|
917
917
|
}
|
|
@@ -12,7 +12,7 @@ import { IQuickInputService, QuickPickFocus } from '../common/quickInput.js';
|
|
|
12
12
|
const defaultCommandAndKeybindingRule = {
|
|
13
13
|
weight: 200 /* KeybindingWeight.WorkbenchContrib */,
|
|
14
14
|
when: ContextKeyExpr.and(ContextKeyExpr.or(ContextKeyExpr.equals(quickInputTypeContextKeyValue, "quickPick" /* QuickInputType.QuickPick */), ContextKeyExpr.equals(quickInputTypeContextKeyValue, "quickTree" /* QuickInputType.QuickTree */)), inQuickInputContext),
|
|
15
|
-
metadata: { description: localize(
|
|
15
|
+
metadata: { description: localize(1738, "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.") }
|
|
16
16
|
};
|
|
17
17
|
function registerQuickPickCommandAndKeybindingRule(rule, options = {}) {
|
|
18
18
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
@@ -71,8 +71,8 @@ registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.previous', primary:
|
|
|
71
71
|
// In this case, we want that modifier key+up/down to navigate to the next/previous item, not the next/previous separator.
|
|
72
72
|
// To handle this, we have a separate command for navigating to the next/previous separator when we are not in quick access mode.
|
|
73
73
|
// If, however, we are in quick access mode, and you hold down an additional modifier key, we will navigate to the next/previous separator.
|
|
74
|
-
const nextSeparatorFallbackDesc = localize(
|
|
75
|
-
const prevSeparatorFallbackDesc = localize(
|
|
74
|
+
const nextSeparatorFallbackDesc = localize(1739, "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.");
|
|
75
|
+
const prevSeparatorFallbackDesc = localize(1740, "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.");
|
|
76
76
|
if (isMacintosh) {
|
|
77
77
|
registerQuickPickCommandAndKeybindingRule({
|
|
78
78
|
id: 'quickInput.nextSeparatorWithQuickAccessFallback',
|
|
@@ -117,7 +117,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
117
117
|
const rightActionBar = this._register(new ActionBar(titleBar, { hoverDelegate: this.options.hoverDelegate }));
|
|
118
118
|
rightActionBar.domNode.classList.add('quick-input-right-action-bar');
|
|
119
119
|
const headerContainer = dom.append(container, $('.quick-input-header'));
|
|
120
|
-
const checkAll = this._register(new TriStateCheckbox(localize(
|
|
120
|
+
const checkAll = this._register(new TriStateCheckbox(localize(1741, "Toggle all checkboxes"), false, { ...defaultCheckboxStyles, size: 15 }));
|
|
121
121
|
dom.append(headerContainer, checkAll.domNode);
|
|
122
122
|
this._register(checkAll.onChange(() => {
|
|
123
123
|
const checked = checkAll.checked;
|
|
@@ -136,21 +136,21 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
136
136
|
const visibleCountContainer = dom.append(filterContainer, $('.quick-input-visible-count'));
|
|
137
137
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
138
138
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
139
|
-
const visibleCount = this._register(new CountBadge(visibleCountContainer, { countFormat: localize(
|
|
139
|
+
const visibleCount = this._register(new CountBadge(visibleCountContainer, { countFormat: localize(1742, "{0} Results") }, this.styles.countBadge));
|
|
140
140
|
const countContainer = dom.append(filterContainer, $('.quick-input-count'));
|
|
141
141
|
countContainer.setAttribute('aria-live', 'polite');
|
|
142
|
-
const count = this._register(new CountBadge(countContainer, { countFormat: localize(
|
|
142
|
+
const count = this._register(new CountBadge(countContainer, { countFormat: localize(1743, "{0} Selected") }, this.styles.countBadge));
|
|
143
143
|
const inlineActionBar = this._register(new ActionBar(headerContainer, { hoverDelegate: this.options.hoverDelegate }));
|
|
144
144
|
inlineActionBar.domNode.classList.add('quick-input-inline-action-bar');
|
|
145
145
|
const okContainer = dom.append(headerContainer, $('.quick-input-action'));
|
|
146
146
|
const ok = this._register(new Button(okContainer, this.styles.button));
|
|
147
|
-
ok.label = localize(
|
|
147
|
+
ok.label = localize(1744, "OK");
|
|
148
148
|
this._register(ok.onDidClick(e => {
|
|
149
149
|
this.onDidAcceptEmitter.fire();
|
|
150
150
|
}));
|
|
151
151
|
const customButtonContainer = dom.append(headerContainer, $('.quick-input-action'));
|
|
152
152
|
const customButton = this._register(new Button(customButtonContainer, { ...this.styles.button, supportIcons: true }));
|
|
153
|
-
customButton.label = localize(
|
|
153
|
+
customButton.label = localize(1745, "Custom");
|
|
154
154
|
this._register(customButton.onDidClick(e => {
|
|
155
155
|
this.onDidCustomEmitter.fire();
|
|
156
156
|
}));
|
|
@@ -613,7 +613,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
613
613
|
ui.ignoreFocusOut = false;
|
|
614
614
|
ui.inputBox.toggles = undefined;
|
|
615
615
|
const backKeybindingLabel = this.options.backKeybindingLabel();
|
|
616
|
-
backButton.tooltip = backKeybindingLabel ? localize(
|
|
616
|
+
backButton.tooltip = backKeybindingLabel ? localize(1746, "Back ({0})", backKeybindingLabel) : localize(1747, "Back");
|
|
617
617
|
ui.container.style.display = '';
|
|
618
618
|
this.updateLayout();
|
|
619
619
|
this.dndController?.layoutContainer();
|
|
@@ -206,7 +206,7 @@ class QuickInputItemDelegate {
|
|
|
206
206
|
}
|
|
207
207
|
class QuickInputAccessibilityProvider {
|
|
208
208
|
getWidgetAriaLabel() {
|
|
209
|
-
return localize(
|
|
209
|
+
return localize(1748, "Quick Input");
|
|
210
210
|
}
|
|
211
211
|
getAriaLabel(element) {
|
|
212
212
|
return element.separator?.label
|
|
@@ -58,7 +58,7 @@ export function renderQuickInputDescription(description, container, actionHandle
|
|
|
58
58
|
else {
|
|
59
59
|
let title = node.title;
|
|
60
60
|
if (!title && node.href.startsWith('command:')) {
|
|
61
|
-
title = localize(
|
|
61
|
+
title = localize(1749, "Click to execute command '{0}'", node.href.substring('command:'.length));
|
|
62
62
|
}
|
|
63
63
|
else if (!title) {
|
|
64
64
|
title = node.href;
|
|
@@ -13,7 +13,7 @@ export class QuickTreeAccessibilityProvider {
|
|
|
13
13
|
this.onCheckedEvent = onCheckedEvent;
|
|
14
14
|
}
|
|
15
15
|
getWidgetAriaLabel() {
|
|
16
|
-
return localize(
|
|
16
|
+
return localize(1750, "Quick Tree");
|
|
17
17
|
}
|
|
18
18
|
getAriaLabel(element) {
|
|
19
19
|
return element.ariaLabel || [element.label, element.description]
|
|
@@ -51,13 +51,13 @@ class ColorRegistry extends Disposable {
|
|
|
51
51
|
}
|
|
52
52
|
if (needsTransparency) {
|
|
53
53
|
propertySchema.pattern = '^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$';
|
|
54
|
-
propertySchema.patternErrorMessage = nls.localize(
|
|
54
|
+
propertySchema.patternErrorMessage = nls.localize(1999, 'This color must be transparent or it will obscure content');
|
|
55
55
|
}
|
|
56
56
|
this.colorSchema.properties[id] = {
|
|
57
57
|
description,
|
|
58
58
|
oneOf: [
|
|
59
59
|
propertySchema,
|
|
60
|
-
{ type: 'string', const: DEFAULT_COLOR_CONFIG_VALUE, description: nls.localize(
|
|
60
|
+
{ type: 'string', const: DEFAULT_COLOR_CONFIG_VALUE, description: nls.localize(2000, 'Use the default color.') }
|
|
61
61
|
]
|
|
62
62
|
};
|
|
63
63
|
this.colorReferenceSchema.enum.push(id);
|
|
@@ -6,25 +6,25 @@ import * as nls from '../../../../nls.js';
|
|
|
6
6
|
// Import the effects we need
|
|
7
7
|
import { Color } from '../../../../base/common/color.js';
|
|
8
8
|
import { registerColor, transparent } from '../colorUtils.js';
|
|
9
|
-
export const foreground = registerColor('foreground', { dark: '#CCCCCC', light: '#616161', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(
|
|
10
|
-
export const disabledForeground = registerColor('disabledForeground', { dark: '#CCCCCC80', light: '#61616180', hcDark: '#A5A5A5', hcLight: '#7F7F7F' }, nls.localize(
|
|
11
|
-
export const errorForeground = registerColor('errorForeground', { dark: '#F48771', light: '#A1260D', hcDark: '#F48771', hcLight: '#B5200D' }, nls.localize(
|
|
12
|
-
export const descriptionForeground = registerColor('descriptionForeground', { light: '#717171', dark: transparent(foreground, 0.7), hcDark: transparent(foreground, 0.7), hcLight: transparent(foreground, 0.7) }, nls.localize(
|
|
13
|
-
export const iconForeground = registerColor('icon.foreground', { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(
|
|
14
|
-
export const focusBorder = registerColor('focusBorder', { dark: '#007FD4', light: '#0090F1', hcDark: '#F38518', hcLight: '#006BBD' }, nls.localize(
|
|
15
|
-
export const contrastBorder = registerColor('contrastBorder', { light: null, dark: null, hcDark: '#6FC3DF', hcLight: '#0F4A85' }, nls.localize(
|
|
16
|
-
export const activeContrastBorder = registerColor('contrastActiveBorder', { light: null, dark: null, hcDark: focusBorder, hcLight: focusBorder }, nls.localize(
|
|
17
|
-
export const selectionBackground = registerColor('selection.background', null, nls.localize(
|
|
9
|
+
export const foreground = registerColor('foreground', { dark: '#CCCCCC', light: '#616161', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(1751, "Overall foreground color. This color is only used if not overridden by a component."));
|
|
10
|
+
export const disabledForeground = registerColor('disabledForeground', { dark: '#CCCCCC80', light: '#61616180', hcDark: '#A5A5A5', hcLight: '#7F7F7F' }, nls.localize(1752, "Overall foreground for disabled elements. This color is only used if not overridden by a component."));
|
|
11
|
+
export const errorForeground = registerColor('errorForeground', { dark: '#F48771', light: '#A1260D', hcDark: '#F48771', hcLight: '#B5200D' }, nls.localize(1753, "Overall foreground color for error messages. This color is only used if not overridden by a component."));
|
|
12
|
+
export const descriptionForeground = registerColor('descriptionForeground', { light: '#717171', dark: transparent(foreground, 0.7), hcDark: transparent(foreground, 0.7), hcLight: transparent(foreground, 0.7) }, nls.localize(1754, "Foreground color for description text providing additional information, for example for a label."));
|
|
13
|
+
export const iconForeground = registerColor('icon.foreground', { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(1755, "The default color for icons in the workbench."));
|
|
14
|
+
export const focusBorder = registerColor('focusBorder', { dark: '#007FD4', light: '#0090F1', hcDark: '#F38518', hcLight: '#006BBD' }, nls.localize(1756, "Overall border color for focused elements. This color is only used if not overridden by a component."));
|
|
15
|
+
export const contrastBorder = registerColor('contrastBorder', { light: null, dark: null, hcDark: '#6FC3DF', hcLight: '#0F4A85' }, nls.localize(1757, "An extra border around elements to separate them from others for greater contrast."));
|
|
16
|
+
export const activeContrastBorder = registerColor('contrastActiveBorder', { light: null, dark: null, hcDark: focusBorder, hcLight: focusBorder }, nls.localize(1758, "An extra border around active elements to separate them from others for greater contrast."));
|
|
17
|
+
export const selectionBackground = registerColor('selection.background', null, nls.localize(1759, "The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));
|
|
18
18
|
// ------ text link
|
|
19
|
-
export const textLinkForeground = registerColor('textLink.foreground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(
|
|
20
|
-
export const textLinkActiveForeground = registerColor('textLink.activeForeground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(
|
|
21
|
-
export const textSeparatorForeground = registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, nls.localize(
|
|
19
|
+
export const textLinkForeground = registerColor('textLink.foreground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(1760, "Foreground color for links in text."));
|
|
20
|
+
export const textLinkActiveForeground = registerColor('textLink.activeForeground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(1761, "Foreground color for links in text when clicked on and on mouse hover."));
|
|
21
|
+
export const textSeparatorForeground = registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, nls.localize(1762, "Color for text separators."));
|
|
22
22
|
// ------ text preformat
|
|
23
|
-
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#000000', hcLight: '#FFFFFF' }, nls.localize(
|
|
24
|
-
export const textPreformatBackground = registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: '#FFFFFF', hcLight: '#09345f' }, nls.localize(
|
|
23
|
+
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#000000', hcLight: '#FFFFFF' }, nls.localize(1763, "Foreground color for preformatted text segments."));
|
|
24
|
+
export const textPreformatBackground = registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: '#FFFFFF', hcLight: '#09345f' }, nls.localize(1764, "Background color for preformatted text segments."));
|
|
25
25
|
// ------ text block quote
|
|
26
|
-
export const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, nls.localize(
|
|
27
|
-
export const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, nls.localize(
|
|
26
|
+
export const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, nls.localize(1765, "Background color for block quotes in text."));
|
|
27
|
+
export const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, nls.localize(1766, "Border color for block quotes in text."));
|
|
28
28
|
// ------ text code block
|
|
29
|
-
export const textCodeBlockBackground = registerColor('textCodeBlock.background', { light: '#dcdcdc66', dark: '#0a0a0a66', hcDark: Color.black, hcLight: '#F2F2F2' }, nls.localize(
|
|
29
|
+
export const textCodeBlockBackground = registerColor('textCodeBlock.background', { light: '#dcdcdc66', dark: '#0a0a0a66', hcDark: Color.black, hcLight: '#F2F2F2' }, nls.localize(1767, "Background color for code blocks in text."));
|
|
30
30
|
//# sourceMappingURL=baseColors.js.map
|
|
@@ -7,12 +7,12 @@ import { registerColor, transparent } from '../colorUtils.js';
|
|
|
7
7
|
import { foreground } from './baseColors.js';
|
|
8
8
|
import { editorErrorForeground, editorInfoForeground, editorWarningForeground } from './editorColors.js';
|
|
9
9
|
import { minimapFindMatch } from './minimapColors.js';
|
|
10
|
-
export const chartsForeground = registerColor('charts.foreground', foreground, nls.localize(
|
|
11
|
-
export const chartsLines = registerColor('charts.lines', transparent(foreground, .5), nls.localize(
|
|
12
|
-
export const chartsRed = registerColor('charts.red', editorErrorForeground, nls.localize(
|
|
13
|
-
export const chartsBlue = registerColor('charts.blue', editorInfoForeground, nls.localize(
|
|
14
|
-
export const chartsYellow = registerColor('charts.yellow', editorWarningForeground, nls.localize(
|
|
15
|
-
export const chartsOrange = registerColor('charts.orange', minimapFindMatch, nls.localize(
|
|
16
|
-
export const chartsGreen = registerColor('charts.green', { dark: '#89D185', light: '#388A34', hcDark: '#89D185', hcLight: '#374e06' }, nls.localize(
|
|
17
|
-
export const chartsPurple = registerColor('charts.purple', { dark: '#B180D7', light: '#652D90', hcDark: '#B180D7', hcLight: '#652D90' }, nls.localize(
|
|
10
|
+
export const chartsForeground = registerColor('charts.foreground', foreground, nls.localize(1768, "The foreground color used in charts."));
|
|
11
|
+
export const chartsLines = registerColor('charts.lines', transparent(foreground, .5), nls.localize(1769, "The color used for horizontal lines in charts."));
|
|
12
|
+
export const chartsRed = registerColor('charts.red', editorErrorForeground, nls.localize(1770, "The red color used in chart visualizations."));
|
|
13
|
+
export const chartsBlue = registerColor('charts.blue', editorInfoForeground, nls.localize(1771, "The blue color used in chart visualizations."));
|
|
14
|
+
export const chartsYellow = registerColor('charts.yellow', editorWarningForeground, nls.localize(1772, "The yellow color used in chart visualizations."));
|
|
15
|
+
export const chartsOrange = registerColor('charts.orange', minimapFindMatch, nls.localize(1773, "The orange color used in chart visualizations."));
|
|
16
|
+
export const chartsGreen = registerColor('charts.green', { dark: '#89D185', light: '#388A34', hcDark: '#89D185', hcLight: '#374e06' }, nls.localize(1774, "The green color used in chart visualizations."));
|
|
17
|
+
export const chartsPurple = registerColor('charts.purple', { dark: '#B180D7', light: '#652D90', hcDark: '#B180D7', hcLight: '#652D90' }, nls.localize(1775, "The purple color used in chart visualizations."));
|
|
18
18
|
//# sourceMappingURL=chartsColors.js.map
|