@codingame/monaco-vscode-extensions-service-override 10.0.0 → 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.0",
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.0",
30
- "@codingame/monaco-vscode-files-service-override": "10.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.2",
30
+ "@codingame/monaco-vscode-files-service-override": "10.0.2"
31
31
  }
32
32
  }
@@ -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;
@@ -138,11 +138,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
138
138
  }
139
139
  _showBisectPrompt() {
140
140
  const goodPrompt = {
141
- label: ( localize(1156, "I can't reproduce")),
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(1157, "I can reproduce")),
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
- 1158,
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
- 1159,
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(1160, 'Start Extension Bisect')),
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(1161, "Extension Bisect")),
196
+ message: ( localize(1159, "Extension Bisect")),
197
197
  detail: ( localize(
198
- 1162,
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(1163, "&&Start Extension Bisect"))
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(1164, 'Continue Extension Bisect')),
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(1165, "Extension Bisect")), ( localize(
249
- 1166,
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(1165, "Extension Bisect")),
258
- primaryButton: ( localize(1167, "&&Report Issue & Continue")),
259
- cancelButton: ( localize(1168, "Continue")),
257
+ message: ( localize(1163, "Extension Bisect")),
258
+ primaryButton: ( localize(1165, "&&Report Issue & Continue")),
259
+ cancelButton: ( localize(1166, "Continue")),
260
260
  detail: ( localize(
261
- 1169,
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(1170, "Keep this extension disabled")), checked: true }
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(1171, "Extension Bisect")),
280
+ message: ( localize(1169, "Extension Bisect")),
281
281
  detail: ( localize(
282
- 1172,
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(1173, "I ca&&n't reproduce")),
288
+ label: ( localize(1171, "I ca&&n't reproduce")),
289
289
  run: () => false
290
290
  },
291
291
  {
292
- label: ( localize(1174, "I can &&reproduce")),
292
+ label: ( localize(1172, "I can &&reproduce")),
293
293
  run: () => true
294
294
  },
295
295
  {
296
- label: ( localize(1175, "&&Stop Bisect")),
296
+ label: ( localize(1173, "&&Stop Bisect")),
297
297
  run: () => undefined
298
298
  }
299
299
  ],
300
300
  cancelButton: {
301
- label: ( localize(1176, "&&Cancel Bisect")),
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(1177, 'Stop Extension Bisect')),
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(1143, "Disconnect Remote Agent")),
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(1144, "Stopping Extension Hosts")),
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
- 1145,
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
- 1145,
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
- 1146,
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(1147, "{0} (Error: {1})", reason, toErrorMessage(error))));
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(1148, "The following operation was blocked: {0}", reason)), vetoReasonsArray.length === 1 ?
604
- ( localize(1149, "The reason for blocking the operation: {0}", vetoReasonsArray[0])) :
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
- 1150,
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(1151, "The remote extension host terminated unexpectedly. Restarting...")), { hideAfter: 5000 });
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
- 1152,
709
+ 1150,
710
710
  "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
711
711
  )), [{
712
- label: ( localize(1153, "Restart Remote Extension Host")),
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(1154, "Activation Events")),
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(1155, "API Proposals")),
110
+ label: ( localize(1153, "API Proposals")),
111
111
  access: {
112
112
  canToggle: false
113
113
  },