@codingame/monaco-vscode-quickaccess-service-override 29.1.0 → 30.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/package.json +2 -2
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +2 -1
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.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": "30.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
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(7771, "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
|
+
7772,
|
|
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(7773, "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(7774, "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
|
+
7772,
|
|
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(7775, "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(11963, "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(11964, "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(11965, "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(11966, "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(11967, "{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(11968, "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(11969, "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(11970, "Do you want to clear the history of recently used commands?")),
|
|
263
|
+
detail: ( localize(11971, "This action is irreversible!")),
|
|
264
|
+
primaryButton: ( localize(11972, "&&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
|
+
11973,
|
|
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(11974, "Show all Quick Access Providers")),
|
|
26
26
|
commandCenterOrder: 70,
|
|
27
|
-
commandCenterLabel: ( localize(
|
|
27
|
+
commandCenterLabel: ( localize(11975, "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(11976, "Type the name of a view, output channel or terminal to open.")),
|
|
35
35
|
helpEntries: [{
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(11977, "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(11978, "Type the name of a command to run.")),
|
|
45
45
|
helpEntries: [{
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(11979, "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(11980, "&&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(11981, "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(11982, "&&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(11983, "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(11984, "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(11984, "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(11985, "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(11986, "Side Bar")));
|
|
137
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(11987, "Panel")));
|
|
138
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(11988, "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
|
+
11989,
|
|
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(11990, "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(11991, "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(11992, "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(11993, "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(11994, "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
|
+
14939,
|
|
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(14940, "&&Open")),
|
|
99
99
|
run: () => true
|
|
100
100
|
}, {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(14941, "&&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(14942, "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(14943, "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(14944, "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
|
+
14945,
|
|
88
88
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
89
89
|
))
|
|
90
90
|
}
|