@codingame/monaco-vscode-quickaccess-service-override 11.0.1 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- 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": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.0.
|
|
30
|
-
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common": "11.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common": "11.0.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -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(4608, "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(4609, "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(4610, "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(4611, "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(4609, "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(4612, "{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(4613, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -48,7 +48,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
48
48
|
prefix,
|
|
49
49
|
label,
|
|
50
50
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
51
|
-
ariaLabel: ( localize(
|
|
51
|
+
ariaLabel: ( localize(4818, "{0}, {1}", label, helpEntry.description)),
|
|
52
52
|
description: helpEntry.description
|
|
53
53
|
};
|
|
54
54
|
}))
|
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(890, '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
|
+
891,
|
|
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(892, "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
export { GotoLineQuickAccessProvider };
|
|
@@ -50,7 +50,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
50
50
|
super({
|
|
51
51
|
showAlias: !Language.isDefaultVariant(),
|
|
52
52
|
noResultsPick: () => ({
|
|
53
|
-
label: ( localize(
|
|
53
|
+
label: ( localize(881, "No matching commands")),
|
|
54
54
|
commandId: ''
|
|
55
55
|
}),
|
|
56
56
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -99,7 +99,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
99
99
|
...picks,
|
|
100
100
|
buttons: [{
|
|
101
101
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
102
|
-
tooltip: ( localize(
|
|
102
|
+
tooltip: ( localize(882, "Configure Keybinding")),
|
|
103
103
|
}],
|
|
104
104
|
trigger: () => {
|
|
105
105
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -137,7 +137,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
137
137
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
138
138
|
if (defaultAgent) {
|
|
139
139
|
additionalPicks.push({
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(883, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
141
141
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
142
142
|
args: [filter]
|
|
143
143
|
});
|
|
@@ -171,7 +171,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
171
171
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
172
172
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
173
173
|
if (category) {
|
|
174
|
-
label = ( localize(
|
|
174
|
+
label = ( localize(884, "{0}: {1}", category, label));
|
|
175
175
|
}
|
|
176
176
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
177
177
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -214,7 +214,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
super({
|
|
216
216
|
id: ShowAllCommandsAction.ID,
|
|
217
|
-
title: ( localize2(
|
|
217
|
+
title: ( localize2(885, 'Show All Commands')),
|
|
218
218
|
keybinding: {
|
|
219
219
|
weight: 200 ,
|
|
220
220
|
when: undefined,
|
|
@@ -232,7 +232,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
232
232
|
constructor() {
|
|
233
233
|
super({
|
|
234
234
|
id: 'workbench.action.clearCommandHistory',
|
|
235
|
-
title: ( localize2(
|
|
235
|
+
title: ( localize2(886, 'Clear Command History')),
|
|
236
236
|
f1: true
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -244,9 +244,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
244
244
|
if (commandHistoryLength > 0) {
|
|
245
245
|
const { confirmed } = await dialogService.confirm({
|
|
246
246
|
type: 'warning',
|
|
247
|
-
message: ( localize(
|
|
248
|
-
detail: ( localize(
|
|
249
|
-
primaryButton: ( localize(
|
|
247
|
+
message: ( localize(887, "Do you want to clear the history of recently used commands?")),
|
|
248
|
+
detail: ( localize(888, "This action is irreversible!")),
|
|
249
|
+
primaryButton: ( localize(889, "&&Clear"))
|
|
250
250
|
});
|
|
251
251
|
if (!confirmed) {
|
|
252
252
|
return;
|