@codingame/monaco-vscode-api 1.78.5 → 1.78.6

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 (80) hide show
  1. package/dist/node_modules/tslib/tslib.es6.js +2 -2
  2. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +1 -2
  3. package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
  4. package/dist/vscode/vs/platform/files/common/fileService.js +3 -3
  5. package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +1 -1
  6. package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  7. package/dist/vscode/vs/platform/workspaces/common/workspaces.js +1 -1
  8. package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
  9. package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
  10. package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +4 -4
  11. package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
  12. package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
  13. package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +1 -1
  14. package/dist/vscode/vs/workbench/api/common/cache.js +1 -1
  15. package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +1 -1
  16. package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
  17. package/dist/vscode/vs/workbench/api/common/extHostCommands.js +2 -2
  18. package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +2 -2
  19. package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +1 -1
  20. package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +3 -3
  21. package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +3 -3
  22. package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  23. package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +1 -1
  24. package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +1 -1
  25. package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +1 -1
  26. package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +1 -1
  27. package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +1 -1
  28. package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +2 -2
  29. package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +1 -1
  30. package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +2 -2
  31. package/dist/vscode/vs/workbench/api/common/extHostTypes.js +4 -4
  32. package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +1 -1
  33. package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +6 -795
  34. package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +110 -1487
  35. package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +1 -1
  36. package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
  37. package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +1 -1
  38. package/dist/vscode/vs/workbench/browser/quickaccess.js +2 -4
  39. package/dist/vscode/vs/workbench/common/contextkeys.js +1 -30
  40. package/dist/vscode/vs/workbench/common/editor.js +1 -1
  41. package/dist/vscode/vs/workbench/common/resources.js +3 -3
  42. package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +1 -1
  43. package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +1 -1
  44. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
  45. package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
  46. package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
  47. package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +3 -3
  48. package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
  49. package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -1
  50. package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
  51. package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsService.js +5 -3
  52. package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +1 -1
  53. package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
  54. package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
  55. package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -1
  56. package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +10 -10
  57. package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +3 -3
  58. package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +3 -3
  59. package/dist/vscode/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
  60. package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -2
  61. package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +1 -9
  62. package/dist/vscode/vs/workbench/services/output/common/output.js +1 -1
  63. package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
  64. package/dist/vscode/vs/workbench/services/search/common/searchService.js +7 -7
  65. package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +2 -2
  66. package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +1 -1
  67. package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +1 -1
  68. package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +4 -4
  69. package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +3 -3
  70. package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
  71. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +11 -7
  72. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +1 -1
  73. package/monaco-editor-treemending.patch +531 -531
  74. package/package.json +1 -1
  75. package/dist/assets/editorstatus.css +0 -51
  76. package/dist/assets/panelpart.css +0 -75
  77. package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +0 -1201
  78. package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +0 -146
  79. package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +0 -460
  80. package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +0 -422
@@ -9,13 +9,13 @@ function __param(paramIndex, decorator) {
9
9
  }
10
10
  function __classPrivateFieldGet(receiver, state, kind, f) {
11
11
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
12
+ if (typeof state === "function" ? receiver !== state || !f : !( state.has(receiver))) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13
13
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14
14
  }
15
15
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
16
16
  if (kind === "m") throw new TypeError("Private method is not writable");
17
17
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
18
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
18
+ if (typeof state === "function" ? receiver !== state || !f : !( state.has(receiver))) throw new TypeError("Cannot write private member to an object whose class did not declare it");
19
19
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
20
  }
21
21
  export { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __param };
@@ -1,5 +1,4 @@
1
1
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
2
  const EXTENSION_IDENTIFIER_PATTERN = '^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$';
3
- const IExtensionGalleryService = ( createDecorator('extensionGalleryService'));
4
3
  const IExtensionManagementService = ( createDecorator('extensionManagementService'));
5
- export { EXTENSION_IDENTIFIER_PATTERN, IExtensionGalleryService, IExtensionManagementService };
4
+ export { EXTENSION_IDENTIFIER_PATTERN, IExtensionManagementService };
@@ -9,7 +9,7 @@ class ImplicitActivationEventsImpl {
9
9
  this._generators.set(extensionPointName, generator);
10
10
  }
11
11
  readActivationEvents(extensionDescription) {
12
- if (!this._cache.has(extensionDescription)) {
12
+ if (!( this._cache.has(extensionDescription))) {
13
13
  this._cache.set(extensionDescription, this._readActivationEvents(extensionDescription));
14
14
  }
15
15
  return this._cache.get(extensionDescription);
@@ -39,7 +39,7 @@ let FileService = class FileService extends Disposable {
39
39
  this.writeQueue = this._register(( new ResourceQueue()));
40
40
  }
41
41
  registerProvider(scheme, provider) {
42
- if (this.provider.has(scheme)) {
42
+ if (( this.provider.has(scheme))) {
43
43
  throw new Error(`A filesystem provider for the scheme '${scheme}' is already registered.`);
44
44
  }
45
45
  mark(`code/registerFilesystem/${scheme}`);
@@ -68,7 +68,7 @@ let FileService = class FileService extends Disposable {
68
68
  joiners.push(promise);
69
69
  },
70
70
  });
71
- if (this.provider.has(scheme)) {
71
+ if (( this.provider.has(scheme))) {
72
72
  return;
73
73
  }
74
74
  await Promises.settled(joiners);
@@ -78,7 +78,7 @@ let FileService = class FileService extends Disposable {
78
78
  return this.hasProvider(resource);
79
79
  }
80
80
  hasProvider(resource) {
81
- return this.provider.has(resource.scheme);
81
+ return ( this.provider.has(resource.scheme));
82
82
  }
83
83
  hasCapability(resource, capability) {
84
84
  const provider = this.provider.get(resource.scheme);
@@ -97,7 +97,7 @@ class InMemoryFileSystemProvider extends Disposable {
97
97
  const dirname = resources.dirname(resource);
98
98
  const basename = resources.basename(resource);
99
99
  const parent = this._lookupAsDirectory(dirname, false);
100
- if (parent.entries.has(basename)) {
100
+ if (( parent.entries.has(basename))) {
101
101
  parent.entries.delete(basename);
102
102
  parent.mtime = Date.now();
103
103
  parent.size -= 1;
@@ -45,7 +45,7 @@ function cleanRemoteAuthority(remoteAuthority) {
45
45
  return 'none';
46
46
  }
47
47
  const remoteName = getRemoteName(remoteAuthority);
48
- return telemetryAllowedAuthorities.has(remoteName) ? remoteName : 'other';
48
+ return ( telemetryAllowedAuthorities.has(remoteName)) ? remoteName : 'other';
49
49
  }
50
50
  function anonymizeFilePaths(stack, cleanupPatterns) {
51
51
  if (!stack || (!stack.includes('/') && !stack.includes('\\'))) {
@@ -93,7 +93,7 @@ function toWorkspaceFolders(configuredFolders, workspaceConfigFile, extUri) {
93
93
  }
94
94
  if (uri) {
95
95
  const comparisonKey = extUri.getComparisonKey(uri);
96
- if (!seen.has(comparisonKey)) {
96
+ if (!( (seen.has(comparisonKey)))) {
97
97
  seen.add(comparisonKey);
98
98
  const name = configuredFolder.name || extUri.basenameOrAuthority(uri);
99
99
  result.push(( (new WorkspaceFolder({ uri, name, index: result.length }, configuredFolder))));
@@ -254,7 +254,7 @@ let MainThreadDebugService = class MainThreadDebugService {
254
254
  getSessionDto(session) {
255
255
  if (session) {
256
256
  const sessionID = session.getId();
257
- if (this._sessions.has(sessionID)) {
257
+ if (( this._sessions.has(sessionID))) {
258
258
  return sessionID;
259
259
  }
260
260
  else {
@@ -25,7 +25,7 @@ let MainThreadDiagnostics = class MainThreadDiagnostics {
25
25
  data.push([resource, []]);
26
26
  }
27
27
  else {
28
- const forgeinMarkerData = allMarkerData.filter(marker => !this._activeOwners.has(marker.owner));
28
+ const forgeinMarkerData = allMarkerData.filter(marker => !( this._activeOwners.has(marker.owner)));
29
29
  if (forgeinMarkerData.length > 0) {
30
30
  data.push([resource, forgeinMarkerData]);
31
31
  }
@@ -151,13 +151,13 @@ let MainThreadDocuments = class MainThreadDocuments extends Disposable {
151
151
  }
152
152
  _onModelModeChanged(event) {
153
153
  const { model } = event;
154
- if (!this._modelTrackers.has(model.uri)) {
154
+ if (!( this._modelTrackers.has(model.uri))) {
155
155
  return;
156
156
  }
157
157
  this._proxy.$acceptModelLanguageChanged(model.uri, model.getLanguageId());
158
158
  }
159
159
  handleModelRemoved(modelUrl) {
160
- if (!this._modelTrackers.has(modelUrl)) {
160
+ if (!( this._modelTrackers.has(modelUrl))) {
161
161
  return;
162
162
  }
163
163
  this._modelTrackers.get(modelUrl).dispose();
@@ -196,7 +196,7 @@ let MainThreadDocuments = class MainThreadDocuments extends Disposable {
196
196
  else if (!extUri.isEqual(documentUri, canonicalUri)) {
197
197
  throw new Error(`cannot open ${canonicalUri.toString()}. Detail: Actual document opened as ${documentUri.toString()}`);
198
198
  }
199
- else if (!this._modelTrackers.has(canonicalUri)) {
199
+ else if (!( this._modelTrackers.has(canonicalUri))) {
200
200
  throw new Error(`cannot open ${canonicalUri.toString()}. Detail: Files above 50MB cannot be synchronized with extensions.`);
201
201
  }
202
202
  else {
@@ -226,7 +226,7 @@ let MainThreadDocuments = class MainThreadDocuments extends Disposable {
226
226
  initialValue
227
227
  });
228
228
  const resource = model.resource;
229
- if (!this._modelTrackers.has(resource)) {
229
+ if (!( this._modelTrackers.has(resource))) {
230
230
  throw new Error(`expected URI ${resource.toString()} to have come to LIFE`);
231
231
  }
232
232
  this._proxy.$acceptDirtyStateChanged(resource, true);
@@ -121,7 +121,7 @@ let MainThreadDocumentAndEditorStateComputer = class MainThreadDocumentAndEditor
121
121
  }
122
122
  _onDidRemoveEditor(e) {
123
123
  const id = e.getId();
124
- if (this._toDisposeOnEditorRemove.has(id)) {
124
+ if (( (this._toDisposeOnEditorRemove.has(id)))) {
125
125
  this._toDisposeOnEditorRemove.deleteAndDispose(id);
126
126
  this._updateState();
127
127
  }
@@ -185,7 +185,7 @@ let MainThreadFileSystem = MainThreadFileSystem_1 = class MainThreadFileSystem {
185
185
  this._watches.set(session, subscription);
186
186
  }
187
187
  $unwatch(session) {
188
- if (this._watches.has(session)) {
188
+ if (( (this._watches.has(session)))) {
189
189
  this._logService.trace(`MainThreadFileSystem#$unwatch(): request to stop watching (session: ${session})`);
190
190
  this._watches.deleteAndDispose(session);
191
191
  }
@@ -147,7 +147,7 @@ let MainThreadQuickOpen = class MainThreadQuickOpen {
147
147
  }
148
148
  else if (param === 'activeItems' || param === 'selectedItems') {
149
149
  input[param] = ( params[param]
150
- .filter((handle) => handlesToItems.has(handle))
150
+ .filter((handle) => ( handlesToItems.has(handle)))
151
151
  .map((handle) => handlesToItems.get(handle)));
152
152
  }
153
153
  else if (param === 'buttons') {
@@ -11,7 +11,7 @@ class Cache {
11
11
  return id;
12
12
  }
13
13
  get(pid, id) {
14
- return this._data.has(pid) ? this._data.get(pid)[id] : undefined;
14
+ return ( this._data.has(pid)) ? this._data.get(pid)[id] : undefined;
15
15
  }
16
16
  delete(id) {
17
17
  this._data.delete(id);
@@ -278,7 +278,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
278
278
  extension.collector.warn(message);
279
279
  continue;
280
280
  }
281
- if (seenProperties.has(key)) {
281
+ if (( seenProperties.has(key))) {
282
282
  delete properties[key];
283
283
  extension.collector.warn(( nls.localize(
284
284
  'config.property.duplicate',
@@ -12,7 +12,7 @@ let ExtHostApiDeprecationService = class ExtHostApiDeprecationService {
12
12
  }
13
13
  report(apiId, extension, migrationSuggestion) {
14
14
  const key = this.getUsageKey(apiId, extension);
15
- if (this._reportedUsages.has(key)) {
15
+ if (( this._reportedUsages.has(key))) {
16
16
  return;
17
17
  }
18
18
  this._reportedUsages.add(key);
@@ -95,7 +95,7 @@ let ExtHostCommands = class ExtHostCommands {
95
95
  if (!id.trim().length) {
96
96
  throw new Error('invalid id');
97
97
  }
98
- if (this._commands.has(id)) {
98
+ if (( (this._commands.has(id)))) {
99
99
  throw new Error(`command '${id}' already exists`);
100
100
  }
101
101
  this._commands.set(id, { callback, thisArg, description, extension });
@@ -115,7 +115,7 @@ let ExtHostCommands = class ExtHostCommands {
115
115
  return this._doExecuteCommand(id, args, true);
116
116
  }
117
117
  async _doExecuteCommand(id, args, retry) {
118
- if (this._commands.has(id)) {
118
+ if (( (this._commands.has(id)))) {
119
119
  __classPrivateFieldGet(this, _ExtHostCommands_proxy, "f").$fireCommandActivationEvent(id);
120
120
  return this._executeContributedCommand(id, args, false);
121
121
  }
@@ -105,7 +105,7 @@ let ExtHostDebugServiceBase = class ExtHostDebugServiceBase {
105
105
  this.startBreakpoints();
106
106
  const breakpoints = breakpoints0.filter(bp => {
107
107
  const id = bp.id;
108
- if (!this._breakpoints.has(id)) {
108
+ if (!( this._breakpoints.has(id))) {
109
109
  this._breakpoints.set(id, bp);
110
110
  return true;
111
111
  }
@@ -350,7 +350,7 @@ let ExtHostDebugServiceBase = class ExtHostDebugServiceBase {
350
350
  if (delta.added) {
351
351
  for (const bpd of delta.added) {
352
352
  const id = bpd.id;
353
- if (id && !this._breakpoints.has(id)) {
353
+ if (id && !( this._breakpoints.has(id))) {
354
354
  let bp;
355
355
  if (bpd.type === 'function') {
356
356
  bp = ( new FunctionBreakpoint(
@@ -54,7 +54,7 @@ let ExtHostDecorations = class ExtHostDecorations {
54
54
  }));
55
55
  }
56
56
  async $provideDecorations(handle, requests, token) {
57
- if (!this._provider.has(handle)) {
57
+ if (!( this._provider.has(handle))) {
58
58
  return Object.create(null);
59
59
  }
60
60
  const result = Object.create(null);
@@ -212,14 +212,14 @@ let ExtHostDiagnostics = class ExtHostDiagnostics {
212
212
  name = '_generated_diagnostic_collection_name_#' + ExtHostDiagnostics._idPool++;
213
213
  owner = name;
214
214
  }
215
- else if (!_collections.has(name)) {
215
+ else if (!( _collections.has(name))) {
216
216
  owner = name;
217
217
  }
218
218
  else {
219
219
  this._logService.warn(`DiagnosticCollection with name '${name}' does already exist.`);
220
220
  do {
221
221
  owner = name + ExtHostDiagnostics._idPool++;
222
- } while (_collections.has(owner));
222
+ } while (( _collections.has(owner)));
223
223
  }
224
224
  const result = new (class extends DiagnosticCollection {
225
225
  constructor() {
@@ -257,7 +257,7 @@ let ExtHostDiagnostics = class ExtHostDiagnostics {
257
257
  _getDiagnostics(resource) {
258
258
  let res = [];
259
259
  for (const collection of ( this._collections.values())) {
260
- if (collection.has(resource)) {
260
+ if (( collection.has(resource))) {
261
261
  res = res.concat(collection.get(resource));
262
262
  }
263
263
  }
@@ -88,15 +88,15 @@ let ExtHostDocumentsAndEditors = class ExtHostDocumentsAndEditors {
88
88
  if (delta.addedEditors) {
89
89
  for (const data of delta.addedEditors) {
90
90
  const resource = URI.revive(data.documentUri);
91
- assert.ok(this._documents.has(resource), `document '${resource}' does not exist`);
92
- assert.ok(!this._editors.has(data.id), `editor '${data.id}' already exists!`);
91
+ assert.ok(( this._documents.has(resource)), `document '${resource}' does not exist`);
92
+ assert.ok(!( this._editors.has(data.id)), `editor '${data.id}' already exists!`);
93
93
  const documentData = this._documents.get(resource).value;
94
94
  const editor = ( new ExtHostTextEditor(data.id, ( this._extHostRpc.getProxy(MainContext.MainThreadTextEditors)), this._logService, ( new Lazy(() => documentData.document)), ( data.selections.map(Selection.to)), data.options, ( data.visibleRanges.map(range => Range.to(range))), typeof data.editorPosition === 'number' ? ViewColumn.to(data.editorPosition) : undefined));
95
95
  this._editors.set(data.id, editor);
96
96
  }
97
97
  }
98
98
  if (delta.newActiveEditor !== undefined) {
99
- assert.ok(delta.newActiveEditor === null || this._editors.has(delta.newActiveEditor), `active editor '${delta.newActiveEditor}' does not exist`);
99
+ assert.ok(delta.newActiveEditor === null || ( this._editors.has(delta.newActiveEditor)), `active editor '${delta.newActiveEditor}' does not exist`);
100
100
  this._activeEditorId = delta.newActiveEditor;
101
101
  }
102
102
  dispose(removedDocuments);
@@ -139,7 +139,7 @@ let ExtensionsActivator = class ExtensionsActivator {
139
139
  await Promise.all(( operations.map(op => op.wait())));
140
140
  }
141
141
  _handleActivationRequest(currentActivation) {
142
- if (this._operations.has(currentActivation.id)) {
142
+ if (( this._operations.has(currentActivation.id))) {
143
143
  return this._operations.get(currentActivation.id);
144
144
  }
145
145
  if (this._isHostExtension(currentActivation.id)) {
@@ -781,7 +781,7 @@ class Extension {
781
781
  }
782
782
  _Extension_extensionService = ( new WeakMap()), _Extension_originExtensionId = ( new WeakMap()), _Extension_identifier = ( new WeakMap());
783
783
  function filterExtensions(globalRegistry, desiredExtensions) {
784
- return globalRegistry.getAllExtensionDescriptions().filter(extension => desiredExtensions.has(extension.identifier));
784
+ return globalRegistry.getAllExtensionDescriptions().filter(extension => ( desiredExtensions.has(extension.identifier)));
785
785
  }
786
786
  class ExtensionPaths {
787
787
  constructor(_searchTree) {
@@ -93,7 +93,7 @@ class ExtHostFileSystem {
93
93
  }
94
94
  registerFileSystemProvider(extension, scheme, provider, options = {}) {
95
95
  ExtHostFileSystem._validateFileSystemProvider(provider);
96
- if (this._registeredSchemes.has(scheme)) {
96
+ if (( this._registeredSchemes.has(scheme))) {
97
97
  throw new Error(`a provider for the scheme '${scheme}' is already registered`);
98
98
  }
99
99
  if (!this._linkProviderRegistration) {
@@ -25,7 +25,7 @@ class ExtHostFileSystemInfo {
25
25
  }
26
26
  }
27
27
  isFreeScheme(scheme) {
28
- return !this._providerInfo.has(scheme) && !this._systemSchemes.has(scheme);
28
+ return !( this._providerInfo.has(scheme)) && !( this._systemSchemes.has(scheme));
29
29
  }
30
30
  getCapabilities(scheme) {
31
31
  return this._providerInfo.get(scheme);
@@ -56,7 +56,7 @@ class ExtHostLanguages {
56
56
  const proxy = this._proxy;
57
57
  const ids = this._ids;
58
58
  const fullyQualifiedId = `${extension.identifier.value}/${id}`;
59
- if (ids.has(fullyQualifiedId)) {
59
+ if (( ids.has(fullyQualifiedId))) {
60
60
  throw new Error(`LanguageStatusItem with id '${id}' ALREADY exists`);
61
61
  }
62
62
  ids.add(fullyQualifiedId);
@@ -41,7 +41,7 @@ let ExtHostLocalizationService = class ExtHostLocalizationService {
41
41
  || (!extension.l10n && !extension.isBuiltin)) {
42
42
  return;
43
43
  }
44
- if (this.bundleCache.has(extension.identifier.value)) {
44
+ if (( this.bundleCache.has(extension.identifier.value))) {
45
45
  return;
46
46
  }
47
47
  let contents;
@@ -498,14 +498,14 @@ function createExtHostQuickOpen(mainContext, workspace, commands) {
498
498
  return this._activeItems;
499
499
  }
500
500
  set activeItems(activeItems) {
501
- this._activeItems = activeItems.filter(item => this._itemsToHandles.has(item));
501
+ this._activeItems = activeItems.filter(item => ( this._itemsToHandles.has(item)));
502
502
  this.update({ activeItems: ( this._activeItems.map(item => this._itemsToHandles.get(item))) });
503
503
  }
504
504
  get selectedItems() {
505
505
  return this._selectedItems;
506
506
  }
507
507
  set selectedItems(selectedItems) {
508
- this._selectedItems = selectedItems.filter(item => this._itemsToHandles.has(item));
508
+ this._selectedItems = selectedItems.filter(item => ( this._itemsToHandles.has(item)));
509
509
  this.update({ selectedItems: ( this._selectedItems.map(item => this._itemsToHandles.get(item))) });
510
510
  }
511
511
  _fireDidChangeActive(handles) {
@@ -395,7 +395,7 @@ class ExtHostTextEditor {
395
395
  },
396
396
  setDecorations(decorationType, ranges) {
397
397
  const willBeEmpty = (ranges.length === 0);
398
- if (willBeEmpty && !that._hasDecorationsForKey.has(decorationType.key)) {
398
+ if (willBeEmpty && !( that._hasDecorationsForKey.has(decorationType.key))) {
399
399
  return;
400
400
  }
401
401
  if (willBeEmpty) {
@@ -540,7 +540,7 @@ var WorkspaceEdit;
540
540
  result.edits.push({
541
541
  resource: entry.uri,
542
542
  textEdit: TextEdit.from(entry.edit),
543
- versionId: !toCreate.has(entry.uri) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
543
+ versionId: !( (toCreate.has(entry.uri))) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
544
544
  metadata: entry.metadata
545
545
  });
546
546
  }
@@ -552,7 +552,7 @@ var WorkspaceEdit;
552
552
  text: entry.edit.value,
553
553
  insertAsSnippet: true
554
554
  },
555
- versionId: !toCreate.has(entry.uri) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
555
+ versionId: !( (toCreate.has(entry.uri))) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
556
556
  metadata: entry.metadata
557
557
  });
558
558
  }
@@ -2330,7 +2330,7 @@ class SemanticTokensBuilder {
2330
2330
  if (range.start.line !== range.end.line) {
2331
2331
  throw new Error('`range` cannot span multiple lines');
2332
2332
  }
2333
- if (!this._tokenTypeStrToInt.has(tokenType)) {
2333
+ if (!( this._tokenTypeStrToInt.has(tokenType))) {
2334
2334
  throw new Error('`tokenType` is not in the provided legend');
2335
2335
  }
2336
2336
  const line = range.start.line;
@@ -2340,7 +2340,7 @@ class SemanticTokensBuilder {
2340
2340
  let nTokenModifiers = 0;
2341
2341
  if (tokenModifiers) {
2342
2342
  for (const tokenModifier of tokenModifiers) {
2343
- if (!this._tokenModifierStrToInt.has(tokenModifier)) {
2343
+ if (!( this._tokenModifierStrToInt.has(tokenModifier))) {
2344
2344
  throw new Error('`tokenModifier` is not in the provided legend');
2345
2345
  }
2346
2346
  const nTokenModifier = this._tokenModifierStrToInt.get(tokenModifier);
@@ -2651,7 +2651,7 @@ class NotebookCellOutput {
2651
2651
  for (let i = 0; i < items.length; i++) {
2652
2652
  const item = items[i];
2653
2653
  const normalMime = normalizeMimeType(item.mime);
2654
- if (!seen.has(normalMime) || isTextStreamMime(normalMime)) {
2654
+ if (!( seen.has(normalMime)) || isTextStreamMime(normalMime)) {
2655
2655
  seen.add(normalMime);
2656
2656
  continue;
2657
2657
  }
@@ -2663,7 +2663,7 @@ class NotebookCellOutput {
2663
2663
  if (removeIdx.size === 0) {
2664
2664
  return items;
2665
2665
  }
2666
- return items.filter((_item, index) => !removeIdx.has(index));
2666
+ return items.filter((_item, index) => !( removeIdx.has(index)));
2667
2667
  }
2668
2668
  constructor(items, idOrMetadata, metadata) {
2669
2669
  this.items = NotebookCellOutput.ensureUniqueMimeTypes(items, true);
@@ -430,7 +430,7 @@ let ExtHostWorkspace = class ExtHostWorkspace {
430
430
  }
431
431
  }
432
432
  registerEditSessionIdentityProvider(scheme, provider) {
433
- if (this._editSessionIdentityProviders.has(scheme)) {
433
+ if (( this._editSessionIdentityProviders.has(scheme))) {
434
434
  throw new Error(`A provider has already been registered for scheme ${scheme}`);
435
435
  }
436
436
  this._editSessionIdentityProviders.set(scheme, provider);