@codingame/monaco-vscode-extensions-service-override 10.0.0 → 10.0.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/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +13 -13
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "10.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "10.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -11,9 +11,9 @@ import { IExtensionManagementService, IExtensionGalleryService } from 'vscode/vs
|
|
|
11
11
|
import { getIdAndVersion, areSameExtensions, getGalleryExtensionId, getExtensionId } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
12
12
|
import { EXTENSION_CATEGORIES } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
13
13
|
|
|
14
|
-
const notFound = (id) => ( localize(
|
|
14
|
+
const notFound = (id) => ( localize(9904, "Extension '{0}' not found.", id));
|
|
15
15
|
const useId = ( localize(
|
|
16
|
-
|
|
16
|
+
9905,
|
|
17
17
|
"Make sure you use the full extension ID, including the publisher, e.g.: {0}",
|
|
18
18
|
'ms-dotnettools.csharp'
|
|
19
19
|
));
|
|
@@ -50,7 +50,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
if (this.location) {
|
|
53
|
-
this.logger.info(( localize(
|
|
53
|
+
this.logger.info(( localize(9906, "Extensions installed on {0}:", this.location)));
|
|
54
54
|
}
|
|
55
55
|
extensions = extensions.sort((e1, e2) => e1.identifier.id.localeCompare(e2.identifier.id));
|
|
56
56
|
let lastId = undefined;
|
|
@@ -65,7 +65,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
65
65
|
const failed = [];
|
|
66
66
|
try {
|
|
67
67
|
if (extensions.length) {
|
|
68
|
-
this.logger.info(this.location ? ( localize(
|
|
68
|
+
this.logger.info(this.location ? ( localize(9907, "Installing extensions on {0}...", this.location)) : ( localize(9908, "Installing extensions...")));
|
|
69
69
|
}
|
|
70
70
|
const installVSIXInfos = [];
|
|
71
71
|
const installExtensionInfos = [];
|
|
@@ -108,11 +108,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
catch (error) {
|
|
111
|
-
this.logger.error(( localize(
|
|
111
|
+
this.logger.error(( localize(9909, "Error while installing extensions: {0}", getErrorMessage(error))));
|
|
112
112
|
throw error;
|
|
113
113
|
}
|
|
114
114
|
if (failed.length) {
|
|
115
|
-
throw ( (new Error(localize(
|
|
115
|
+
throw ( (new Error(localize(9910, "Failed Installing Extensions: {0}", failed.join(', ')))));
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
async updateExtensions(profileLocation) {
|
|
@@ -124,7 +124,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
this.logger.trace(( localize(
|
|
127
|
-
|
|
127
|
+
9911,
|
|
128
128
|
"Fetching latest versions for {0} extensions",
|
|
129
129
|
installedExtensionsQuery.length
|
|
130
130
|
)));
|
|
@@ -141,11 +141,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
if (!extensionsToUpdate.length) {
|
|
144
|
-
this.logger.info(( localize(
|
|
144
|
+
this.logger.info(( localize(9912, "No extension to update")));
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
147
|
this.logger.info(( localize(
|
|
148
|
-
|
|
148
|
+
9913,
|
|
149
149
|
"Updating extensions: {0}",
|
|
150
150
|
( (extensionsToUpdate.map(ext => ext.extension.identifier.id))).join(', ')
|
|
151
151
|
)));
|
|
@@ -153,7 +153,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
153
153
|
for (const extensionResult of installationResult) {
|
|
154
154
|
if (extensionResult.error) {
|
|
155
155
|
this.logger.error(( localize(
|
|
156
|
-
|
|
156
|
+
9914,
|
|
157
157
|
"Error while updating extension {0}: {1}",
|
|
158
158
|
extensionResult.identifier.id,
|
|
159
159
|
getErrorMessage(extensionResult.error)
|
|
@@ -161,7 +161,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
163
|
this.logger.info(( localize(
|
|
164
|
-
|
|
164
|
+
9915,
|
|
165
165
|
"Extension '{0}' v{1} was successfully updated.",
|
|
166
166
|
extensionResult.identifier.id,
|
|
167
167
|
extensionResult.local?.manifest.version
|
|
@@ -175,7 +175,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
175
175
|
if (installedExtension) {
|
|
176
176
|
if (!force && (!version || (version === 'prerelease' && installedExtension.preRelease))) {
|
|
177
177
|
this.logger.info(( localize(
|
|
178
|
-
|
|
178
|
+
9916,
|
|
179
179
|
"Extension '{0}' v{1} is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: '{2}@1.2.3'.",
|
|
180
180
|
id,
|
|
181
181
|
installedExtension.manifest.version,
|
|
@@ -184,7 +184,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
186
|
if (version && installedExtension.manifest.version === version) {
|
|
187
|
-
this.logger.info(( localize(
|
|
187
|
+
this.logger.info(( localize(9917, "Extension '{0}' is already installed.", `${id}@${version}`)));
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -218,24 +218,24 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
218
218
|
if (installedExtension) {
|
|
219
219
|
if (gallery.version === installedExtension.manifest.version) {
|
|
220
220
|
this.logger.info(( localize(
|
|
221
|
-
|
|
221
|
+
9917,
|
|
222
222
|
"Extension '{0}' is already installed.",
|
|
223
223
|
version ? `${id}@${version}` : id
|
|
224
224
|
)));
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
227
|
this.logger.info(( localize(
|
|
228
|
-
|
|
228
|
+
9918,
|
|
229
229
|
"Updating the extension '{0}' to the version {1}",
|
|
230
230
|
id,
|
|
231
231
|
gallery.version
|
|
232
232
|
)));
|
|
233
233
|
}
|
|
234
234
|
if (installOptions.isBuiltin) {
|
|
235
|
-
this.logger.info(version ? ( localize(
|
|
235
|
+
this.logger.info(version ? ( localize(9919, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(9920, "Installing builtin extension '{0}'...", id)));
|
|
236
236
|
}
|
|
237
237
|
else {
|
|
238
|
-
this.logger.info(version ? ( localize(
|
|
238
|
+
this.logger.info(version ? ( localize(9921, "Installing extension '{0}' v{1}...", id, version)) : ( localize(9922, "Installing extension '{0}'...", id)));
|
|
239
239
|
}
|
|
240
240
|
extensionsToInstall.push({
|
|
241
241
|
extension: gallery,
|
|
@@ -247,7 +247,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
247
247
|
for (const extensionResult of installationResult) {
|
|
248
248
|
if (extensionResult.error) {
|
|
249
249
|
this.logger.error(( localize(
|
|
250
|
-
|
|
250
|
+
9923,
|
|
251
251
|
"Error while installing extension {0}: {1}",
|
|
252
252
|
extensionResult.identifier.id,
|
|
253
253
|
getErrorMessage(extensionResult.error)
|
|
@@ -256,7 +256,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
258
|
this.logger.info(( localize(
|
|
259
|
-
|
|
259
|
+
9924,
|
|
260
260
|
"Extension '{0}' v{1} was successfully installed.",
|
|
261
261
|
extensionResult.identifier.id,
|
|
262
262
|
extensionResult.local?.manifest.version
|
|
@@ -275,11 +275,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
275
275
|
if (valid) {
|
|
276
276
|
try {
|
|
277
277
|
await this.extensionManagementService.install(vsix, { ...installOptions, installGivenVersion: true });
|
|
278
|
-
this.logger.info(( localize(
|
|
278
|
+
this.logger.info(( localize(9925, "Extension '{0}' was successfully installed.", basename(vsix))));
|
|
279
279
|
}
|
|
280
280
|
catch (error) {
|
|
281
281
|
if (isCancellationError(error)) {
|
|
282
|
-
this.logger.info(( localize(
|
|
282
|
+
this.logger.info(( localize(9926, "Cancelled installing extension '{0}'.", basename(vsix))));
|
|
283
283
|
}
|
|
284
284
|
else {
|
|
285
285
|
throw error;
|
|
@@ -314,7 +314,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
314
314
|
const newer = installedExtensions.find(local => areSameExtensions(extensionIdentifier, local.identifier) && semverExports.gt(local.manifest.version, manifest.version));
|
|
315
315
|
if (newer) {
|
|
316
316
|
this.logger.info(( localize(
|
|
317
|
-
|
|
317
|
+
9927,
|
|
318
318
|
"A newer version of extension '{0}' v{1} is already installed. Use '--force' option to downgrade to older version.",
|
|
319
319
|
newer.identifier.id,
|
|
320
320
|
newer.manifest.version,
|
|
@@ -342,7 +342,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
342
342
|
}
|
|
343
343
|
if (( (extensionsToUninstall.some(e => e.type === 0 )))) {
|
|
344
344
|
this.logger.info(( localize(
|
|
345
|
-
|
|
345
|
+
9928,
|
|
346
346
|
"Extension '{0}' is a Built-in extension and cannot be uninstalled",
|
|
347
347
|
id
|
|
348
348
|
)));
|
|
@@ -350,26 +350,26 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
350
350
|
}
|
|
351
351
|
if (!force && ( (extensionsToUninstall.some(e => e.isBuiltin)))) {
|
|
352
352
|
this.logger.info(( localize(
|
|
353
|
-
|
|
353
|
+
9929,
|
|
354
354
|
"Extension '{0}' is marked as a Built-in extension by user. Please use '--force' option to uninstall it.",
|
|
355
355
|
id
|
|
356
356
|
)));
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
this.logger.info(( localize(
|
|
359
|
+
this.logger.info(( localize(9930, "Uninstalling {0}...", id)));
|
|
360
360
|
for (const extensionToUninstall of extensionsToUninstall) {
|
|
361
361
|
await this.extensionManagementService.uninstall(extensionToUninstall, { profileLocation });
|
|
362
362
|
}
|
|
363
363
|
if (this.location) {
|
|
364
364
|
this.logger.info(( localize(
|
|
365
|
-
|
|
365
|
+
9931,
|
|
366
366
|
"Extension '{0}' was successfully uninstalled from {1}!",
|
|
367
367
|
id,
|
|
368
368
|
this.location
|
|
369
369
|
)));
|
|
370
370
|
}
|
|
371
371
|
else {
|
|
372
|
-
this.logger.info(( localize(
|
|
372
|
+
this.logger.info(( localize(9932, "Extension '{0}' was successfully uninstalled!", id)));
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -387,7 +387,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
notInstalled(id) {
|
|
390
|
-
return this.location ? ( localize(
|
|
390
|
+
return this.location ? ( localize(9933, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(9934, "Extension '{0}' is not installed.", id));
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
ExtensionManagementCLI = ( (__decorate([
|
|
@@ -288,7 +288,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
288
288
|
if (_editable) {
|
|
289
289
|
this._register(workingCopyService.registerWorkingCopy(this));
|
|
290
290
|
this._register(extensionService.onWillStop(e => {
|
|
291
|
-
e.veto(true, ( localize(
|
|
291
|
+
e.veto(true, ( localize(9948, "A custom editor for '{0}' is open.", this.name)));
|
|
292
292
|
}));
|
|
293
293
|
}
|
|
294
294
|
if (startDirty) {
|
|
@@ -355,7 +355,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
355
355
|
this._undoService.pushElement({
|
|
356
356
|
type: 0 ,
|
|
357
357
|
resource: this._editorResource,
|
|
358
|
-
label: label ?? ( localize(
|
|
358
|
+
label: label ?? ( localize(9949, "Edit")),
|
|
359
359
|
code: 'undoredo.customEditorEdit',
|
|
360
360
|
undo: () => this.undo(),
|
|
361
361
|
redo: () => this.redo(),
|
|
@@ -103,7 +103,7 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
|
|
|
103
103
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
|
104
104
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none';">
|
|
105
105
|
</head>
|
|
106
|
-
<body>${( localize(
|
|
106
|
+
<body>${( localize(9903, "An error occurred while loading view: {0}", escape(viewType)))}</body>
|
|
107
107
|
</html>`;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
@@ -138,11 +138,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
138
138
|
}
|
|
139
139
|
_showBisectPrompt() {
|
|
140
140
|
const goodPrompt = {
|
|
141
|
-
label: ( localize(
|
|
141
|
+
label: ( localize(1154, "I can't reproduce")),
|
|
142
142
|
run: () => this._commandService.executeCommand('extension.bisect.next', false)
|
|
143
143
|
};
|
|
144
144
|
const badPrompt = {
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(1155, "I can reproduce")),
|
|
146
146
|
run: () => this._commandService.executeCommand('extension.bisect.next', true)
|
|
147
147
|
};
|
|
148
148
|
const stop = {
|
|
@@ -151,11 +151,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
151
151
|
};
|
|
152
152
|
const message = this._extensionBisectService.disabledCount === 1
|
|
153
153
|
? ( localize(
|
|
154
|
-
|
|
154
|
+
1156,
|
|
155
155
|
"Extension Bisect is active and has disabled 1 extension. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
156
156
|
))
|
|
157
157
|
: ( localize(
|
|
158
|
-
|
|
158
|
+
1157,
|
|
159
159
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
160
160
|
this._extensionBisectService.disabledCount
|
|
161
161
|
));
|
|
@@ -173,7 +173,7 @@ registerAction2(class extends Action2 {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: 'extension.bisect.start',
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(1158, 'Start Extension Bisect')),
|
|
177
177
|
category: Categories.Help,
|
|
178
178
|
f1: true,
|
|
179
179
|
precondition: ( (ExtensionBisectUi.ctxIsBisectActive.negate())),
|
|
@@ -193,13 +193,13 @@ registerAction2(class extends Action2 {
|
|
|
193
193
|
const extensionsBisect = accessor.get(IExtensionBisectService);
|
|
194
194
|
const extensions = (await extensionManagement.getInstalled(1 )).filter(ext => extensionEnablementService.isEnabled(ext));
|
|
195
195
|
const res = await dialogService.confirm({
|
|
196
|
-
message: ( localize(
|
|
196
|
+
message: ( localize(1159, "Extension Bisect")),
|
|
197
197
|
detail: ( localize(
|
|
198
|
-
|
|
198
|
+
1160,
|
|
199
199
|
"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.",
|
|
200
200
|
2 + Math.log2(extensions.length) | 0
|
|
201
201
|
)),
|
|
202
|
-
primaryButton: ( localize(
|
|
202
|
+
primaryButton: ( localize(1161, "&&Start Extension Bisect"))
|
|
203
203
|
});
|
|
204
204
|
if (res.confirmed) {
|
|
205
205
|
await extensionsBisect.start(extensions);
|
|
@@ -211,7 +211,7 @@ registerAction2(class extends Action2 {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super({
|
|
213
213
|
id: 'extension.bisect.next',
|
|
214
|
-
title: ( localize2(
|
|
214
|
+
title: ( localize2(1162, 'Continue Extension Bisect')),
|
|
215
215
|
category: Categories.Help,
|
|
216
216
|
f1: true,
|
|
217
217
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -245,8 +245,8 @@ registerAction2(class extends Action2 {
|
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
if (done.bad) {
|
|
248
|
-
await dialogService.info(( localize(
|
|
249
|
-
|
|
248
|
+
await dialogService.info(( localize(1163, "Extension Bisect")), ( localize(
|
|
249
|
+
1164,
|
|
250
250
|
"Extension Bisect is done but no extension has been identified. This might be a problem with {0}.",
|
|
251
251
|
productService.nameShort
|
|
252
252
|
)));
|
|
@@ -254,15 +254,15 @@ registerAction2(class extends Action2 {
|
|
|
254
254
|
else {
|
|
255
255
|
const res = await dialogService.confirm({
|
|
256
256
|
type: Severity$1.Info,
|
|
257
|
-
message: ( localize(
|
|
258
|
-
primaryButton: ( localize(
|
|
259
|
-
cancelButton: ( localize(
|
|
257
|
+
message: ( localize(1163, "Extension Bisect")),
|
|
258
|
+
primaryButton: ( localize(1165, "&&Report Issue & Continue")),
|
|
259
|
+
cancelButton: ( localize(1166, "Continue")),
|
|
260
260
|
detail: ( localize(
|
|
261
|
-
|
|
261
|
+
1167,
|
|
262
262
|
"Extension Bisect is done and has identified {0} as the extension causing the problem.",
|
|
263
263
|
done.id
|
|
264
264
|
)),
|
|
265
|
-
checkbox: { label: ( localize(
|
|
265
|
+
checkbox: { label: ( localize(1168, "Keep this extension disabled")), checked: true }
|
|
266
266
|
});
|
|
267
267
|
if (res.checkboxChecked) {
|
|
268
268
|
await extensionEnablementService.disableExtension({ id: done.id }, undefined);
|
|
@@ -277,28 +277,28 @@ registerAction2(class extends Action2 {
|
|
|
277
277
|
async _checkForBad(dialogService, bisectService) {
|
|
278
278
|
const { result } = await dialogService.prompt({
|
|
279
279
|
type: Severity$1.Info,
|
|
280
|
-
message: ( localize(
|
|
280
|
+
message: ( localize(1169, "Extension Bisect")),
|
|
281
281
|
detail: ( localize(
|
|
282
|
-
|
|
282
|
+
1170,
|
|
283
283
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
284
284
|
bisectService.disabledCount
|
|
285
285
|
)),
|
|
286
286
|
buttons: [
|
|
287
287
|
{
|
|
288
|
-
label: ( localize(
|
|
288
|
+
label: ( localize(1171, "I ca&&n't reproduce")),
|
|
289
289
|
run: () => false
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
|
-
label: ( localize(
|
|
292
|
+
label: ( localize(1172, "I can &&reproduce")),
|
|
293
293
|
run: () => true
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
label: ( localize(
|
|
296
|
+
label: ( localize(1173, "&&Stop Bisect")),
|
|
297
297
|
run: () => undefined
|
|
298
298
|
}
|
|
299
299
|
],
|
|
300
300
|
cancelButton: {
|
|
301
|
-
label: ( localize(
|
|
301
|
+
label: ( localize(1174, "&&Cancel Bisect")),
|
|
302
302
|
run: () => null
|
|
303
303
|
}
|
|
304
304
|
});
|
|
@@ -309,7 +309,7 @@ registerAction2(class extends Action2 {
|
|
|
309
309
|
constructor() {
|
|
310
310
|
super({
|
|
311
311
|
id: 'extension.bisect.stop',
|
|
312
|
-
title: ( localize2(
|
|
312
|
+
title: ( localize2(1175, 'Stop Extension Bisect')),
|
|
313
313
|
category: Categories.Help,
|
|
314
314
|
f1: true,
|
|
315
315
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -170,14 +170,14 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
170
170
|
this._remoteAgentService.getConnection()?.dispose();
|
|
171
171
|
}, {
|
|
172
172
|
id: 'join.disconnectRemote',
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(1141, "Disconnect Remote Agent")),
|
|
174
174
|
order: WillShutdownJoinerOrder.Last
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
178
|
event.join(this._doStopExtensionHosts(), {
|
|
179
179
|
id: 'join.stopExtensionHosts',
|
|
180
|
-
label: ( localize(
|
|
180
|
+
label: ( localize(1142, "Stopping Extension Hosts")),
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}));
|
|
@@ -248,7 +248,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
248
248
|
this._notificationService.notify({
|
|
249
249
|
severity: Severity$1.Error,
|
|
250
250
|
message: ( localize(
|
|
251
|
-
|
|
251
|
+
1143,
|
|
252
252
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
253
253
|
( (result.removedDueToLooping.map(e => `'${e.identifier.value}'`))).join(', ')
|
|
254
254
|
))
|
|
@@ -402,7 +402,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
402
402
|
this._notificationService.notify({
|
|
403
403
|
severity: Severity$1.Error,
|
|
404
404
|
message: ( localize(
|
|
405
|
-
|
|
405
|
+
1143,
|
|
406
406
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
407
407
|
( (result.removedDueToLooping.map(e => `'${e.identifier.value}'`))).join(', ')
|
|
408
408
|
))
|
|
@@ -417,7 +417,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
417
417
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
418
418
|
if (!extensionHostManager) {
|
|
419
419
|
const msg = ( localize(
|
|
420
|
-
|
|
420
|
+
1144,
|
|
421
421
|
"No extension host found that can launch the test runner at {0}.",
|
|
422
422
|
(this._environmentService.extensionTestsLocationURI.toString())
|
|
423
423
|
));
|
|
@@ -587,7 +587,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
587
587
|
vetoReasons.add(reason);
|
|
588
588
|
}
|
|
589
589
|
}).catch(error => {
|
|
590
|
-
vetoReasons.add(( localize(
|
|
590
|
+
vetoReasons.add(( localize(1145, "{0} (Error: {1})", reason, toErrorMessage(error))));
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
}
|
|
@@ -600,10 +600,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
600
600
|
if (!auto) {
|
|
601
601
|
const vetoReasonsArray = Array.from(vetoReasons);
|
|
602
602
|
this._logService.warn(`Extension host was not stopped because of veto (stop reason: ${reason}, veto reason: ${vetoReasonsArray.join(', ')})`);
|
|
603
|
-
await this._dialogService.warn(( localize(
|
|
604
|
-
( localize(
|
|
603
|
+
await this._dialogService.warn(( localize(1146, "The following operation was blocked: {0}", reason)), vetoReasonsArray.length === 1 ?
|
|
604
|
+
( localize(1147, "The reason for blocking the operation: {0}", vetoReasonsArray[0])) :
|
|
605
605
|
( localize(
|
|
606
|
-
|
|
606
|
+
1148,
|
|
607
607
|
"The reasons for blocking the operation:\n- {0}",
|
|
608
608
|
vetoReasonsArray.join('\n -')
|
|
609
609
|
)));
|
|
@@ -701,15 +701,15 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
701
701
|
this._remoteCrashTracker.registerCrash();
|
|
702
702
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
703
703
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
704
|
-
this._notificationService.status(( localize(
|
|
704
|
+
this._notificationService.status(( localize(1149, "The remote extension host terminated unexpectedly. Restarting...")), { hideAfter: 5000 });
|
|
705
705
|
this._startExtensionHostsIfNecessary(false, Array.from(( (this._allRequestedActivateEvents.keys()))));
|
|
706
706
|
}
|
|
707
707
|
else {
|
|
708
708
|
this._notificationService.prompt(Severity$1.Error, ( localize(
|
|
709
|
-
|
|
709
|
+
1150,
|
|
710
710
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
711
711
|
)), [{
|
|
712
|
-
label: ( localize(
|
|
712
|
+
label: ( localize(1151, "Restart Remote Extension Host")),
|
|
713
713
|
run: () => {
|
|
714
714
|
this._startExtensionHostsIfNecessary(false, Array.from(( (this._allRequestedActivateEvents.keys()))));
|
|
715
715
|
}
|
|
@@ -1194,7 +1194,7 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1196
1196
|
id: 'activationEvents',
|
|
1197
|
-
label: ( localize(
|
|
1197
|
+
label: ( localize(1152, "Activation Events")),
|
|
1198
1198
|
access: {
|
|
1199
1199
|
canToggle: false
|
|
1200
1200
|
},
|
|
@@ -107,7 +107,7 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
|
|
|
107
107
|
}
|
|
108
108
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
109
109
|
id: 'enabledApiProposals',
|
|
110
|
-
label: ( localize(
|
|
110
|
+
label: ( localize(1153, "API Proposals")),
|
|
111
111
|
access: {
|
|
112
112
|
canToggle: false
|
|
113
113
|
},
|