@codingame/monaco-vscode-quickaccess-service-override 30.0.0 → 31.0.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/index.js +3 -0
- package/package.json +2 -2
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- 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 +10 -10
- 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/index.js
CHANGED
|
@@ -52,6 +52,9 @@ let DelegateQuickInputService = class DelegateQuickInputService {
|
|
|
52
52
|
this.standaloneQuickInputService ?? (this.standaloneQuickInputService = this.instantiationService.createInstance(StandaloneQuickInputService));
|
|
53
53
|
return this.standaloneQuickInputService;
|
|
54
54
|
}
|
|
55
|
+
get alignment() {
|
|
56
|
+
return this.activeService.alignment;
|
|
57
|
+
}
|
|
55
58
|
get currentQuickInput() {
|
|
56
59
|
return this.activeService.currentQuickInput;
|
|
57
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.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": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "31.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -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(2055, "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(2056, "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(2057, "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(2058, "other commands"))
|
|
191
191
|
});
|
|
192
192
|
addOtherSeparator = false;
|
|
193
193
|
}
|
|
@@ -207,7 +207,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
207
207
|
if (addSuggestedSeparator && commandPicks[0]?.type !== "separator") {
|
|
208
208
|
commandPicks.unshift({
|
|
209
209
|
type: "separator",
|
|
210
|
-
label: ( localize(
|
|
210
|
+
label: ( localize(2056, "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(2059, "{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(2060, "Remove from Recently Used"))
|
|
228
228
|
}] : commandPick.buttons;
|
|
229
229
|
return {
|
|
230
230
|
...commandPick,
|
|
@@ -243,7 +243,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
243
243
|
commandPick.args?.length ? await this.commandService.executeCommand(commandPick.commandId, ...commandPick.args) : await this.commandService.executeCommand(commandPick.commandId);
|
|
244
244
|
} catch (error) {
|
|
245
245
|
if (!isCancellationError(error)) {
|
|
246
|
-
this.dialogService.error(( localize(
|
|
246
|
+
this.dialogService.error(( localize(2061, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
},
|
|
@@ -58,7 +58,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
58
58
|
prefix,
|
|
59
59
|
label,
|
|
60
60
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
61
|
-
ariaLabel: ( localize(
|
|
61
|
+
ariaLabel: ( localize(2062, "{0}, {1}", label, helpEntry.description)),
|
|
62
62
|
description: helpEntry.description
|
|
63
63
|
};
|
|
64
64
|
}));
|
|
@@ -122,7 +122,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: "workbench.action.quickOpen",
|
|
125
|
-
title: ( localize2(
|
|
125
|
+
title: ( localize2(2966, "Go to File...")),
|
|
126
126
|
metadata: {
|
|
127
127
|
description: `Quick access`,
|
|
128
128
|
args: [{
|
|
@@ -152,7 +152,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: "workbench.action.quickOpenWithModes",
|
|
155
|
-
title: ( localize(
|
|
155
|
+
title: ( localize(2967, "Quick Open")),
|
|
156
156
|
icon: Codicon.search,
|
|
157
157
|
menu: {
|
|
158
158
|
id: MenuId.CommandCenterCenter,
|
|
@@ -216,17 +216,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
|
|
|
216
216
|
}
|
|
217
217
|
class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
|
|
218
218
|
constructor() {
|
|
219
|
-
super("workbench.action.quickOpenNavigateNext", ( localize2(
|
|
219
|
+
super("workbench.action.quickOpenNavigateNext", ( localize2(2968, "Navigate Next in Quick Open")), true, true);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
|
|
223
223
|
constructor() {
|
|
224
|
-
super("workbench.action.quickOpenNavigatePrevious", ( localize2(
|
|
224
|
+
super("workbench.action.quickOpenNavigatePrevious", ( localize2(2969, "Navigate Previous in Quick Open")), false, true);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
228
228
|
constructor() {
|
|
229
|
-
super("workbench.action.quickOpenSelectNext", ( localize2(
|
|
229
|
+
super("workbench.action.quickOpenSelectNext", ( localize2(2970, "Select Next in Quick Open")), true, false, {
|
|
230
230
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
231
231
|
when: inQuickPickContext,
|
|
232
232
|
primary: 0,
|
|
@@ -238,7 +238,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
|
238
238
|
}
|
|
239
239
|
class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
|
|
240
240
|
constructor() {
|
|
241
|
-
super("workbench.action.quickOpenSelectPrevious", ( localize2(
|
|
241
|
+
super("workbench.action.quickOpenSelectPrevious", ( localize2(2971, "Select Previous in Quick Open")), false, false, {
|
|
242
242
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
243
243
|
when: inQuickPickContext,
|
|
244
244
|
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(7890, "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
|
+
7891,
|
|
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(7892, "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(7893, "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
|
+
7891,
|
|
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(7894, "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(12097, "No matching commands")),
|
|
79
79
|
commandId: ""
|
|
80
80
|
})
|
|
81
81
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -118,7 +118,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
118
118
|
...picks,
|
|
119
119
|
buttons: [{
|
|
120
120
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
121
|
-
tooltip: ( localize(
|
|
121
|
+
tooltip: ( localize(12098, "Configure Keybinding"))
|
|
122
122
|
}],
|
|
123
123
|
trigger: () => {
|
|
124
124
|
this.preferencesService.openGlobalKeybindingSettings(false, {
|
|
@@ -152,12 +152,12 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
additionalPicks.push({
|
|
155
|
-
label: ( localize(
|
|
155
|
+
label: ( localize(12099, "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(12100, "Configure visibility"))
|
|
161
161
|
}],
|
|
162
162
|
trigger: () => {
|
|
163
163
|
void this.preferencesService.openSettings({
|
|
@@ -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(12101, "{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(12102, "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(12103, "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(12104, "Do you want to clear the history of recently used commands?")),
|
|
263
|
+
detail: ( localize(12105, "This action is irreversible!")),
|
|
264
|
+
primaryButton: ( localize(12106, "&&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
|
+
12107,
|
|
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(12108, "Show all Quick Access Providers")),
|
|
26
26
|
commandCenterOrder: 70,
|
|
27
|
-
commandCenterLabel: ( localize(
|
|
27
|
+
commandCenterLabel: ( localize(12109, "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(12110, "Type the name of a view, output channel or terminal to open.")),
|
|
35
35
|
helpEntries: [{
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(12111, "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(12112, "Type the name of a command to run.")),
|
|
45
45
|
helpEntries: [{
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(12113, "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(12114, "&&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(12115, "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(12116, "&&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(12117, "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(12118, "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(12118, "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(12119, "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(12120, "Side Bar")));
|
|
137
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(12121, "Panel")));
|
|
138
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(12122, "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
|
+
12123,
|
|
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(12124, "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(12125, "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(12126, "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(12127, "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(12128, "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
|
+
15075,
|
|
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(15076, "&&Open")),
|
|
99
99
|
run: () => true
|
|
100
100
|
}, {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(15077, "&&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(15078, "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(15079, "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(15080, "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
|
+
15081,
|
|
88
88
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
89
89
|
))
|
|
90
90
|
}
|