@codingame/monaco-vscode-quickaccess-service-override 11.0.0 → 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/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/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": "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
|
}))
|
|
@@ -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(893, "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(894, "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(895, '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(896, '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(897, '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(898, '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(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;
|
|
@@ -15,35 +15,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
15
15
|
ctor: HelpQuickAccessProvider,
|
|
16
16
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
17
17
|
placeholder: ( localize(
|
|
18
|
-
|
|
18
|
+
905,
|
|
19
19
|
"Type '{0}' to get help on the actions you can take from here.",
|
|
20
20
|
HelpQuickAccessProvider.PREFIX
|
|
21
21
|
)),
|
|
22
22
|
helpEntries: [{
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(906, "Show all Quick Access Providers")),
|
|
24
24
|
commandCenterOrder: 70,
|
|
25
|
-
commandCenterLabel: ( localize(
|
|
25
|
+
commandCenterLabel: ( localize(907, 'More'))
|
|
26
26
|
}]
|
|
27
27
|
});
|
|
28
28
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
29
29
|
ctor: ViewQuickAccessProvider,
|
|
30
30
|
prefix: ViewQuickAccessProvider.PREFIX,
|
|
31
31
|
contextKey: 'inViewsPicker',
|
|
32
|
-
placeholder: ( localize(
|
|
33
|
-
helpEntries: [{ description: ( localize(
|
|
32
|
+
placeholder: ( localize(908, "Type the name of a view, output channel or terminal to open.")),
|
|
33
|
+
helpEntries: [{ description: ( localize(909, "Open View")), commandId: OpenViewPickerAction.ID }]
|
|
34
34
|
});
|
|
35
35
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
36
36
|
ctor: CommandsQuickAccessProvider,
|
|
37
37
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
38
38
|
contextKey: 'inCommandsPicker',
|
|
39
|
-
placeholder: ( localize(
|
|
40
|
-
helpEntries: [{ description: ( localize(
|
|
39
|
+
placeholder: ( localize(910, "Type the name of a command to run.")),
|
|
40
|
+
helpEntries: [{ description: ( localize(911, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
|
|
41
41
|
});
|
|
42
42
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
43
43
|
group: '1_open',
|
|
44
44
|
command: {
|
|
45
45
|
id: ShowAllCommandsAction.ID,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(912, "&&Command Palette..."))
|
|
47
47
|
},
|
|
48
48
|
order: 1
|
|
49
49
|
});
|
|
@@ -51,7 +51,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
51
51
|
group: '1_welcome',
|
|
52
52
|
command: {
|
|
53
53
|
id: ShowAllCommandsAction.ID,
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(913, "Show All Commands"))
|
|
55
55
|
},
|
|
56
56
|
order: 2
|
|
57
57
|
});
|
|
@@ -59,7 +59,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
59
59
|
group: '1_open',
|
|
60
60
|
command: {
|
|
61
61
|
id: OpenViewPickerAction.ID,
|
|
62
|
-
title: ( localize(
|
|
62
|
+
title: ( localize(914, "&&Open View..."))
|
|
63
63
|
},
|
|
64
64
|
order: 2
|
|
65
65
|
});
|
|
@@ -67,7 +67,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
67
67
|
group: '5_infile_nav',
|
|
68
68
|
command: {
|
|
69
69
|
id: 'workbench.action.gotoLine',
|
|
70
|
-
title: ( localize(
|
|
70
|
+
title: ( localize(915, "Go to &&Line/Column..."))
|
|
71
71
|
},
|
|
72
72
|
order: 1
|
|
73
73
|
});
|
|
@@ -75,7 +75,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
75
75
|
group: '1_command',
|
|
76
76
|
command: {
|
|
77
77
|
id: ShowAllCommandsAction.ID,
|
|
78
|
-
title: ( localize(
|
|
78
|
+
title: ( localize(916, "Command Palette..."))
|
|
79
79
|
},
|
|
80
80
|
order: 1
|
|
81
81
|
});
|
|
@@ -84,7 +84,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
84
84
|
when: ( (EditorContextKeys.editorSimpleInput.toNegated())),
|
|
85
85
|
command: {
|
|
86
86
|
id: ShowAllCommandsAction.ID,
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(916, "Command Palette...")),
|
|
88
88
|
},
|
|
89
89
|
order: 1
|
|
90
90
|
});
|
|
@@ -24,7 +24,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
24
24
|
constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
|
|
25
25
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
26
26
|
noResultsPick: {
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(4819, "No matching views")),
|
|
28
28
|
containerLabel: ''
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -112,9 +112,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
addPaneComposites(0 , ( localize(
|
|
116
|
-
addPaneComposites(1 , ( localize(
|
|
117
|
-
addPaneComposites(2 , ( localize(
|
|
115
|
+
addPaneComposites(0 , ( localize(4820, "Side Bar")));
|
|
116
|
+
addPaneComposites(1 , ( localize(4821, "Panel")));
|
|
117
|
+
addPaneComposites(2 , ( localize(4822, "Secondary Side Bar")));
|
|
118
118
|
const addPaneCompositeViews = (location) => {
|
|
119
119
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
120
120
|
for (const paneComposite of paneComposites) {
|
|
@@ -129,10 +129,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
129
129
|
addPaneCompositeViews(2 );
|
|
130
130
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
131
131
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
132
|
-
const label = ( localize(
|
|
132
|
+
const label = ( localize(4823, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
133
133
|
viewEntries.push({
|
|
134
134
|
label,
|
|
135
|
-
containerLabel: ( localize(
|
|
135
|
+
containerLabel: ( localize(4824, "Terminal")),
|
|
136
136
|
accept: async () => {
|
|
137
137
|
await this.terminalGroupService.showPanel(true);
|
|
138
138
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -144,7 +144,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
144
144
|
const label = session.name;
|
|
145
145
|
viewEntries.push({
|
|
146
146
|
label,
|
|
147
|
-
containerLabel: ( localize(
|
|
147
|
+
containerLabel: ( localize(4825, "Debug Console")),
|
|
148
148
|
accept: async () => {
|
|
149
149
|
await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
|
|
150
150
|
if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
|
|
@@ -157,7 +157,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
157
157
|
for (const channel of channels) {
|
|
158
158
|
viewEntries.push({
|
|
159
159
|
label: channel.label,
|
|
160
|
-
containerLabel: ( localize(
|
|
160
|
+
containerLabel: ( localize(4826, "Output")),
|
|
161
161
|
accept: () => this.outputService.showChannel(channel.id)
|
|
162
162
|
});
|
|
163
163
|
}
|
|
@@ -186,7 +186,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: OpenViewPickerAction.ID,
|
|
189
|
-
title: ( localize2(
|
|
189
|
+
title: ( localize2(4827, 'Open View')),
|
|
190
190
|
category: Categories.View,
|
|
191
191
|
f1: true
|
|
192
192
|
});
|
|
@@ -205,7 +205,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: QuickAccessViewPickerAction.ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(4828, 'Quick Open View')),
|
|
209
209
|
category: Categories.View,
|
|
210
210
|
f1: false,
|
|
211
211
|
keybinding: {
|
|
@@ -67,25 +67,25 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
67
67
|
const { result } = await this._dialogService.prompt({
|
|
68
68
|
type: Severity$1.Info,
|
|
69
69
|
message: ( localize(
|
|
70
|
-
|
|
70
|
+
4829,
|
|
71
71
|
'Do you want {0} to open the external website?',
|
|
72
72
|
this._productService.nameShort
|
|
73
73
|
)),
|
|
74
74
|
detail: typeof originalResource === 'string' ? originalResource : formattedLink,
|
|
75
75
|
buttons: [
|
|
76
76
|
{
|
|
77
|
-
label: ( localize(
|
|
77
|
+
label: ( localize(4830, '&&Open')),
|
|
78
78
|
run: () => true
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(4831, '&&Copy')),
|
|
82
82
|
run: () => {
|
|
83
83
|
this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( (resourceUri.toString(true))));
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
label: ( localize(
|
|
88
|
+
label: ( localize(4832, 'Configure &&Trusted Domains')),
|
|
89
89
|
run: async () => {
|
|
90
90
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
91
91
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -20,7 +20,7 @@ class OpenUrlAction extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.url.openUrl',
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(917, 'Open URL')),
|
|
24
24
|
category: Categories.Developer,
|
|
25
25
|
f1: true
|
|
26
26
|
});
|
|
@@ -28,7 +28,7 @@ class OpenUrlAction extends Action2 {
|
|
|
28
28
|
async run(accessor) {
|
|
29
29
|
const quickInputService = accessor.get(IQuickInputService);
|
|
30
30
|
const urlService = accessor.get(IURLService);
|
|
31
|
-
return quickInputService.input({ prompt: ( localize(
|
|
31
|
+
return quickInputService.input({ prompt: ( localize(918, "URL to open")) }).then(input => {
|
|
32
32
|
if (input) {
|
|
33
33
|
const uri = ( (URI.parse(input)));
|
|
34
34
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -56,7 +56,7 @@ configurationRegistry.registerConfiguration({
|
|
|
56
56
|
type: 'boolean',
|
|
57
57
|
default: false,
|
|
58
58
|
description: ( localize(
|
|
59
|
-
|
|
59
|
+
919,
|
|
60
60
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
61
61
|
))
|
|
62
62
|
}
|