@codingame/monaco-vscode-quickaccess-service-override 22.1.5 → 22.1.6
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 +9 -9
- 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": "22.1.
|
|
3
|
+
"version": "22.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - quickaccess service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-api": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "22.1.
|
|
25
|
-
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.1.6",
|
|
19
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "22.1.6",
|
|
20
|
+
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.6",
|
|
21
|
+
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "22.1.6",
|
|
22
|
+
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.6",
|
|
23
|
+
"@codingame/monaco-vscode-api": "22.1.6",
|
|
24
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "22.1.6",
|
|
25
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "22.1.6"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|
|
@@ -52,7 +52,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
52
52
|
super({
|
|
53
53
|
showAlias: !Language.isDefaultVariant(),
|
|
54
54
|
noResultsPick: () => ({
|
|
55
|
-
label: ( localize(
|
|
55
|
+
label: ( localize(9754, "No matching commands")),
|
|
56
56
|
commandId: ''
|
|
57
57
|
}),
|
|
58
58
|
}, 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(9755, "Configure Keybinding")),
|
|
103
103
|
}],
|
|
104
104
|
trigger: () => {
|
|
105
105
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -136,7 +136,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
136
136
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
137
137
|
if (defaultAgent) {
|
|
138
138
|
additionalPicks.push({
|
|
139
|
-
label: ( localize(
|
|
139
|
+
label: ( localize(9756, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
140
140
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
141
141
|
args: [filter]
|
|
142
142
|
});
|
|
@@ -170,7 +170,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
170
170
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
171
171
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
172
172
|
if (category) {
|
|
173
|
-
label = ( localize(
|
|
173
|
+
label = ( localize(9757, "{0}: {1}", category, label));
|
|
174
174
|
}
|
|
175
175
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
176
176
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -213,7 +213,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: ShowAllCommandsAction.ID,
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(9758, 'Show All Commands')),
|
|
217
217
|
keybinding: {
|
|
218
218
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
219
219
|
when: undefined,
|
|
@@ -231,7 +231,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
231
231
|
constructor() {
|
|
232
232
|
super({
|
|
233
233
|
id: 'workbench.action.clearCommandHistory',
|
|
234
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(9759, 'Clear Command History')),
|
|
235
235
|
f1: true
|
|
236
236
|
});
|
|
237
237
|
}
|
|
@@ -243,9 +243,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
243
243
|
if (commandHistoryLength > 0) {
|
|
244
244
|
const { confirmed } = await dialogService.confirm({
|
|
245
245
|
type: 'warning',
|
|
246
|
-
message: ( localize(
|
|
247
|
-
detail: ( localize(
|
|
248
|
-
primaryButton: ( localize(
|
|
246
|
+
message: ( localize(9760, "Do you want to clear the history of recently used commands?")),
|
|
247
|
+
detail: ( localize(9761, "This action is irreversible!")),
|
|
248
|
+
primaryButton: ( localize(9762, "&&Clear"))
|
|
249
249
|
});
|
|
250
250
|
if (!confirmed) {
|
|
251
251
|
return;
|
|
@@ -17,35 +17,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
17
17
|
ctor: HelpQuickAccessProvider,
|
|
18
18
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
19
19
|
placeholder: ( localize(
|
|
20
|
-
|
|
20
|
+
9763,
|
|
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(9764, "Show all Quick Access Providers")),
|
|
26
26
|
commandCenterOrder: 70,
|
|
27
|
-
commandCenterLabel: ( localize(
|
|
27
|
+
commandCenterLabel: ( localize(9765, '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(
|
|
35
|
-
helpEntries: [{ description: ( localize(
|
|
34
|
+
placeholder: ( localize(9766, "Type the name of a view, output channel or terminal to open.")),
|
|
35
|
+
helpEntries: [{ description: ( localize(9767, "Open View")), commandId: OpenViewPickerAction.ID }]
|
|
36
36
|
});
|
|
37
37
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
38
38
|
ctor: CommandsQuickAccessProvider,
|
|
39
39
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
40
40
|
contextKey: 'inCommandsPicker',
|
|
41
|
-
placeholder: ( localize(
|
|
42
|
-
helpEntries: [{ description: ( localize(
|
|
41
|
+
placeholder: ( localize(9768, "Type the name of a command to run.")),
|
|
42
|
+
helpEntries: [{ description: ( localize(9769, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
|
|
43
43
|
});
|
|
44
44
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
45
45
|
group: '1_open',
|
|
46
46
|
command: {
|
|
47
47
|
id: ShowAllCommandsAction.ID,
|
|
48
|
-
title: ( localize(
|
|
48
|
+
title: ( localize(9770, "&&Command Palette..."))
|
|
49
49
|
},
|
|
50
50
|
order: 1
|
|
51
51
|
});
|
|
@@ -53,7 +53,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
53
53
|
group: '1_welcome',
|
|
54
54
|
command: {
|
|
55
55
|
id: ShowAllCommandsAction.ID,
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(9771, "Show All Commands"))
|
|
57
57
|
},
|
|
58
58
|
order: 2
|
|
59
59
|
});
|
|
@@ -61,7 +61,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
61
61
|
group: '1_open',
|
|
62
62
|
command: {
|
|
63
63
|
id: OpenViewPickerAction.ID,
|
|
64
|
-
title: ( localize(
|
|
64
|
+
title: ( localize(9772, "&&Open View..."))
|
|
65
65
|
},
|
|
66
66
|
order: 2
|
|
67
67
|
});
|
|
@@ -69,7 +69,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
69
69
|
group: '5_infile_nav',
|
|
70
70
|
command: {
|
|
71
71
|
id: 'workbench.action.gotoLine',
|
|
72
|
-
title: ( localize(
|
|
72
|
+
title: ( localize(9773, "Go to &&Line/Column..."))
|
|
73
73
|
},
|
|
74
74
|
order: 1
|
|
75
75
|
});
|
|
@@ -77,7 +77,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
77
77
|
group: '1_command',
|
|
78
78
|
command: {
|
|
79
79
|
id: ShowAllCommandsAction.ID,
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(9774, "Command Palette..."))
|
|
81
81
|
},
|
|
82
82
|
order: 1
|
|
83
83
|
});
|
|
@@ -86,7 +86,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
86
86
|
when: ( EditorContextKeys.editorSimpleInput.toNegated()),
|
|
87
87
|
command: {
|
|
88
88
|
id: ShowAllCommandsAction.ID,
|
|
89
|
-
title: ( localize(
|
|
89
|
+
title: ( localize(9774, "Command Palette...")),
|
|
90
90
|
},
|
|
91
91
|
order: 1
|
|
92
92
|
});
|
|
@@ -28,7 +28,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
28
28
|
constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
|
|
29
29
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
30
30
|
noResultsPick: {
|
|
31
|
-
label: ( localize(
|
|
31
|
+
label: ( localize(9775, "No matching views")),
|
|
32
32
|
containerLabel: ''
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -116,9 +116,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(
|
|
120
|
-
addPaneComposites(ViewContainerLocation.Panel, ( localize(
|
|
121
|
-
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(
|
|
119
|
+
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(9776, "Side Bar")));
|
|
120
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(9777, "Panel")));
|
|
121
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(9778, "Secondary Side Bar")));
|
|
122
122
|
const addPaneCompositeViews = (location) => {
|
|
123
123
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
124
124
|
for (const paneComposite of paneComposites) {
|
|
@@ -133,10 +133,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
133
133
|
addPaneCompositeViews(ViewContainerLocation.AuxiliaryBar);
|
|
134
134
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
135
135
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
136
|
-
const label = ( localize(
|
|
136
|
+
const label = ( localize(9779, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
137
137
|
viewEntries.push({
|
|
138
138
|
label,
|
|
139
|
-
containerLabel: ( localize(
|
|
139
|
+
containerLabel: ( localize(9780, "Terminal")),
|
|
140
140
|
accept: async () => {
|
|
141
141
|
await this.terminalGroupService.showPanel(true);
|
|
142
142
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -148,7 +148,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
148
148
|
const label = session.name;
|
|
149
149
|
viewEntries.push({
|
|
150
150
|
label,
|
|
151
|
-
containerLabel: ( localize(
|
|
151
|
+
containerLabel: ( localize(9781, "Debug Console")),
|
|
152
152
|
accept: async () => {
|
|
153
153
|
await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
|
|
154
154
|
if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
|
|
@@ -161,7 +161,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
161
161
|
for (const channel of channels) {
|
|
162
162
|
viewEntries.push({
|
|
163
163
|
label: channel.label,
|
|
164
|
-
containerLabel: ( localize(
|
|
164
|
+
containerLabel: ( localize(9782, "Output")),
|
|
165
165
|
accept: () => this.outputService.showChannel(channel.id)
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -190,7 +190,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
190
190
|
constructor() {
|
|
191
191
|
super({
|
|
192
192
|
id: OpenViewPickerAction.ID,
|
|
193
|
-
title: ( localize2(
|
|
193
|
+
title: ( localize2(9783, 'Open View')),
|
|
194
194
|
category: Categories.View,
|
|
195
195
|
f1: true
|
|
196
196
|
});
|
|
@@ -209,7 +209,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
209
209
|
constructor() {
|
|
210
210
|
super({
|
|
211
211
|
id: QuickAccessViewPickerAction.ID,
|
|
212
|
-
title: ( localize2(
|
|
212
|
+
title: ( localize2(9784, 'Quick Open View')),
|
|
213
213
|
category: Categories.View,
|
|
214
214
|
f1: false,
|
|
215
215
|
keybinding: {
|
|
@@ -68,25 +68,25 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
68
68
|
const { result } = await this._dialogService.prompt({
|
|
69
69
|
type: Severity.Info,
|
|
70
70
|
message: ( localize(
|
|
71
|
-
|
|
71
|
+
12392,
|
|
72
72
|
'Do you want {0} to open the external website?',
|
|
73
73
|
this._productService.nameShort
|
|
74
74
|
)),
|
|
75
75
|
detail: typeof originalResource === 'string' ? originalResource : formattedLink,
|
|
76
76
|
buttons: [
|
|
77
77
|
{
|
|
78
|
-
label: ( localize(
|
|
78
|
+
label: ( localize(12393, '&&Open')),
|
|
79
79
|
run: () => true
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(12394, '&&Copy')),
|
|
83
83
|
run: () => {
|
|
84
84
|
this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( resourceUri.toString(true)));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
label: ( localize(
|
|
89
|
+
label: ( localize(12395, 'Configure &&Trusted Domains')),
|
|
90
90
|
run: async () => {
|
|
91
91
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
92
92
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -26,7 +26,7 @@ class OpenUrlAction extends Action2 {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: 'workbench.action.url.openUrl',
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(12396, 'Open URL')),
|
|
30
30
|
category: Categories.Developer,
|
|
31
31
|
f1: true
|
|
32
32
|
});
|
|
@@ -36,7 +36,7 @@ class OpenUrlAction extends Action2 {
|
|
|
36
36
|
const urlService = accessor.get(IURLService);
|
|
37
37
|
const storageService = accessor.get(IStorageService);
|
|
38
38
|
const value = storageService.get(OpenUrlAction.STORAGE_KEY, StorageScope.WORKSPACE, '');
|
|
39
|
-
return quickInputService.input({ prompt: ( localize(
|
|
39
|
+
return quickInputService.input({ prompt: ( localize(12397, "URL to open")), value }).then(input => {
|
|
40
40
|
if (input) {
|
|
41
41
|
const uri = ( URI.parse(input));
|
|
42
42
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -67,7 +67,7 @@ configurationRegistry.registerConfiguration({
|
|
|
67
67
|
type: 'boolean',
|
|
68
68
|
default: false,
|
|
69
69
|
description: ( localize(
|
|
70
|
-
|
|
70
|
+
12398,
|
|
71
71
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
72
72
|
))
|
|
73
73
|
}
|