@codingame/monaco-vscode-extensions-service-override 10.0.1 → 10.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-extensions-service-override",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
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.1",
30
- "@codingame/monaco-vscode-files-service-override": "10.0.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.2",
30
+ "@codingame/monaco-vscode-files-service-override": "10.0.2"
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(9904, "Extension '{0}' not found.", id));
14
+ const notFound = (id) => ( localize(9912, "Extension '{0}' not found.", id));
15
15
  const useId = ( localize(
16
- 9905,
16
+ 9913,
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(9906, "Extensions installed on {0}:", this.location)));
53
+ this.logger.info(( localize(9914, "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(9907, "Installing extensions on {0}...", this.location)) : ( localize(9908, "Installing extensions...")));
68
+ this.logger.info(this.location ? ( localize(9915, "Installing extensions on {0}...", this.location)) : ( localize(9916, "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(9909, "Error while installing extensions: {0}", getErrorMessage(error))));
111
+ this.logger.error(( localize(9917, "Error while installing extensions: {0}", getErrorMessage(error))));
112
112
  throw error;
113
113
  }
114
114
  if (failed.length) {
115
- throw ( (new Error(localize(9910, "Failed Installing Extensions: {0}", failed.join(', ')))));
115
+ throw ( (new Error(localize(9918, "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
- 9911,
127
+ 9919,
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(9912, "No extension to update")));
144
+ this.logger.info(( localize(9920, "No extension to update")));
145
145
  return;
146
146
  }
147
147
  this.logger.info(( localize(
148
- 9913,
148
+ 9921,
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
- 9914,
156
+ 9922,
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
- 9915,
164
+ 9923,
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
- 9916,
178
+ 9924,
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(9917, "Extension '{0}' is already installed.", `${id}@${version}`)));
187
+ this.logger.info(( localize(9925, "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
- 9917,
221
+ 9925,
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
- 9918,
228
+ 9926,
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(9919, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(9920, "Installing builtin extension '{0}'...", id)));
235
+ this.logger.info(version ? ( localize(9927, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(9928, "Installing builtin extension '{0}'...", id)));
236
236
  }
237
237
  else {
238
- this.logger.info(version ? ( localize(9921, "Installing extension '{0}' v{1}...", id, version)) : ( localize(9922, "Installing extension '{0}'...", id)));
238
+ this.logger.info(version ? ( localize(9929, "Installing extension '{0}' v{1}...", id, version)) : ( localize(9930, "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
- 9923,
250
+ 9931,
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
- 9924,
259
+ 9932,
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(9925, "Extension '{0}' was successfully installed.", basename(vsix))));
278
+ this.logger.info(( localize(9933, "Extension '{0}' was successfully installed.", basename(vsix))));
279
279
  }
280
280
  catch (error) {
281
281
  if (isCancellationError(error)) {
282
- this.logger.info(( localize(9926, "Cancelled installing extension '{0}'.", basename(vsix))));
282
+ this.logger.info(( localize(9934, "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
- 9927,
317
+ 9935,
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
- 9928,
345
+ 9936,
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
- 9929,
353
+ 9937,
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(9930, "Uninstalling {0}...", id)));
359
+ this.logger.info(( localize(9938, "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
- 9931,
365
+ 9939,
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(9932, "Extension '{0}' was successfully uninstalled!", id)));
372
+ this.logger.info(( localize(9940, "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(9933, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(9934, "Extension '{0}' is not installed.", id));
390
+ return this.location ? ( localize(9941, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(9942, "Extension '{0}' is not installed.", id));
391
391
  }
392
392
  };
393
393
  ExtensionManagementCLI = ( (__decorate([
@@ -192,7 +192,10 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
192
192
  if (options.clearSessionPreference) {
193
193
  this._removeAccountPreference(extensionId, providerId, scopes);
194
194
  }
195
- const matchingAccountPreferenceSession = this._getAccountPreference(extensionId, providerId, scopes, sessions);
195
+ const matchingAccountPreferenceSession =
196
+ options.account
197
+ ? sessions[0]
198
+ : this._getAccountPreference(extensionId, providerId, scopes, sessions);
196
199
  if (!options.forceNewSession && sessions.length) {
197
200
  if (matchingAccountPreferenceSession && this.authenticationAccessService.isAccessAllowed(providerId, matchingAccountPreferenceSession.account.label, extensionId)) {
198
201
  return matchingAccountPreferenceSession;
@@ -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(9948, "A custom editor for '{0}' is open.", this.name)));
291
+ e.veto(true, ( localize(9956, "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(9949, "Edit")),
358
+ label: label ?? ( localize(9957, "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(9903, "An error occurred while loading view: {0}", escape(viewType)))}</body>
106
+ <body>${( localize(9911, "An error occurred while loading view: {0}", escape(viewType)))}</body>
107
107
  </html>`;
108
108
  }
109
109
  };