@codingame/monaco-vscode-quickaccess-service-override 10.1.3 → 10.1.4
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/package.json +2 -2
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -134,20 +134,20 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
134
134
|
for (let i = 0; i < filteredCommandPicks.length; i++) {
|
|
135
135
|
const commandPick = filteredCommandPicks[i];
|
|
136
136
|
if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
|
|
137
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
137
|
+
commandPicks.push({ type: 'separator', label: ( localize(4611, "recently used")) });
|
|
138
138
|
addOtherSeparator = true;
|
|
139
139
|
}
|
|
140
140
|
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
141
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
141
|
+
commandPicks.push({ type: 'separator', label: ( localize(4612, "similar commands")) });
|
|
142
142
|
addSuggestedSeparator = false;
|
|
143
143
|
}
|
|
144
144
|
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
145
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
145
|
+
commandPicks.push({ type: 'separator', label: ( localize(4613, "commonly used")) });
|
|
146
146
|
addOtherSeparator = true;
|
|
147
147
|
addCommonlyUsedSeparator = false;
|
|
148
148
|
}
|
|
149
149
|
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
150
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
150
|
+
commandPicks.push({ type: 'separator', label: ( localize(4614, "other commands")) });
|
|
151
151
|
addOtherSeparator = false;
|
|
152
152
|
}
|
|
153
153
|
commandPicks.push(this.toCommandPick(commandPick, runOptions));
|
|
@@ -164,7 +164,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
164
164
|
}
|
|
165
165
|
const commandPicks = ( (additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions))));
|
|
166
166
|
if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
|
|
167
|
-
commandPicks.unshift({ type: 'separator', label: ( localize(
|
|
167
|
+
commandPicks.unshift({ type: 'separator', label: ( localize(4612, "similar commands")) });
|
|
168
168
|
}
|
|
169
169
|
return commandPicks;
|
|
170
170
|
})()
|
|
@@ -176,7 +176,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
176
176
|
}
|
|
177
177
|
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
178
178
|
const ariaLabel = keybinding ?
|
|
179
|
-
( localize(
|
|
179
|
+
( localize(4615, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
|
|
180
180
|
commandPick.label;
|
|
181
181
|
return {
|
|
182
182
|
...commandPick,
|
|
@@ -196,7 +196,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
196
196
|
}
|
|
197
197
|
catch (error) {
|
|
198
198
|
if (!isCancellationError(error)) {
|
|
199
|
-
this.dialogService.error(( localize(
|
|
199
|
+
this.dialogService.error(( localize(4616, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -103,7 +103,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: 'workbench.action.quickOpen',
|
|
106
|
-
title: ( localize2(
|
|
106
|
+
title: ( localize2(897, "Go to File...")),
|
|
107
107
|
metadata: {
|
|
108
108
|
description: `Quick access`,
|
|
109
109
|
args: [{
|
|
@@ -131,7 +131,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
id: 'workbench.action.quickOpenWithModes',
|
|
134
|
-
title: ( localize(
|
|
134
|
+
title: ( localize(898, "Quick Open")),
|
|
135
135
|
icon: Codicon.search,
|
|
136
136
|
menu: {
|
|
137
137
|
id: MenuId.CommandCenterCenter,
|
|
@@ -172,17 +172,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
|
|
|
172
172
|
}
|
|
173
173
|
class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
|
|
174
174
|
constructor() {
|
|
175
|
-
super('workbench.action.quickOpenNavigateNext', ( localize2(
|
|
175
|
+
super('workbench.action.quickOpenNavigateNext', ( localize2(899, 'Navigate Next in Quick Open')), true, true);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
|
|
179
179
|
constructor() {
|
|
180
|
-
super('workbench.action.quickOpenNavigatePrevious', ( localize2(
|
|
180
|
+
super('workbench.action.quickOpenNavigatePrevious', ( localize2(900, 'Navigate Previous in Quick Open')), false, true);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
184
184
|
constructor() {
|
|
185
|
-
super('workbench.action.quickOpenSelectNext', ( localize2(
|
|
185
|
+
super('workbench.action.quickOpenSelectNext', ( localize2(901, 'Select Next in Quick Open')), true, false, {
|
|
186
186
|
weight: 200 + 50,
|
|
187
187
|
when: inQuickPickContext,
|
|
188
188
|
primary: 0,
|
|
@@ -192,7 +192,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
|
192
192
|
}
|
|
193
193
|
class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
|
|
194
194
|
constructor() {
|
|
195
|
-
super('workbench.action.quickOpenSelectPrevious', ( localize2(
|
|
195
|
+
super('workbench.action.quickOpenSelectPrevious', ( localize2(902, 'Select Previous in Quick Open')), false, false, {
|
|
196
196
|
weight: 200 + 50,
|
|
197
197
|
when: inQuickPickContext,
|
|
198
198
|
primary: 0,
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js
CHANGED
|
@@ -51,7 +51,7 @@ class GotoLineAction extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: GotoLineAction.ID,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(885, 'Go to Line/Column...')),
|
|
55
55
|
f1: true,
|
|
56
56
|
keybinding: {
|
|
57
57
|
weight: 200 ,
|
|
@@ -70,10 +70,10 @@ registerAction2(GotoLineAction);
|
|
|
70
70
|
ctor: GotoLineQuickAccessProvider,
|
|
71
71
|
prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
72
72
|
placeholder: ( localize(
|
|
73
|
-
|
|
73
|
+
886,
|
|
74
74
|
"Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
|
|
75
75
|
)),
|
|
76
|
-
helpEntries: [{ description: ( localize(
|
|
76
|
+
helpEntries: [{ description: ( localize(887, "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
export { GotoLineQuickAccessProvider };
|
|
@@ -49,7 +49,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
49
49
|
super({
|
|
50
50
|
showAlias: !Language.isDefaultVariant(),
|
|
51
51
|
noResultsPick: () => ({
|
|
52
|
-
label: ( localize(
|
|
52
|
+
label: ( localize(888, "No matching commands")),
|
|
53
53
|
commandId: ''
|
|
54
54
|
}),
|
|
55
55
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -98,7 +98,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
98
98
|
...picks,
|
|
99
99
|
buttons: [{
|
|
100
100
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
101
|
-
tooltip: ( localize(
|
|
101
|
+
tooltip: ( localize(889, "Configure Keybinding")),
|
|
102
102
|
}],
|
|
103
103
|
trigger: () => {
|
|
104
104
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -136,7 +136,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
136
136
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
137
137
|
if (defaultAgent) {
|
|
138
138
|
additionalPicks.push({
|
|
139
|
-
label: ( localize(
|
|
139
|
+
label: ( localize(890, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
140
140
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
141
141
|
args: [filter]
|
|
142
142
|
});
|
|
@@ -170,7 +170,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
170
170
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
171
171
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
172
172
|
if (category) {
|
|
173
|
-
label = ( localize(
|
|
173
|
+
label = ( localize(891, "{0}: {1}", category, label));
|
|
174
174
|
}
|
|
175
175
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
176
176
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -213,7 +213,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: ShowAllCommandsAction.ID,
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(892, 'Show All Commands')),
|
|
217
217
|
keybinding: {
|
|
218
218
|
weight: 200 ,
|
|
219
219
|
when: undefined,
|
|
@@ -231,7 +231,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
231
231
|
constructor() {
|
|
232
232
|
super({
|
|
233
233
|
id: 'workbench.action.clearCommandHistory',
|
|
234
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(893, 'Clear Command History')),
|
|
235
235
|
f1: true
|
|
236
236
|
});
|
|
237
237
|
}
|
|
@@ -243,9 +243,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
243
243
|
if (commandHistoryLength > 0) {
|
|
244
244
|
const { confirmed } = await dialogService.confirm({
|
|
245
245
|
type: 'warning',
|
|
246
|
-
message: ( localize(
|
|
247
|
-
detail: ( localize(
|
|
248
|
-
primaryButton: ( localize(
|
|
246
|
+
message: ( localize(894, "Do you want to clear the history of recently used commands?")),
|
|
247
|
+
detail: ( localize(895, "This action is irreversible!")),
|
|
248
|
+
primaryButton: ( localize(896, "&&Clear"))
|
|
249
249
|
});
|
|
250
250
|
if (!confirmed) {
|
|
251
251
|
return;
|