@codingame/monaco-vscode-api 23.0.3 → 23.1.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.
Files changed (72) hide show
  1. package/package.json +8 -8
  2. package/services.d.ts +6 -0
  3. package/services.js +9 -3
  4. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  5. package/vscode/src/vs/editor/contrib/format/browser/format.js +0 -7
  6. package/vscode/src/vs/platform/policy/common/policy.js +27 -4
  7. package/vscode/src/vs/platform/product/common/product.js +3 -3
  8. package/vscode/src/vs/platform/request/common/request.d.ts +1 -0
  9. package/vscode/src/vs/platform/request/common/request.js +3 -2
  10. package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +8 -6
  11. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  12. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -50
  13. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +1 -0
  16. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +1 -0
  17. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
  18. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -8
  19. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +11 -11
  21. package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +2 -2
  22. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  23. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  24. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  25. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  26. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  27. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  28. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  30. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  31. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  32. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  33. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  34. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  35. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  37. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  39. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
  41. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  42. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  43. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  44. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  45. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  47. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  48. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  49. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
  50. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  51. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  52. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  53. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  54. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  55. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  56. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  57. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  58. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  59. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
  60. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +2 -1
  61. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +19 -11
  62. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  63. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  64. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
  65. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  66. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  67. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  68. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  69. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  70. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  71. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  72. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
@@ -46,9 +46,9 @@ var TestRunProfileBitset;
46
46
  TestRunProfileBitset[TestRunProfileBitset["SupportsContinuousRun"] = 64] = "SupportsContinuousRun";
47
47
  })(TestRunProfileBitset || (TestRunProfileBitset = {}));
48
48
  const testProfileBitset = {
49
- [TestRunProfileBitset.Run]: ( localize(12509, 'Run')),
50
- [TestRunProfileBitset.Debug]: ( localize(12510, 'Debug')),
51
- [TestRunProfileBitset.Coverage]: ( localize(12511, 'Coverage')),
49
+ [TestRunProfileBitset.Run]: ( localize(12512, 'Run')),
50
+ [TestRunProfileBitset.Debug]: ( localize(12513, 'Debug')),
51
+ [TestRunProfileBitset.Coverage]: ( localize(12514, 'Coverage')),
52
52
  };
53
53
  const testRunProfileBitsetList = [
54
54
  TestRunProfileBitset.Run,
@@ -301,7 +301,7 @@ class NullDefaultAccountService extends Disposable {
301
301
  constructor() {
302
302
  super({
303
303
  id: DEFAULT_ACCOUNT_SIGN_IN_COMMAND,
304
- title: ( localize(13367, "Sign in")),
304
+ title: ( localize(13370, "Sign in")),
305
305
  });
306
306
  }
307
307
  run() {
@@ -115,10 +115,11 @@ export declare class ChatEntitlementService extends Disposable implements IChatE
115
115
  private readonly contextKeyService;
116
116
  private readonly configurationService;
117
117
  private readonly telemetryService;
118
+ private readonly lifecycleService;
118
119
  _serviceBrand: undefined;
119
120
  readonly context: Lazy<ChatEntitlementContext> | undefined;
120
121
  readonly requests: Lazy<ChatEntitlementRequests> | undefined;
121
- constructor(instantiationService: IInstantiationService, productService: IProductService, environmentService: IWorkbenchEnvironmentService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, telemetryService: ITelemetryService);
122
+ constructor(instantiationService: IInstantiationService, productService: IProductService, environmentService: IWorkbenchEnvironmentService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService);
122
123
  readonly onDidChangeEntitlement: Event<void>;
123
124
  readonly entitlementObs: IObservable<ChatEntitlement>;
124
125
  get entitlement(): ChatEntitlement;
@@ -26,6 +26,7 @@ import { URI } from '../../../../base/common/uri.js';
26
26
  import Severity$1 from '../../../../base/common/severity.js';
27
27
  import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.service.js';
28
28
  import { isWeb } from '../../../../base/common/platform.js';
29
+ import { LifecyclePhase } from '../../lifecycle/common/lifecycle.js';
29
30
  import { ILifecycleService } from '../../lifecycle/common/lifecycle.service.js';
30
31
  import { distinct } from '../../../../base/common/arrays.js';
31
32
  import '../../../../platform/instantiation/common/extensions.js';
@@ -113,11 +114,12 @@ function logChatEntitlements(state, configurationService, telemetryService) {
113
114
  });
114
115
  }
115
116
  let ChatEntitlementService = class ChatEntitlementService extends Disposable {
116
- constructor(instantiationService, productService, environmentService, contextKeyService, configurationService, telemetryService) {
117
+ constructor(instantiationService, productService, environmentService, contextKeyService, configurationService, telemetryService, lifecycleService) {
117
118
  super();
118
119
  this.contextKeyService = contextKeyService;
119
120
  this.configurationService = configurationService;
120
121
  this.telemetryService = telemetryService;
122
+ this.lifecycleService = lifecycleService;
121
123
  this._onDidChangeQuotaExceeded = this._register(( new Emitter()));
122
124
  this.onDidChangeQuotaExceeded = this._onDidChangeQuotaExceeded.event;
123
125
  this._onDidChangeQuotaRemaining = this._register(( new Emitter()));
@@ -251,6 +253,11 @@ let ChatEntitlementService = class ChatEntitlementService extends Disposable {
251
253
  }));
252
254
  this._register(this.onDidChangeEntitlement(() => updateAnonymousUsage()));
253
255
  this._register(this.onDidChangeSentiment(() => updateAnonymousUsage()));
256
+ this.lifecycleService.when(LifecyclePhase.Eventually).then(() => {
257
+ if (this.context?.hasValue) {
258
+ logChatEntitlements(this.context.value.state, this.configurationService, this.telemetryService);
259
+ }
260
+ });
254
261
  }
255
262
  acceptQuotas(quotas) {
256
263
  const oldQuota = this._quotas;
@@ -304,7 +311,8 @@ ChatEntitlementService = ( __decorate([
304
311
  ( __param(2, IWorkbenchEnvironmentService)),
305
312
  ( __param(3, IContextKeyService)),
306
313
  ( __param(4, IConfigurationService)),
307
- ( __param(5, ITelemetryService))
314
+ ( __param(5, ITelemetryService)),
315
+ ( __param(6, ILifecycleService))
308
316
  ], ChatEntitlementService));
309
317
  let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementRequests extends Disposable {
310
318
  static providerId(configurationService) {
@@ -625,7 +633,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
625
633
  };
626
634
  const response = await this.request(defaultChat.entitlementSignupLimitedUrl, 'POST', body, sessions, CancellationToken.None);
627
635
  if (!response) {
628
- const retry = await this.onUnknownSignUpError(( localize(13527, "No response received.")), '[chat entitlement] sign-up: no response');
636
+ const retry = await this.onUnknownSignUpError(( localize(13530, "No response received.")), '[chat entitlement] sign-up: no response');
629
637
  return retry ? this.signUpFree(sessions) : { errorCode: 1 };
630
638
  }
631
639
  if (response.res.statusCode && response.res.statusCode !== 200) {
@@ -643,7 +651,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
643
651
  catch (error) {
644
652
  }
645
653
  }
646
- const retry = await this.onUnknownSignUpError(( localize(13528, "Unexpected status code {0}.", response.res.statusCode)), `[chat entitlement] sign-up: unexpected status code ${response.res.statusCode}`);
654
+ const retry = await this.onUnknownSignUpError(( localize(13531, "Unexpected status code {0}.", response.res.statusCode)), `[chat entitlement] sign-up: unexpected status code ${response.res.statusCode}`);
647
655
  return retry ? this.signUpFree(sessions) : { errorCode: response.res.statusCode };
648
656
  }
649
657
  let responseText = null;
@@ -653,7 +661,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
653
661
  catch (error) {
654
662
  }
655
663
  if (!responseText) {
656
- const retry = await this.onUnknownSignUpError(( localize(13529, "Response has no contents.")), '[chat entitlement] sign-up: response has no content');
664
+ const retry = await this.onUnknownSignUpError(( localize(13532, "Response has no contents.")), '[chat entitlement] sign-up: response has no content');
657
665
  return retry ? this.signUpFree(sessions) : { errorCode: 2 };
658
666
  }
659
667
  let parsedResult = undefined;
@@ -662,7 +670,7 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
662
670
  this.logService.trace(`[chat entitlement] sign-up: response is ${responseText}`);
663
671
  }
664
672
  catch (err) {
665
- const retry = await this.onUnknownSignUpError(( localize(13530, "Invalid response contents.")), `[chat entitlement] sign-up: error parsing response (${err})`);
673
+ const retry = await this.onUnknownSignUpError(( localize(13533, "Invalid response contents.")), `[chat entitlement] sign-up: error parsing response (${err})`);
666
674
  return retry ? this.signUpFree(sessions) : { errorCode: 3 };
667
675
  }
668
676
  this.update({ entitlement: ChatEntitlement.Free });
@@ -674,11 +682,11 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
674
682
  const { confirmed } = await this.dialogService.confirm({
675
683
  type: Severity$1.Error,
676
684
  message: ( localize(
677
- 13531,
685
+ 13534,
678
686
  "An error occurred while signing up for the GitHub Copilot Free plan. Would you like to try again?"
679
687
  )),
680
688
  detail,
681
- primaryButton: ( localize(13532, "Retry"))
689
+ primaryButton: ( localize(13535, "Retry"))
682
690
  });
683
691
  return confirmed;
684
692
  }
@@ -690,17 +698,17 @@ let ChatEntitlementRequests = ChatEntitlementRequests_1 = class ChatEntitlementR
690
698
  this.dialogService.prompt({
691
699
  type: Severity$1.Error,
692
700
  message: ( localize(
693
- 13533,
701
+ 13536,
694
702
  "An error occurred while signing up for the GitHub Copilot Free plan."
695
703
  )),
696
704
  detail: logDetails,
697
705
  buttons: [
698
706
  {
699
- label: ( localize(13534, "OK")),
707
+ label: ( localize(13537, "OK")),
700
708
  run: () => { }
701
709
  },
702
710
  {
703
- label: ( localize(13535, "Learn More")),
711
+ label: ( localize(13538, "Learn More")),
704
712
  run: () => this.openerService.open(( URI.parse(defaultChat.upgradePlanUrl)))
705
713
  }
706
714
  ]
@@ -81,7 +81,7 @@ class AbstractVariableResolverService {
81
81
  return normalizeDriveLetter(filePath);
82
82
  }
83
83
  throw ( new VariableError(variableKind, ( localize(
84
- 13603,
84
+ 13606,
85
85
  "Variable {0} can not be resolved. Please open an editor.",
86
86
  replacement.id
87
87
  ))));
@@ -95,7 +95,7 @@ class AbstractVariableResolverService {
95
95
  }
96
96
  }
97
97
  throw ( new VariableError(variableKind, ( localize(
98
- 13604,
98
+ 13607,
99
99
  "Variable {0}: can not find workspace folder of '{1}'.",
100
100
  replacement.id,
101
101
  basename(filePath)
@@ -108,7 +108,7 @@ class AbstractVariableResolverService {
108
108
  return folder;
109
109
  }
110
110
  throw ( new VariableError(variableKind, ( localize(
111
- 13605,
111
+ 13608,
112
112
  "Variable {0} can not be resolved. No such folder '{1}'.",
113
113
  variableKind,
114
114
  argument
@@ -119,13 +119,13 @@ class AbstractVariableResolverService {
119
119
  }
120
120
  if (this._context.getWorkspaceFolderCount() > 1) {
121
121
  throw ( new VariableError(variableKind, ( localize(
122
- 13606,
122
+ 13609,
123
123
  "Variable {0} can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name.",
124
124
  variableKind
125
125
  ))));
126
126
  }
127
127
  throw ( new VariableError(variableKind, ( localize(
128
- 13607,
128
+ 13610,
129
129
  "Variable {0} can not be resolved. Please open a folder.",
130
130
  variableKind
131
131
  ))));
@@ -142,7 +142,7 @@ class AbstractVariableResolverService {
142
142
  return '';
143
143
  }
144
144
  throw ( new VariableError(VariableKind.Env, ( localize(
145
- 13608,
145
+ 13611,
146
146
  "Variable {0} can not be resolved because no environment variable name is given.",
147
147
  replacement.id
148
148
  ))));
@@ -151,7 +151,7 @@ class AbstractVariableResolverService {
151
151
  const config = this._context.getConfigurationValue(folderUri, argument);
152
152
  if (isUndefinedOrNull(config)) {
153
153
  throw ( new VariableError(VariableKind.Config, ( localize(
154
- 13609,
154
+ 13612,
155
155
  "Variable {0} can not be resolved because setting '{1}' not found.",
156
156
  replacement.id,
157
157
  argument
@@ -159,7 +159,7 @@ class AbstractVariableResolverService {
159
159
  }
160
160
  if (isObject(config)) {
161
161
  throw ( new VariableError(VariableKind.Config, ( localize(
162
- 13610,
162
+ 13613,
163
163
  "Variable {0} can not be resolved because '{1}' is a structured value.",
164
164
  replacement.id,
165
165
  argument
@@ -168,7 +168,7 @@ class AbstractVariableResolverService {
168
168
  return config;
169
169
  }
170
170
  throw ( new VariableError(VariableKind.Config, ( localize(
171
- 13611,
171
+ 13614,
172
172
  "Variable {0} can not be resolved because no settings name is given.",
173
173
  replacement.id
174
174
  ))));
@@ -181,7 +181,7 @@ class AbstractVariableResolverService {
181
181
  const ext = await this._context.getExtension(argument);
182
182
  if (!ext) {
183
183
  throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
184
- 13612,
184
+ 13615,
185
185
  "Variable {0} can not be resolved because the extension {1} is not installed.",
186
186
  replacement.id,
187
187
  argument
@@ -190,7 +190,7 @@ class AbstractVariableResolverService {
190
190
  return this.fsPath(ext.extensionLocation);
191
191
  }
192
192
  throw ( new VariableError(VariableKind.ExtensionInstallFolder, ( localize(
193
- 13613,
193
+ 13616,
194
194
  "Variable {0} can not be resolved because no extension name is given.",
195
195
  replacement.id
196
196
  ))));
@@ -218,7 +218,7 @@ class AbstractVariableResolverService {
218
218
  return environment.userHome;
219
219
  }
220
220
  throw ( new VariableError(VariableKind.UserHome, ( localize(
221
- 13614,
221
+ 13617,
222
222
  "Variable {0} can not be resolved. UserHome path is not defined",
223
223
  replacement.id
224
224
  ))));
@@ -228,7 +228,7 @@ class AbstractVariableResolverService {
228
228
  return lineNumber;
229
229
  }
230
230
  throw ( new VariableError(VariableKind.LineNumber, ( localize(
231
- 13615,
231
+ 13618,
232
232
  "Variable {0} can not be resolved. Make sure to have a line selected in the active editor.",
233
233
  replacement.id
234
234
  ))));
@@ -239,7 +239,7 @@ class AbstractVariableResolverService {
239
239
  return columnNumber;
240
240
  }
241
241
  throw ( new Error(( localize(
242
- 13616,
242
+ 13619,
243
243
  "Variable {0} can not be resolved. Make sure to have a column selected in the active editor.",
244
244
  replacement.id
245
245
  ))));
@@ -250,7 +250,7 @@ class AbstractVariableResolverService {
250
250
  return selectedText;
251
251
  }
252
252
  throw ( new VariableError(VariableKind.SelectedText, ( localize(
253
- 13617,
253
+ 13620,
254
254
  "Variable {0} can not be resolved. Make sure to have some text selected in the active editor.",
255
255
  replacement.id
256
256
  ))));
@@ -322,7 +322,7 @@ class AbstractVariableResolverService {
322
322
  return v;
323
323
  }
324
324
  throw ( new VariableError(variableKind, ( localize(
325
- 13618,
325
+ 13621,
326
326
  "Variable {0} can not be resolved because the command has no value.",
327
327
  match
328
328
  ))));
@@ -16,7 +16,7 @@ const editorAssociationsConfigurationNode = {
16
16
  'workbench.editorAssociations': {
17
17
  type: 'object',
18
18
  markdownDescription: ( localize(
19
- 13672,
19
+ 13675,
20
20
  "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
21
21
  )),
22
22
  additionalProperties: {