@codingame/monaco-vscode-quickaccess-service-override 11.1.0 → 11.1.1
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 -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 +10 -11
- 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.1.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.
|
|
30
|
-
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common": "11.1.0"
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1"
|
|
31
30
|
}
|
|
32
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(4694, "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(4695, "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(4696, "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(4697, "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(4695, "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(4698, "{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(4699, "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(4875, "{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(1069, "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(1070, "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(1071, '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(1072, '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(1073, '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(1074, '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(1060, '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
|
+
1061,
|
|
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(1062, "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
export { GotoLineQuickAccessProvider };
|
|
@@ -22,8 +22,7 @@ import { DefaultQuickAccessFilterValue } from 'vscode/vscode/vs/platform/quickin
|
|
|
22
22
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
23
23
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
24
24
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
25
|
-
import { CHAT_OPEN_ACTION_ID } from '
|
|
26
|
-
import { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions';
|
|
25
|
+
import { ASK_QUICK_QUESTION_ACTION_ID, CHAT_OPEN_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
27
26
|
import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
28
27
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
29
28
|
import { RelatedInformationType } from 'vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation';
|
|
@@ -50,7 +49,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
50
49
|
super({
|
|
51
50
|
showAlias: !Language.isDefaultVariant(),
|
|
52
51
|
noResultsPick: () => ({
|
|
53
|
-
label: ( localize(
|
|
52
|
+
label: ( localize(1051, "No matching commands")),
|
|
54
53
|
commandId: ''
|
|
55
54
|
}),
|
|
56
55
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
@@ -99,7 +98,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
99
98
|
...picks,
|
|
100
99
|
buttons: [{
|
|
101
100
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
102
|
-
tooltip: ( localize(
|
|
101
|
+
tooltip: ( localize(1052, "Configure Keybinding")),
|
|
103
102
|
}],
|
|
104
103
|
trigger: () => {
|
|
105
104
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -137,7 +136,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
137
136
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
138
137
|
if (defaultAgent) {
|
|
139
138
|
additionalPicks.push({
|
|
140
|
-
label: ( localize(
|
|
139
|
+
label: ( localize(1053, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
141
140
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
142
141
|
args: [filter]
|
|
143
142
|
});
|
|
@@ -171,7 +170,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
171
170
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
172
171
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
173
172
|
if (category) {
|
|
174
|
-
label = ( localize(
|
|
173
|
+
label = ( localize(1054, "{0}: {1}", category, label));
|
|
175
174
|
}
|
|
176
175
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
177
176
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -214,7 +213,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
214
213
|
constructor() {
|
|
215
214
|
super({
|
|
216
215
|
id: ShowAllCommandsAction.ID,
|
|
217
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(1055, 'Show All Commands')),
|
|
218
217
|
keybinding: {
|
|
219
218
|
weight: 200 ,
|
|
220
219
|
when: undefined,
|
|
@@ -232,7 +231,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
232
231
|
constructor() {
|
|
233
232
|
super({
|
|
234
233
|
id: 'workbench.action.clearCommandHistory',
|
|
235
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(1056, 'Clear Command History')),
|
|
236
235
|
f1: true
|
|
237
236
|
});
|
|
238
237
|
}
|
|
@@ -244,9 +243,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
244
243
|
if (commandHistoryLength > 0) {
|
|
245
244
|
const { confirmed } = await dialogService.confirm({
|
|
246
245
|
type: 'warning',
|
|
247
|
-
message: ( localize(
|
|
248
|
-
detail: ( localize(
|
|
249
|
-
primaryButton: ( localize(
|
|
246
|
+
message: ( localize(1057, "Do you want to clear the history of recently used commands?")),
|
|
247
|
+
detail: ( localize(1058, "This action is irreversible!")),
|
|
248
|
+
primaryButton: ( localize(1059, "&&Clear"))
|
|
250
249
|
});
|
|
251
250
|
if (!confirmed) {
|
|
252
251
|
return;
|
|
@@ -15,35 +15,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
15
15
|
ctor: HelpQuickAccessProvider,
|
|
16
16
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
17
17
|
placeholder: ( localize(
|
|
18
|
-
|
|
18
|
+
1075,
|
|
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(1076, "Show all Quick Access Providers")),
|
|
24
24
|
commandCenterOrder: 70,
|
|
25
|
-
commandCenterLabel: ( localize(
|
|
25
|
+
commandCenterLabel: ( localize(1077, '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(1078, "Type the name of a view, output channel or terminal to open.")),
|
|
33
|
+
helpEntries: [{ description: ( localize(1079, "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(1080, "Type the name of a command to run.")),
|
|
40
|
+
helpEntries: [{ description: ( localize(1081, "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(1082, "&&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(1083, "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(1084, "&&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(1085, "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(1086, "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(1086, "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(4876, "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(4877, "Side Bar")));
|
|
116
|
+
addPaneComposites(1 , ( localize(4878, "Panel")));
|
|
117
|
+
addPaneComposites(2 , ( localize(4879, "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(4880, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
133
133
|
viewEntries.push({
|
|
134
134
|
label,
|
|
135
|
-
containerLabel: ( localize(
|
|
135
|
+
containerLabel: ( localize(4881, "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(4882, "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(4883, "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(4884, '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(4885, '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
|
+
4886,
|
|
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(4887, '&&Open')),
|
|
78
78
|
run: () => true
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(4888, '&&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(4889, '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(1087, '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(1088, "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
|
+
1089,
|
|
60
60
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
61
61
|
))
|
|
62
62
|
}
|