@codingame/monaco-vscode-quickaccess-service-override 9.0.0 → 9.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 +2 -2
- 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": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
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@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
|
|
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(4579, "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(4580, "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(4581, "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(4582, "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(4580, "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(4583, "{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(4584, "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(4780, "{0}, {1}", label, helpEntry.description)),
|
|
52
52
|
description: helpEntry.description
|
|
53
53
|
};
|
|
54
54
|
}))
|
|
@@ -104,7 +104,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: 'workbench.action.quickOpen',
|
|
107
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(891, "Go to File...")),
|
|
108
108
|
metadata: {
|
|
109
109
|
description: `Quick access`,
|
|
110
110
|
args: [{
|
|
@@ -132,7 +132,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: 'workbench.action.quickOpenWithModes',
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(892, "Quick Open")),
|
|
136
136
|
icon: Codicon.search,
|
|
137
137
|
menu: {
|
|
138
138
|
id: MenuId.CommandCenterCenter,
|
|
@@ -173,17 +173,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
|
|
|
173
173
|
}
|
|
174
174
|
class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
|
|
175
175
|
constructor() {
|
|
176
|
-
super('workbench.action.quickOpenNavigateNext', ( localize2(
|
|
176
|
+
super('workbench.action.quickOpenNavigateNext', ( localize2(893, 'Navigate Next in Quick Open')), true, true);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
|
|
180
180
|
constructor() {
|
|
181
|
-
super('workbench.action.quickOpenNavigatePrevious', ( localize2(
|
|
181
|
+
super('workbench.action.quickOpenNavigatePrevious', ( localize2(894, 'Navigate Previous in Quick Open')), false, true);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
185
185
|
constructor() {
|
|
186
|
-
super('workbench.action.quickOpenSelectNext', ( localize2(
|
|
186
|
+
super('workbench.action.quickOpenSelectNext', ( localize2(895, 'Select Next in Quick Open')), true, false, {
|
|
187
187
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
188
188
|
when: inQuickPickContext,
|
|
189
189
|
primary: 0,
|
|
@@ -193,7 +193,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
|
193
193
|
}
|
|
194
194
|
class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
|
|
195
195
|
constructor() {
|
|
196
|
-
super('workbench.action.quickOpenSelectPrevious', ( localize2(
|
|
196
|
+
super('workbench.action.quickOpenSelectPrevious', ( localize2(896, 'Select Previous in Quick Open')), false, false, {
|
|
197
197
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
198
198
|
when: inQuickPickContext,
|
|
199
199
|
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(882, 'Go to Line/Column...')),
|
|
57
57
|
f1: true,
|
|
58
58
|
keybinding: {
|
|
59
59
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -72,10 +72,10 @@ registerAction2(GotoLineAction);
|
|
|
72
72
|
ctor: GotoLineQuickAccessProvider,
|
|
73
73
|
prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
74
74
|
placeholder: ( localize(
|
|
75
|
-
|
|
75
|
+
883,
|
|
76
76
|
"Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
|
|
77
77
|
)),
|
|
78
|
-
helpEntries: [{ description: ( localize(
|
|
78
|
+
helpEntries: [{ description: ( localize(884, "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
export { GotoLineQuickAccessProvider };
|
|
@@ -53,7 +53,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
53
53
|
super({
|
|
54
54
|
showAlias: !Language.isDefaultVariant(),
|
|
55
55
|
noResultsPick: () => ({
|
|
56
|
-
label: ( localize(
|
|
56
|
+
label: ( localize(873, "No matching commands")),
|
|
57
57
|
commandId: ''
|
|
58
58
|
}),
|
|
59
59
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -102,7 +102,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
102
102
|
...picks,
|
|
103
103
|
buttons: [{
|
|
104
104
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
105
|
-
tooltip: ( localize(
|
|
105
|
+
tooltip: ( localize(874, "Configure Keybinding")),
|
|
106
106
|
}],
|
|
107
107
|
trigger: () => {
|
|
108
108
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -140,7 +140,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
140
140
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
141
141
|
if (defaultAgent) {
|
|
142
142
|
additionalPicks.push({
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(875, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
144
144
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
145
145
|
args: [filter]
|
|
146
146
|
});
|
|
@@ -174,7 +174,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
174
174
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
175
175
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
176
176
|
if (category) {
|
|
177
|
-
label = ( localize(
|
|
177
|
+
label = ( localize(876, "{0}: {1}", category, label));
|
|
178
178
|
}
|
|
179
179
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
180
180
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -217,7 +217,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
217
217
|
constructor() {
|
|
218
218
|
super({
|
|
219
219
|
id: ShowAllCommandsAction.ID,
|
|
220
|
-
title: ( localize2(
|
|
220
|
+
title: ( localize2(877, 'Show All Commands')),
|
|
221
221
|
keybinding: {
|
|
222
222
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
223
223
|
when: undefined,
|
|
@@ -235,7 +235,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
235
235
|
constructor() {
|
|
236
236
|
super({
|
|
237
237
|
id: 'workbench.action.clearCommandHistory',
|
|
238
|
-
title: ( localize2(
|
|
238
|
+
title: ( localize2(878, 'Clear Command History')),
|
|
239
239
|
f1: true
|
|
240
240
|
});
|
|
241
241
|
}
|
|
@@ -247,9 +247,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
247
247
|
if (commandHistoryLength > 0) {
|
|
248
248
|
const { confirmed } = await dialogService.confirm({
|
|
249
249
|
type: 'warning',
|
|
250
|
-
message: ( localize(
|
|
251
|
-
detail: ( localize(
|
|
252
|
-
primaryButton: ( localize(
|
|
250
|
+
message: ( localize(879, "Do you want to clear the history of recently used commands?")),
|
|
251
|
+
detail: ( localize(880, "This action is irreversible!")),
|
|
252
|
+
primaryButton: ( localize(881, "&&Clear"))
|
|
253
253
|
});
|
|
254
254
|
if (!confirmed) {
|
|
255
255
|
return;
|
|
@@ -16,35 +16,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
16
16
|
ctor: HelpQuickAccessProvider,
|
|
17
17
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
18
18
|
placeholder: ( localize(
|
|
19
|
-
|
|
19
|
+
897,
|
|
20
20
|
"Type '{0}' to get help on the actions you can take from here.",
|
|
21
21
|
HelpQuickAccessProvider.PREFIX
|
|
22
22
|
)),
|
|
23
23
|
helpEntries: [{
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(898, "Show all Quick Access Providers")),
|
|
25
25
|
commandCenterOrder: 70,
|
|
26
|
-
commandCenterLabel: ( localize(
|
|
26
|
+
commandCenterLabel: ( localize(899, 'More'))
|
|
27
27
|
}]
|
|
28
28
|
});
|
|
29
29
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
30
30
|
ctor: ViewQuickAccessProvider,
|
|
31
31
|
prefix: ViewQuickAccessProvider.PREFIX,
|
|
32
32
|
contextKey: 'inViewsPicker',
|
|
33
|
-
placeholder: ( localize(
|
|
34
|
-
helpEntries: [{ description: ( localize(
|
|
33
|
+
placeholder: ( localize(900, "Type the name of a view, output channel or terminal to open.")),
|
|
34
|
+
helpEntries: [{ description: ( localize(901, "Open View")), commandId: OpenViewPickerAction.ID }]
|
|
35
35
|
});
|
|
36
36
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
37
37
|
ctor: CommandsQuickAccessProvider,
|
|
38
38
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
39
39
|
contextKey: 'inCommandsPicker',
|
|
40
|
-
placeholder: ( localize(
|
|
41
|
-
helpEntries: [{ description: ( localize(
|
|
40
|
+
placeholder: ( localize(902, "Type the name of a command to run.")),
|
|
41
|
+
helpEntries: [{ description: ( localize(903, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
|
|
42
42
|
});
|
|
43
43
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
44
44
|
group: '1_open',
|
|
45
45
|
command: {
|
|
46
46
|
id: ShowAllCommandsAction.ID,
|
|
47
|
-
title: ( localize(
|
|
47
|
+
title: ( localize(904, "&&Command Palette..."))
|
|
48
48
|
},
|
|
49
49
|
order: 1
|
|
50
50
|
});
|
|
@@ -52,7 +52,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
52
52
|
group: '1_welcome',
|
|
53
53
|
command: {
|
|
54
54
|
id: ShowAllCommandsAction.ID,
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(905, "Show All Commands"))
|
|
56
56
|
},
|
|
57
57
|
order: 2
|
|
58
58
|
});
|
|
@@ -60,7 +60,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
60
60
|
group: '1_open',
|
|
61
61
|
command: {
|
|
62
62
|
id: OpenViewPickerAction.ID,
|
|
63
|
-
title: ( localize(
|
|
63
|
+
title: ( localize(906, "&&Open View..."))
|
|
64
64
|
},
|
|
65
65
|
order: 2
|
|
66
66
|
});
|
|
@@ -68,7 +68,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
68
68
|
group: '5_infile_nav',
|
|
69
69
|
command: {
|
|
70
70
|
id: 'workbench.action.gotoLine',
|
|
71
|
-
title: ( localize(
|
|
71
|
+
title: ( localize(907, "Go to &&Line/Column..."))
|
|
72
72
|
},
|
|
73
73
|
order: 1
|
|
74
74
|
});
|
|
@@ -76,7 +76,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
76
76
|
group: '1_command',
|
|
77
77
|
command: {
|
|
78
78
|
id: ShowAllCommandsAction.ID,
|
|
79
|
-
title: ( localize(
|
|
79
|
+
title: ( localize(908, "Command Palette..."))
|
|
80
80
|
},
|
|
81
81
|
order: 1
|
|
82
82
|
});
|
|
@@ -85,7 +85,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
85
85
|
when: ( (EditorContextKeys.editorSimpleInput.toNegated())),
|
|
86
86
|
command: {
|
|
87
87
|
id: ShowAllCommandsAction.ID,
|
|
88
|
-
title: ( localize(
|
|
88
|
+
title: ( localize(908, "Command Palette...")),
|
|
89
89
|
},
|
|
90
90
|
order: 1
|
|
91
91
|
});
|
|
@@ -27,7 +27,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
27
27
|
constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
|
|
28
28
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
29
29
|
noResultsPick: {
|
|
30
|
-
label: ( localize(
|
|
30
|
+
label: ( localize(4781, "No matching views")),
|
|
31
31
|
containerLabel: ''
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -115,9 +115,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(
|
|
119
|
-
addPaneComposites(ViewContainerLocation.Panel, ( localize(
|
|
120
|
-
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(
|
|
118
|
+
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(4782, "Side Bar")));
|
|
119
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(4783, "Panel")));
|
|
120
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(4784, "Secondary Side Bar")));
|
|
121
121
|
const addPaneCompositeViews = (location) => {
|
|
122
122
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
123
123
|
for (const paneComposite of paneComposites) {
|
|
@@ -132,10 +132,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
132
132
|
addPaneCompositeViews(ViewContainerLocation.AuxiliaryBar);
|
|
133
133
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
134
134
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
135
|
-
const label = ( localize(
|
|
135
|
+
const label = ( localize(4785, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
136
136
|
viewEntries.push({
|
|
137
137
|
label,
|
|
138
|
-
containerLabel: ( localize(
|
|
138
|
+
containerLabel: ( localize(4786, "Terminal")),
|
|
139
139
|
accept: async () => {
|
|
140
140
|
await this.terminalGroupService.showPanel(true);
|
|
141
141
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -147,7 +147,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
147
147
|
const label = session.name;
|
|
148
148
|
viewEntries.push({
|
|
149
149
|
label,
|
|
150
|
-
containerLabel: ( localize(
|
|
150
|
+
containerLabel: ( localize(4787, "Debug Console")),
|
|
151
151
|
accept: async () => {
|
|
152
152
|
await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
|
|
153
153
|
if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
|
|
@@ -160,7 +160,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
160
160
|
for (const channel of channels) {
|
|
161
161
|
viewEntries.push({
|
|
162
162
|
label: channel.label,
|
|
163
|
-
containerLabel: ( localize(
|
|
163
|
+
containerLabel: ( localize(4788, "Output")),
|
|
164
164
|
accept: () => this.outputService.showChannel(channel.id)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -189,7 +189,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
189
189
|
constructor() {
|
|
190
190
|
super({
|
|
191
191
|
id: OpenViewPickerAction.ID,
|
|
192
|
-
title: ( localize2(
|
|
192
|
+
title: ( localize2(4789, 'Open View')),
|
|
193
193
|
category: Categories.View,
|
|
194
194
|
f1: true
|
|
195
195
|
});
|
|
@@ -208,7 +208,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
208
208
|
constructor() {
|
|
209
209
|
super({
|
|
210
210
|
id: QuickAccessViewPickerAction.ID,
|
|
211
|
-
title: ( localize2(
|
|
211
|
+
title: ( localize2(4790, 'Quick Open View')),
|
|
212
212
|
category: Categories.View,
|
|
213
213
|
f1: false,
|
|
214
214
|
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
|
+
4791,
|
|
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(4792, '&&Open')),
|
|
78
78
|
run: () => true
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(4793, '&&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(4794, 'Configure &&Trusted Domains')),
|
|
89
89
|
run: async () => {
|
|
90
90
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
91
91
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -22,7 +22,7 @@ class OpenUrlAction extends Action2 {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: 'workbench.action.url.openUrl',
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(909, 'Open URL')),
|
|
26
26
|
category: Categories.Developer,
|
|
27
27
|
f1: true
|
|
28
28
|
});
|
|
@@ -30,7 +30,7 @@ class OpenUrlAction extends Action2 {
|
|
|
30
30
|
async run(accessor) {
|
|
31
31
|
const quickInputService = accessor.get(IQuickInputService);
|
|
32
32
|
const urlService = accessor.get(IURLService);
|
|
33
|
-
return quickInputService.input({ prompt: ( localize(
|
|
33
|
+
return quickInputService.input({ prompt: ( localize(910, "URL to open")) }).then(input => {
|
|
34
34
|
if (input) {
|
|
35
35
|
const uri = ( (URI.parse(input)));
|
|
36
36
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -60,7 +60,7 @@ configurationRegistry.registerConfiguration({
|
|
|
60
60
|
type: 'boolean',
|
|
61
61
|
default: false,
|
|
62
62
|
description: ( localize(
|
|
63
|
-
|
|
63
|
+
911,
|
|
64
64
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
65
65
|
))
|
|
66
66
|
}
|