@codingame/monaco-vscode-policy-service-override 38.0.7 → 39.0.0

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": "38.0.7",
3
+ "version": "39.0.0",
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": "38.0.7"
18
+ "@codingame/monaco-vscode-api": "39.0.0"
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
- 24767,
147
+ 27736,
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
- 24768,
154
+ 27737,
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
- 24769,
160
+ 27738,
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
- 24770,
166
+ 27739,
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(24771, "Sign In")),
172
+ label: ( localize(27740, "Sign In")),
173
173
  run: () => this.commandService.executeCommand(DEFAULT_ACCOUNT_SIGN_IN_COMMAND)
174
174
  }, {
175
- label: ( localize(24772, "Learn More")),
175
+ label: ( localize(27741, "Learn More")),
176
176
  run: () => this.openerService.open(( URI.parse("https://code.visualstudio.com/docs/enterprise/overview")))
177
177
  }], {
178
178
  sticky: true
@@ -209,7 +209,7 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
209
209
  this.managedSettingsPendingNotificationHandle.value = store;
210
210
  store.add(disposableTimeout(() => {
211
211
  const handle = this.notificationService.prompt(Severity.Info, ( localize(
212
- 24773,
212
+ 27742,
213
213
  "{0} is resolving your organization's policy. AI features will remain unavailable until this completes.",
214
214
  this.productService.nameShort
215
215
  )), [], {
@@ -256,37 +256,37 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
256
256
  switch (freshness.failure) {
257
257
  case ManagedSettingsFreshnessFailure.NoToken:
258
258
  return localize(
259
- 24774,
259
+ 27743,
260
260
  "AI features are unavailable because {0} must refresh your organization's managed settings. Sign in to continue.",
261
261
  this.productService.nameShort
262
262
  );
263
263
  case ManagedSettingsFreshnessFailure.NoUrl:
264
264
  return localize(
265
- 24775,
265
+ 27744,
266
266
  "AI features are unavailable because {0} cannot locate your organization's managed settings service. Contact your administrator.",
267
267
  this.productService.nameShort
268
268
  );
269
269
  case ManagedSettingsFreshnessFailure.RateLimited:
270
270
  return localize(
271
- 24776,
271
+ 27745,
272
272
  "AI features are temporarily unavailable because your organization's managed settings service is rate limiting requests. Try again later."
273
273
  );
274
274
  case ManagedSettingsFreshnessFailure.HttpError:
275
275
  return localize(
276
- 24777,
276
+ 27746,
277
277
  "AI features are unavailable because {0} could not refresh your organization's managed settings (HTTP {1}). Retry after checking your connection.",
278
278
  this.productService.nameShort,
279
279
  freshness.httpStatus
280
280
  );
281
281
  case ManagedSettingsFreshnessFailure.Malformed:
282
282
  return localize(
283
- 24778,
283
+ 27747,
284
284
  "AI features are unavailable because {0} received an invalid managed settings response. Retry or contact your administrator.",
285
285
  this.productService.nameShort
286
286
  );
287
287
  case ManagedSettingsFreshnessFailure.Network:
288
288
  return localize(
289
- 24779,
289
+ 27748,
290
290
  "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.",
291
291
  this.productService.nameShort
292
292
  );
@@ -296,12 +296,12 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
296
296
  const buttons = [];
297
297
  if (freshness.failure === ManagedSettingsFreshnessFailure.NoToken) {
298
298
  buttons.push({
299
- label: ( localize(24780, "Sign In")),
299
+ label: ( localize(27749, "Sign In")),
300
300
  run: () => this.commandService.executeCommand(DEFAULT_ACCOUNT_SIGN_IN_COMMAND)
301
301
  });
302
302
  } else if (freshness.failure !== ManagedSettingsFreshnessFailure.NoUrl) {
303
303
  buttons.push({
304
- label: ( localize(24781, "Retry")),
304
+ label: ( localize(27750, "Retry")),
305
305
  run: () => {
306
306
  void this.defaultAccountService.refresh({
307
307
  forceRefresh: true,
@@ -310,14 +310,14 @@ let AccountPolicyGateContribution = class AccountPolicyGateContribution extends
310
310
  }
311
311
  });
312
312
  }
313
- const title = freshness.failure === ManagedSettingsFreshnessFailure.Malformed ? ( localize(24782, "Invalid Managed Settings")) : ( localize(24783, "Managed Settings Unavailable"));
313
+ const title = freshness.failure === ManagedSettingsFreshnessFailure.Malformed ? ( localize(27751, "Invalid Managed Settings")) : ( localize(27752, "Managed Settings Unavailable"));
314
314
  return this.dialogService.prompt({
315
315
  type: Severity.Warning,
316
316
  title,
317
317
  message: this.getManagedSettingsBlockedMessage(freshness),
318
318
  custom: true,
319
319
  buttons,
320
- cancelButton: ( localize(24784, "Close"))
320
+ cancelButton: ( localize(27753, "Close"))
321
321
  });
322
322
  }
323
323
  };
@@ -69,7 +69,7 @@ let ManagedSettingsUpdateContribution = class ManagedSettingsUpdateContribution
69
69
  bannerService.show({
70
70
  id: ManagedSettingsUpdateContribution_1.ID,
71
71
  icon: Codicon.info,
72
- message: info.updateStatus ? ( localize(24785, "{0} {1}", info.message, info.updateStatus)) : info.message,
72
+ message: info.updateStatus ? ( localize(27754, "{0} {1}", info.message, info.updateStatus)) : info.message,
73
73
  ariaLabel: [info.title, info.message, info.detail, info.updateStatus].filter(Boolean).join(" "),
74
74
  actions: info.action ? [info.action] : [],
75
75
  priority: -1,
@@ -108,20 +108,20 @@ AccessibleViewRegistry.register({
108
108
  info.detail,
109
109
  info.updateStatus,
110
110
  isSessionsWindow ? ( localize(
111
- 24786,
111
+ 27755,
112
112
  "The Agents window is blocked by your organization's minimum-version requirement. The overlay explains the required update."
113
- )) : ( localize(24787, "Chat is read-only while this requirement is active.")),
113
+ )) : ( localize(27756, "Chat is read-only while this requirement is active.")),
114
114
  ( localize(
115
- 24788,
115
+ 27757,
116
116
  "Use Tab or Shift+Tab to move between available actions, then press Enter or Space to activate one."
117
117
  )),
118
- info.action ? ( localize(24789, "The available update action is {0}.", info.action.label)) : undefined,
118
+ info.action ? ( localize(27758, "The available update action is {0}.", info.action.label)) : undefined,
119
119
  isSessionsWindow ? ( localize(
120
- 24790,
120
+ 27759,
121
121
  "Use Tab or Shift+Tab to reach Open Editor Window, then press Enter or Space. This opens a new editor window."
122
122
  )) : undefined,
123
123
  !isSessionsWindow ? ( localize(
124
- 24791,
124
+ 27760,
125
125
  "The window banner is also available with the Focus Banner command. In the banner, use the arrow keys to reach its actions. Closing the banner does not dismiss the explanation in Chat or change your organization's requirement."
126
126
  )) : undefined
127
127
  ].filter(Boolean).join("\n"), () => {