@codingame/monaco-vscode-policy-service-override 37.6.0 → 37.6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-policy-service-override",
3
- "version": "37.6.0",
3
+ "version": "37.6.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - policy service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.6.0"
18
+ "@codingame/monaco-vscode-api": "37.6.1"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -144,35 +144,35 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
144
144
  let message;
145
145
  if (accountName && hasConcreteOrgs) {
146
146
  message = ( localize(
147
- 22184,
147
+ 22183,
148
148
  "Your administrator restricts AI features to GitHub accounts in the following organizations: {0}. The account \"{1}\" is not a member of any of these.",
149
149
  orgList,
150
150
  accountName
151
151
  ));
152
152
  } else if (accountName) {
153
153
  message = ( localize(
154
- 22185,
154
+ 22184,
155
155
  "Your administrator restricts AI features to specific GitHub accounts. The account \"{0}\" does not qualify.",
156
156
  accountName
157
157
  ));
158
158
  } else if (hasConcreteOrgs) {
159
159
  message = ( localize(
160
- 22186,
160
+ 22185,
161
161
  "Your administrator restricts AI features to GitHub accounts in the following organizations: {0}.",
162
162
  orgList
163
163
  ));
164
164
  } else {
165
165
  message = ( localize(
166
- 22187,
166
+ 22186,
167
167
  "Your administrator restricts AI features to specific GitHub accounts."
168
168
  ));
169
169
  }
170
170
  const handleDisposables = ( new DisposableStore());
171
171
  const handle = this.notificationService.prompt(Severity.Warning, message, [{
172
- label: ( localize(22188, "Sign In")),
172
+ label: ( localize(22187, "Sign In")),
173
173
  run: () => this.commandService.executeCommand(DEFAULT_ACCOUNT_SIGN_IN_COMMAND)
174
174
  }, {
175
- label: ( localize(22189, "Learn More")),
175
+ label: ( localize(22188, "Learn More")),
176
176
  run: () => this.openerService.open(( URI.parse("https://code.visualstudio.com/docs/enterprise/overview")))
177
177
  }], {
178
178
  sticky: true
@@ -210,7 +210,7 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
210
210
  this.managedSettingsPendingNotificationHandle.value = store;
211
211
  store.add(disposableTimeout(() => {
212
212
  const handle = this.notificationService.prompt(Severity.Info, ( localize(
213
- 22190,
213
+ 22189,
214
214
  "{0} is resolving your organization's policy. AI features will remain unavailable until this completes.",
215
215
  this.productService.nameShort
216
216
  )), [], {
@@ -261,37 +261,37 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
261
261
  switch (freshness.failure) {
262
262
  case ManagedSettingsFreshnessFailure.NoToken:
263
263
  return localize(
264
- 22191,
264
+ 22190,
265
265
  "AI features are unavailable because {0} must refresh your organization's managed settings. Sign in to continue.",
266
266
  this.productService.nameShort
267
267
  );
268
268
  case ManagedSettingsFreshnessFailure.NoUrl:
269
269
  return localize(
270
- 22192,
270
+ 22191,
271
271
  "AI features are unavailable because {0} cannot locate your organization's managed settings service. Contact your administrator.",
272
272
  this.productService.nameShort
273
273
  );
274
274
  case ManagedSettingsFreshnessFailure.RateLimited:
275
275
  return localize(
276
- 22193,
276
+ 22192,
277
277
  "AI features are temporarily unavailable because your organization's managed settings service is rate limiting requests. Try again later."
278
278
  );
279
279
  case ManagedSettingsFreshnessFailure.HttpError:
280
280
  return localize(
281
- 22194,
281
+ 22193,
282
282
  "AI features are unavailable because {0} could not refresh your organization's managed settings (HTTP {1}). Retry after checking your connection.",
283
283
  this.productService.nameShort,
284
284
  freshness.httpStatus
285
285
  );
286
286
  case ManagedSettingsFreshnessFailure.Malformed:
287
287
  return localize(
288
- 22195,
288
+ 22194,
289
289
  "AI features are unavailable because {0} received an invalid managed settings response. Retry or contact your administrator.",
290
290
  this.productService.nameShort
291
291
  );
292
292
  case ManagedSettingsFreshnessFailure.Network:
293
293
  return localize(
294
- 22196,
294
+ 22195,
295
295
  "Your organization requires {0} to refresh managed settings whenever it starts or reloads.\n\nAn error prevented the required policy from being retrieved, so AI features are unavailable. Retry, or contact your organization's administrator if the issue persists.",
296
296
  this.productService.nameShort
297
297
  );
@@ -301,12 +301,12 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
301
301
  const buttons = [];
302
302
  if (freshness.failure === ManagedSettingsFreshnessFailure.NoToken) {
303
303
  buttons.push({
304
- label: ( localize(22197, "Sign In")),
304
+ label: ( localize(22196, "Sign In")),
305
305
  run: () => this.commandService.executeCommand(DEFAULT_ACCOUNT_SIGN_IN_COMMAND)
306
306
  });
307
307
  } else if (freshness.failure !== ManagedSettingsFreshnessFailure.NoUrl) {
308
308
  buttons.push({
309
- label: ( localize(22198, "Retry")),
309
+ label: ( localize(22197, "Retry")),
310
310
  run: () => {
311
311
  void this.defaultAccountService.refresh({
312
312
  forceRefresh: true,
@@ -315,40 +315,40 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
315
315
  }
316
316
  });
317
317
  }
318
- const title = freshness.failure === ManagedSettingsFreshnessFailure.Malformed ? ( localize(22199, "Invalid Managed Settings")) : ( localize(22200, "Managed Settings Unavailable"));
318
+ const title = freshness.failure === ManagedSettingsFreshnessFailure.Malformed ? ( localize(22198, "Invalid Managed Settings")) : ( localize(22199, "Managed Settings Unavailable"));
319
319
  return this.dialogService.prompt({
320
320
  type: Severity.Warning,
321
321
  title,
322
322
  message: this.getManagedSettingsBlockedMessage(freshness),
323
323
  custom: true,
324
324
  buttons,
325
- cancelButton: ( localize(22201, "Close"))
325
+ cancelButton: ( localize(22200, "Close"))
326
326
  });
327
327
  }
328
328
  showManagedSettingsCompatibilityDialog(error) {
329
329
  const message = error.minimumClientVersion ? ( localize(
330
- 22202,
330
+ 22201,
331
331
  "Your version of {0} cannot enforce your organization's managed settings. Update {0} to version {1} or later to continue using AI features.",
332
332
  this.productService.nameShort,
333
333
  error.minimumClientVersion
334
334
  )) : ( localize(
335
- 22203,
335
+ 22202,
336
336
  "Your version of {0} cannot enforce your organization's managed settings. Update {0} to continue using AI features.",
337
337
  this.productService.nameShort
338
338
  ));
339
339
  return this.dialogService.prompt({
340
340
  type: Severity.Warning,
341
- title: ( localize(22204, "Update Required")),
341
+ title: ( localize(22203, "Update Required")),
342
342
  message,
343
343
  custom: true,
344
344
  buttons: [{
345
- label: ( localize(22205, "Check for Updates")),
345
+ label: ( localize(22204, "Check for Updates")),
346
346
  run: () => this.commandService.executeCommand("update.checkForUpdate")
347
347
  }, {
348
- label: ( localize(22206, "Learn More")),
348
+ label: ( localize(22205, "Learn More")),
349
349
  run: () => this.openerService.open(( URI.parse("https://code.visualstudio.com/docs/enterprise/overview")))
350
350
  }],
351
- cancelButton: ( localize(22207, "Close"))
351
+ cancelButton: ( localize(22206, "Close"))
352
352
  });
353
353
  }
354
354
  };