@codingame/monaco-vscode-extensions-service-override 25.0.1 → 25.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 +3 -3
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +12 -12
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "25.
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "25.
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "25.1.1"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -140,11 +140,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
140
140
|
}
|
|
141
141
|
_showBisectPrompt() {
|
|
142
142
|
const goodPrompt = {
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(13893, "I can't reproduce")),
|
|
144
144
|
run: () => this._commandService.executeCommand('extension.bisect.next', false)
|
|
145
145
|
};
|
|
146
146
|
const badPrompt = {
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(13894, "I can reproduce")),
|
|
148
148
|
run: () => this._commandService.executeCommand('extension.bisect.next', true)
|
|
149
149
|
};
|
|
150
150
|
const stop = {
|
|
@@ -153,11 +153,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
153
153
|
};
|
|
154
154
|
const message = this._extensionBisectService.disabledCount === 1
|
|
155
155
|
? ( localize(
|
|
156
|
-
|
|
156
|
+
13895,
|
|
157
157
|
"Extension Bisect is active and has disabled 1 extension. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
158
158
|
))
|
|
159
159
|
: ( localize(
|
|
160
|
-
|
|
160
|
+
13896,
|
|
161
161
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
162
162
|
this._extensionBisectService.disabledCount
|
|
163
163
|
));
|
|
@@ -175,7 +175,7 @@ registerAction2(class extends Action2 {
|
|
|
175
175
|
constructor() {
|
|
176
176
|
super({
|
|
177
177
|
id: 'extension.bisect.start',
|
|
178
|
-
title: ( localize2(
|
|
178
|
+
title: ( localize2(13897, 'Start Extension Bisect')),
|
|
179
179
|
category: Categories.Help,
|
|
180
180
|
f1: true,
|
|
181
181
|
precondition: ( ExtensionBisectUi.ctxIsBisectActive.negate()),
|
|
@@ -195,13 +195,13 @@ registerAction2(class extends Action2 {
|
|
|
195
195
|
const extensionsBisect = accessor.get(IExtensionBisectService);
|
|
196
196
|
const extensions = (await extensionManagement.getInstalled(ExtensionType.User)).filter(ext => extensionEnablementService.isEnabled(ext));
|
|
197
197
|
const res = await dialogService.confirm({
|
|
198
|
-
message: ( localize(
|
|
198
|
+
message: ( localize(13898, "Extension Bisect")),
|
|
199
199
|
detail: ( localize(
|
|
200
|
-
|
|
200
|
+
13899,
|
|
201
201
|
"Extension Bisect will use binary search to find an extension that causes a problem. During the process the window reloads repeatedly (~{0} times). Each time you must confirm if you are still seeing problems.",
|
|
202
202
|
2 + Math.log2(extensions.length) | 0
|
|
203
203
|
)),
|
|
204
|
-
primaryButton: ( localize(
|
|
204
|
+
primaryButton: ( localize(13900, "&&Start Extension Bisect"))
|
|
205
205
|
});
|
|
206
206
|
if (res.confirmed) {
|
|
207
207
|
await extensionsBisect.start(extensions);
|
|
@@ -213,7 +213,7 @@ registerAction2(class extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: 'extension.bisect.next',
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(13901, 'Continue Extension Bisect')),
|
|
217
217
|
category: Categories.Help,
|
|
218
218
|
f1: true,
|
|
219
219
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -247,8 +247,8 @@ registerAction2(class extends Action2 {
|
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
if (done.bad) {
|
|
250
|
-
await dialogService.info(( localize(
|
|
251
|
-
|
|
250
|
+
await dialogService.info(( localize(13902, "Extension Bisect")), ( localize(
|
|
251
|
+
13903,
|
|
252
252
|
"Extension Bisect is done but no extension has been identified. This might be a problem with {0}.",
|
|
253
253
|
productService.nameShort
|
|
254
254
|
)));
|
|
@@ -256,15 +256,15 @@ registerAction2(class extends Action2 {
|
|
|
256
256
|
else {
|
|
257
257
|
const res = await dialogService.confirm({
|
|
258
258
|
type: Severity.Info,
|
|
259
|
-
message: ( localize(
|
|
260
|
-
primaryButton: ( localize(
|
|
261
|
-
cancelButton: ( localize(
|
|
259
|
+
message: ( localize(13902, "Extension Bisect")),
|
|
260
|
+
primaryButton: ( localize(13904, "&&Report Issue & Continue")),
|
|
261
|
+
cancelButton: ( localize(13905, "Continue")),
|
|
262
262
|
detail: ( localize(
|
|
263
|
-
|
|
263
|
+
13906,
|
|
264
264
|
"Extension Bisect is done and has identified {0} as the extension causing the problem.",
|
|
265
265
|
done.id
|
|
266
266
|
)),
|
|
267
|
-
checkbox: { label: ( localize(
|
|
267
|
+
checkbox: { label: ( localize(13907, "Keep this extension disabled")), checked: true }
|
|
268
268
|
});
|
|
269
269
|
if (res.checkboxChecked) {
|
|
270
270
|
await extensionEnablementService.disableExtension({ id: done.id }, undefined);
|
|
@@ -279,28 +279,28 @@ registerAction2(class extends Action2 {
|
|
|
279
279
|
async _checkForBad(dialogService, bisectService) {
|
|
280
280
|
const { result } = await dialogService.prompt({
|
|
281
281
|
type: Severity.Info,
|
|
282
|
-
message: ( localize(
|
|
282
|
+
message: ( localize(13908, "Extension Bisect")),
|
|
283
283
|
detail: ( localize(
|
|
284
|
-
|
|
284
|
+
13909,
|
|
285
285
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
286
286
|
bisectService.disabledCount
|
|
287
287
|
)),
|
|
288
288
|
buttons: [
|
|
289
289
|
{
|
|
290
|
-
label: ( localize(
|
|
290
|
+
label: ( localize(13910, "I ca&&n't reproduce")),
|
|
291
291
|
run: () => false
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
label: ( localize(
|
|
294
|
+
label: ( localize(13911, "I can &&reproduce")),
|
|
295
295
|
run: () => true
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
label: ( localize(
|
|
298
|
+
label: ( localize(13912, "&&Stop Bisect")),
|
|
299
299
|
run: () => undefined
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
302
|
cancelButton: {
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(13913, "&&Cancel Bisect")),
|
|
304
304
|
run: () => null
|
|
305
305
|
}
|
|
306
306
|
});
|
|
@@ -311,7 +311,7 @@ registerAction2(class extends Action2 {
|
|
|
311
311
|
constructor() {
|
|
312
312
|
super({
|
|
313
313
|
id: 'extension.bisect.stop',
|
|
314
|
-
title: ( localize2(
|
|
314
|
+
title: ( localize2(13914, 'Stop Extension Bisect')),
|
|
315
315
|
category: Categories.Help,
|
|
316
316
|
f1: true,
|
|
317
317
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js
CHANGED
|
@@ -606,7 +606,7 @@ let WebExtensionsScannerService = class WebExtensionsScannerService extends Disp
|
|
|
606
606
|
}
|
|
607
607
|
if (!this.extensionManifestPropertiesService.canExecuteOnWeb(manifest)) {
|
|
608
608
|
throw ( new Error(( localize(
|
|
609
|
-
|
|
609
|
+
13929,
|
|
610
610
|
"Cannot add '{0}' because this extension is not a web extension.",
|
|
611
611
|
manifest.displayName || manifest.name
|
|
612
612
|
))));
|
|
@@ -890,7 +890,7 @@ if (isWeb) {
|
|
|
890
890
|
constructor() {
|
|
891
891
|
super({
|
|
892
892
|
id: 'workbench.extensions.action.openInstalledWebExtensionsResource',
|
|
893
|
-
title: ( localize2(
|
|
893
|
+
title: ( localize2(13930, 'Open Installed Web Extensions Resource')),
|
|
894
894
|
category: Categories.Developer,
|
|
895
895
|
f1: true,
|
|
896
896
|
precondition: IsWebContext
|
|
@@ -186,14 +186,14 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
186
186
|
}
|
|
187
187
|
}, {
|
|
188
188
|
id: 'join.disconnectRemote',
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(13996, "Disconnect Remote Agent")),
|
|
190
190
|
order: WillShutdownJoinerOrder.Last
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
event.join(this._doStopExtensionHosts(), {
|
|
195
195
|
id: 'join.stopExtensionHosts',
|
|
196
|
-
label: ( localize(
|
|
196
|
+
label: ( localize(13997, "Stopping Extension Hosts")),
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
}));
|
|
@@ -264,7 +264,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
264
264
|
this._notificationService.notify({
|
|
265
265
|
severity: Severity.Error,
|
|
266
266
|
message: ( localize(
|
|
267
|
-
|
|
267
|
+
13998,
|
|
268
268
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
269
269
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
270
270
|
))
|
|
@@ -445,7 +445,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
445
445
|
this._notificationService.notify({
|
|
446
446
|
severity: Severity.Error,
|
|
447
447
|
message: ( localize(
|
|
448
|
-
|
|
448
|
+
13998,
|
|
449
449
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
450
450
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
451
451
|
))
|
|
@@ -460,7 +460,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
460
460
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
461
461
|
if (!extensionHostManager) {
|
|
462
462
|
const msg = ( localize(
|
|
463
|
-
|
|
463
|
+
13999,
|
|
464
464
|
"No extension host found that can launch the test runner at {0}.",
|
|
465
465
|
(this._environmentService.extensionTestsLocationURI.toString())
|
|
466
466
|
));
|
|
@@ -630,7 +630,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
630
630
|
vetoReasons.add(reason);
|
|
631
631
|
}
|
|
632
632
|
}).catch(error => {
|
|
633
|
-
vetoReasons.add(( localize(
|
|
633
|
+
vetoReasons.add(( localize(14000, "{0} (Error: {1})", reason, toErrorMessage(error))));
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -645,11 +645,11 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
645
645
|
this._logService.warn(`Extension host was not stopped because of veto (stop reason: ${reason}, veto reason: ${vetoReasonsArray.join(', ')})`);
|
|
646
646
|
const { confirmed } = await this._dialogService.confirm({
|
|
647
647
|
type: Severity.Warning,
|
|
648
|
-
message: ( localize(
|
|
648
|
+
message: ( localize(14001, "Please confirm restart of extensions.")),
|
|
649
649
|
detail: vetoReasonsArray.length === 1 ?
|
|
650
650
|
vetoReasonsArray[0] :
|
|
651
651
|
vetoReasonsArray.join('\n -'),
|
|
652
|
-
primaryButton: ( localize(
|
|
652
|
+
primaryButton: ( localize(14002, "Restart Anyway"))
|
|
653
653
|
});
|
|
654
654
|
if (confirmed) {
|
|
655
655
|
return true;
|
|
@@ -746,15 +746,15 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
746
746
|
this._remoteCrashTracker.registerCrash();
|
|
747
747
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
748
748
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
749
|
-
this._notificationService.status(( localize(
|
|
749
|
+
this._notificationService.status(( localize(14003, "The remote extension host terminated unexpectedly. Restarting...")), { hideAfter: 5000 });
|
|
750
750
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
751
751
|
}
|
|
752
752
|
else {
|
|
753
753
|
this._notificationService.prompt(Severity.Error, ( localize(
|
|
754
|
-
|
|
754
|
+
14004,
|
|
755
755
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
756
756
|
)), [{
|
|
757
|
-
label: ( localize(
|
|
757
|
+
label: ( localize(14005, "Restart Remote Extension Host")),
|
|
758
758
|
run: () => {
|
|
759
759
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
760
760
|
}
|
|
@@ -1262,7 +1262,7 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1264
1264
|
id: 'activationEvents',
|
|
1265
|
-
label: ( localize(
|
|
1265
|
+
label: ( localize(14006, "Activation Events")),
|
|
1266
1266
|
access: {
|
|
1267
1267
|
canToggle: false
|
|
1268
1268
|
},
|
|
@@ -479,7 +479,7 @@ registerAction2(class MeasureExtHostLatencyAction extends Action2 {
|
|
|
479
479
|
constructor() {
|
|
480
480
|
super({
|
|
481
481
|
id: 'editor.action.measureExtHostLatency',
|
|
482
|
-
title: ( localize2(
|
|
482
|
+
title: ( localize2(14007, "Measure Extension Host Latency")),
|
|
483
483
|
category: Categories.Developer,
|
|
484
484
|
f1: true
|
|
485
485
|
});
|
|
@@ -106,7 +106,7 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
108
108
|
id: 'enabledApiProposals',
|
|
109
|
-
label: ( localize(
|
|
109
|
+
label: ( localize(14008, "API Proposals")),
|
|
110
110
|
access: {
|
|
111
111
|
canToggle: false
|
|
112
112
|
},
|
|
@@ -9,7 +9,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
9
9
|
const extension = result.get(systemExtension.identifier);
|
|
10
10
|
if (extension) {
|
|
11
11
|
logService.warn(( localize(
|
|
12
|
-
|
|
12
|
+
14095,
|
|
13
13
|
"Overwriting extension {0} with {1}.",
|
|
14
14
|
extension.extensionLocation.fsPath,
|
|
15
15
|
systemExtension.extensionLocation.fsPath
|
|
@@ -29,7 +29,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
31
|
logService.warn(( localize(
|
|
32
|
-
|
|
32
|
+
14095,
|
|
33
33
|
"Overwriting extension {0} with {1}.",
|
|
34
34
|
extension.extensionLocation.fsPath,
|
|
35
35
|
userExtension.extensionLocation.fsPath
|
|
@@ -46,7 +46,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
46
46
|
const extension = result.get(workspaceExtension.identifier);
|
|
47
47
|
if (extension) {
|
|
48
48
|
logService.warn(( localize(
|
|
49
|
-
|
|
49
|
+
14096,
|
|
50
50
|
"Overwriting {0} with Workspace Extension {1}.",
|
|
51
51
|
extension.extensionLocation.fsPath,
|
|
52
52
|
workspaceExtension.extensionLocation.fsPath
|
|
@@ -56,7 +56,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
56
56
|
});
|
|
57
57
|
development.forEach(developedExtension => {
|
|
58
58
|
logService.info(( localize(
|
|
59
|
-
|
|
59
|
+
14097,
|
|
60
60
|
"Loading development extension at {0}",
|
|
61
61
|
developedExtension.extensionLocation.fsPath
|
|
62
62
|
)));
|