@codingame/monaco-vscode-quickaccess-service-override 37.1.0 → 37.3.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/package.json +2 -2
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +11 -11
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +4 -4
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - quickaccess service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -62,10 +62,10 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
62
62
|
}
|
|
63
63
|
const runTfidf = createSingleCallFunction(() => {
|
|
64
64
|
const tfidf = ( new TfIdfCalculator());
|
|
65
|
-
tfidf.updateDocuments(
|
|
65
|
+
tfidf.updateDocuments(allCommandPicks.map(commandPick => ({
|
|
66
66
|
key: commandPick.commandId,
|
|
67
67
|
textChunks: [this.getTfIdfChunk(commandPick)]
|
|
68
|
-
})))
|
|
68
|
+
})));
|
|
69
69
|
const result = tfidf.calculateScores(filter, token);
|
|
70
70
|
return normalizeTfIdfScores(result).filter(
|
|
71
71
|
score => score.score > AbstractCommandsQuickAccessProvider_1.TFIDF_THRESHOLD
|
|
@@ -165,21 +165,21 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
165
165
|
if (i === 0 && isInHistory) {
|
|
166
166
|
commandPicks.push({
|
|
167
167
|
type: "separator",
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(2431, "recently used"))
|
|
169
169
|
});
|
|
170
170
|
addOtherSeparator = true;
|
|
171
171
|
}
|
|
172
172
|
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
173
173
|
commandPicks.push({
|
|
174
174
|
type: "separator",
|
|
175
|
-
label: ( localize(
|
|
175
|
+
label: ( localize(2432, "similar commands"))
|
|
176
176
|
});
|
|
177
177
|
addSuggestedSeparator = false;
|
|
178
178
|
}
|
|
179
179
|
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !isInHistory && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
180
180
|
commandPicks.push({
|
|
181
181
|
type: "separator",
|
|
182
|
-
label: ( localize(
|
|
182
|
+
label: ( localize(2433, "commonly used"))
|
|
183
183
|
});
|
|
184
184
|
addOtherSeparator = true;
|
|
185
185
|
addCommonlyUsedSeparator = false;
|
|
@@ -187,7 +187,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
187
187
|
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !isInHistory && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
188
188
|
commandPicks.push({
|
|
189
189
|
type: "separator",
|
|
190
|
-
label: ( localize(
|
|
190
|
+
label: ( localize(2434, "other commands"))
|
|
191
191
|
});
|
|
192
192
|
addOtherSeparator = false;
|
|
193
193
|
}
|
|
@@ -203,11 +203,11 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
203
203
|
if (token.isCancellationRequested) {
|
|
204
204
|
return [];
|
|
205
205
|
}
|
|
206
|
-
const commandPicks =
|
|
206
|
+
const commandPicks = additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions));
|
|
207
207
|
if (addSuggestedSeparator && commandPicks[0]?.type !== "separator") {
|
|
208
208
|
commandPicks.unshift({
|
|
209
209
|
type: "separator",
|
|
210
|
-
label: ( localize(
|
|
210
|
+
label: ( localize(2432, "similar commands"))
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
return commandPicks;
|
|
@@ -220,11 +220,11 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
220
220
|
}
|
|
221
221
|
const tooltip = commandPick.tooltip ?? commandPick.commandDescription?.value;
|
|
222
222
|
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
223
|
-
const ariaLabel = keybinding ? ( localize(
|
|
223
|
+
const ariaLabel = keybinding ? ( localize(2435, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) : commandPick.label;
|
|
224
224
|
const existingButtons = commandPick.buttons || [];
|
|
225
225
|
const buttons = isRecentlyUsed ? [...existingButtons, {
|
|
226
226
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
227
|
-
tooltip: ( localize(
|
|
227
|
+
tooltip: ( localize(2436, "Remove from Recently Used"))
|
|
228
228
|
}] : commandPick.buttons;
|
|
229
229
|
return {
|
|
230
230
|
...commandPick,
|
|
@@ -244,7 +244,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
244
244
|
commandPick.args?.length ? await this.commandService.executeCommand(commandPick.commandId, ...commandPick.args) : await this.commandService.executeCommand(commandPick.commandId);
|
|
245
245
|
} catch (error) {
|
|
246
246
|
if (!isCancellationError(error)) {
|
|
247
|
-
this.dialogService.error(( localize(
|
|
247
|
+
this.dialogService.error(( localize(2437, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
},
|
|
@@ -51,17 +51,17 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
51
51
|
return providers;
|
|
52
52
|
}
|
|
53
53
|
createPicks(provider) {
|
|
54
|
-
return
|
|
54
|
+
return provider.helpEntries.map(helpEntry => {
|
|
55
55
|
const prefix = helpEntry.prefix || provider.prefix;
|
|
56
56
|
const label = prefix || "…" ;
|
|
57
57
|
return {
|
|
58
58
|
prefix,
|
|
59
59
|
label,
|
|
60
60
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
61
|
-
ariaLabel: ( localize(
|
|
61
|
+
ariaLabel: ( localize(2438, "{0}, {1}", label, helpEntry.description)),
|
|
62
62
|
description: helpEntry.description
|
|
63
63
|
};
|
|
64
|
-
})
|
|
64
|
+
});
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
HelpQuickAccessProvider = HelpQuickAccessProvider_1 = ( __decorate([( __param(0, IQuickInputService)), ( __param(1, IKeybindingService)), ( __param(2, IContextKeyService))], HelpQuickAccessProvider));
|
|
@@ -123,7 +123,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: "workbench.action.quickOpen",
|
|
126
|
-
title: ( localize2(
|
|
126
|
+
title: ( localize2(5395, "Go to File...")),
|
|
127
127
|
metadata: {
|
|
128
128
|
description: `Quick access`,
|
|
129
129
|
args: [{
|
|
@@ -153,7 +153,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
153
153
|
constructor() {
|
|
154
154
|
super({
|
|
155
155
|
id: "workbench.action.quickOpenWithModes",
|
|
156
|
-
title: ( localize(
|
|
156
|
+
title: ( localize(5396, "Quick Open")),
|
|
157
157
|
icon: Codicon.search,
|
|
158
158
|
menu: {
|
|
159
159
|
id: MenuId.CommandCenterCenter,
|
|
@@ -218,17 +218,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
|
|
|
218
218
|
}
|
|
219
219
|
class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
|
|
220
220
|
constructor() {
|
|
221
|
-
super("workbench.action.quickOpenNavigateNext", ( localize2(
|
|
221
|
+
super("workbench.action.quickOpenNavigateNext", ( localize2(5397, "Navigate Next in Quick Open")), true, true);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
|
|
225
225
|
constructor() {
|
|
226
|
-
super("workbench.action.quickOpenNavigatePrevious", ( localize2(
|
|
226
|
+
super("workbench.action.quickOpenNavigatePrevious", ( localize2(5398, "Navigate Previous in Quick Open")), false, true);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
230
230
|
constructor() {
|
|
231
|
-
super("workbench.action.quickOpenSelectNext", ( localize2(
|
|
231
|
+
super("workbench.action.quickOpenSelectNext", ( localize2(5399, "Select Next in Quick Open")), true, false, {
|
|
232
232
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
233
233
|
when: inQuickPickContext,
|
|
234
234
|
primary: 0,
|
|
@@ -240,7 +240,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
|
240
240
|
}
|
|
241
241
|
class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
|
|
242
242
|
constructor() {
|
|
243
|
-
super("workbench.action.quickOpenSelectPrevious", ( localize2(
|
|
243
|
+
super("workbench.action.quickOpenSelectPrevious", ( localize2(5400, "Select Previous in Quick Open")), false, false, {
|
|
244
244
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
245
245
|
when: inQuickPickContext,
|
|
246
246
|
primary: 0,
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js
CHANGED
|
@@ -53,7 +53,7 @@ class GotoLineAction extends Action2 {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
super({
|
|
55
55
|
id: GotoLineAction.ID,
|
|
56
|
-
title: ( localize2(
|
|
56
|
+
title: ( localize2(13138, "Go to Line/Column...")),
|
|
57
57
|
f1: true,
|
|
58
58
|
keybinding: {
|
|
59
59
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -74,11 +74,11 @@ registerAction2(GotoLineAction);
|
|
|
74
74
|
ctor: GotoLineQuickAccessProvider,
|
|
75
75
|
prefix: AbstractGotoLineQuickAccessProvider.GO_TO_LINE_PREFIX,
|
|
76
76
|
placeholder: ( localize(
|
|
77
|
-
|
|
77
|
+
13139,
|
|
78
78
|
"Type the line number and optional column to go to (e.g. :42:5 for line 42, column 5). Type :: to go to a character offset (e.g. ::1024 for character 1024 from the start of the file). Use negative values to navigate backwards."
|
|
79
79
|
)),
|
|
80
80
|
helpEntries: [{
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(13140, "Go to Line/Column")),
|
|
82
82
|
commandId: GotoLineAction.ID
|
|
83
83
|
}]
|
|
84
84
|
});
|
|
@@ -89,7 +89,7 @@ class GotoOffsetAction extends Action2 {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: GotoOffsetAction.ID,
|
|
92
|
-
title: ( localize2(
|
|
92
|
+
title: ( localize2(13141, "Go to Offset...")),
|
|
93
93
|
f1: true
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -102,11 +102,11 @@ registerAction2(GotoOffsetAction);
|
|
|
102
102
|
ctor: GotoLineQuickAccessProvider,
|
|
103
103
|
prefix: GotoLineQuickAccessProvider.GO_TO_OFFSET_PREFIX,
|
|
104
104
|
placeholder: ( localize(
|
|
105
|
-
|
|
105
|
+
13139,
|
|
106
106
|
"Type the line number and optional column to go to (e.g. :42:5 for line 42, column 5). Type :: to go to a character offset (e.g. ::1024 for character 1024 from the start of the file). Use negative values to navigate backwards."
|
|
107
107
|
)),
|
|
108
108
|
helpEntries: [{
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(13142, "Go to Offset")),
|
|
110
110
|
commandId: GotoOffsetAction.ID
|
|
111
111
|
}]
|
|
112
112
|
});
|
|
@@ -75,7 +75,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
75
75
|
super({
|
|
76
76
|
showAlias: !Language.isDefaultVariant(),
|
|
77
77
|
noResultsPick: () => ({
|
|
78
|
-
label: ( localize(
|
|
78
|
+
label: ( localize(17511, "No matching commands")),
|
|
79
79
|
commandId: ""
|
|
80
80
|
})
|
|
81
81
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -114,11 +114,11 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
114
114
|
if (token.isCancellationRequested) {
|
|
115
115
|
return [];
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return [...this.getCodeEditorCommandPicks(), ...this.getGlobalCommandPicks()].map(picks => ({
|
|
118
118
|
...picks,
|
|
119
119
|
buttons: [{
|
|
120
120
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
121
|
-
tooltip: ( localize(
|
|
121
|
+
tooltip: ( localize(17512, "Configure Keybinding"))
|
|
122
122
|
}],
|
|
123
123
|
trigger: () => {
|
|
124
124
|
this.preferencesService.openGlobalKeybindingSettings(false, {
|
|
@@ -126,7 +126,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
126
126
|
});
|
|
127
127
|
return TriggerAction.CLOSE_PICKER;
|
|
128
128
|
}
|
|
129
|
-
}))
|
|
129
|
+
}));
|
|
130
130
|
}
|
|
131
131
|
hasAdditionalCommandPicks(filter, token) {
|
|
132
132
|
if (!this.useAiRelatedInfo || token.isCancellationRequested || filter === "" || !this.aiRelatedInformationService.isEnabled()) {
|
|
@@ -152,12 +152,12 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
additionalPicks.push({
|
|
155
|
-
label: ( localize(
|
|
155
|
+
label: ( localize(17513, "Ask in Chat: {0}", filter)),
|
|
156
156
|
commandId: this.configuration.experimental.askChatLocation === "quickChat" ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
157
157
|
args: [filter],
|
|
158
158
|
buttons: [{
|
|
159
159
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
160
|
-
tooltip: ( localize(
|
|
160
|
+
tooltip: ( localize(17514, "Configure visibility"))
|
|
161
161
|
}],
|
|
162
162
|
trigger: () => {
|
|
163
163
|
void this.preferencesService.openSettings({
|
|
@@ -174,7 +174,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
174
174
|
async getRelatedInformationPicks(allPicks, picksSoFar, filter, token) {
|
|
175
175
|
const relatedInformation = await this.aiRelatedInformationService.getRelatedInformation(filter, [RelatedInformationType.CommandInformation], token);
|
|
176
176
|
relatedInformation.sort((a, b) => b.weight - a.weight);
|
|
177
|
-
const setOfPicksSoFar = ( new Set(
|
|
177
|
+
const setOfPicksSoFar = ( new Set(picksSoFar.map(p => p.commandId)));
|
|
178
178
|
const additionalPicks = ( new Array());
|
|
179
179
|
for (const info of relatedInformation) {
|
|
180
180
|
if (additionalPicks.length === CommandsQuickAccessProvider_1.AI_RELATED_INFORMATION_MAX_PICKS) {
|
|
@@ -196,7 +196,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
196
196
|
let label = (typeof action.item.title === "string" ? action.item.title : action.item.title.value) || action.item.id;
|
|
197
197
|
const category = typeof action.item.category === "string" ? action.item.category : action.item.category?.value;
|
|
198
198
|
if (category) {
|
|
199
|
-
label = ( localize(
|
|
199
|
+
label = ( localize(17515, "{0}: {1}", category, label));
|
|
200
200
|
}
|
|
201
201
|
const aliasLabel = typeof action.item.title !== "string" ? action.item.title.original : undefined;
|
|
202
202
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== "string") ? action.item.category.original : undefined;
|
|
@@ -227,7 +227,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: ShowAllCommandsAction.ID,
|
|
230
|
-
title: ( localize2(
|
|
230
|
+
title: ( localize2(17516, "Show All Commands")),
|
|
231
231
|
keybinding: {
|
|
232
232
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
233
233
|
when: undefined,
|
|
@@ -245,7 +245,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super({
|
|
247
247
|
id: "workbench.action.clearCommandHistory",
|
|
248
|
-
title: ( localize2(
|
|
248
|
+
title: ( localize2(17517, "Clear Command History")),
|
|
249
249
|
f1: true
|
|
250
250
|
});
|
|
251
251
|
}
|
|
@@ -259,9 +259,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
259
259
|
confirmed
|
|
260
260
|
} = await dialogService.confirm({
|
|
261
261
|
type: "warning",
|
|
262
|
-
message: ( localize(
|
|
263
|
-
detail: ( localize(
|
|
264
|
-
primaryButton: ( localize(
|
|
262
|
+
message: ( localize(17518, "Do you want to clear the history of recently used commands?")),
|
|
263
|
+
detail: ( localize(17519, "This action is irreversible!")),
|
|
264
|
+
primaryButton: ( localize(17520, "&&Clear"))
|
|
265
265
|
});
|
|
266
266
|
if (!confirmed) {
|
|
267
267
|
return;
|
|
@@ -17,23 +17,23 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
17
17
|
ctor: HelpQuickAccessProvider,
|
|
18
18
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
19
19
|
placeholder: ( localize(
|
|
20
|
-
|
|
20
|
+
17521,
|
|
21
21
|
"Type '{0}' to get help on the actions you can take from here.",
|
|
22
22
|
HelpQuickAccessProvider.PREFIX
|
|
23
23
|
)),
|
|
24
24
|
helpEntries: [{
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(17522, "Show all Quick Access Providers")),
|
|
26
26
|
commandCenterOrder: 70,
|
|
27
|
-
commandCenterLabel: ( localize(
|
|
27
|
+
commandCenterLabel: ( localize(17523, "More"))
|
|
28
28
|
}]
|
|
29
29
|
});
|
|
30
30
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
31
31
|
ctor: ViewQuickAccessProvider,
|
|
32
32
|
prefix: ViewQuickAccessProvider.PREFIX,
|
|
33
33
|
contextKey: "inViewsPicker",
|
|
34
|
-
placeholder: ( localize(
|
|
34
|
+
placeholder: ( localize(17524, "Type the name of a view, output channel or terminal to open.")),
|
|
35
35
|
helpEntries: [{
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(17525, "Open View")),
|
|
37
37
|
commandId: OpenViewPickerAction.ID
|
|
38
38
|
}]
|
|
39
39
|
});
|
|
@@ -41,9 +41,9 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
41
41
|
ctor: CommandsQuickAccessProvider,
|
|
42
42
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
43
43
|
contextKey: "inCommandsPicker",
|
|
44
|
-
placeholder: ( localize(
|
|
44
|
+
placeholder: ( localize(17526, "Type the name of a command to run.")),
|
|
45
45
|
helpEntries: [{
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(17527, "Show and Run Commands")),
|
|
47
47
|
commandId: ShowAllCommandsAction.ID,
|
|
48
48
|
commandCenterOrder: 20
|
|
49
49
|
}]
|
|
@@ -52,7 +52,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
52
52
|
group: "1_open",
|
|
53
53
|
command: {
|
|
54
54
|
id: ShowAllCommandsAction.ID,
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(17528, "&&Command Palette..."))
|
|
56
56
|
},
|
|
57
57
|
order: 1
|
|
58
58
|
});
|
|
@@ -60,7 +60,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
60
60
|
group: "1_welcome",
|
|
61
61
|
command: {
|
|
62
62
|
id: ShowAllCommandsAction.ID,
|
|
63
|
-
title: ( localize(
|
|
63
|
+
title: ( localize(17529, "Show All Commands"))
|
|
64
64
|
},
|
|
65
65
|
order: 2
|
|
66
66
|
});
|
|
@@ -68,7 +68,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
68
68
|
group: "1_open",
|
|
69
69
|
command: {
|
|
70
70
|
id: OpenViewPickerAction.ID,
|
|
71
|
-
title: ( localize(
|
|
71
|
+
title: ( localize(17530, "&&Open View..."))
|
|
72
72
|
},
|
|
73
73
|
order: 2
|
|
74
74
|
});
|
|
@@ -76,7 +76,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
76
76
|
group: "5_infile_nav",
|
|
77
77
|
command: {
|
|
78
78
|
id: "workbench.action.gotoLine",
|
|
79
|
-
title: ( localize(
|
|
79
|
+
title: ( localize(17531, "Go to &&Line/Column..."))
|
|
80
80
|
},
|
|
81
81
|
order: 1
|
|
82
82
|
});
|
|
@@ -84,7 +84,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
84
84
|
group: "1_command",
|
|
85
85
|
command: {
|
|
86
86
|
id: ShowAllCommandsAction.ID,
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(17532, "Command Palette..."))
|
|
88
88
|
},
|
|
89
89
|
order: 1
|
|
90
90
|
});
|
|
@@ -93,7 +93,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
93
93
|
when: ( EditorContextKeys.editorSimpleInput.toNegated()),
|
|
94
94
|
command: {
|
|
95
95
|
id: ShowAllCommandsAction.ID,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(17532, "Command Palette..."))
|
|
97
97
|
},
|
|
98
98
|
order: 1
|
|
99
99
|
});
|
|
@@ -41,7 +41,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
41
41
|
) {
|
|
42
42
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
43
43
|
noResultsPick: {
|
|
44
|
-
label: ( localize(
|
|
44
|
+
label: ( localize(17533, "No matching views")),
|
|
45
45
|
containerLabel: ""
|
|
46
46
|
}
|
|
47
47
|
});
|
|
@@ -133,9 +133,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
-
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(
|
|
137
|
-
addPaneComposites(ViewContainerLocation.Panel, ( localize(
|
|
138
|
-
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(
|
|
136
|
+
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(17534, "Side Bar")));
|
|
137
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(17535, "Panel")));
|
|
138
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(17536, "Secondary Side Bar")));
|
|
139
139
|
const addPaneCompositeViews = location => {
|
|
140
140
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
141
141
|
for (const paneComposite of paneComposites) {
|
|
@@ -151,14 +151,14 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
151
151
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
152
152
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
153
153
|
const label = ( localize(
|
|
154
|
-
|
|
154
|
+
17537,
|
|
155
155
|
"{0}: {1}",
|
|
156
156
|
`${groupIndex + 1}.${terminalIndex + 1}`,
|
|
157
157
|
terminal.title
|
|
158
158
|
));
|
|
159
159
|
viewEntries.push({
|
|
160
160
|
label,
|
|
161
|
-
containerLabel: ( localize(
|
|
161
|
+
containerLabel: ( localize(17538, "Terminal")),
|
|
162
162
|
accept: async () => {
|
|
163
163
|
await this.terminalGroupService.showPanel(true);
|
|
164
164
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -170,7 +170,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
170
170
|
const label = session.name;
|
|
171
171
|
viewEntries.push({
|
|
172
172
|
label,
|
|
173
|
-
containerLabel: ( localize(
|
|
173
|
+
containerLabel: ( localize(17539, "Debug Console")),
|
|
174
174
|
accept: async () => {
|
|
175
175
|
await this.debugService.focusStackFrame(undefined, undefined, session, {
|
|
176
176
|
explicit: true
|
|
@@ -185,7 +185,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
185
185
|
for (const channel of channels) {
|
|
186
186
|
viewEntries.push({
|
|
187
187
|
label: channel.label,
|
|
188
|
-
containerLabel: ( localize(
|
|
188
|
+
containerLabel: ( localize(17540, "Output")),
|
|
189
189
|
accept: () => this.outputService.showChannel(channel.id)
|
|
190
190
|
});
|
|
191
191
|
}
|
|
@@ -207,7 +207,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
207
207
|
constructor() {
|
|
208
208
|
super({
|
|
209
209
|
id: OpenViewPickerAction.ID,
|
|
210
|
-
title: ( localize2(
|
|
210
|
+
title: ( localize2(17541, "Open View")),
|
|
211
211
|
category: Categories.View,
|
|
212
212
|
f1: true
|
|
213
213
|
});
|
|
@@ -234,7 +234,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
234
234
|
constructor() {
|
|
235
235
|
super({
|
|
236
236
|
id: QuickAccessViewPickerAction.ID,
|
|
237
|
-
title: ( localize2(
|
|
237
|
+
title: ( localize2(17542, "Quick Open View")),
|
|
238
238
|
category: Categories.View,
|
|
239
239
|
f1: false,
|
|
240
240
|
keybinding: {
|
|
@@ -89,22 +89,22 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
89
89
|
} = await this._dialogService.prompt({
|
|
90
90
|
type: Severity.Info,
|
|
91
91
|
message: ( localize(
|
|
92
|
-
|
|
92
|
+
20615,
|
|
93
93
|
"Do you want {0} to open the external website?",
|
|
94
94
|
this._productService.nameShort
|
|
95
95
|
)),
|
|
96
96
|
detail: typeof originalResource === "string" ? originalResource : formattedLink,
|
|
97
97
|
buttons: [{
|
|
98
|
-
label: ( localize(
|
|
98
|
+
label: ( localize(20616, "&&Open")),
|
|
99
99
|
run: () => true
|
|
100
100
|
}, {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(20617, "&&Copy")),
|
|
102
102
|
run: () => {
|
|
103
103
|
this._clipboardService.writeText(typeof originalResource === "string" ? originalResource : ( resourceUri.toString(true)));
|
|
104
104
|
return false;
|
|
105
105
|
}
|
|
106
106
|
}, {
|
|
107
|
-
label: ( localize(
|
|
107
|
+
label: ( localize(20618, "Configure &&Trusted Domains")),
|
|
108
108
|
run: async () => {
|
|
109
109
|
const {
|
|
110
110
|
trustedDomains
|
|
@@ -27,7 +27,7 @@ class OpenUrlAction extends Action2 {
|
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: "workbench.action.url.openUrl",
|
|
30
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(20619, "Open URL")),
|
|
31
31
|
category: Categories.Developer,
|
|
32
32
|
f1: true
|
|
33
33
|
});
|
|
@@ -38,7 +38,7 @@ class OpenUrlAction extends Action2 {
|
|
|
38
38
|
const storageService = accessor.get(IStorageService);
|
|
39
39
|
const value = storageService.get(OpenUrlAction.STORAGE_KEY, StorageScope.WORKSPACE, "");
|
|
40
40
|
return quickInputService.input({
|
|
41
|
-
prompt: ( localize(
|
|
41
|
+
prompt: ( localize(20620, "URL to open")),
|
|
42
42
|
value
|
|
43
43
|
}).then(input => {
|
|
44
44
|
if (input) {
|
|
@@ -84,7 +84,7 @@ configurationRegistry.registerConfiguration({
|
|
|
84
84
|
type: "boolean",
|
|
85
85
|
default: false,
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
20621,
|
|
88
88
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
89
89
|
))
|
|
90
90
|
}
|