@codingame/monaco-vscode-api 1.69.8 → 1.69.9

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/dist/polyfill.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VSBuffer as VSBuffer$1 } from 'monaco-editor/esm/vs/base/common/buffer.js';
2
- import { toDisposable, DisposableStore, Disposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
2
+ import { Disposable, DisposableStore, dispose, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
3
  import { onUnexpectedError, ErrorHandler as ErrorHandler$1 } from 'monaco-editor/esm/vs/base/common/errors.js';
4
4
  import { Themable as Themable$1 } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
5
5
  import { ProgressBar as ProgressBar$1 } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
@@ -14,15 +14,15 @@ import { LanguagesRegistry as LanguagesRegistry$1 } from 'monaco-editor/esm/vs/e
14
14
  import { firstOrDefault, distinct, equals as equals$1, binarySearch, range } from 'monaco-editor/esm/vs/base/common/arrays.js';
15
15
  import { PLAINTEXT_LANGUAGE_ID, ModesRegistry } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
16
16
  import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
17
- import { NoOpNotification as NoOpNotification$1 } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
18
- import { s as shuffle, R as RawContextKey, N as NoOpNotification } from './contextkey.js';
17
+ import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
18
+ import { R as RawContextKey, N as NoOpNotification$1, s as shuffle } from './contextkey.js';
19
19
  import { StandaloneConfigurationService as StandaloneConfigurationService$1 } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
20
20
  import { Configuration as Configuration$1, ConfigurationModel as ConfigurationModel$1, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
21
21
  import { DefaultConfigurationModel } from 'monaco-editor/esm/vs/platform/configuration/common/configurations.js';
22
22
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
23
- import { ResourceMap as ResourceMap$1, TernarySearchTree as TernarySearchTree$1 } from 'monaco-editor/esm/vs/base/common/map.js';
24
- import { compareSubstring, compareSubstringIgnoreCase, compareIgnoreCase, compare as compare$1, regExpLeadsToEndlessLoop } from 'monaco-editor/esm/vs/base/common/strings.js';
25
- import { overrideIdentifiersFromKey, Extensions as Extensions$2, OVERRIDE_PROPERTY_REGEX } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
23
+ import { TernarySearchTree as TernarySearchTree$1, ResourceMap as ResourceMap$1 } from 'monaco-editor/esm/vs/base/common/map.js';
24
+ import { regExpLeadsToEndlessLoop, compareIgnoreCase, compareSubstring, compareSubstringIgnoreCase, compare as compare$1 } from 'monaco-editor/esm/vs/base/common/strings.js';
25
+ import { Extensions as Extensions$2, overrideIdentifiersFromKey, OVERRIDE_PROPERTY_REGEX } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
26
26
  import { getConfigurationValue, addToValueTree, removeFromValueTree, toValuesTree } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
27
27
  import { Event, EventBufferer } from 'monaco-editor/esm/vs/base/common/event.js';
28
28
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
@@ -90,26 +90,14 @@ class ErrorHandler {
90
90
  }
91
91
  function readonly(name) {
92
92
  return name
93
- ? ( new Error(`readonly property '${name} cannot be changed'`))
94
- : ( new Error('readonly property cannot be changed'));
93
+ ? ( (new Error(`readonly property '${name} cannot be changed'`)))
94
+ : ( (new Error('readonly property cannot be changed')));
95
95
  }
96
96
  function disposed(what) {
97
- const result = ( new Error(`${what} has been disposed`));
97
+ const result = ( (new Error(`${what} has been disposed`)));
98
98
  result.name = 'DISPOSED';
99
99
  return result;
100
100
  }
101
- function getErrorMessage(err) {
102
- if (!err) {
103
- return 'Error';
104
- }
105
- if (err.message) {
106
- return err.message;
107
- }
108
- if (err.stack) {
109
- return err.stack.split('\n')[0];
110
- }
111
- return String(err);
112
- }
113
101
  class NotImplementedError extends Error {
114
102
  constructor(message) {
115
103
  super('NotImplemented');
@@ -127,7 +115,7 @@ class ErrorNoTelemetry extends Error {
127
115
  if (err instanceof ErrorNoTelemetry) {
128
116
  return err;
129
117
  }
130
- const result = ( new ErrorNoTelemetry());
118
+ const result = ( (new ErrorNoTelemetry()));
131
119
  result.message = err.message;
132
120
  result.stack = err.stack;
133
121
  return result;
@@ -151,7 +139,9 @@ function isReadableBufferedStream(obj) {
151
139
  return isReadableStream(candidate.stream) && Array.isArray(candidate.buffer) && typeof candidate.ended === 'boolean';
152
140
  }
153
141
  function newWriteableStream(reducer, options) {
154
- return ( new WriteableStreamImpl(reducer, options));
142
+ return (
143
+ (new WriteableStreamImpl(reducer, options))
144
+ );
155
145
  }
156
146
  class WriteableStreamImpl {
157
147
  constructor(reducer, options) {
@@ -200,7 +190,9 @@ class WriteableStreamImpl {
200
190
  else {
201
191
  this.buffer.data.push(data);
202
192
  if (typeof this.options?.highWaterMark === 'number' && this.buffer.data.length > this.options.highWaterMark) {
203
- return ( new Promise(resolve => this.pendingWritePromises.push(resolve)));
193
+ return (
194
+ (new Promise(resolve => this.pendingWritePromises.push(resolve)))
195
+ );
204
196
  }
205
197
  }
206
198
  }
@@ -360,32 +352,34 @@ function peekReadable(readable, reducer, maxChunks) {
360
352
  };
361
353
  }
362
354
  function consumeStream(stream, reducer) {
363
- return ( new Promise((resolve, reject) => {
364
- const chunks = [];
365
- listenStream(stream, {
366
- onData: chunk => {
367
- if (reducer) {
368
- chunks.push(chunk);
369
- }
370
- },
371
- onError: error => {
372
- if (reducer) {
373
- reject(error);
374
- }
375
- else {
376
- resolve(undefined);
377
- }
378
- },
379
- onEnd: () => {
380
- if (reducer) {
381
- resolve(reducer(chunks));
382
- }
383
- else {
384
- resolve(undefined);
355
+ return (
356
+ (new Promise((resolve, reject) => {
357
+ const chunks = [];
358
+ listenStream(stream, {
359
+ onData: chunk => {
360
+ if (reducer) {
361
+ chunks.push(chunk);
362
+ }
363
+ },
364
+ onError: error => {
365
+ if (reducer) {
366
+ reject(error);
367
+ }
368
+ else {
369
+ resolve(undefined);
370
+ }
371
+ },
372
+ onEnd: () => {
373
+ if (reducer) {
374
+ resolve(reducer(chunks));
375
+ }
376
+ else {
377
+ resolve(undefined);
378
+ }
385
379
  }
386
- }
387
- });
388
- }));
380
+ });
381
+ }))
382
+ );
389
383
  }
390
384
  function listenStream(stream, listener) {
391
385
  let destroyed = false;
@@ -407,30 +401,32 @@ function listenStream(stream, listener) {
407
401
  return toDisposable(() => destroyed = true);
408
402
  }
409
403
  function peekStream(stream, maxChunks) {
410
- return ( new Promise((resolve, reject) => {
411
- const streamListeners = ( new DisposableStore());
412
- const buffer = [];
413
- const dataListener = (chunk) => {
414
- buffer.push(chunk);
415
- if (buffer.length > maxChunks) {
416
- streamListeners.dispose();
417
- stream.pause();
418
- return resolve({ stream, buffer, ended: false });
419
- }
420
- };
421
- const errorListener = (error) => {
422
- return reject(error);
423
- };
424
- const endListener = () => {
425
- return resolve({ stream, buffer, ended: true });
426
- };
427
- streamListeners.add(toDisposable(() => stream.removeListener('error', errorListener)));
428
- stream.on('error', errorListener);
429
- streamListeners.add(toDisposable(() => stream.removeListener('end', endListener)));
430
- stream.on('end', endListener);
431
- streamListeners.add(toDisposable(() => stream.removeListener('data', dataListener)));
432
- stream.on('data', dataListener);
433
- }));
404
+ return (
405
+ (new Promise((resolve, reject) => {
406
+ const streamListeners = ( (new DisposableStore()));
407
+ const buffer = [];
408
+ const dataListener = (chunk) => {
409
+ buffer.push(chunk);
410
+ if (buffer.length > maxChunks) {
411
+ streamListeners.dispose();
412
+ stream.pause();
413
+ return resolve({ stream, buffer, ended: false });
414
+ }
415
+ };
416
+ const errorListener = (error) => {
417
+ return reject(error);
418
+ };
419
+ const endListener = () => {
420
+ return resolve({ stream, buffer, ended: true });
421
+ };
422
+ streamListeners.add(toDisposable(() => stream.removeListener('error', errorListener)));
423
+ stream.on('error', errorListener);
424
+ streamListeners.add(toDisposable(() => stream.removeListener('end', endListener)));
425
+ stream.on('end', endListener);
426
+ streamListeners.add(toDisposable(() => stream.removeListener('data', dataListener)));
427
+ stream.on('data', dataListener);
428
+ }))
429
+ );
434
430
  }
435
431
  function toReadable(t) {
436
432
  let consumed = false;
@@ -463,28 +459,38 @@ class VSBuffer {
463
459
  }
464
460
  static alloc(byteLength) {
465
461
  if (hasBuffer) {
466
- return ( new VSBuffer(Buffer.allocUnsafe(byteLength)));
462
+ return (
463
+ (new VSBuffer(Buffer.allocUnsafe(byteLength)))
464
+ );
467
465
  }
468
466
  else {
469
- return ( new VSBuffer(( new Uint8Array(byteLength))));
467
+ return (
468
+ (new VSBuffer( (new Uint8Array(byteLength))))
469
+ );
470
470
  }
471
471
  }
472
472
  static wrap(actual) {
473
473
  if (hasBuffer && !(Buffer.isBuffer(actual))) {
474
474
  actual = Buffer.from(actual.buffer, actual.byteOffset, actual.byteLength);
475
475
  }
476
- return ( new VSBuffer(actual));
476
+ return (
477
+ (new VSBuffer(actual))
478
+ );
477
479
  }
478
480
  static fromString(source, options) {
479
481
  const dontUseNodeBuffer = options?.dontUseNodeBuffer || false;
480
482
  if (!dontUseNodeBuffer && hasBuffer) {
481
- return ( new VSBuffer(Buffer.from(source)));
483
+ return (
484
+ (new VSBuffer(Buffer.from(source)))
485
+ );
482
486
  }
483
487
  else {
484
488
  if (!textEncoder) {
485
- textEncoder = ( new TextEncoder());
489
+ textEncoder = ( (new TextEncoder()));
486
490
  }
487
- return ( new VSBuffer(textEncoder.encode(source)));
491
+ return (
492
+ (new VSBuffer(textEncoder.encode(source)))
493
+ );
488
494
  }
489
495
  }
490
496
  static fromByteArray(source) {
@@ -517,17 +523,21 @@ class VSBuffer {
517
523
  }
518
524
  toString() {
519
525
  if (hasBuffer) {
520
- return ( this.buffer.toString());
526
+ return (
527
+ (this.buffer.toString())
528
+ );
521
529
  }
522
530
  else {
523
531
  if (!textDecoder) {
524
- textDecoder = ( new TextDecoder());
532
+ textDecoder = ( (new TextDecoder()));
525
533
  }
526
534
  return textDecoder.decode(this.buffer);
527
535
  }
528
536
  }
529
537
  slice(start, end) {
530
- return ( new VSBuffer(this.buffer.subarray(start, end)));
538
+ return (
539
+ (new VSBuffer(this.buffer.subarray(start, end)))
540
+ );
531
541
  }
532
542
  set(array, offset) {
533
543
  if (array instanceof VSBuffer) {
@@ -537,10 +547,10 @@ class VSBuffer {
537
547
  this.buffer.set(array, offset);
538
548
  }
539
549
  else if (array instanceof ArrayBuffer) {
540
- this.buffer.set(( new Uint8Array(array)), offset);
550
+ this.buffer.set(( (new Uint8Array(array))), offset);
541
551
  }
542
552
  else if (ArrayBuffer.isView(array)) {
543
- this.buffer.set(( new Uint8Array(array.buffer, array.byteOffset, array.byteLength)), offset);
553
+ this.buffer.set(( (new Uint8Array(array.buffer, array.byteOffset, array.byteLength))), offset);
544
554
  }
545
555
  else {
546
556
  throw new Error(`Unknown argument 'array'`);
@@ -644,7 +654,7 @@ class Themable extends Disposable {
644
654
  if (color && modify) {
645
655
  color = modify(color, this.theme);
646
656
  }
647
- return color ? ( color.toString()) : null;
657
+ return color ? ( (color.toString())) : null;
648
658
  }
649
659
  }
650
660
  const Extensions = {
@@ -656,7 +666,7 @@ const CSS_INFINITE = 'infinite';
656
666
  const CSS_INFINITE_LONG_RUNNING = 'infinite-long-running';
657
667
  const CSS_DISCRETE = 'discrete';
658
668
  const defaultOpts = {
659
- progressBarBackground: ( Color$1.fromHex('#0E70C0'))
669
+ progressBarBackground: ( (Color$1.fromHex('#0E70C0')))
660
670
  };
661
671
  class ProgressBar extends Disposable {
662
672
  constructor(container, options) {
@@ -665,11 +675,11 @@ class ProgressBar extends Disposable {
665
675
  mixin(this.options, defaultOpts, false);
666
676
  this.workedVal = 0;
667
677
  this.progressBarBackground = this.options.progressBarBackground;
668
- this.showDelayedScheduler = this._register(( new RunOnceScheduler(() => show(this.element), 0)));
669
- this.longRunningScheduler = this._register(( new RunOnceScheduler(
678
+ this.showDelayedScheduler = this._register(( (new RunOnceScheduler(() => show(this.element), 0))));
679
+ this.longRunningScheduler = this._register(( (new RunOnceScheduler(
670
680
  () => this.infiniteLongRunning(),
671
681
  ProgressBar.LONG_RUNNING_INFINITE_THRESHOLD
672
- )));
682
+ ))));
673
683
  this.create(container);
674
684
  }
675
685
  create(container) {
@@ -733,7 +743,7 @@ class ProgressBar extends Disposable {
733
743
  total(value) {
734
744
  this.workedVal = 0;
735
745
  this.totalWork = value;
736
- this.element.setAttribute('aria-valuemax', ( value.toString()));
746
+ this.element.setAttribute('aria-valuemax', ( (value.toString())));
737
747
  return this;
738
748
  }
739
749
  hasTotal() {
@@ -753,7 +763,7 @@ class ProgressBar extends Disposable {
753
763
  this.workedVal = Math.min(totalWork, this.workedVal);
754
764
  this.element.classList.remove(CSS_INFINITE, CSS_INFINITE_LONG_RUNNING, CSS_DONE);
755
765
  this.element.classList.add(CSS_ACTIVE, CSS_DISCRETE);
756
- this.element.setAttribute('aria-valuenow', ( value.toString()));
766
+ this.element.setAttribute('aria-valuenow', ( (value.toString())));
757
767
  this.bit.style.width = 100 * (this.workedVal / (totalWork)) + '%';
758
768
  return this;
759
769
  }
@@ -779,7 +789,7 @@ class ProgressBar extends Disposable {
779
789
  }
780
790
  applyStyles() {
781
791
  if (this.bit) {
782
- const background = this.progressBarBackground ? ( this.progressBarBackground.toString()) : '';
792
+ const background = this.progressBarBackground ? ( (this.progressBarBackground.toString())) : '';
783
793
  this.bit.style.backgroundColor = background;
784
794
  }
785
795
  }
@@ -788,15 +798,15 @@ ProgressBar.LONG_RUNNING_INFINITE_THRESHOLD = 10000;
788
798
  class LanguageService extends Disposable {
789
799
  constructor(warnOnOverwrite = false) {
790
800
  super();
791
- this._onDidEncounterLanguage = this._register(( new Emitter()));
801
+ this._onDidEncounterLanguage = this._register(( (new Emitter())));
792
802
  this.onDidEncounterLanguage = this._onDidEncounterLanguage.event;
793
- this._onDidChange = this._register(( new Emitter(
803
+ this._onDidChange = this._register(( (new Emitter(
794
804
  { leakWarningThreshold: 200 }
795
- )));
805
+ ))));
796
806
  this.onDidChange = this._onDidChange.event;
797
807
  LanguageService.instanceCount++;
798
- this._encounteredLanguages = ( new Set());
799
- this._registry = this._register(( new LanguagesRegistry$1(true, warnOnOverwrite)));
808
+ this._encounteredLanguages = ( (new Set()));
809
+ this._registry = this._register(( (new LanguagesRegistry$1(true, warnOnOverwrite))));
800
810
  this.languageIdCodec = this._registry.languageIdCodec;
801
811
  this._register(this._registry.onDidChange(() => this._onDidChange.fire()));
802
812
  }
@@ -845,21 +855,27 @@ class LanguageService extends Disposable {
845
855
  return firstOrDefault(languageIds, null);
846
856
  }
847
857
  createById(languageId) {
848
- return ( new LanguageSelection(this.onDidChange, () => {
849
- return this._createAndGetLanguageIdentifier(languageId);
850
- }));
858
+ return (
859
+ (new LanguageSelection(this.onDidChange, () => {
860
+ return this._createAndGetLanguageIdentifier(languageId);
861
+ }))
862
+ );
851
863
  }
852
864
  createByMimeType(mimeType) {
853
- return ( new LanguageSelection(this.onDidChange, () => {
854
- const languageId = this.getLanguageIdByMimeType(mimeType);
855
- return this._createAndGetLanguageIdentifier(languageId);
856
- }));
865
+ return (
866
+ (new LanguageSelection(this.onDidChange, () => {
867
+ const languageId = this.getLanguageIdByMimeType(mimeType);
868
+ return this._createAndGetLanguageIdentifier(languageId);
869
+ }))
870
+ );
857
871
  }
858
872
  createByFilepathOrFirstLine(resource, firstLine) {
859
- return ( new LanguageSelection(this.onDidChange, () => {
860
- const languageId = this.guessLanguageIdByFilepathOrFirstLine(resource, firstLine);
861
- return this._createAndGetLanguageIdentifier(languageId);
862
- }));
873
+ return (
874
+ (new LanguageSelection(this.onDidChange, () => {
875
+ const languageId = this.guessLanguageIdByFilepathOrFirstLine(resource, firstLine);
876
+ return this._createAndGetLanguageIdentifier(languageId);
877
+ }))
878
+ );
863
879
  }
864
880
  _createAndGetLanguageIdentifier(languageId) {
865
881
  if (!languageId || !this.isRegisteredLanguageId(languageId)) {
@@ -897,11 +913,11 @@ class LanguageSelection {
897
913
  this._listener = this._onDidChangeLanguages(() => this._evaluate());
898
914
  }
899
915
  if (!this._emitter) {
900
- this._emitter = ( new Emitter({
916
+ this._emitter = ( (new Emitter({
901
917
  onLastListenerRemove: () => {
902
918
  this._dispose();
903
919
  }
904
- }));
920
+ })));
905
921
  }
906
922
  return this._emitter.event;
907
923
  }
@@ -915,11 +931,11 @@ class LanguageSelection {
915
931
  }
916
932
  }
917
933
  var ParseOptions;
918
- ( (function(ParseOptions) {
934
+ ( ((function(ParseOptions) {
919
935
  ParseOptions.DEFAULT = {
920
936
  allowTrailingComma: true
921
937
  };
922
- })(ParseOptions || (ParseOptions = {})));
938
+ })(ParseOptions || (ParseOptions = {}))));
923
939
  function createScanner(text, ignoreTrivia = false) {
924
940
  let pos = 0;
925
941
  const len = text.length;
@@ -1292,96 +1308,6 @@ function parse(text, errors = [], options = ParseOptions.DEFAULT) {
1292
1308
  visit(text, visitor, options);
1293
1309
  return currentParent[0];
1294
1310
  }
1295
- function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
1296
- let currentParent = { type: 'array', offset: -1, length: -1, children: [], parent: undefined };
1297
- function ensurePropertyComplete(endOffset) {
1298
- if (currentParent.type === 'property') {
1299
- currentParent.length = endOffset - currentParent.offset;
1300
- currentParent = currentParent.parent;
1301
- }
1302
- }
1303
- function onValue(valueNode) {
1304
- currentParent.children.push(valueNode);
1305
- return valueNode;
1306
- }
1307
- const visitor = {
1308
- onObjectBegin: (offset) => {
1309
- currentParent = onValue({ type: 'object', offset, length: -1, parent: currentParent, children: [] });
1310
- },
1311
- onObjectProperty: (name, offset, length) => {
1312
- currentParent = onValue({ type: 'property', offset, length: -1, parent: currentParent, children: [] });
1313
- currentParent.children.push({ type: 'string', value: name, offset, length, parent: currentParent });
1314
- },
1315
- onObjectEnd: (offset, length) => {
1316
- currentParent.length = offset + length - currentParent.offset;
1317
- currentParent = currentParent.parent;
1318
- ensurePropertyComplete(offset + length);
1319
- },
1320
- onArrayBegin: (offset, length) => {
1321
- currentParent = onValue({ type: 'array', offset, length: -1, parent: currentParent, children: [] });
1322
- },
1323
- onArrayEnd: (offset, length) => {
1324
- currentParent.length = offset + length - currentParent.offset;
1325
- currentParent = currentParent.parent;
1326
- ensurePropertyComplete(offset + length);
1327
- },
1328
- onLiteralValue: (value, offset, length) => {
1329
- onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
1330
- ensurePropertyComplete(offset + length);
1331
- },
1332
- onSeparator: (sep, offset, length) => {
1333
- if (currentParent.type === 'property') {
1334
- if (sep === ':') {
1335
- currentParent.colonOffset = offset;
1336
- }
1337
- else if (sep === ',') {
1338
- ensurePropertyComplete(offset);
1339
- }
1340
- }
1341
- },
1342
- onError: (error, offset, length) => {
1343
- errors.push({ error, offset, length });
1344
- }
1345
- };
1346
- visit(text, visitor, options);
1347
- const result = currentParent.children[0];
1348
- if (result) {
1349
- delete result.parent;
1350
- }
1351
- return result;
1352
- }
1353
- function findNodeAtLocation(root, path) {
1354
- if (!root) {
1355
- return undefined;
1356
- }
1357
- let node = root;
1358
- for (const segment of path) {
1359
- if (typeof segment === 'string') {
1360
- if (node.type !== 'object' || !Array.isArray(node.children)) {
1361
- return undefined;
1362
- }
1363
- let found = false;
1364
- for (const propertyNode of node.children) {
1365
- if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment) {
1366
- node = propertyNode.children[1];
1367
- found = true;
1368
- break;
1369
- }
1370
- }
1371
- if (!found) {
1372
- return undefined;
1373
- }
1374
- }
1375
- else {
1376
- const index = segment;
1377
- if (node.type !== 'array' || index < 0 || !Array.isArray(node.children) || index >= node.children.length) {
1378
- return undefined;
1379
- }
1380
- node = node.children[index];
1381
- }
1382
- }
1383
- return node;
1384
- }
1385
1311
  function visit(text, visitor, options = ParseOptions.DEFAULT) {
1386
1312
  const _scanner = createScanner(text, false);
1387
1313
  function toNoArgVisit(visitFunction) {
@@ -1760,7 +1686,7 @@ class UriIterator {
1760
1686
  this._states.push(2 );
1761
1687
  }
1762
1688
  if (this._value.path) {
1763
- this._pathIterator = ( new PathIterator(false, !this._ignorePathCasing(key)));
1689
+ this._pathIterator = ( (new PathIterator(false, !this._ignorePathCasing(key))));
1764
1690
  this._pathIterator.reset(key.path);
1765
1691
  if (this._pathIterator.value()) {
1766
1692
  this._states.push(3 );
@@ -1868,16 +1794,24 @@ class TernarySearchTree {
1868
1794
  this._iter = segments;
1869
1795
  }
1870
1796
  static forUris(ignorePathCasing = () => false, ignoreQueryAndFragment = () => false) {
1871
- return ( new TernarySearchTree(( new UriIterator(ignorePathCasing, ignoreQueryAndFragment))));
1797
+ return (
1798
+ (new TernarySearchTree( (new UriIterator(ignorePathCasing, ignoreQueryAndFragment))))
1799
+ );
1872
1800
  }
1873
1801
  static forPaths(ignorePathCasing = false) {
1874
- return ( new TernarySearchTree(( new PathIterator(undefined, !ignorePathCasing))));
1802
+ return (
1803
+ (new TernarySearchTree( (new PathIterator(undefined, !ignorePathCasing))))
1804
+ );
1875
1805
  }
1876
1806
  static forStrings() {
1877
- return ( new TernarySearchTree(( new StringIterator())));
1807
+ return (
1808
+ (new TernarySearchTree( (new StringIterator())))
1809
+ );
1878
1810
  }
1879
1811
  static forConfigKeys() {
1880
- return ( new TernarySearchTree(( new ConfigKeysIterator())));
1812
+ return (
1813
+ (new TernarySearchTree( (new ConfigKeysIterator())))
1814
+ );
1881
1815
  }
1882
1816
  clear() {
1883
1817
  this._root = undefined;
@@ -1902,7 +1836,7 @@ class TernarySearchTree {
1902
1836
  const iter = this._iter.reset(key);
1903
1837
  let node;
1904
1838
  if (!this._root) {
1905
- this._root = ( new TernarySearchTreeNode());
1839
+ this._root = ( (new TernarySearchTreeNode()));
1906
1840
  this._root.segment = iter.value();
1907
1841
  }
1908
1842
  const stack = [];
@@ -1911,7 +1845,7 @@ class TernarySearchTree {
1911
1845
  const val = iter.cmp(node.segment);
1912
1846
  if (val > 0) {
1913
1847
  if (!node.left) {
1914
- node.left = ( new TernarySearchTreeNode());
1848
+ node.left = ( (new TernarySearchTreeNode()));
1915
1849
  node.left.segment = iter.value();
1916
1850
  }
1917
1851
  stack.push([-1 , node]);
@@ -1919,7 +1853,7 @@ class TernarySearchTree {
1919
1853
  }
1920
1854
  else if (val < 0) {
1921
1855
  if (!node.right) {
1922
- node.right = ( new TernarySearchTreeNode());
1856
+ node.right = ( (new TernarySearchTreeNode()));
1923
1857
  node.right.segment = iter.value();
1924
1858
  }
1925
1859
  stack.push([1 , node]);
@@ -1928,7 +1862,7 @@ class TernarySearchTree {
1928
1862
  else if (iter.hasNext()) {
1929
1863
  iter.next();
1930
1864
  if (!node.mid) {
1931
- node.mid = ( new TernarySearchTreeNode());
1865
+ node.mid = ( (new TernarySearchTreeNode()));
1932
1866
  node.mid.segment = iter.value();
1933
1867
  }
1934
1868
  stack.push([0 , node]);
@@ -2234,16 +2168,16 @@ class ResourceMap {
2234
2168
  constructor(mapOrKeyFn, toKey) {
2235
2169
  this[_a$1] = 'ResourceMap';
2236
2170
  if (mapOrKeyFn instanceof ResourceMap) {
2237
- this.map = ( new Map(mapOrKeyFn.map));
2171
+ this.map = ( (new Map(mapOrKeyFn.map)));
2238
2172
  this.toKey = toKey ?? ResourceMap.defaultToKey;
2239
2173
  }
2240
2174
  else {
2241
- this.map = ( new Map());
2175
+ this.map = ( (new Map()));
2242
2176
  this.toKey = mapOrKeyFn ?? ResourceMap.defaultToKey;
2243
2177
  }
2244
2178
  }
2245
2179
  set(resource, value) {
2246
- this.map.set(this.toKey(resource), ( new ResourceMapEntry(resource, value)));
2180
+ this.map.set(this.toKey(resource), ( (new ResourceMapEntry(resource, value))));
2247
2181
  return this;
2248
2182
  }
2249
2183
  get(resource) {
@@ -2270,17 +2204,17 @@ class ResourceMap {
2270
2204
  }
2271
2205
  }
2272
2206
  *values() {
2273
- for (const entry of ( this.map.values())) {
2207
+ for (const entry of ( (this.map.values()))) {
2274
2208
  yield entry.value;
2275
2209
  }
2276
2210
  }
2277
2211
  *keys() {
2278
- for (const entry of ( this.map.values())) {
2212
+ for (const entry of ( (this.map.values()))) {
2279
2213
  yield entry.uri;
2280
2214
  }
2281
2215
  }
2282
2216
  *entries() {
2283
- for (const entry of ( this.map.values())) {
2217
+ for (const entry of ( (this.map.values()))) {
2284
2218
  yield [entry.uri, entry.value];
2285
2219
  }
2286
2220
  }
@@ -2290,15 +2224,15 @@ class ResourceMap {
2290
2224
  }
2291
2225
  }
2292
2226
  }
2293
- ResourceMap.defaultToKey = (resource) => ( resource.toString());
2227
+ ResourceMap.defaultToKey = (resource) => ( (resource.toString()));
2294
2228
  class ResourceSet {
2295
2229
  constructor(entriesOrKey, toKey) {
2296
2230
  this[_b$1] = 'ResourceSet';
2297
2231
  if (!entriesOrKey || typeof entriesOrKey === 'function') {
2298
- this._map = ( new ResourceMap(entriesOrKey));
2232
+ this._map = ( (new ResourceMap(entriesOrKey)));
2299
2233
  }
2300
2234
  else {
2301
- this._map = ( new ResourceMap(toKey));
2235
+ this._map = ( (new ResourceMap(toKey)));
2302
2236
  entriesOrKey.forEach(this.add, this);
2303
2237
  }
2304
2238
  }
@@ -2325,13 +2259,19 @@ class ResourceSet {
2325
2259
  return this._map.entries();
2326
2260
  }
2327
2261
  keys() {
2328
- return ( this._map.keys());
2262
+ return (
2263
+ (this._map.keys())
2264
+ );
2329
2265
  }
2330
2266
  values() {
2331
- return ( this._map.keys());
2267
+ return (
2268
+ (this._map.keys())
2269
+ );
2332
2270
  }
2333
2271
  [(_b$1 = Symbol.toStringTag, Symbol.iterator)]() {
2334
- return ( this.keys());
2272
+ return (
2273
+ (this.keys())
2274
+ );
2335
2275
  }
2336
2276
  }
2337
2277
  class ConfigurationModel {
@@ -2340,7 +2280,7 @@ class ConfigurationModel {
2340
2280
  this._keys = _keys;
2341
2281
  this._overrides = _overrides;
2342
2282
  this.frozen = false;
2343
- this.overrideConfigurations = ( new Map());
2283
+ this.overrideConfigurations = ( (new Map()));
2344
2284
  }
2345
2285
  get contents() {
2346
2286
  return this.checkAndFreeze(this._contents);
@@ -2352,7 +2292,7 @@ class ConfigurationModel {
2352
2292
  return this.checkAndFreeze(this._keys);
2353
2293
  }
2354
2294
  isEmpty() {
2355
- return this._keys.length === 0 && ( Object.keys(this._contents)).length === 0 && this._overrides.length === 0;
2295
+ return this._keys.length === 0 && ( (Object.keys(this._contents))).length === 0 && this._overrides.length === 0;
2356
2296
  }
2357
2297
  isFrozen() {
2358
2298
  return this.frozen;
@@ -2416,26 +2356,26 @@ class ConfigurationModel {
2416
2356
  }
2417
2357
  }
2418
2358
  }
2419
- return ( new ConfigurationModel(contents, keys, overrides));
2359
+ return (
2360
+ (new ConfigurationModel(contents, keys, overrides))
2361
+ );
2420
2362
  }
2421
2363
  freeze() {
2422
2364
  this.frozen = true;
2423
2365
  return this;
2424
2366
  }
2425
2367
  clone() {
2426
- return ( new ConfigurationModel(
2427
- deepClone(this.contents),
2428
- [...this.keys],
2429
- deepClone(this.overrides)
2430
- ));
2368
+ return (
2369
+ (new ConfigurationModel(deepClone(this.contents), [...this.keys], deepClone(this.overrides)))
2370
+ );
2431
2371
  }
2432
2372
  createOverrideConfigurationModel(identifier) {
2433
2373
  const overrideContents = this.getContentsForOverrideIdentifer(identifier);
2434
- if (!overrideContents || typeof overrideContents !== 'object' || !( Object.keys(overrideContents)).length) {
2374
+ if (!overrideContents || typeof overrideContents !== 'object' || !( (Object.keys(overrideContents))).length) {
2435
2375
  return this;
2436
2376
  }
2437
2377
  const contents = {};
2438
- for (const key of distinct([...( Object.keys(this.contents)), ...( Object.keys(overrideContents))])) {
2378
+ for (const key of distinct([...( (Object.keys(this.contents))), ...( (Object.keys(overrideContents)))])) {
2439
2379
  let contentsForKey = this.contents[key];
2440
2380
  const overrideContentsForKey = overrideContents[key];
2441
2381
  if (overrideContentsForKey) {
@@ -2449,10 +2389,12 @@ class ConfigurationModel {
2449
2389
  }
2450
2390
  contents[key] = contentsForKey;
2451
2391
  }
2452
- return ( new ConfigurationModel(contents, this.keys, this.overrides));
2392
+ return (
2393
+ (new ConfigurationModel(contents, this.keys, this.overrides))
2394
+ );
2453
2395
  }
2454
2396
  mergeContents(source, target) {
2455
- for (const key of ( Object.keys(target))) {
2397
+ for (const key of ( (Object.keys(target)))) {
2456
2398
  if (key in source) {
2457
2399
  if (isObject(source[key]) && isObject(target[key])) {
2458
2400
  this.mergeContents(source[key], target[key]);
@@ -2535,7 +2477,7 @@ class ConfigurationModelParser {
2535
2477
  this._parseErrors = [];
2536
2478
  }
2537
2479
  get configurationModel() {
2538
- return this._configurationModel || ( new ConfigurationModel());
2480
+ return this._configurationModel || ( (new ConfigurationModel()));
2539
2481
  }
2540
2482
  get restrictedConfigurations() {
2541
2483
  return this._restrictedConfigurations;
@@ -2557,7 +2499,7 @@ class ConfigurationModelParser {
2557
2499
  parseRaw(raw, options) {
2558
2500
  this._raw = raw;
2559
2501
  const { contents, keys, overrides, restricted } = this.doParseRaw(raw, options);
2560
- this._configurationModel = ( new ConfigurationModel(contents, keys, overrides));
2502
+ this._configurationModel = ( (new ConfigurationModel(contents, keys, overrides)));
2561
2503
  this._restrictedConfigurations = restricted || [];
2562
2504
  }
2563
2505
  doParseContent(content) {
@@ -2614,11 +2556,11 @@ class ConfigurationModelParser {
2614
2556
  return raw;
2615
2557
  }
2616
2558
  doParseRaw(raw, options) {
2617
- const configurationProperties = ( Registry.as(Extensions$2.Configuration)).getConfigurationProperties();
2559
+ const configurationProperties = ( (Registry.as(Extensions$2.Configuration))).getConfigurationProperties();
2618
2560
  const filtered = this.filter(raw, configurationProperties, true, options);
2619
2561
  raw = filtered.raw;
2620
2562
  const contents = toValuesTree(raw, message => console.error(`Conflict in settings file ${this._name}: ${message}`));
2621
- const keys = ( Object.keys(raw));
2563
+ const keys = ( (Object.keys(raw)));
2622
2564
  const overrides = this.toOverrides(raw, message => console.error(`Conflict in settings file ${this._name}: ${message}`));
2623
2565
  return { contents, keys, overrides, restricted: filtered.restricted };
2624
2566
  }
@@ -2651,7 +2593,7 @@ class ConfigurationModelParser {
2651
2593
  }
2652
2594
  toOverrides(raw, conflictReporter) {
2653
2595
  const overrides = [];
2654
- for (const key of ( Object.keys(raw))) {
2596
+ for (const key of ( (Object.keys(raw)))) {
2655
2597
  if (OVERRIDE_PROPERTY_REGEX.test(key)) {
2656
2598
  const overrideRaw = {};
2657
2599
  for (const keyInOverrideRaw in raw[key]) {
@@ -2659,7 +2601,7 @@ class ConfigurationModelParser {
2659
2601
  }
2660
2602
  overrides.push({
2661
2603
  identifiers: overrideIdentifiersFromKey(key),
2662
- keys: ( Object.keys(overrideRaw)),
2604
+ keys: ( (Object.keys(overrideRaw))),
2663
2605
  contents: toValuesTree(overrideRaw, conflictReporter)
2664
2606
  });
2665
2607
  }
@@ -2673,9 +2615,9 @@ class UserSettings extends Disposable {
2673
2615
  this.userSettingsResource = userSettingsResource;
2674
2616
  this.scopes = scopes;
2675
2617
  this.fileService = fileService;
2676
- this._onDidChange = this._register(( new Emitter()));
2618
+ this._onDidChange = this._register(( (new Emitter())));
2677
2619
  this.onDidChange = this._onDidChange.event;
2678
- this.parser = ( new ConfigurationModelParser(( this.userSettingsResource.toString())));
2620
+ this.parser = ( (new ConfigurationModelParser( (this.userSettingsResource.toString()))));
2679
2621
  this.parseOptions = { scopes: this.scopes };
2680
2622
  this._register(this.fileService.watch(extUri.dirname(this.userSettingsResource)));
2681
2623
  this._register(this.fileService.watch(this.userSettingsResource));
@@ -2684,11 +2626,13 @@ class UserSettings extends Disposable {
2684
2626
  async loadConfiguration() {
2685
2627
  try {
2686
2628
  const content = await this.fileService.readFile(this.userSettingsResource);
2687
- this.parser.parse(( content.value.toString()) || '{}', this.parseOptions);
2629
+ this.parser.parse(( (content.value.toString())) || '{}', this.parseOptions);
2688
2630
  return this.parser.configurationModel;
2689
2631
  }
2690
2632
  catch (e) {
2691
- return ( new ConfigurationModel());
2633
+ return (
2634
+ (new ConfigurationModel())
2635
+ );
2692
2636
  }
2693
2637
  }
2694
2638
  reparse() {
@@ -2700,7 +2644,7 @@ class UserSettings extends Disposable {
2700
2644
  }
2701
2645
  }
2702
2646
  class Configuration {
2703
- constructor(_defaultConfiguration, _policyConfiguration, _applicationConfiguration, _localUserConfiguration, _remoteUserConfiguration = ( new ConfigurationModel()), _workspaceConfiguration = ( new ConfigurationModel()), _folderConfigurations = ( new ResourceMap$1()), _memoryConfiguration = ( new ConfigurationModel()), _memoryConfigurationByResource = ( new ResourceMap$1()), _freeze = true) {
2647
+ constructor(_defaultConfiguration, _policyConfiguration, _applicationConfiguration, _localUserConfiguration, _remoteUserConfiguration = ( (new ConfigurationModel())), _workspaceConfiguration = ( (new ConfigurationModel())), _folderConfigurations = ( (new ResourceMap$1())), _memoryConfiguration = ( (new ConfigurationModel())), _memoryConfigurationByResource = ( (new ResourceMap$1())), _freeze = true) {
2704
2648
  this._defaultConfiguration = _defaultConfiguration;
2705
2649
  this._policyConfiguration = _policyConfiguration;
2706
2650
  this._applicationConfiguration = _applicationConfiguration;
@@ -2712,7 +2656,7 @@ class Configuration {
2712
2656
  this._memoryConfigurationByResource = _memoryConfigurationByResource;
2713
2657
  this._freeze = _freeze;
2714
2658
  this._workspaceConsolidatedConfiguration = null;
2715
- this._foldersConsolidatedConfigurations = ( new ResourceMap$1());
2659
+ this._foldersConsolidatedConfigurations = ( (new ResourceMap$1()));
2716
2660
  this._userConfiguration = null;
2717
2661
  }
2718
2662
  getValue(section, overrides, workspace) {
@@ -2724,7 +2668,7 @@ class Configuration {
2724
2668
  if (overrides.resource) {
2725
2669
  memoryConfiguration = this._memoryConfigurationByResource.get(overrides.resource);
2726
2670
  if (!memoryConfiguration) {
2727
- memoryConfiguration = ( new ConfigurationModel());
2671
+ memoryConfiguration = ( (new ConfigurationModel()));
2728
2672
  this._memoryConfigurationByResource.set(overrides.resource, memoryConfiguration);
2729
2673
  }
2730
2674
  }
@@ -3019,7 +2963,7 @@ class Configuration {
3019
2963
  overrides: this._workspaceConfiguration.overrides,
3020
2964
  keys: this._workspaceConfiguration.keys
3021
2965
  },
3022
- folders: [...( this._folderConfigurations.keys())].reduce((result, folder) => {
2966
+ folders: [...( (this._folderConfigurations.keys()))].reduce((result, folder) => {
3023
2967
  const { contents, overrides, keys } = this._folderConfigurations.get(folder);
3024
2968
  result.push([folder, { contents, overrides, keys }]);
3025
2969
  return result;
@@ -3027,28 +2971,28 @@ class Configuration {
3027
2971
  };
3028
2972
  }
3029
2973
  allKeys() {
3030
- const keys = ( new Set());
2974
+ const keys = ( (new Set()));
3031
2975
  this._defaultConfiguration.freeze().keys.forEach(key => keys.add(key));
3032
2976
  this.userConfiguration.freeze().keys.forEach(key => keys.add(key));
3033
2977
  this._workspaceConfiguration.freeze().keys.forEach(key => keys.add(key));
3034
2978
  this._folderConfigurations.forEach(folderConfiguraiton => folderConfiguraiton.freeze().keys.forEach(key => keys.add(key)));
3035
- return [...( keys.values())];
2979
+ return [...( (keys.values()))];
3036
2980
  }
3037
2981
  allOverrideIdentifiers() {
3038
- const keys = ( new Set());
2982
+ const keys = ( (new Set()));
3039
2983
  this._defaultConfiguration.freeze().getAllOverrideIdentifiers().forEach(key => keys.add(key));
3040
2984
  this.userConfiguration.freeze().getAllOverrideIdentifiers().forEach(key => keys.add(key));
3041
2985
  this._workspaceConfiguration.freeze().getAllOverrideIdentifiers().forEach(key => keys.add(key));
3042
2986
  this._folderConfigurations.forEach(folderConfiguraiton => folderConfiguraiton.freeze().getAllOverrideIdentifiers().forEach(key => keys.add(key)));
3043
- return [...( keys.values())];
2987
+ return [...( (keys.values()))];
3044
2988
  }
3045
2989
  getAllKeysForOverrideIdentifier(overrideIdentifier) {
3046
- const keys = ( new Set());
2990
+ const keys = ( (new Set()));
3047
2991
  this._defaultConfiguration.getKeysForOverrideIdentifier(overrideIdentifier).forEach(key => keys.add(key));
3048
2992
  this.userConfiguration.getKeysForOverrideIdentifier(overrideIdentifier).forEach(key => keys.add(key));
3049
2993
  this._workspaceConfiguration.getKeysForOverrideIdentifier(overrideIdentifier).forEach(key => keys.add(key));
3050
2994
  this._folderConfigurations.forEach(folderConfiguraiton => folderConfiguraiton.getKeysForOverrideIdentifier(overrideIdentifier).forEach(key => keys.add(key)));
3051
- return [...( keys.values())];
2995
+ return [...( (keys.values()))];
3052
2996
  }
3053
2997
  static parse(data) {
3054
2998
  const defaultConfiguration = this.parseConfigurationModel(data.defaults);
@@ -3059,22 +3003,24 @@ class Configuration {
3059
3003
  const folders = data.folders.reduce((result, value) => {
3060
3004
  result.set(URI.revive(value[0]), this.parseConfigurationModel(value[1]));
3061
3005
  return result;
3062
- }, ( new ResourceMap$1()));
3063
- return ( new Configuration(
3064
- defaultConfiguration,
3065
- policyConfiguration,
3066
- applicationConfiguration,
3067
- userConfiguration,
3068
- ( new ConfigurationModel()),
3069
- workspaceConfiguration,
3070
- folders,
3071
- ( new ConfigurationModel()),
3072
- ( new ResourceMap$1()),
3073
- false
3074
- ));
3006
+ }, ( (new ResourceMap$1())));
3007
+ return (
3008
+ (new Configuration(
3009
+ defaultConfiguration,
3010
+ policyConfiguration,
3011
+ applicationConfiguration,
3012
+ userConfiguration,
3013
+ (new ConfigurationModel()),
3014
+ workspaceConfiguration,
3015
+ folders,
3016
+ (new ConfigurationModel()),
3017
+ (new ResourceMap$1()),
3018
+ false
3019
+ ))
3020
+ );
3075
3021
  }
3076
3022
  static parseConfigurationModel(model) {
3077
- return ( new ConfigurationModel(model.contents, model.keys, model.overrides)).freeze();
3023
+ return ( (new ConfigurationModel(model.contents, model.keys, model.overrides))).freeze();
3078
3024
  }
3079
3025
  }
3080
3026
  function compare(from, to) {
@@ -3152,9 +3098,14 @@ function isConfigurationOverrides(thing) {
3152
3098
  }
3153
3099
  class StandaloneConfigurationService {
3154
3100
  constructor() {
3155
- this._onDidChangeConfiguration = ( new Emitter());
3101
+ this._onDidChangeConfiguration = ( (new Emitter()));
3156
3102
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
3157
- this._configuration = ( new Configuration$1(( new DefaultConfigurationModel()), ( new ConfigurationModel$1()), ( new ConfigurationModel$1()), ( new ConfigurationModel$1())));
3103
+ this._configuration = ( (new Configuration$1(
3104
+ (new DefaultConfigurationModel()),
3105
+ (new ConfigurationModel$1()),
3106
+ (new ConfigurationModel$1()),
3107
+ (new ConfigurationModel$1())
3108
+ )));
3158
3109
  }
3159
3110
  getValue(arg1, arg2) {
3160
3111
  const section = typeof arg1 === 'string' ? arg1 : undefined;
@@ -3173,7 +3124,7 @@ class StandaloneConfigurationService {
3173
3124
  changedKeys.push(key);
3174
3125
  }
3175
3126
  if (changedKeys.length > 0) {
3176
- const configurationChangeEvent = ( new ConfigurationChangeEvent({ keys: changedKeys, overrides: [] }, previous, this._configuration));
3127
+ const configurationChangeEvent = ( (new ConfigurationChangeEvent({ keys: changedKeys, overrides: [] }, previous, this._configuration)));
3177
3128
  configurationChangeEvent.source = 8 ;
3178
3129
  configurationChangeEvent.sourceConfig = null;
3179
3130
  this._onDidChangeConfiguration.fire(configurationChangeEvent);
@@ -3187,7 +3138,9 @@ class StandaloneConfigurationService {
3187
3138
  return this._configuration.inspect(key, options, undefined);
3188
3139
  }
3189
3140
  keys() {
3190
- return ( this._configuration.keys(undefined));
3141
+ return (
3142
+ (this._configuration.keys(undefined))
3143
+ );
3191
3144
  }
3192
3145
  reloadConfiguration() {
3193
3146
  return Promise.resolve(undefined);
@@ -3213,7 +3166,7 @@ const NULL_LANGUAGE_ID = 'vs.editor.nullLanguage';
3213
3166
  class LanguageIdCodec {
3214
3167
  constructor() {
3215
3168
  this._languageIdToLanguage = [];
3216
- this._languageToLanguageId = ( new Map());
3169
+ this._languageToLanguageId = ( (new Map()));
3217
3170
  this._register(NULL_LANGUAGE_ID, 0 );
3218
3171
  this._register(PLAINTEXT_LANGUAGE_ID, 1 );
3219
3172
  this._nextLanguageId = 2;
@@ -3239,11 +3192,11 @@ class LanguageIdCodec {
3239
3192
  class LanguagesRegistry extends Disposable {
3240
3193
  constructor(useModesRegistry = true, warnOnOverwrite = false) {
3241
3194
  super();
3242
- this._onDidChange = this._register(( new Emitter()));
3195
+ this._onDidChange = this._register(( (new Emitter())));
3243
3196
  this.onDidChange = this._onDidChange.event;
3244
3197
  LanguagesRegistry.instanceCount++;
3245
3198
  this._warnOnOverwrite = warnOnOverwrite;
3246
- this.languageIdCodec = ( new LanguageIdCodec());
3199
+ this.languageIdCodec = ( (new LanguageIdCodec()));
3247
3200
  this._dynamicLanguages = [];
3248
3201
  this._languages = {};
3249
3202
  this._mimeTypesMap = {};
@@ -3283,7 +3236,7 @@ class LanguagesRegistry extends Disposable {
3283
3236
  this._mimeTypesMap = {};
3284
3237
  this._nameMap = {};
3285
3238
  this._lowercaseNameMap = {};
3286
- ( Object.keys(this._languages)).forEach((langId) => {
3239
+ ( (Object.keys(this._languages))).forEach((langId) => {
3287
3240
  const language = this._languages[langId];
3288
3241
  if (language.name) {
3289
3242
  this._nameMap[language.name] = language.identifier;
@@ -3295,7 +3248,7 @@ class LanguagesRegistry extends Disposable {
3295
3248
  this._mimeTypesMap[mimetype] = language.identifier;
3296
3249
  });
3297
3250
  });
3298
- ( Registry.as(Extensions$2.Configuration)).registerOverrideIdentifiers(this.getRegisteredLanguageIds());
3251
+ ( (Registry.as(Extensions$2.Configuration))).registerOverrideIdentifiers(this.getRegisteredLanguageIds());
3299
3252
  this._onDidChange.fire();
3300
3253
  }
3301
3254
  _registerLanguage(lang) {
@@ -3359,7 +3312,7 @@ class LanguagesRegistry extends Disposable {
3359
3312
  firstLineRegexStr = '^' + firstLineRegexStr;
3360
3313
  }
3361
3314
  try {
3362
- const firstLineRegex = ( new RegExp(firstLineRegexStr));
3315
+ const firstLineRegex = ( (new RegExp(firstLineRegexStr)));
3363
3316
  if (!regExpLeadsToEndlessLoop(firstLineRegex)) {
3364
3317
  registerPlatformLanguageAssociation({ id: langId, mime: primaryMime, firstline: firstLineRegex }, this._warnOnOverwrite);
3365
3318
  }
@@ -3408,7 +3361,9 @@ class LanguagesRegistry extends Disposable {
3408
3361
  return hasOwnProperty.call(this._languages, languageId);
3409
3362
  }
3410
3363
  getRegisteredLanguageIds() {
3411
- return ( Object.keys(this._languages));
3364
+ return (
3365
+ (Object.keys(this._languages))
3366
+ );
3412
3367
  }
3413
3368
  getSortedRegisteredLanguageNames() {
3414
3369
  const result = [];
@@ -3545,12 +3500,14 @@ class Trait {
3545
3500
  this.length = 0;
3546
3501
  this.indexes = [];
3547
3502
  this.sortedIndexes = [];
3548
- this._onChange = ( new Emitter());
3503
+ this._onChange = ( (new Emitter()));
3549
3504
  this.onChange = this._onChange.event;
3550
3505
  }
3551
3506
  get name() { return this._trait; }
3552
3507
  get renderer() {
3553
- return ( new TraitRenderer(this));
3508
+ return (
3509
+ (new TraitRenderer(this))
3510
+ );
3554
3511
  }
3555
3512
  splice(start, deleteCount, elements) {
3556
3513
  deleteCount = Math.max(0, Math.min(deleteCount, this.length - start));
@@ -3626,8 +3583,8 @@ class TraitSpliceable {
3626
3583
  if (!this.identityProvider) {
3627
3584
  return this.trait.splice(start, deleteCount, elements.map(() => false));
3628
3585
  }
3629
- const pastElementsWithTrait = this.trait.get().map(i => ( this.identityProvider.getId(this.view.element(i)).toString()));
3630
- const elementsWithTrait = elements.map(e => pastElementsWithTrait.indexOf(( this.identityProvider.getId(e).toString())) > -1);
3586
+ const pastElementsWithTrait = this.trait.get().map(i => ( (this.identityProvider.getId(this.view.element(i)).toString())));
3587
+ const elementsWithTrait = elements.map(e => pastElementsWithTrait.indexOf(( (this.identityProvider.getId(e).toString()))) > -1);
3631
3588
  this.trait.splice(start, deleteCount, elementsWithTrait);
3632
3589
  }
3633
3590
  }
@@ -3650,8 +3607,8 @@ class KeyboardController {
3650
3607
  constructor(list, view, options) {
3651
3608
  this.list = list;
3652
3609
  this.view = view;
3653
- this.disposables = ( new DisposableStore());
3654
- this.multipleSelectionDisposables = ( new DisposableStore());
3610
+ this.disposables = ( (new DisposableStore()));
3611
+ this.multipleSelectionDisposables = ( (new DisposableStore()));
3655
3612
  this.onKeyDown.filter(e => e.keyCode === 3 ).on(this.onEnter, this, this.disposables);
3656
3613
  this.onKeyDown.filter(e => e.keyCode === 16 ).on(this.onUpArrow, this, this.disposables);
3657
3614
  this.onKeyDown.filter(e => e.keyCode === 18 ).on(this.onDownArrow, this, this.disposables);
@@ -3663,9 +3620,9 @@ class KeyboardController {
3663
3620
  }
3664
3621
  }
3665
3622
  get onKeyDown() {
3666
- return this.disposables.add(Event.chain(this.disposables.add(( new DomEmitter(this.view.domNode, 'keydown'))).event)
3623
+ return this.disposables.add(Event.chain(this.disposables.add(( (new DomEmitter(this.view.domNode, 'keydown')))).event)
3667
3624
  .filter(e => !isInputElement(e.target))
3668
- .map(e => ( new StandardKeyboardEvent(e))));
3625
+ .map(e => ( (new StandardKeyboardEvent(e)))));
3669
3626
  }
3670
3627
  updateOptions(optionsUpdate) {
3671
3628
  if (optionsUpdate.multipleSelectionSupport !== undefined) {
@@ -3738,15 +3695,15 @@ class KeyboardController {
3738
3695
  }
3739
3696
  }
3740
3697
  var TypeNavigationMode;
3741
- ( (function(TypeNavigationMode) {
3698
+ ( ((function(TypeNavigationMode) {
3742
3699
  TypeNavigationMode[TypeNavigationMode["Automatic"] = 0] = "Automatic";
3743
3700
  TypeNavigationMode[TypeNavigationMode["Trigger"] = 1] = "Trigger";
3744
- })(TypeNavigationMode || (TypeNavigationMode = {})));
3701
+ })(TypeNavigationMode || (TypeNavigationMode = {}))));
3745
3702
  var TypeNavigationControllerState;
3746
- ( (function(TypeNavigationControllerState) {
3703
+ ( ((function(TypeNavigationControllerState) {
3747
3704
  TypeNavigationControllerState[TypeNavigationControllerState["Idle"] = 0] = "Idle";
3748
3705
  TypeNavigationControllerState[TypeNavigationControllerState["Typing"] = 1] = "Typing";
3749
- })(TypeNavigationControllerState || (TypeNavigationControllerState = {})));
3706
+ })(TypeNavigationControllerState || (TypeNavigationControllerState = {}))));
3750
3707
  const DefaultKeyboardNavigationDelegate = new class {
3751
3708
  mightProducePrintableCharacter(event) {
3752
3709
  if (event.ctrlKey || event.metaKey || event.altKey) {
@@ -3770,8 +3727,8 @@ class TypeNavigationController {
3770
3727
  this.mode = TypeNavigationMode.Automatic;
3771
3728
  this.triggered = false;
3772
3729
  this.previouslyFocused = -1;
3773
- this.enabledDisposables = ( new DisposableStore());
3774
- this.disposables = ( new DisposableStore());
3730
+ this.enabledDisposables = ( (new DisposableStore()));
3731
+ this.disposables = ( (new DisposableStore()));
3775
3732
  this.updateOptions(list.options);
3776
3733
  }
3777
3734
  updateOptions(options) {
@@ -3791,10 +3748,10 @@ class TypeNavigationController {
3791
3748
  return;
3792
3749
  }
3793
3750
  let typing = false;
3794
- const onChar = this.enabledDisposables.add(Event.chain(this.enabledDisposables.add(( new DomEmitter(this.view.domNode, 'keydown'))).event))
3751
+ const onChar = this.enabledDisposables.add(Event.chain(this.enabledDisposables.add(( (new DomEmitter(this.view.domNode, 'keydown')))).event))
3795
3752
  .filter(e => !isInputElement(e.target))
3796
3753
  .filter(() => this.mode === TypeNavigationMode.Automatic || this.triggered)
3797
- .map(event => ( new StandardKeyboardEvent(event)))
3754
+ .map(event => ( (new StandardKeyboardEvent(event))))
3798
3755
  .filter(e => typing || this.keyboardNavigationEventFilter(e))
3799
3756
  .filter(e => this.delegate.mightProducePrintableCharacter(e))
3800
3757
  .forEach(stopEvent)
@@ -3840,7 +3797,7 @@ class TypeNavigationController {
3840
3797
  for (let i = 0; i < this.list.length; i++) {
3841
3798
  const index = (start + i + delta) % this.list.length;
3842
3799
  const label = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(index));
3843
- const labelStr = label && ( label.toString());
3800
+ const labelStr = label && ( (label.toString()));
3844
3801
  if (typeof labelStr === 'undefined' || matchesPrefix(word, labelStr)) {
3845
3802
  this.previouslyFocused = start;
3846
3803
  this.list.setFocus([index]);
@@ -3859,10 +3816,10 @@ class DOMFocusController {
3859
3816
  constructor(list, view) {
3860
3817
  this.list = list;
3861
3818
  this.view = view;
3862
- this.disposables = ( new DisposableStore());
3863
- const onKeyDown = this.disposables.add(Event.chain(this.disposables.add(( new DomEmitter(view.domNode, 'keydown'))).event))
3819
+ this.disposables = ( (new DisposableStore()));
3820
+ const onKeyDown = this.disposables.add(Event.chain(this.disposables.add(( (new DomEmitter(view.domNode, 'keydown')))).event))
3864
3821
  .filter(e => !isInputElement(e.target))
3865
- .map(e => ( new StandardKeyboardEvent(e)));
3822
+ .map(e => ( (new StandardKeyboardEvent(e))));
3866
3823
  onKeyDown.filter(e => e.keyCode === 2 && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey)
3867
3824
  .on(this.onTab, this, this.disposables);
3868
3825
  }
@@ -3910,8 +3867,8 @@ const DefaultMultipleSelectionController = {
3910
3867
  class MouseController {
3911
3868
  constructor(list) {
3912
3869
  this.list = list;
3913
- this.disposables = ( new DisposableStore());
3914
- this._onPointer = ( new Emitter());
3870
+ this.disposables = ( (new DisposableStore()));
3871
+ this._onPointer = ( (new Emitter()));
3915
3872
  this.onPointer = this._onPointer.event;
3916
3873
  if (list.options.multipleSelectionSupport !== false) {
3917
3874
  this.multipleSelectionController = this.list.options.multipleSelectionController || DefaultMultipleSelectionController;
@@ -4154,20 +4111,20 @@ class DefaultStyleController {
4154
4111
  }
4155
4112
  }
4156
4113
  const defaultStyles = {
4157
- listFocusBackground: ( Color$1.fromHex('#7FB0D0')),
4158
- listActiveSelectionBackground: ( Color$1.fromHex('#0E639C')),
4159
- listActiveSelectionForeground: ( Color$1.fromHex('#FFFFFF')),
4160
- listActiveSelectionIconForeground: ( Color$1.fromHex('#FFFFFF')),
4161
- listFocusAndSelectionOutline: ( Color$1.fromHex('#90C2F9')),
4162
- listFocusAndSelectionBackground: ( Color$1.fromHex('#094771')),
4163
- listFocusAndSelectionForeground: ( Color$1.fromHex('#FFFFFF')),
4164
- listInactiveSelectionBackground: ( Color$1.fromHex('#3F3F46')),
4165
- listInactiveSelectionIconForeground: ( Color$1.fromHex('#FFFFFF')),
4166
- listHoverBackground: ( Color$1.fromHex('#2A2D2E')),
4167
- listDropBackground: ( Color$1.fromHex('#383B3D')),
4168
- treeIndentGuidesStroke: ( Color$1.fromHex('#a9a9a9')),
4169
- tableColumnsBorder: ( ( Color$1.fromHex('#cccccc')).transparent(0.2)),
4170
- tableOddRowsBackgroundColor: ( ( Color$1.fromHex('#cccccc')).transparent(0.04))
4114
+ listFocusBackground: ( (Color$1.fromHex('#7FB0D0'))),
4115
+ listActiveSelectionBackground: ( (Color$1.fromHex('#0E639C'))),
4116
+ listActiveSelectionForeground: ( (Color$1.fromHex('#FFFFFF'))),
4117
+ listActiveSelectionIconForeground: ( (Color$1.fromHex('#FFFFFF'))),
4118
+ listFocusAndSelectionOutline: ( (Color$1.fromHex('#90C2F9'))),
4119
+ listFocusAndSelectionBackground: ( (Color$1.fromHex('#094771'))),
4120
+ listFocusAndSelectionForeground: ( (Color$1.fromHex('#FFFFFF'))),
4121
+ listInactiveSelectionBackground: ( (Color$1.fromHex('#3F3F46'))),
4122
+ listInactiveSelectionIconForeground: ( (Color$1.fromHex('#FFFFFF'))),
4123
+ listHoverBackground: ( (Color$1.fromHex('#2A2D2E'))),
4124
+ listDropBackground: ( (Color$1.fromHex('#383B3D'))),
4125
+ treeIndentGuidesStroke: ( (Color$1.fromHex('#a9a9a9'))),
4126
+ tableColumnsBorder: ( (( (Color$1.fromHex('#cccccc'))).transparent(0.2))),
4127
+ tableOddRowsBackgroundColor: ( (( (Color$1.fromHex('#cccccc'))).transparent(0.04)))
4171
4128
  };
4172
4129
  const DefaultOptions = {
4173
4130
  keyboardSupport: true,
@@ -4344,61 +4301,61 @@ class List {
4344
4301
  constructor(user, container, virtualDelegate, renderers, _options = DefaultOptions) {
4345
4302
  this.user = user;
4346
4303
  this._options = _options;
4347
- this.focus = ( new Trait('focused'));
4348
- this.anchor = ( new Trait('anchor'));
4349
- this.eventBufferer = ( new EventBufferer());
4304
+ this.focus = ( (new Trait('focused')));
4305
+ this.anchor = ( (new Trait('anchor')));
4306
+ this.eventBufferer = ( (new EventBufferer()));
4350
4307
  this._ariaLabel = '';
4351
- this.disposables = ( new DisposableStore());
4352
- this._onDidDispose = ( new Emitter());
4308
+ this.disposables = ( (new DisposableStore()));
4309
+ this._onDidDispose = ( (new Emitter()));
4353
4310
  this.onDidDispose = this._onDidDispose.event;
4354
4311
  const role = this._options.accessibilityProvider && this._options.accessibilityProvider.getWidgetRole ? this._options.accessibilityProvider?.getWidgetRole() : 'list';
4355
- this.selection = ( new SelectionTrait(role !== 'listbox'));
4312
+ this.selection = ( (new SelectionTrait(role !== 'listbox')));
4356
4313
  mixin(_options, defaultStyles, false);
4357
4314
  const baseRenderers = [this.focus.renderer, this.selection.renderer];
4358
4315
  this.accessibilityProvider = _options.accessibilityProvider;
4359
4316
  if (this.accessibilityProvider) {
4360
- baseRenderers.push(( new AccessibiltyRenderer(this.accessibilityProvider)));
4317
+ baseRenderers.push(( (new AccessibiltyRenderer(this.accessibilityProvider))));
4361
4318
  this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant, this, this.disposables);
4362
4319
  }
4363
- renderers = renderers.map(r => ( new PipelineRenderer(r.templateId, [...baseRenderers, r])));
4320
+ renderers = renderers.map(r => ( (new PipelineRenderer(r.templateId, [...baseRenderers, r]))));
4364
4321
  const viewOptions = {
4365
4322
  ..._options,
4366
- dnd: _options.dnd && ( new ListViewDragAndDrop(this, _options.dnd))
4323
+ dnd: _options.dnd && ( (new ListViewDragAndDrop(this, _options.dnd)))
4367
4324
  };
4368
- this.view = ( new ListView(container, virtualDelegate, renderers, viewOptions));
4325
+ this.view = ( (new ListView(container, virtualDelegate, renderers, viewOptions)));
4369
4326
  this.view.domNode.setAttribute('role', role);
4370
4327
  if (_options.styleController) {
4371
4328
  this.styleController = _options.styleController(this.view.domId);
4372
4329
  }
4373
4330
  else {
4374
4331
  const styleElement = createStyleSheet(this.view.domNode);
4375
- this.styleController = ( new DefaultStyleController(styleElement, this.view.domId));
4332
+ this.styleController = ( (new DefaultStyleController(styleElement, this.view.domId)));
4376
4333
  }
4377
- this.spliceable = ( new CombinedSpliceable([
4378
- ( new TraitSpliceable(this.focus, this.view, _options.identityProvider)),
4379
- ( new TraitSpliceable(this.selection, this.view, _options.identityProvider)),
4380
- ( new TraitSpliceable(this.anchor, this.view, _options.identityProvider)),
4334
+ this.spliceable = ( (new CombinedSpliceable([
4335
+ ( (new TraitSpliceable(this.focus, this.view, _options.identityProvider))),
4336
+ ( (new TraitSpliceable(this.selection, this.view, _options.identityProvider))),
4337
+ ( (new TraitSpliceable(this.anchor, this.view, _options.identityProvider))),
4381
4338
  this.view
4382
- ]));
4339
+ ])));
4383
4340
  this.disposables.add(this.focus);
4384
4341
  this.disposables.add(this.selection);
4385
4342
  this.disposables.add(this.anchor);
4386
4343
  this.disposables.add(this.view);
4387
4344
  this.disposables.add(this._onDidDispose);
4388
- this.disposables.add(( new DOMFocusController(this, this.view)));
4345
+ this.disposables.add(( (new DOMFocusController(this, this.view))));
4389
4346
  if (typeof _options.keyboardSupport !== 'boolean' || _options.keyboardSupport) {
4390
- this.keyboardController = ( new KeyboardController(this, this.view, _options));
4347
+ this.keyboardController = ( (new KeyboardController(this, this.view, _options)));
4391
4348
  this.disposables.add(this.keyboardController);
4392
4349
  }
4393
4350
  if (_options.keyboardNavigationLabelProvider) {
4394
4351
  const delegate = _options.keyboardNavigationDelegate || DefaultKeyboardNavigationDelegate;
4395
- this.typeNavigationController = ( new TypeNavigationController(
4352
+ this.typeNavigationController = ( (new TypeNavigationController(
4396
4353
  this,
4397
4354
  this.view,
4398
4355
  _options.keyboardNavigationLabelProvider,
4399
4356
  _options.keyboardNavigationEventFilter ?? (() => true),
4400
4357
  delegate
4401
- ));
4358
+ )));
4402
4359
  this.disposables.add(this.typeNavigationController);
4403
4360
  }
4404
4361
  this.mouseController = this.createMouseController(_options);
@@ -4433,15 +4390,15 @@ class List {
4433
4390
  get onTap() { return this.view.onTap; }
4434
4391
  get onContextMenu() {
4435
4392
  let didJustPressContextMenuKey = false;
4436
- const fromKeyDown = this.disposables.add(Event.chain(this.disposables.add(( new DomEmitter(this.view.domNode, 'keydown'))).event))
4437
- .map(e => ( new StandardKeyboardEvent(e)))
4393
+ const fromKeyDown = this.disposables.add(Event.chain(this.disposables.add(( (new DomEmitter(this.view.domNode, 'keydown')))).event))
4394
+ .map(e => ( (new StandardKeyboardEvent(e))))
4438
4395
  .filter(e => didJustPressContextMenuKey = e.keyCode === 58 || ((e.shiftKey && e.keyCode === 68) ))
4439
4396
  .map(stopEvent)
4440
4397
  .filter(() => false)
4441
4398
  .event;
4442
- const fromKeyUp = this.disposables.add(Event.chain(this.disposables.add(( new DomEmitter(this.view.domNode, 'keyup'))).event))
4399
+ const fromKeyUp = this.disposables.add(Event.chain(this.disposables.add(( (new DomEmitter(this.view.domNode, 'keyup')))).event))
4443
4400
  .forEach(() => didJustPressContextMenuKey = false)
4444
- .map(e => ( new StandardKeyboardEvent(e)))
4401
+ .map(e => ( (new StandardKeyboardEvent(e))))
4445
4402
  .filter(e => e.keyCode === 58 || ((e.shiftKey && e.keyCode === 68) ))
4446
4403
  .map(stopEvent)
4447
4404
  .map(({ browserEvent }) => {
@@ -4458,13 +4415,15 @@ class List {
4458
4415
  .event;
4459
4416
  return Event.any(fromKeyDown, fromKeyUp, fromMouse);
4460
4417
  }
4461
- get onKeyDown() { return this.disposables.add(( new DomEmitter(this.view.domNode, 'keydown'))).event; }
4462
- get onKeyUp() { return this.disposables.add(( new DomEmitter(this.view.domNode, 'keyup'))).event; }
4463
- get onKeyPress() { return this.disposables.add(( new DomEmitter(this.view.domNode, 'keypress'))).event; }
4464
- get onDidFocus() { return Event.signal(this.disposables.add(( new DomEmitter(this.view.domNode, 'focus', true))).event); }
4465
- get onDidBlur() { return Event.signal(this.disposables.add(( new DomEmitter(this.view.domNode, 'blur', true))).event); }
4418
+ get onKeyDown() { return this.disposables.add(( (new DomEmitter(this.view.domNode, 'keydown')))).event; }
4419
+ get onKeyUp() { return this.disposables.add(( (new DomEmitter(this.view.domNode, 'keyup')))).event; }
4420
+ get onKeyPress() { return this.disposables.add(( (new DomEmitter(this.view.domNode, 'keypress')))).event; }
4421
+ get onDidFocus() { return Event.signal(this.disposables.add(( (new DomEmitter(this.view.domNode, 'focus', true)))).event); }
4422
+ get onDidBlur() { return Event.signal(this.disposables.add(( (new DomEmitter(this.view.domNode, 'blur', true)))).event); }
4466
4423
  createMouseController(options) {
4467
- return ( new MouseController(this));
4424
+ return (
4425
+ (new MouseController(this))
4426
+ );
4468
4427
  }
4469
4428
  updateOptions(optionsUpdate = {}) {
4470
4429
  this._options = { ...this._options, ...optionsUpdate };
@@ -4865,7 +4824,9 @@ class HSLA {
4865
4824
  h *= 60;
4866
4825
  h = Math.round(h);
4867
4826
  }
4868
- return ( new HSLA(h, s, l, a));
4827
+ return (
4828
+ (new HSLA(h, s, l, a))
4829
+ );
4869
4830
  }
4870
4831
  static _hue2rgb(p, q, t) {
4871
4832
  if (t < 0) {
@@ -4899,7 +4860,9 @@ class HSLA {
4899
4860
  g = HSLA._hue2rgb(p, q, h);
4900
4861
  b = HSLA._hue2rgb(p, q, h - 1 / 3);
4901
4862
  }
4902
- return ( new RGBA(Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), a));
4863
+ return (
4864
+ (new RGBA(Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), a))
4865
+ );
4903
4866
  }
4904
4867
  }
4905
4868
  class HSVA {
@@ -4934,7 +4897,9 @@ class HSVA {
4934
4897
  else {
4935
4898
  m = ((r - g) / delta) + 4;
4936
4899
  }
4937
- return ( new HSVA(Math.round(m * 60), s, cmax, rgba.a));
4900
+ return (
4901
+ (new HSVA(Math.round(m * 60), s, cmax, rgba.a))
4902
+ );
4938
4903
  }
4939
4904
  static toRGBA(hsva) {
4940
4905
  const { h, s, v, a } = hsva;
@@ -4969,7 +4934,9 @@ class HSVA {
4969
4934
  r = Math.round((r + m) * 255);
4970
4935
  g = Math.round((g + m) * 255);
4971
4936
  b = Math.round((b + m) * 255);
4972
- return ( new RGBA(r, g, b, a));
4937
+ return (
4938
+ (new RGBA(r, g, b, a))
4939
+ );
4973
4940
  }
4974
4941
  }
4975
4942
  class Color {
@@ -5047,14 +5014,24 @@ class Color {
5047
5014
  return lum1 < lum2;
5048
5015
  }
5049
5016
  lighten(factor) {
5050
- return ( new Color(( new HSLA(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * factor, this.hsla.a))));
5017
+ return (
5018
+ (new Color(
5019
+ (new HSLA(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * factor, this.hsla.a))
5020
+ ))
5021
+ );
5051
5022
  }
5052
5023
  darken(factor) {
5053
- return ( new Color(( new HSLA(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * factor, this.hsla.a))));
5024
+ return (
5025
+ (new Color(
5026
+ (new HSLA(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * factor, this.hsla.a))
5027
+ ))
5028
+ );
5054
5029
  }
5055
5030
  transparent(factor) {
5056
5031
  const { r, g, b, a } = this.rgba;
5057
- return ( new Color(( new RGBA(r, g, b, a * factor))));
5032
+ return (
5033
+ (new Color( (new RGBA(r, g, b, a * factor))))
5034
+ );
5058
5035
  }
5059
5036
  isTransparent() {
5060
5037
  return this.rgba.a === 0;
@@ -5063,7 +5040,11 @@ class Color {
5063
5040
  return this.rgba.a === 1;
5064
5041
  }
5065
5042
  opposite() {
5066
- return ( new Color(( new RGBA(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a))));
5043
+ return (
5044
+ (new Color(
5045
+ (new RGBA(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a))
5046
+ ))
5047
+ );
5067
5048
  }
5068
5049
  blend(c) {
5069
5050
  const rgba = c.rgba;
@@ -5076,19 +5057,23 @@ class Color {
5076
5057
  const r = this.rgba.r * thisA / a + rgba.r * colorA * (1 - thisA) / a;
5077
5058
  const g = this.rgba.g * thisA / a + rgba.g * colorA * (1 - thisA) / a;
5078
5059
  const b = this.rgba.b * thisA / a + rgba.b * colorA * (1 - thisA) / a;
5079
- return ( new Color(( new RGBA(r, g, b, a))));
5060
+ return (
5061
+ (new Color( (new RGBA(r, g, b, a))))
5062
+ );
5080
5063
  }
5081
5064
  makeOpaque(opaqueBackground) {
5082
5065
  if (this.isOpaque() || opaqueBackground.rgba.a !== 1) {
5083
5066
  return this;
5084
5067
  }
5085
5068
  const { r, g, b, a } = this.rgba;
5086
- return ( new Color(( new RGBA(
5087
- opaqueBackground.rgba.r - a * (opaqueBackground.rgba.r - r),
5088
- opaqueBackground.rgba.g - a * (opaqueBackground.rgba.g - g),
5089
- opaqueBackground.rgba.b - a * (opaqueBackground.rgba.b - b),
5090
- 1
5091
- ))));
5069
+ return (
5070
+ (new Color( (new RGBA(
5071
+ opaqueBackground.rgba.r - a * (opaqueBackground.rgba.r - r),
5072
+ opaqueBackground.rgba.g - a * (opaqueBackground.rgba.g - g),
5073
+ opaqueBackground.rgba.b - a * (opaqueBackground.rgba.b - b),
5074
+ 1
5075
+ ))))
5076
+ );
5092
5077
  }
5093
5078
  flatten(...backgrounds) {
5094
5079
  const background = backgrounds.reduceRight((accumulator, color) => {
@@ -5098,11 +5083,13 @@ class Color {
5098
5083
  }
5099
5084
  static _flatten(foreground, background) {
5100
5085
  const backgroundAlpha = 1 - foreground.rgba.a;
5101
- return ( new Color(( new RGBA(
5102
- backgroundAlpha * background.rgba.r + foreground.rgba.a * foreground.rgba.r,
5103
- backgroundAlpha * background.rgba.g + foreground.rgba.a * foreground.rgba.g,
5104
- backgroundAlpha * background.rgba.b + foreground.rgba.a * foreground.rgba.b
5105
- ))));
5086
+ return (
5087
+ (new Color( (new RGBA(
5088
+ backgroundAlpha * background.rgba.r + foreground.rgba.a * foreground.rgba.r,
5089
+ backgroundAlpha * background.rgba.g + foreground.rgba.a * foreground.rgba.g,
5090
+ backgroundAlpha * background.rgba.b + foreground.rgba.a * foreground.rgba.b
5091
+ ))))
5092
+ );
5106
5093
  }
5107
5094
  toString() {
5108
5095
  if (!this._toString) {
@@ -5118,7 +5105,9 @@ class Color {
5118
5105
  const lum1 = of.getRelativeLuminance();
5119
5106
  const lum2 = relative.getRelativeLuminance();
5120
5107
  factor = factor * (lum2 - lum1) / lum2;
5121
- return ( of.lighten(factor));
5108
+ return (
5109
+ (of.lighten(factor))
5110
+ );
5122
5111
  }
5123
5112
  static getDarkerColor(of, relative, factor) {
5124
5113
  if (of.isDarkerThan(relative)) {
@@ -5128,20 +5117,22 @@ class Color {
5128
5117
  const lum1 = of.getRelativeLuminance();
5129
5118
  const lum2 = relative.getRelativeLuminance();
5130
5119
  factor = factor * (lum1 - lum2) / lum1;
5131
- return ( of.darken(factor));
5120
+ return (
5121
+ (of.darken(factor))
5122
+ );
5132
5123
  }
5133
5124
  }
5134
- Color.white = ( new Color(( new RGBA(255, 255, 255, 1))));
5135
- Color.black = ( new Color(( new RGBA(0, 0, 0, 1))));
5136
- Color.red = ( new Color(( new RGBA(255, 0, 0, 1))));
5137
- Color.blue = ( new Color(( new RGBA(0, 0, 255, 1))));
5138
- Color.green = ( new Color(( new RGBA(0, 255, 0, 1))));
5139
- Color.cyan = ( new Color(( new RGBA(0, 255, 255, 1))));
5140
- Color.lightgrey = ( new Color(( new RGBA(211, 211, 211, 1))));
5141
- Color.transparent = ( new Color(( new RGBA(0, 0, 0, 0))));
5142
- ( (function(Color) {
5143
- ( (function(Format) {
5144
- ( (function(CSS) {
5125
+ Color.white = ( (new Color( (new RGBA(255, 255, 255, 1)))));
5126
+ Color.black = ( (new Color( (new RGBA(0, 0, 0, 1)))));
5127
+ Color.red = ( (new Color( (new RGBA(255, 0, 0, 1)))));
5128
+ Color.blue = ( (new Color( (new RGBA(0, 0, 255, 1)))));
5129
+ Color.green = ( (new Color( (new RGBA(0, 255, 0, 1)))));
5130
+ Color.cyan = ( (new Color( (new RGBA(0, 255, 255, 1)))));
5131
+ Color.lightgrey = ( (new Color( (new RGBA(211, 211, 211, 1)))));
5132
+ Color.transparent = ( (new Color( (new RGBA(0, 0, 0, 0)))));
5133
+ ( ((function(Color) {
5134
+ ( ((function(Format) {
5135
+ ( ((function(CSS) {
5145
5136
  function formatRGB(color) {
5146
5137
  if (color.rgba.a === 1) {
5147
5138
  return `rgb(${color.rgba.r}, ${color.rgba.g}, ${color.rgba.b})`;
@@ -5165,7 +5156,7 @@ Color.transparent = ( new Color(( new RGBA(0, 0, 0, 0))));
5165
5156
  }
5166
5157
  CSS.formatHSLA = formatHSLA;
5167
5158
  function _toTwoDigitHex(n) {
5168
- const r = ( n.toString(16));
5159
+ const r = ( (n.toString(16)));
5169
5160
  return r.length !== 2 ? '0' + r : r;
5170
5161
  }
5171
5162
  function formatHex(color) {
@@ -5198,27 +5189,37 @@ Color.transparent = ( new Color(( new RGBA(0, 0, 0, 0))));
5198
5189
  const r = 16 * _parseHexDigit(hex.charCodeAt(1)) + _parseHexDigit(hex.charCodeAt(2));
5199
5190
  const g = 16 * _parseHexDigit(hex.charCodeAt(3)) + _parseHexDigit(hex.charCodeAt(4));
5200
5191
  const b = 16 * _parseHexDigit(hex.charCodeAt(5)) + _parseHexDigit(hex.charCodeAt(6));
5201
- return ( new Color(( new RGBA(r, g, b, 1))));
5192
+ return (
5193
+ (new Color( (new RGBA(r, g, b, 1))))
5194
+ );
5202
5195
  }
5203
5196
  if (length === 9) {
5204
5197
  const r = 16 * _parseHexDigit(hex.charCodeAt(1)) + _parseHexDigit(hex.charCodeAt(2));
5205
5198
  const g = 16 * _parseHexDigit(hex.charCodeAt(3)) + _parseHexDigit(hex.charCodeAt(4));
5206
5199
  const b = 16 * _parseHexDigit(hex.charCodeAt(5)) + _parseHexDigit(hex.charCodeAt(6));
5207
5200
  const a = 16 * _parseHexDigit(hex.charCodeAt(7)) + _parseHexDigit(hex.charCodeAt(8));
5208
- return ( new Color(( new RGBA(r, g, b, a / 255))));
5201
+ return (
5202
+ (new Color( (new RGBA(r, g, b, a / 255))))
5203
+ );
5209
5204
  }
5210
5205
  if (length === 4) {
5211
5206
  const r = _parseHexDigit(hex.charCodeAt(1));
5212
5207
  const g = _parseHexDigit(hex.charCodeAt(2));
5213
5208
  const b = _parseHexDigit(hex.charCodeAt(3));
5214
- return ( new Color(( new RGBA(16 * r + r, 16 * g + g, 16 * b + b))));
5209
+ return (
5210
+ (new Color( (new RGBA(16 * r + r, 16 * g + g, 16 * b + b))))
5211
+ );
5215
5212
  }
5216
5213
  if (length === 5) {
5217
5214
  const r = _parseHexDigit(hex.charCodeAt(1));
5218
5215
  const g = _parseHexDigit(hex.charCodeAt(2));
5219
5216
  const b = _parseHexDigit(hex.charCodeAt(3));
5220
5217
  const a = _parseHexDigit(hex.charCodeAt(4));
5221
- return ( new Color(( new RGBA(16 * r + r, 16 * g + g, 16 * b + b, (16 * a + a) / 255))));
5218
+ return (
5219
+ (new Color(
5220
+ (new RGBA(16 * r + r, 16 * g + g, 16 * b + b, (16 * a + a) / 255))
5221
+ ))
5222
+ );
5222
5223
  }
5223
5224
  return null;
5224
5225
  }
@@ -5250,13 +5251,13 @@ Color.transparent = ( new Color(( new RGBA(0, 0, 0, 0))));
5250
5251
  }
5251
5252
  return 0;
5252
5253
  }
5253
- })(Format.CSS || (Format.CSS = {})));
5254
- })(Color.Format || (Color.Format = {})));
5255
- })(Color || (Color = {})));
5254
+ })(Format.CSS || (Format.CSS = {}))));
5255
+ })(Color.Format || (Color.Format = {}))));
5256
+ })(Color || (Color = {}))));
5256
5257
  var _a, _b;
5257
5258
  if (SnippetParser.prototype.text == null) {
5258
5259
  SnippetParser.prototype.text = function (value) {
5259
- return this.parse(value).toString();
5260
+ return ( this.parse(value).toString());
5260
5261
  };
5261
5262
  }
5262
5263
  else {
@@ -5283,23 +5284,23 @@ polyfillPrototypeSimple(Configuration$1.prototype, Configuration.prototype);
5283
5284
  polyfillPrototypeSimple(TernarySearchTree$1.prototype, TernarySearchTree.prototype);
5284
5285
  polyfillPrototypeSimple(StandaloneConfigurationService$1.prototype, StandaloneConfigurationService.prototype);
5285
5286
  polyfillPrototypeSimple(LanguageService$1.prototype, LanguageService.prototype);
5286
- polyfillPrototypeSimple(NoOpNotification$1.prototype, NoOpNotification.prototype);
5287
+ polyfillPrototypeSimple(NoOpNotification.prototype, NoOpNotification$1.prototype);
5287
5288
  polyfillPrototypeSimple(Themable$1.prototype, Themable.prototype);
5288
5289
  polyfillPrototypeSimple(ProgressBar$1.prototype, ProgressBar.prototype);
5289
- const jsonContributionRegistry = Registry.as(Extensions.JSONContribution);
5290
+ const jsonContributionRegistry = ( Registry.as(Extensions.JSONContribution));
5290
5291
  jsonContributionRegistry.getSchemaContributions ?? (jsonContributionRegistry.getSchemaContributions = () => ({
5291
5292
  schemas: jsonContributionRegistry.schemasById
5292
5293
  }));
5293
5294
  jsonContributionRegistry.onDidChangeSchema ?? (jsonContributionRegistry.onDidChangeSchema = jsonContributionRegistry._onDidChangeSchema.event);
5294
- const themeRegistry = Registry.as(Extensions$1.ThemingContribution);
5295
+ const themeRegistry = ( Registry.as(Extensions$1.ThemingContribution));
5295
5296
  themeRegistry.onThemingParticipantAdded ?? (themeRegistry.onThemingParticipantAdded = themeRegistry.onThemingParticipantAddedEmitter.event);
5296
- const configurationRegistry = Registry.as(Extensions$2.Configuration);
5297
+ const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
5297
5298
  configurationRegistry.onDidUpdateConfiguration ?? (configurationRegistry.onDidUpdateConfiguration = configurationRegistry._onDidUpdateConfiguration.event);
5298
5299
  configurationRegistry.onDidSchemaChange ?? (configurationRegistry.onDidSchemaChange = configurationRegistry._onDidSchemaChange.event);
5299
5300
  configurationRegistry.notifyConfigurationSchemaUpdated ?? (configurationRegistry.notifyConfigurationSchemaUpdated = () => {
5300
5301
  configurationRegistry._onDidSchemaChange.fire();
5301
5302
  });
5302
- (_a = NoOpNotification$1.prototype).onDidClose ?? (_a.onDidClose = Event.None);
5303
+ (_a = NoOpNotification.prototype).onDidClose ?? (_a.onDidClose = Event.None);
5303
5304
  function polyfillQuickInput(fn) {
5304
5305
  return function () {
5305
5306
  const quickInput = fn.call(this);
@@ -5345,4 +5346,4 @@ function toVSCodeColor(value) {
5345
5346
  return value;
5346
5347
  }
5347
5348
  polyfillPrototype(Color$1.prototype, Color.prototype, toMonacoColor, toVSCodeColor);
5348
- export { ConfigurationModelParser as C, Emitter as E, NotImplementedError as N, ResourceSet as R, UserSettings as U, parseTree as a, isReadableStream as b, createScanner as c, disposed as d, peekStream as e, findNodeAtLocation as f, getErrorMessage as g, peekReadable as h, isWorkspaceIdentifier as i, bufferToReadable as j, consumeStream as k, isReadableBufferedStream as l, listenStream as m, bufferedStreamToBuffer as n, readableToBuffer as o, parse as p, newWriteableBufferStream as q, readonly as r, streamToBuffer as s, transform as t, newWriteableStream as u, visit as v, getNodeType as w };
5349
+ export { Emitter as E, NotImplementedError as N, ResourceSet as R, UserSettings as U, isReadableStream as a, peekReadable as b, bufferToReadable as c, disposed as d, consumeStream as e, isReadableBufferedStream as f, bufferedStreamToBuffer as g, readableToBuffer as h, isWorkspaceIdentifier as i, newWriteableStream as j, parse as k, listenStream as l, getNodeType as m, newWriteableBufferStream as n, peekStream as p, readonly as r, streamToBuffer as s, transform as t };