monaco-editor-core 0.56.0-dev-20260628 → 0.56.0
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 +0 -4
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +10 -23
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +0 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionList.js +8 -48
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +2 -87
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/configuration/common/configurationRegistry.js +11 -11
- 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 +9 -9
- 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/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/package.json +2 -2
- package/version.txt +1 -1
|
@@ -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(1803, "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(1804, "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(1805, "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(1806, "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(1807, "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(1808, "{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(1809, "Remove from Recently Used")
|
|
231
231
|
}
|
|
232
232
|
] : commandPick.buttons;
|
|
233
233
|
return {
|
|
@@ -253,7 +253,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
253
253
|
}
|
|
254
254
|
catch (error) {
|
|
255
255
|
if (!isCancellationError(error)) {
|
|
256
|
-
this.dialogService.error(localize(
|
|
256
|
+
this.dialogService.error(localize(1810, "Command '{0}' resulted in an error", commandPick.label), toErrorMessage(error));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
},
|
|
@@ -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(1811, "{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(1812, "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(1813, "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(1814, "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(1815, "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(1816, "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(1817, "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(1818, "{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(1819, "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(1820, "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(1821, "{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(1822, "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(1823, "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(1824, "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(1825, "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, ContextKeyExpr.not('isComposing')),
|
|
160
|
-
metadata: { description: localize(
|
|
160
|
+
metadata: { description: localize(1826, "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();
|
|
@@ -136,7 +136,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
136
136
|
}));
|
|
137
137
|
rightActionBar.getElement().classList.add('quick-input-right-action-bar');
|
|
138
138
|
const headerContainer = dom.append(container, $('.quick-input-header'));
|
|
139
|
-
const checkAll = this._register(new TriStateCheckbox(localize(
|
|
139
|
+
const checkAll = this._register(new TriStateCheckbox(localize(1827, "Toggle all checkboxes"), false, { ...defaultCheckboxStyles, size: 15 }));
|
|
140
140
|
dom.append(headerContainer, checkAll.domNode);
|
|
141
141
|
this._register(checkAll.onChange(() => {
|
|
142
142
|
const checked = checkAll.checked;
|
|
@@ -155,10 +155,10 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
155
155
|
const visibleCountContainer = dom.append(filterContainer, $('.quick-input-visible-count'));
|
|
156
156
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
157
157
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
158
|
-
const visibleCount = this._register(new CountBadge(visibleCountContainer, { countFormat: localize(
|
|
158
|
+
const visibleCount = this._register(new CountBadge(visibleCountContainer, { countFormat: localize(1828, "{0} Results") }, this.styles.countBadge));
|
|
159
159
|
const countContainer = dom.append(filterContainer, $('.quick-input-count'));
|
|
160
160
|
countContainer.setAttribute('aria-live', 'polite');
|
|
161
|
-
const count = this._register(new CountBadge(countContainer, { countFormat: localize(
|
|
161
|
+
const count = this._register(new CountBadge(countContainer, { countFormat: localize(1829, "{0} Selected") }, this.styles.countBadge));
|
|
162
162
|
const inlineActionBar = this._register(new ToolBar(headerContainer, this.contextMenuService, {
|
|
163
163
|
hoverDelegate: this.options.hoverDelegate,
|
|
164
164
|
actionViewItemProvider: createToggleActionViewItemProvider(this.styles.toggle),
|
|
@@ -168,13 +168,13 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
168
168
|
inlineActionBar.getElement().classList.add('quick-input-inline-action-bar');
|
|
169
169
|
const okContainer = dom.append(headerContainer, $('.quick-input-action'));
|
|
170
170
|
const ok = this._register(new Button(okContainer, this.styles.button));
|
|
171
|
-
ok.label = localize(
|
|
171
|
+
ok.label = localize(1830, "OK");
|
|
172
172
|
this._register(ok.onDidClick(e => {
|
|
173
173
|
this.onDidAcceptEmitter.fire();
|
|
174
174
|
}));
|
|
175
175
|
const customButtonContainer = dom.append(headerContainer, $('.quick-input-action'));
|
|
176
176
|
const customButton = this._register(new Button(customButtonContainer, { ...this.styles.button, supportIcons: true }));
|
|
177
|
-
customButton.label = localize(
|
|
177
|
+
customButton.label = localize(1831, "Custom");
|
|
178
178
|
this._register(customButton.onDidClick(e => {
|
|
179
179
|
this.onDidCustomEmitter.fire();
|
|
180
180
|
}));
|
|
@@ -631,7 +631,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
631
631
|
ui.inputBox.toggles = undefined;
|
|
632
632
|
ui.inputBox.actions = undefined;
|
|
633
633
|
const backKeybindingLabel = this.options.backKeybindingLabel();
|
|
634
|
-
backButton.tooltip = backKeybindingLabel ? localize(
|
|
634
|
+
backButton.tooltip = backKeybindingLabel ? localize(1832, "Back ({0})", backKeybindingLabel) : localize(1833, "Back");
|
|
635
635
|
ui.container.style.display = '';
|
|
636
636
|
this.updateLayout();
|
|
637
637
|
this.dndController?.setEnabled(!controller.anchor);
|
|
@@ -206,7 +206,7 @@ class QuickInputItemDelegate {
|
|
|
206
206
|
}
|
|
207
207
|
class QuickInputAccessibilityProvider {
|
|
208
208
|
getWidgetAriaLabel() {
|
|
209
|
-
return localize(
|
|
209
|
+
return localize(1834, "Quick Input");
|
|
210
210
|
}
|
|
211
211
|
getAriaLabel(element) {
|
|
212
212
|
return element.separator?.label
|
|
@@ -107,7 +107,7 @@ export function renderQuickInputDescription(description, container, actionHandle
|
|
|
107
107
|
else {
|
|
108
108
|
let title = node.title;
|
|
109
109
|
if (!title && node.href.startsWith('command:')) {
|
|
110
|
-
title = localize(
|
|
110
|
+
title = localize(1835, "Click to execute command '{0}'", node.href.substring('command:'.length));
|
|
111
111
|
}
|
|
112
112
|
else if (!title) {
|
|
113
113
|
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(1836, "Quick Tree");
|
|
17
17
|
}
|
|
18
18
|
getAriaLabel(element) {
|
|
19
19
|
return element.ariaLabel || [element.label, element.description]
|
|
@@ -10,7 +10,7 @@ import { QuickInput } from '../quickInput.js';
|
|
|
10
10
|
import { getParentNodeState } from './quickInputTree.js';
|
|
11
11
|
// Contains the API
|
|
12
12
|
export class QuickTree extends QuickInput {
|
|
13
|
-
static { this.DEFAULT_ARIA_LABEL = localize(
|
|
13
|
+
static { this.DEFAULT_ARIA_LABEL = localize(1837, "Type to narrow down results."); }
|
|
14
14
|
constructor(ui) {
|
|
15
15
|
super(ui);
|
|
16
16
|
this.type = "quickTree" /* QuickInputType.QuickTree */;
|
|
@@ -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(2091, '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(2092, 'Use the default color.') }
|
|
61
61
|
]
|
|
62
62
|
};
|
|
63
63
|
this.colorReferenceSchema.enum.push(id);
|
|
@@ -6,27 +6,27 @@ 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 strongForeground = registerColor('strongForeground', { dark: '#FFFFFF', light: '#000000', hcDark: '#FFFFFF', hcLight: '#000000' }, nls.localize(
|
|
11
|
-
export const disabledForeground = registerColor('disabledForeground', { dark: '#CCCCCC80', light: '#61616180', hcDark: '#A5A5A5', hcLight: '#7F7F7F' }, nls.localize(
|
|
12
|
-
export const errorForeground = registerColor('errorForeground', { dark: '#F48771', light: '#A1260D', hcDark: '#F48771', hcLight: '#B5200D' }, nls.localize(
|
|
13
|
-
export const descriptionForeground = registerColor('descriptionForeground', { light: '#717171', dark: transparent(foreground, 0.7), hcDark: transparent(foreground, 0.7), hcLight: transparent(foreground, 0.7) }, nls.localize(
|
|
14
|
-
export const iconForeground = registerColor('icon.foreground', { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(
|
|
15
|
-
export const focusBorder = registerColor('focusBorder', { dark: '#007FD4', light: '#0090F1', hcDark: '#F38518', hcLight: '#006BBD' }, nls.localize(
|
|
16
|
-
export const contrastBorder = registerColor('contrastBorder', { light: null, dark: null, hcDark: '#6FC3DF', hcLight: '#0F4A85' }, nls.localize(
|
|
17
|
-
export const activeContrastBorder = registerColor('contrastActiveBorder', { light: null, dark: null, hcDark: focusBorder, hcLight: focusBorder }, nls.localize(
|
|
18
|
-
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(1838, "Overall foreground color. This color is only used if not overridden by a component."));
|
|
10
|
+
export const strongForeground = registerColor('strongForeground', { dark: '#FFFFFF', light: '#000000', hcDark: '#FFFFFF', hcLight: '#000000' }, nls.localize(1839, "Highest-contrast foreground color, intended for text or icons that need maximum legibility across various backgrounds. This color is only used if not overridden by a component."));
|
|
11
|
+
export const disabledForeground = registerColor('disabledForeground', { dark: '#CCCCCC80', light: '#61616180', hcDark: '#A5A5A5', hcLight: '#7F7F7F' }, nls.localize(1840, "Overall foreground for disabled elements. This color is only used if not overridden by a component."));
|
|
12
|
+
export const errorForeground = registerColor('errorForeground', { dark: '#F48771', light: '#A1260D', hcDark: '#F48771', hcLight: '#B5200D' }, nls.localize(1841, "Overall foreground color for error messages. This color is only used if not overridden by a component."));
|
|
13
|
+
export const descriptionForeground = registerColor('descriptionForeground', { light: '#717171', dark: transparent(foreground, 0.7), hcDark: transparent(foreground, 0.7), hcLight: transparent(foreground, 0.7) }, nls.localize(1842, "Foreground color for description text providing additional information, for example for a label."));
|
|
14
|
+
export const iconForeground = registerColor('icon.foreground', { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, nls.localize(1843, "The default color for icons in the workbench."));
|
|
15
|
+
export const focusBorder = registerColor('focusBorder', { dark: '#007FD4', light: '#0090F1', hcDark: '#F38518', hcLight: '#006BBD' }, nls.localize(1844, "Overall border color for focused elements. This color is only used if not overridden by a component."));
|
|
16
|
+
export const contrastBorder = registerColor('contrastBorder', { light: null, dark: null, hcDark: '#6FC3DF', hcLight: '#0F4A85' }, nls.localize(1845, "An extra border around elements to separate them from others for greater contrast."));
|
|
17
|
+
export const activeContrastBorder = registerColor('contrastActiveBorder', { light: null, dark: null, hcDark: focusBorder, hcLight: focusBorder }, nls.localize(1846, "An extra border around active elements to separate them from others for greater contrast."));
|
|
18
|
+
export const selectionBackground = registerColor('selection.background', null, nls.localize(1847, "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."));
|
|
19
19
|
// ------ text link
|
|
20
|
-
export const textLinkForeground = registerColor('textLink.foreground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(
|
|
21
|
-
export const textLinkActiveForeground = registerColor('textLink.activeForeground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(
|
|
22
|
-
export const textSeparatorForeground = registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, nls.localize(
|
|
20
|
+
export const textLinkForeground = registerColor('textLink.foreground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(1848, "Foreground color for links in text."));
|
|
21
|
+
export const textLinkActiveForeground = registerColor('textLink.activeForeground', { light: '#006AB1', dark: '#3794FF', hcDark: '#21A6FF', hcLight: '#0F4A85' }, nls.localize(1849, "Foreground color for links in text when clicked on and on mouse hover."));
|
|
22
|
+
export const textSeparatorForeground = registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, nls.localize(1850, "Color for text separators."));
|
|
23
23
|
// ------ text preformat
|
|
24
|
-
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#FFFFFF', hcLight: '#FFFFFF' }, nls.localize(
|
|
25
|
-
export const textPreformatBackground = registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: null, hcLight: '#09345f' }, nls.localize(
|
|
26
|
-
export const textPreformatBorder = registerColor('textPreformat.border', { light: null, dark: null, hcDark: contrastBorder, hcLight: null }, nls.localize(
|
|
24
|
+
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#FFFFFF', hcLight: '#FFFFFF' }, nls.localize(1851, "Foreground color for preformatted text segments."));
|
|
25
|
+
export const textPreformatBackground = registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: null, hcLight: '#09345f' }, nls.localize(1852, "Background color for preformatted text segments."));
|
|
26
|
+
export const textPreformatBorder = registerColor('textPreformat.border', { light: null, dark: null, hcDark: contrastBorder, hcLight: null }, nls.localize(1853, "Border color for preformatted text segments."));
|
|
27
27
|
// ------ text block quote
|
|
28
|
-
export const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, nls.localize(
|
|
29
|
-
export const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, nls.localize(
|
|
28
|
+
export const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, nls.localize(1854, "Background color for block quotes in text."));
|
|
29
|
+
export const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, nls.localize(1855, "Border color for block quotes in text."));
|
|
30
30
|
// ------ text code block
|
|
31
|
-
export const textCodeBlockBackground = registerColor('textCodeBlock.background', { light: '#dcdcdc66', dark: '#0a0a0a66', hcDark: Color.black, hcLight: '#F2F2F2' }, nls.localize(
|
|
31
|
+
export const textCodeBlockBackground = registerColor('textCodeBlock.background', { light: '#dcdcdc66', dark: '#0a0a0a66', hcDark: Color.black, hcLight: '#F2F2F2' }, nls.localize(1856, "Background color for code blocks in text."));
|
|
32
32
|
//# 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(1857, "The foreground color used in charts."));
|
|
11
|
+
export const chartsLines = registerColor('charts.lines', transparent(foreground, .5), nls.localize(1858, "The color used for horizontal lines in charts."));
|
|
12
|
+
export const chartsRed = registerColor('charts.red', editorErrorForeground, nls.localize(1859, "The red color used in chart visualizations."));
|
|
13
|
+
export const chartsBlue = registerColor('charts.blue', editorInfoForeground, nls.localize(1860, "The blue color used in chart visualizations."));
|
|
14
|
+
export const chartsYellow = registerColor('charts.yellow', editorWarningForeground, nls.localize(1861, "The yellow color used in chart visualizations."));
|
|
15
|
+
export const chartsOrange = registerColor('charts.orange', minimapFindMatch, nls.localize(1862, "The orange color used in chart visualizations."));
|
|
16
|
+
export const chartsGreen = registerColor('charts.green', { dark: '#89D185', light: '#388A34', hcDark: '#89D185', hcLight: '#374e06' }, nls.localize(1863, "The green color used in chart visualizations."));
|
|
17
|
+
export const chartsPurple = registerColor('charts.purple', { dark: '#B180D7', light: '#652D90', hcDark: '#B180D7', hcLight: '#652D90' }, nls.localize(1864, "The purple color used in chart visualizations."));
|
|
18
18
|
//# sourceMappingURL=chartsColors.js.map
|