@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +2 -2
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/index.d.ts +2 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +619 -314
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
package/dist/main.js CHANGED
@@ -300,14 +300,9 @@ function ownKeys(object, enumerableOnly) {
300
300
 
301
301
  if (Object.getOwnPropertySymbols) {
302
302
  var symbols = Object.getOwnPropertySymbols(object);
303
-
304
- if (enumerableOnly) {
305
- symbols = symbols.filter(function (sym) {
306
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
307
- });
308
- }
309
-
310
- keys.push.apply(keys, symbols);
303
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
304
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
305
+ })), keys.push.apply(keys, symbols);
311
306
  }
312
307
 
313
308
  return keys;
@@ -315,19 +310,12 @@ function ownKeys(object, enumerableOnly) {
315
310
 
316
311
  function _objectSpread2(target) {
317
312
  for (var i = 1; i < arguments.length; i++) {
318
- var source = arguments[i] != null ? arguments[i] : {};
319
-
320
- if (i % 2) {
321
- ownKeys(Object(source), true).forEach(function (key) {
322
- _defineProperty(target, key, source[key]);
323
- });
324
- } else if (Object.getOwnPropertyDescriptors) {
325
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
326
- } else {
327
- ownKeys(Object(source)).forEach(function (key) {
328
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
329
- });
330
- }
313
+ var source = null != arguments[i] ? arguments[i] : {};
314
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
315
+ _defineProperty(target, key, source[key]);
316
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
317
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
318
+ });
331
319
  }
332
320
 
333
321
  return target;
@@ -1007,7 +995,7 @@ var util$1 = /*#__PURE__*/Object.freeze({
1007
995
  'default': util
1008
996
  });
1009
997
 
1010
- var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(util$1);
998
+ var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(util$1);
1011
999
 
1012
1000
  var disposable$1 = {};
1013
1001
 
@@ -1246,7 +1234,7 @@ Object.defineProperty(ril, "__esModule", {
1246
1234
  value: true
1247
1235
  });
1248
1236
  const ral_1$1 = ral;
1249
- const util_1 = require$$1$3;
1237
+ const util_1 = require$$1$2;
1250
1238
  const disposable_1$2 = disposable$1;
1251
1239
  const messageBuffer_1 = messageBuffer;
1252
1240
 
@@ -7957,7 +7945,7 @@ var main$1 = /*#__PURE__*/Object.freeze({
7957
7945
  get TextDocument () { return TextDocument$1; }
7958
7946
  });
7959
7947
 
7960
- var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(main$1);
7948
+ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(main$1);
7961
7949
 
7962
7950
  var messages = {};
7963
7951
 
@@ -9385,7 +9373,7 @@ connection$3.createProtocolConnection = createProtocolConnection;
9385
9373
 
9386
9374
  __exportStar(main$2, exports);
9387
9375
 
9388
- __exportStar(require$$1$2, exports);
9376
+ __exportStar(require$$1$1, exports);
9389
9377
 
9390
9378
  __exportStar(messages, exports);
9391
9379
 
@@ -9464,83 +9452,61 @@ connection$3.createProtocolConnection = createProtocolConnection;
9464
9452
  * Copyright (c) Microsoft Corporation. All rights reserved.
9465
9453
  * Licensed under the MIT License. See License.txt in the project root for license information.
9466
9454
  * ------------------------------------------------------------------------------------------ */
9467
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
9468
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
9469
- if (ar || !(i in from)) {
9470
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
9471
- ar[i] = from[i];
9472
- }
9473
- }
9474
- return to.concat(ar || Array.prototype.slice.call(from));
9475
- };
9476
- var FullTextDocument = /** @class */ (function () {
9477
- function FullTextDocument(uri, languageId, version, content) {
9455
+ class FullTextDocument {
9456
+ constructor(uri, languageId, version, content) {
9478
9457
  this._uri = uri;
9479
9458
  this._languageId = languageId;
9480
9459
  this._version = version;
9481
9460
  this._content = content;
9482
9461
  this._lineOffsets = undefined;
9483
9462
  }
9484
- Object.defineProperty(FullTextDocument.prototype, "uri", {
9485
- get: function () {
9486
- return this._uri;
9487
- },
9488
- enumerable: false,
9489
- configurable: true
9490
- });
9491
- Object.defineProperty(FullTextDocument.prototype, "languageId", {
9492
- get: function () {
9493
- return this._languageId;
9494
- },
9495
- enumerable: false,
9496
- configurable: true
9497
- });
9498
- Object.defineProperty(FullTextDocument.prototype, "version", {
9499
- get: function () {
9500
- return this._version;
9501
- },
9502
- enumerable: false,
9503
- configurable: true
9504
- });
9505
- FullTextDocument.prototype.getText = function (range) {
9463
+ get uri() {
9464
+ return this._uri;
9465
+ }
9466
+ get languageId() {
9467
+ return this._languageId;
9468
+ }
9469
+ get version() {
9470
+ return this._version;
9471
+ }
9472
+ getText(range) {
9506
9473
  if (range) {
9507
- var start = this.offsetAt(range.start);
9508
- var end = this.offsetAt(range.end);
9474
+ const start = this.offsetAt(range.start);
9475
+ const end = this.offsetAt(range.end);
9509
9476
  return this._content.substring(start, end);
9510
9477
  }
9511
9478
  return this._content;
9512
- };
9513
- FullTextDocument.prototype.update = function (changes, version) {
9514
- for (var _i = 0, changes_1 = changes; _i < changes_1.length; _i++) {
9515
- var change = changes_1[_i];
9479
+ }
9480
+ update(changes, version) {
9481
+ for (let change of changes) {
9516
9482
  if (FullTextDocument.isIncremental(change)) {
9517
9483
  // makes sure start is before end
9518
- var range = getWellformedRange(change.range);
9484
+ const range = getWellformedRange(change.range);
9519
9485
  // update content
9520
- var startOffset = this.offsetAt(range.start);
9521
- var endOffset = this.offsetAt(range.end);
9486
+ const startOffset = this.offsetAt(range.start);
9487
+ const endOffset = this.offsetAt(range.end);
9522
9488
  this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
9523
9489
  // update the offsets
9524
- var startLine = Math.max(range.start.line, 0);
9525
- var endLine = Math.max(range.end.line, 0);
9526
- var lineOffsets = this._lineOffsets;
9527
- var addedLineOffsets = computeLineOffsets(change.text, false, startOffset);
9490
+ const startLine = Math.max(range.start.line, 0);
9491
+ const endLine = Math.max(range.end.line, 0);
9492
+ let lineOffsets = this._lineOffsets;
9493
+ const addedLineOffsets = computeLineOffsets(change.text, false, startOffset);
9528
9494
  if (endLine - startLine === addedLineOffsets.length) {
9529
- for (var i = 0, len = addedLineOffsets.length; i < len; i++) {
9495
+ for (let i = 0, len = addedLineOffsets.length; i < len; i++) {
9530
9496
  lineOffsets[i + startLine + 1] = addedLineOffsets[i];
9531
9497
  }
9532
9498
  }
9533
9499
  else {
9534
9500
  if (addedLineOffsets.length < 10000) {
9535
- lineOffsets.splice.apply(lineOffsets, __spreadArray([startLine + 1, endLine - startLine], addedLineOffsets, false));
9501
+ lineOffsets.splice(startLine + 1, endLine - startLine, ...addedLineOffsets);
9536
9502
  }
9537
9503
  else { // avoid too many arguments for splice
9538
9504
  this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1));
9539
9505
  }
9540
9506
  }
9541
- var diff = change.text.length - (endOffset - startOffset);
9507
+ const diff = change.text.length - (endOffset - startOffset);
9542
9508
  if (diff !== 0) {
9543
- for (var i = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i < len; i++) {
9509
+ for (let i = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i < len; i++) {
9544
9510
  lineOffsets[i] = lineOffsets[i] + diff;
9545
9511
  }
9546
9512
  }
@@ -9554,22 +9520,22 @@ var FullTextDocument = /** @class */ (function () {
9554
9520
  }
9555
9521
  }
9556
9522
  this._version = version;
9557
- };
9558
- FullTextDocument.prototype.getLineOffsets = function () {
9523
+ }
9524
+ getLineOffsets() {
9559
9525
  if (this._lineOffsets === undefined) {
9560
9526
  this._lineOffsets = computeLineOffsets(this._content, true);
9561
9527
  }
9562
9528
  return this._lineOffsets;
9563
- };
9564
- FullTextDocument.prototype.positionAt = function (offset) {
9529
+ }
9530
+ positionAt(offset) {
9565
9531
  offset = Math.max(Math.min(offset, this._content.length), 0);
9566
- var lineOffsets = this.getLineOffsets();
9567
- var low = 0, high = lineOffsets.length;
9532
+ let lineOffsets = this.getLineOffsets();
9533
+ let low = 0, high = lineOffsets.length;
9568
9534
  if (high === 0) {
9569
9535
  return { line: 0, character: offset };
9570
9536
  }
9571
9537
  while (low < high) {
9572
- var mid = Math.floor((low + high) / 2);
9538
+ let mid = Math.floor((low + high) / 2);
9573
9539
  if (lineOffsets[mid] > offset) {
9574
9540
  high = mid;
9575
9541
  }
@@ -9579,41 +9545,36 @@ var FullTextDocument = /** @class */ (function () {
9579
9545
  }
9580
9546
  // low is the least x for which the line offset is larger than the current offset
9581
9547
  // or array.length if no line offset is larger than the current offset
9582
- var line = low - 1;
9583
- return { line: line, character: offset - lineOffsets[line] };
9584
- };
9585
- FullTextDocument.prototype.offsetAt = function (position) {
9586
- var lineOffsets = this.getLineOffsets();
9548
+ let line = low - 1;
9549
+ return { line, character: offset - lineOffsets[line] };
9550
+ }
9551
+ offsetAt(position) {
9552
+ let lineOffsets = this.getLineOffsets();
9587
9553
  if (position.line >= lineOffsets.length) {
9588
9554
  return this._content.length;
9589
9555
  }
9590
9556
  else if (position.line < 0) {
9591
9557
  return 0;
9592
9558
  }
9593
- var lineOffset = lineOffsets[position.line];
9594
- var nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length;
9559
+ let lineOffset = lineOffsets[position.line];
9560
+ let nextLineOffset = (position.line + 1 < lineOffsets.length) ? lineOffsets[position.line + 1] : this._content.length;
9595
9561
  return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
9596
- };
9597
- Object.defineProperty(FullTextDocument.prototype, "lineCount", {
9598
- get: function () {
9599
- return this.getLineOffsets().length;
9600
- },
9601
- enumerable: false,
9602
- configurable: true
9603
- });
9604
- FullTextDocument.isIncremental = function (event) {
9605
- var candidate = event;
9562
+ }
9563
+ get lineCount() {
9564
+ return this.getLineOffsets().length;
9565
+ }
9566
+ static isIncremental(event) {
9567
+ let candidate = event;
9606
9568
  return candidate !== undefined && candidate !== null &&
9607
9569
  typeof candidate.text === 'string' && candidate.range !== undefined &&
9608
9570
  (candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number');
9609
- };
9610
- FullTextDocument.isFull = function (event) {
9611
- var candidate = event;
9571
+ }
9572
+ static isFull(event) {
9573
+ let candidate = event;
9612
9574
  return candidate !== undefined && candidate !== null &&
9613
9575
  typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
9614
- };
9615
- return FullTextDocument;
9616
- }());
9576
+ }
9577
+ }
9617
9578
  var TextDocument;
9618
9579
  (function (TextDocument) {
9619
9580
  /**
@@ -9648,19 +9609,18 @@ var TextDocument;
9648
9609
  }
9649
9610
  TextDocument.update = update;
9650
9611
  function applyEdits(document, edits) {
9651
- var text = document.getText();
9652
- var sortedEdits = mergeSort(edits.map(getWellformedEdit), function (a, b) {
9653
- var diff = a.range.start.line - b.range.start.line;
9612
+ let text = document.getText();
9613
+ let sortedEdits = mergeSort(edits.map(getWellformedEdit), (a, b) => {
9614
+ let diff = a.range.start.line - b.range.start.line;
9654
9615
  if (diff === 0) {
9655
9616
  return a.range.start.character - b.range.start.character;
9656
9617
  }
9657
9618
  return diff;
9658
9619
  });
9659
- var lastModifiedOffset = 0;
9660
- var spans = [];
9661
- for (var _i = 0, sortedEdits_1 = sortedEdits; _i < sortedEdits_1.length; _i++) {
9662
- var e = sortedEdits_1[_i];
9663
- var startOffset = document.offsetAt(e.range.start);
9620
+ let lastModifiedOffset = 0;
9621
+ const spans = [];
9622
+ for (const e of sortedEdits) {
9623
+ let startOffset = document.offsetAt(e.range.start);
9664
9624
  if (startOffset < lastModifiedOffset) {
9665
9625
  throw new Error('Overlapping edit');
9666
9626
  }
@@ -9682,16 +9642,16 @@ function mergeSort(data, compare) {
9682
9642
  // sorted
9683
9643
  return data;
9684
9644
  }
9685
- var p = (data.length / 2) | 0;
9686
- var left = data.slice(0, p);
9687
- var right = data.slice(p);
9645
+ const p = (data.length / 2) | 0;
9646
+ const left = data.slice(0, p);
9647
+ const right = data.slice(p);
9688
9648
  mergeSort(left, compare);
9689
9649
  mergeSort(right, compare);
9690
- var leftIdx = 0;
9691
- var rightIdx = 0;
9692
- var i = 0;
9650
+ let leftIdx = 0;
9651
+ let rightIdx = 0;
9652
+ let i = 0;
9693
9653
  while (leftIdx < left.length && rightIdx < right.length) {
9694
- var ret = compare(left[leftIdx], right[rightIdx]);
9654
+ let ret = compare(left[leftIdx], right[rightIdx]);
9695
9655
  if (ret <= 0) {
9696
9656
  // smaller_equal -> take left to preserve order
9697
9657
  data[i++] = left[leftIdx++];
@@ -9709,11 +9669,10 @@ function mergeSort(data, compare) {
9709
9669
  }
9710
9670
  return data;
9711
9671
  }
9712
- function computeLineOffsets(text, isAtLineStart, textOffset) {
9713
- if (textOffset === void 0) { textOffset = 0; }
9714
- var result = isAtLineStart ? [textOffset] : [];
9715
- for (var i = 0; i < text.length; i++) {
9716
- var ch = text.charCodeAt(i);
9672
+ function computeLineOffsets(text, isAtLineStart, textOffset = 0) {
9673
+ const result = isAtLineStart ? [textOffset] : [];
9674
+ for (let i = 0; i < text.length; i++) {
9675
+ let ch = text.charCodeAt(i);
9717
9676
  if (ch === 13 /* CarriageReturn */ || ch === 10 /* LineFeed */) {
9718
9677
  if (ch === 13 /* CarriageReturn */ && i + 1 < text.length && text.charCodeAt(i + 1) === 10 /* LineFeed */) {
9719
9678
  i++;
@@ -9724,17 +9683,17 @@ function computeLineOffsets(text, isAtLineStart, textOffset) {
9724
9683
  return result;
9725
9684
  }
9726
9685
  function getWellformedRange(range) {
9727
- var start = range.start;
9728
- var end = range.end;
9686
+ const start = range.start;
9687
+ const end = range.end;
9729
9688
  if (start.line > end.line || (start.line === end.line && start.character > end.character)) {
9730
9689
  return { start: end, end: start };
9731
9690
  }
9732
9691
  return range;
9733
9692
  }
9734
9693
  function getWellformedEdit(textEdit) {
9735
- var range = getWellformedRange(textEdit.range);
9694
+ const range = getWellformedRange(textEdit.range);
9736
9695
  if (range !== textEdit.range) {
9737
- return { newText: textEdit.newText, range: range };
9696
+ return { newText: textEdit.newText, range };
9738
9697
  }
9739
9698
  return textEdit;
9740
9699
  }
@@ -9744,7 +9703,7 @@ var main = /*#__PURE__*/Object.freeze({
9744
9703
  get TextDocument () { return TextDocument; }
9745
9704
  });
9746
9705
 
9747
- var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(main);
9706
+ var require$$1 = /*@__PURE__*/getAugmentedNamespace(main);
9748
9707
 
9749
9708
  /* --------------------------------------------------------------------------------------------
9750
9709
  * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
@@ -9763,9 +9722,9 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
9763
9722
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
9764
9723
  };
9765
9724
  Object.defineProperty(exports, "__esModule", { value: true });
9766
- exports.ConfigurationTarget = exports.DocumentIdentifier = exports.VsCodeDiagnosticSeverity = exports.SignatureHelpTriggerKind = exports.isDocumentSelector = exports.Services = exports.TextDocument = exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
9725
+ exports.ConfigurationTarget = exports.DocumentIdentifier = exports.ProgressLocation = exports.VsCodeDiagnosticSeverity = exports.SignatureHelpTriggerKind = exports.isDocumentSelector = exports.Services = exports.TextDocument = exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
9767
9726
  const vscode_languageserver_protocol_1 = main$3;
9768
- const vscode_languageserver_textdocument_1 = require$$1$1;
9727
+ const vscode_languageserver_textdocument_1 = require$$1;
9769
9728
  Object.defineProperty(exports, "TextDocument", { enumerable: true, get: function () { return vscode_languageserver_textdocument_1.TextDocument; } });
9770
9729
  const vscode_jsonrpc_1 = main$2;
9771
9730
  Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return vscode_jsonrpc_1.Disposable; } });
@@ -9810,6 +9769,11 @@ exports.isDocumentSelector = isDocumentSelector;
9810
9769
  VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Information"] = 2] = "Information";
9811
9770
  VsCodeDiagnosticSeverity[VsCodeDiagnosticSeverity["Hint"] = 3] = "Hint";
9812
9771
  })(exports.VsCodeDiagnosticSeverity || (exports.VsCodeDiagnosticSeverity = {}));
9772
+ (function (ProgressLocation) {
9773
+ ProgressLocation[ProgressLocation["SourceControl"] = 1] = "SourceControl";
9774
+ ProgressLocation[ProgressLocation["Window"] = 10] = "Window";
9775
+ ProgressLocation[ProgressLocation["Notification"] = 15] = "Notification";
9776
+ })(exports.ProgressLocation || (exports.ProgressLocation = {}));
9813
9777
  (function (DocumentIdentifier) {
9814
9778
  function is(arg) {
9815
9779
  return !!arg && ('uri' in arg) && ('languageId' in arg);
@@ -9865,9 +9829,18 @@ var connection$2 = {};
9865
9829
  * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
9866
9830
  * Licensed under the MIT License. See License.txt in the project root for license information.
9867
9831
  * ------------------------------------------------------------------------------------------ */
9832
+ var __awaiter$2 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
9833
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9834
+ return new (P || (P = Promise))(function (resolve, reject) {
9835
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9836
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9837
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9838
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9839
+ });
9840
+ };
9868
9841
  Object.defineProperty(connection$2, "__esModule", { value: true });
9869
9842
  connection$2.createConnection = void 0;
9870
- const vscode_languageserver_protocol_1$e = main$3;
9843
+ const vscode_languageserver_protocol_1$f = main$3;
9871
9844
  const Is$4 = is$1;
9872
9845
  function createConnection(connection, errorHandler, closeHandler) {
9873
9846
  connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
@@ -9876,22 +9849,24 @@ function createConnection(connection, errorHandler, closeHandler) {
9876
9849
  listen: () => connection.listen(),
9877
9850
  sendRequest: (type, ...params) => connection.sendRequest(Is$4.string(type) ? type : type.method, ...params),
9878
9851
  onRequest: (type, handler) => connection.onRequest(Is$4.string(type) ? type : type.method, handler),
9879
- sendNotification: (type, params) => connection.sendNotification(Is$4.string(type) ? type : type.method, params),
9852
+ sendNotification: (type, params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(Is$4.string(type) ? type : type.method, params); }),
9880
9853
  onNotification: (type, handler) => connection.onNotification(Is$4.string(type) ? type : type.method, handler),
9854
+ onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
9855
+ sendProgress: (type, token, value) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
9881
9856
  trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
9882
- initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$e.InitializeRequest.type, params),
9883
- shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$e.ShutdownRequest.type, undefined),
9884
- exit: () => connection.sendNotification(vscode_languageserver_protocol_1$e.ExitNotification.type),
9885
- onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$e.LogMessageNotification.type, handler),
9886
- onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$e.ShowMessageNotification.type, handler),
9887
- onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$e.TelemetryEventNotification.type, handler),
9888
- didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidChangeConfigurationNotification.type, params),
9889
- didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidChangeWatchedFilesNotification.type, params),
9890
- didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidOpenTextDocumentNotification.type, params),
9891
- didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidChangeTextDocumentNotification.type, params),
9892
- didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidCloseTextDocumentNotification.type, params),
9893
- didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1$e.DidSaveTextDocumentNotification.type, params),
9894
- onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$e.PublishDiagnosticsNotification.type, handler),
9857
+ initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1$f.InitializeRequest.type, params),
9858
+ shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1$f.ShutdownRequest.type, undefined),
9859
+ exit: () => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.ExitNotification.type); }),
9860
+ onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.LogMessageNotification.type, handler),
9861
+ onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.ShowMessageNotification.type, handler),
9862
+ onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.TelemetryEventNotification.type, handler),
9863
+ didChangeConfiguration: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeConfigurationNotification.type, params); }),
9864
+ didChangeWatchedFiles: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeWatchedFilesNotification.type, params); }),
9865
+ didOpenTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidOpenTextDocumentNotification.type, params); }),
9866
+ didChangeTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidChangeTextDocumentNotification.type, params); }),
9867
+ didCloseTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidCloseTextDocumentNotification.type, params); }),
9868
+ didSaveTextDocument: (params) => __awaiter$2(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1$f.DidSaveTextDocumentNotification.type, params); }),
9869
+ onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1$f.PublishDiagnosticsNotification.type, handler),
9895
9870
  dispose: () => connection.dispose(),
9896
9871
  end: () => connection.end()
9897
9872
  };
@@ -9904,7 +9879,7 @@ var client = {};
9904
9879
 
9905
9880
  var vscodeApi = {};
9906
9881
 
9907
- var LIB;LIB=(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,h=0;h<=t.length;++h){if(h<t.length)r=t.charCodeAt(h);else {if(47===r)break;r=47;}if(47===r){if(i===h-1||1===a);else if(i!==h-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",o=0):o=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=h,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=h,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2);}else n.length>0?n+="/"+t.slice(i+1,h):n=t.slice(i+1,h),o=h-i-1;i=h,a=0;}else 46===r&&-1!==a?++a:a=-1;}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0));}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return ".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return ".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o);}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return "";if((t=n.resolve(t))===(r=n.resolve(r)))return "";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,h=1;h<r.length&&47===r.charCodeAt(h);++h);for(var s=r.length-h,f=a<s?a:s,u=-1,c=0;c<=f;++c){if(c===f){if(s>f){if(47===r.charCodeAt(h+c))return r.slice(h+c+1);if(0===c)return r.slice(h+c)}else a>f&&(47===t.charCodeAt(o+c)?u=c:0===c&&(u=0));break}var l=t.charCodeAt(o+c);if(l!==r.charCodeAt(h+c))break;47===l&&(u=c);}var p="";for(c=o+u+1;c<=i;++c)c!==i&&47!==t.charCodeAt(c)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(h+u):(h+=u,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return ".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return "";var h=r.length-1,s=-1;for(n=t.length-1;n>=0;--n){var f=t.charCodeAt(n);if(47===f){if(!a){o=n+1;break}}else -1===s&&(a=!1,s=n+1),h>=0&&(f===r.charCodeAt(h)?-1==--h&&(i=n):(h=-1,i=s));}return o===i?i=s:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else -1===i&&(a=!1,i=n+1);return -1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,h=t.length-1;h>=0;--h){var s=t.charCodeAt(h);if(47!==s)-1===o&&(i=!1,o=h+1),46===s?-1===r?r=h:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=h+1;break}}return -1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,h=0,s=-1,f=!0,u=t.length-1,c=0;u>=n;--u)if(47!==(o=t.charCodeAt(u)))-1===s&&(f=!1,s=u+1),46===o?-1===a?a=u:1!==c&&(c=1):-1!==a&&(c=-1);else if(!f){h=u+1;break}return -1===a||-1===s||0===c||1===c&&a===s-1&&a===h+1?-1!==s&&(r.base=r.name=0===h&&i?t.slice(1,s):t.slice(h,s)):(0===h&&i?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(h,a),r.base=t.slice(h,s)),r.ext=t.slice(a,s)),h>0?r.dir=t.slice(0,h-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n;},447:(t,e,r)=>{var n;if(r.r(e),r.d(e,{URI:()=>g,Utils:()=>O}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;n=o.indexOf("Windows")>=0;}var i,a,h=(i=function(t,e){return (i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);})(t,e)},function(t,e){function r(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}),s=/^\w[\w\d+.-]*$/,f=/^\//,u=/^\/\//,c="",l="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function t(t,e,r,n,o,i){void 0===i&&(i=!1),"object"==typeof t?(this.scheme=t.scheme||c,this.authority=t.authority||c,this.path=t.path||c,this.query=t.query||c,this.fragment=t.fragment||c):(this.scheme=function(t,e){return t||e?t:"file"}(t,i),this.authority=e||c,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==l&&(e=l+e):e=l;}return e}(this.scheme,r||c),this.query=n||c,this.fragment=o||c,function(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!s.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!f.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i));}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,n=t.path,o=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=c),void 0===r?r=this.authority:null===r&&(r=c),void 0===n?n=this.path:null===n&&(n=c),void 0===o?o=this.query:null===o&&(o=c),void 0===i?i=this.fragment:null===i&&(i=c),e===this.scheme&&r===this.authority&&n===this.path&&o===this.query&&i===this.fragment?this:new v(e,r,n,o,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=p.exec(t);return r?new v(r[2]||c,x(r[4]||c),x(r[5]||c),x(r[7]||c),x(r[9]||c),e):new v(c,c,c,c,c)},t.file=function(t){var e=c;if(n&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){var r=t.indexOf(l,2);-1===r?(e=t.substring(2),t=l):(e=t.substring(2,r),t=t.substring(r)||l);}return new v("file",e,t,c,c)},t.from=function(t){return new v(t.scheme,t.authority,t.path,t.query,t.fragment)},t.prototype.toString=function(t){return void 0===t&&(t=!1),A(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new v(e);return r._formatted=e.external,r._fsPath=e._sep===d?e.fsPath:null,r}return e},t}(),d=n?1:void 0,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return h(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=d),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(g),m=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(t,e){for(var r=void 0,n=-1,o=0;o<t.length;o++){var i=t.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||e&&47===i)-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),void 0!==r&&(r+=t.charAt(o));else {void 0===r&&(r=t.substr(0,o));var a=m[i];void 0!==a?(-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),r+=a):-1===n&&(n=o);}}return -1!==n&&(r+=encodeURIComponent(t.substring(n))),void 0!==r?r:t}function b(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);35===n||63===n?(void 0===e&&(e=t.substr(0,r)),e+=m[n]):void 0!==e&&(e+=t[r]);}return void 0!==e?e:t}function C(t,e){var r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?"//"+t.authority+t.path:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n&&(r=r.replace(/\//g,"\\")),r}function A(t,e){var r=e?b:y,n="",o=t.scheme,i=t.authority,a=t.path,h=t.query,s=t.fragment;if(o&&(n+=o,n+=":"),(i||"file"===o)&&(n+=l,n+=l),i){var f=i.indexOf("@");if(-1!==f){var u=i.substr(0,f);i=i.substr(f+1),-1===(f=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,f),!1),n+=":",n+=r(u.substr(f+1),!1)),n+="@";}-1===(f=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,f),!1),n+=i.substr(f));}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(c=a.charCodeAt(1))>=65&&c<=90&&(a="/"+String.fromCharCode(c+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var c;(c=a.charCodeAt(0))>=65&&c<=90&&(a=String.fromCharCode(c+32)+":"+a.substr(2));}n+=r(a,!0);}return h&&(n+="?",n+=r(h,!1)),s&&(n+="#",n+=e?s:y(s,!1)),n}function w(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+w(t.substr(3)):t}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(t){return t.match(_)?t.replace(_,(function(t){return w(t)})):t}var O,P=r(470),j=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,h=i.length;a<h;a++,o++)n[o]=i[a];return n},U=P.posix||P;!function(t){t.joinPath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return t.with({path:U.join.apply(U,j([t.path],e))})},t.resolvePath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.path||"/";return t.with({path:U.resolve.apply(U,j([n],e))})},t.dirname=function(t){var e=U.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)?t:t.with({path:e})},t.basename=function(t){return U.basename(t.path)},t.extname=function(t){return U.extname(t.path)};}(O||(O={}));}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]});},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r(447)})();const{URI,Utils}=LIB;
9882
+ var LIB;LIB=(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,h=0;h<=t.length;++h){if(h<t.length)r=t.charCodeAt(h);else {if(47===r)break;r=47;}if(47===r){if(i===h-1||1===a);else if(i!==h-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",o=0):o=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=h,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=h,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2);}else n.length>0?n+="/"+t.slice(i+1,h):n=t.slice(i+1,h),o=h-i-1;i=h,a=0;}else 46===r&&-1!==a?++a:a=-1;}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0));}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return ".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return ".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o);}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return "";if((t=n.resolve(t))===(r=n.resolve(r)))return "";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,h=1;h<r.length&&47===r.charCodeAt(h);++h);for(var s=r.length-h,c=a<s?a:s,f=-1,u=0;u<=c;++u){if(u===c){if(s>c){if(47===r.charCodeAt(h+u))return r.slice(h+u+1);if(0===u)return r.slice(h+u)}else a>c&&(47===t.charCodeAt(o+u)?f=u:0===u&&(f=0));break}var l=t.charCodeAt(o+u);if(l!==r.charCodeAt(h+u))break;47===l&&(f=u);}var p="";for(u=o+f+1;u<=i;++u)u!==i&&47!==t.charCodeAt(u)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(h+f):(h+=f,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return ".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return "";var h=r.length-1,s=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else -1===s&&(a=!1,s=n+1),h>=0&&(c===r.charCodeAt(h)?-1==--h&&(i=n):(h=-1,i=s));}return o===i?i=s:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else -1===i&&(a=!1,i=n+1);return -1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,h=t.length-1;h>=0;--h){var s=t.charCodeAt(h);if(47!==s)-1===o&&(i=!1,o=h+1),46===s?-1===r?r=h:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=h+1;break}}return -1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,h=0,s=-1,c=!0,f=t.length-1,u=0;f>=n;--f)if(47!==(o=t.charCodeAt(f)))-1===s&&(c=!1,s=f+1),46===o?-1===a?a=f:1!==u&&(u=1):-1!==a&&(u=-1);else if(!c){h=f+1;break}return -1===a||-1===s||0===u||1===u&&a===s-1&&a===h+1?-1!==s&&(r.base=r.name=0===h&&i?t.slice(1,s):t.slice(h,s)):(0===h&&i?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(h,a),r.base=t.slice(h,s)),r.ext=t.slice(a,s)),h>0?r.dir=t.slice(0,h-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n;},447:(t,e,r)=>{var n;if(r.r(e),r.d(e,{URI:()=>d,Utils:()=>P}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var o=navigator.userAgent;n=o.indexOf("Windows")>=0;}var i,a,h=(i=function(t,e){return (i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}),s=/^\w[\w\d+.-]*$/,c=/^\//,f=/^\/\//;function u(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(t.authority,'", path: "').concat(t.path,'", query: "').concat(t.query,'", fragment: "').concat(t.fragment,'"}'));if(t.scheme&&!s.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!c.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var l="",p="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=function(){function t(t,e,r,n,o,i){void 0===i&&(i=!1),"object"==typeof t?(this.scheme=t.scheme||l,this.authority=t.authority||l,this.path=t.path||l,this.query=t.query||l,this.fragment=t.fragment||l):(this.scheme=function(t,e){return t||e?t:"file"}(t,i),this.authority=e||l,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==p&&(e=p+e):e=p;}return e}(this.scheme,r||l),this.query=n||l,this.fragment=o||l,u(this,i));}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return A(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,n=t.path,o=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=l),void 0===r?r=this.authority:null===r&&(r=l),void 0===n?n=this.path:null===n&&(n=l),void 0===o?o=this.query:null===o&&(o=l),void 0===i?i=this.fragment:null===i&&(i=l),e===this.scheme&&r===this.authority&&n===this.path&&o===this.query&&i===this.fragment?this:new y(e,r,n,o,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=g.exec(t);return r?new y(r[2]||l,O(r[4]||l),O(r[5]||l),O(r[7]||l),O(r[9]||l),e):new y(l,l,l,l,l)},t.file=function(t){var e=l;if(n&&(t=t.replace(/\\/g,p)),t[0]===p&&t[1]===p){var r=t.indexOf(p,2);-1===r?(e=t.substring(2),t=p):(e=t.substring(2,r),t=t.substring(r)||p);}return new y("file",e,t,l,l)},t.from=function(t){var e=new y(t.scheme,t.authority,t.path,t.query,t.fragment);return u(e,!0),e},t.prototype.toString=function(t){return void 0===t&&(t=!1),w(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new y(e);return r._formatted=e.external,r._fsPath=e._sep===v?e.fsPath:null,r}return e},t}(),v=n?1:void 0,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return h(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=v),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(d),m=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function b(t,e){for(var r=void 0,n=-1,o=0;o<t.length;o++){var i=t.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||e&&47===i)-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),void 0!==r&&(r+=t.charAt(o));else {void 0===r&&(r=t.substr(0,o));var a=m[i];void 0!==a?(-1!==n&&(r+=encodeURIComponent(t.substring(n,o)),n=-1),r+=a):-1===n&&(n=o);}}return -1!==n&&(r+=encodeURIComponent(t.substring(n))),void 0!==r?r:t}function C(t){for(var e=void 0,r=0;r<t.length;r++){var n=t.charCodeAt(r);35===n||63===n?(void 0===e&&(e=t.substr(0,r)),e+=m[n]):void 0!==e&&(e+=t[r]);}return void 0!==e?e:t}function A(t,e){var r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n&&(r=r.replace(/\//g,"\\")),r}function w(t,e){var r=e?C:b,n="",o=t.scheme,i=t.authority,a=t.path,h=t.query,s=t.fragment;if(o&&(n+=o,n+=":"),(i||"file"===o)&&(n+=p,n+=p),i){var c=i.indexOf("@");if(-1!==c){var f=i.substr(0,c);i=i.substr(c+1),-1===(c=f.indexOf(":"))?n+=r(f,!1):(n+=r(f.substr(0,c),!1),n+=":",n+=r(f.substr(c+1),!1)),n+="@";}-1===(c=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,c),!1),n+=i.substr(c));}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(u=a.charCodeAt(1))>=65&&u<=90&&(a="/".concat(String.fromCharCode(u+32),":").concat(a.substr(3)));else if(a.length>=2&&58===a.charCodeAt(1)){var u;(u=a.charCodeAt(0))>=65&&u<=90&&(a="".concat(String.fromCharCode(u+32),":").concat(a.substr(2)));}n+=r(a,!0);}return h&&(n+="?",n+=r(h,!1)),s&&(n+="#",n+=e?s:b(s,!1)),n}function x(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+x(t.substr(3)):t}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(t){return t.match(_)?t.replace(_,(function(t){return x(t)})):t}var P,j=r(470),U=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},I=j.posix||j;!function(t){t.joinPath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return t.with({path:I.join.apply(I,U([t.path],e,!1))})},t.resolvePath=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.path||"/";return t.with({path:I.resolve.apply(I,U([n],e,!1))})},t.dirname=function(t){var e=I.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)?t:t.with({path:e})},t.basename=function(t){return I.basename(t.path)},t.extname=function(t){return I.extname(t.path)};}(P||(P={}));}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]});},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r(447)})();const{URI,Utils}=LIB;
9908
9883
 
9909
9884
  var esm = /*#__PURE__*/Object.freeze({
9910
9885
  __proto__: null,
@@ -9912,7 +9887,7 @@ var esm = /*#__PURE__*/Object.freeze({
9912
9887
  Utils: Utils
9913
9888
  });
9914
9889
 
9915
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(esm);
9890
+ var require$$0 = /*@__PURE__*/getAugmentedNamespace(esm);
9916
9891
 
9917
9892
  /* --------------------------------------------------------------------------------------------
9918
9893
  * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
@@ -9929,12 +9904,11 @@ var __awaiter$1 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
9929
9904
  };
9930
9905
  Object.defineProperty(vscodeApi, "__esModule", { value: true });
9931
9906
  vscodeApi.createVSCodeApi = void 0;
9932
- const vscode$2 = vscodeCompatibility;
9933
- const vscode_uri_1 = require$$1;
9907
+ const vscode_uri_1 = require$$0;
9934
9908
  const disposable_1$1 = disposable$2;
9935
9909
  const services_1$3 = services$1;
9936
9910
  const ServicesModule = services$1;
9937
- const vscode_languageserver_protocol_1$d = main$3;
9911
+ const vscode_languageserver_protocol_1$e = main$3;
9938
9912
  function createVSCodeApi(servicesProvider) {
9939
9913
  const unsupported = () => { throw new Error('unsupported'); };
9940
9914
  const Uri = class VSCodeUri extends vscode_uri_1.URI {
@@ -9984,7 +9958,7 @@ function createVSCodeApi(servicesProvider) {
9984
9958
  CodeActionKind.SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
9985
9959
  CodeActionKind.SourceFixAll = CodeActionKind.Source.append('fixAll');
9986
9960
  class Diagnostic {
9987
- constructor(range, message, severity = vscode_languageserver_protocol_1$d.DiagnosticSeverity.Error) {
9961
+ constructor(range, message, severity = vscode_languageserver_protocol_1$e.DiagnosticSeverity.Error) {
9988
9962
  this.range = range;
9989
9963
  this.message = message;
9990
9964
  this.severity = severity;
@@ -10280,7 +10254,7 @@ function createVSCodeApi(servicesProvider) {
10280
10254
  }
10281
10255
  const languages = {
10282
10256
  match(selector, document) {
10283
- if (!services_1$3.isDocumentSelector(selector)) {
10257
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10284
10258
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10285
10259
  }
10286
10260
  if (!services_1$3.DocumentIdentifier.is(document)) {
@@ -10301,7 +10275,7 @@ function createVSCodeApi(servicesProvider) {
10301
10275
  return new ApiDiagnosticCollection(name);
10302
10276
  },
10303
10277
  registerCompletionItemProvider(selector, provider, ...triggerCharacters) {
10304
- if (!services_1$3.isDocumentSelector(selector)) {
10278
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10305
10279
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10306
10280
  }
10307
10281
  const { languages } = servicesProvider();
@@ -10321,7 +10295,7 @@ function createVSCodeApi(servicesProvider) {
10321
10295
  }, ...triggerCharacters);
10322
10296
  },
10323
10297
  registerCodeActionsProvider(selector, provider) {
10324
- if (!services_1$3.isDocumentSelector(selector)) {
10298
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10325
10299
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10326
10300
  }
10327
10301
  const { languages } = servicesProvider();
@@ -10338,7 +10312,7 @@ function createVSCodeApi(servicesProvider) {
10338
10312
  });
10339
10313
  },
10340
10314
  registerCodeLensProvider(selector, provider) {
10341
- if (!services_1$3.isDocumentSelector(selector)) {
10315
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10342
10316
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10343
10317
  }
10344
10318
  const { languages } = servicesProvider();
@@ -10356,7 +10330,7 @@ function createVSCodeApi(servicesProvider) {
10356
10330
  });
10357
10331
  },
10358
10332
  registerDefinitionProvider(selector, provider) {
10359
- if (!services_1$3.isDocumentSelector(selector)) {
10333
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10360
10334
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10361
10335
  }
10362
10336
  const { languages } = servicesProvider();
@@ -10370,7 +10344,7 @@ function createVSCodeApi(servicesProvider) {
10370
10344
  });
10371
10345
  },
10372
10346
  registerImplementationProvider(selector, provider) {
10373
- if (!services_1$3.isDocumentSelector(selector)) {
10347
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10374
10348
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10375
10349
  }
10376
10350
  const { languages } = servicesProvider();
@@ -10384,7 +10358,7 @@ function createVSCodeApi(servicesProvider) {
10384
10358
  });
10385
10359
  },
10386
10360
  registerTypeDefinitionProvider(selector, provider) {
10387
- if (!services_1$3.isDocumentSelector(selector)) {
10361
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10388
10362
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10389
10363
  }
10390
10364
  const { languages } = servicesProvider();
@@ -10398,7 +10372,7 @@ function createVSCodeApi(servicesProvider) {
10398
10372
  });
10399
10373
  },
10400
10374
  registerDeclarationProvider(selector, provider) {
10401
- if (!services_1$3.isDocumentSelector(selector)) {
10375
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10402
10376
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10403
10377
  }
10404
10378
  const { languages } = servicesProvider();
@@ -10412,7 +10386,7 @@ function createVSCodeApi(servicesProvider) {
10412
10386
  });
10413
10387
  },
10414
10388
  registerHoverProvider(selector, provider) {
10415
- if (!services_1$3.isDocumentSelector(selector)) {
10389
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10416
10390
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10417
10391
  }
10418
10392
  const { languages } = servicesProvider();
@@ -10426,7 +10400,7 @@ function createVSCodeApi(servicesProvider) {
10426
10400
  return disposable_1$1.Disposable.create(() => { });
10427
10401
  },
10428
10402
  registerDocumentHighlightProvider(selector, provider) {
10429
- if (!services_1$3.isDocumentSelector(selector)) {
10403
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10430
10404
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10431
10405
  }
10432
10406
  const { languages } = servicesProvider();
@@ -10440,7 +10414,7 @@ function createVSCodeApi(servicesProvider) {
10440
10414
  });
10441
10415
  },
10442
10416
  registerDocumentSymbolProvider(selector, provider) {
10443
- if (!services_1$3.isDocumentSelector(selector)) {
10417
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10444
10418
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10445
10419
  }
10446
10420
  const { languages } = servicesProvider();
@@ -10465,7 +10439,7 @@ function createVSCodeApi(servicesProvider) {
10465
10439
  });
10466
10440
  },
10467
10441
  registerReferenceProvider(selector, provider) {
10468
- if (!services_1$3.isDocumentSelector(selector)) {
10442
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10469
10443
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10470
10444
  }
10471
10445
  const { languages } = servicesProvider();
@@ -10479,7 +10453,7 @@ function createVSCodeApi(servicesProvider) {
10479
10453
  });
10480
10454
  },
10481
10455
  registerRenameProvider(selector, provider) {
10482
- if (!services_1$3.isDocumentSelector(selector)) {
10456
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10483
10457
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10484
10458
  }
10485
10459
  const { languages } = servicesProvider();
@@ -10493,7 +10467,7 @@ function createVSCodeApi(servicesProvider) {
10493
10467
  });
10494
10468
  },
10495
10469
  registerDocumentFormattingEditProvider(selector, provider) {
10496
- if (!services_1$3.isDocumentSelector(selector)) {
10470
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10497
10471
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10498
10472
  }
10499
10473
  const { languages } = servicesProvider();
@@ -10507,7 +10481,7 @@ function createVSCodeApi(servicesProvider) {
10507
10481
  });
10508
10482
  },
10509
10483
  registerDocumentRangeFormattingEditProvider(selector, provider) {
10510
- if (!services_1$3.isDocumentSelector(selector)) {
10484
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10511
10485
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10512
10486
  }
10513
10487
  const { languages } = servicesProvider();
@@ -10521,7 +10495,7 @@ function createVSCodeApi(servicesProvider) {
10521
10495
  });
10522
10496
  },
10523
10497
  registerOnTypeFormattingEditProvider(selector, provider, firstTriggerCharacter, ...moreTriggerCharacter) {
10524
- if (!services_1$3.isDocumentSelector(selector)) {
10498
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10525
10499
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10526
10500
  }
10527
10501
  const { languages } = servicesProvider();
@@ -10535,7 +10509,7 @@ function createVSCodeApi(servicesProvider) {
10535
10509
  }, firstTriggerCharacter, ...moreTriggerCharacter);
10536
10510
  },
10537
10511
  registerSignatureHelpProvider(selector, provider, firstItem, ...remaining) {
10538
- if (!services_1$3.isDocumentSelector(selector)) {
10512
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10539
10513
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10540
10514
  }
10541
10515
  const { languages } = servicesProvider();
@@ -10560,7 +10534,7 @@ function createVSCodeApi(servicesProvider) {
10560
10534
  });
10561
10535
  },
10562
10536
  registerDocumentLinkProvider(selector, provider) {
10563
- if (!services_1$3.isDocumentSelector(selector)) {
10537
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10564
10538
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10565
10539
  }
10566
10540
  const { languages } = servicesProvider();
@@ -10578,7 +10552,7 @@ function createVSCodeApi(servicesProvider) {
10578
10552
  });
10579
10553
  },
10580
10554
  registerColorProvider(selector, provider) {
10581
- if (!services_1$3.isDocumentSelector(selector)) {
10555
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10582
10556
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10583
10557
  }
10584
10558
  const { languages } = servicesProvider();
@@ -10598,7 +10572,7 @@ function createVSCodeApi(servicesProvider) {
10598
10572
  });
10599
10573
  },
10600
10574
  registerFoldingRangeProvider(selector, provider) {
10601
- if (!services_1$3.isDocumentSelector(selector)) {
10575
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10602
10576
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10603
10577
  }
10604
10578
  const { languages } = servicesProvider();
@@ -10612,7 +10586,7 @@ function createVSCodeApi(servicesProvider) {
10612
10586
  });
10613
10587
  },
10614
10588
  registerSelectionRangeProvider(selector, provider) {
10615
- if (!services_1$3.isDocumentSelector(selector)) {
10589
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10616
10590
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10617
10591
  }
10618
10592
  const { languages } = servicesProvider();
@@ -10627,7 +10601,7 @@ function createVSCodeApi(servicesProvider) {
10627
10601
  },
10628
10602
  registerEvaluatableExpressionProvider: unsupported,
10629
10603
  registerDocumentSemanticTokensProvider(selector, provider, legend) {
10630
- if (!services_1$3.isDocumentSelector(selector)) {
10604
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10631
10605
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10632
10606
  }
10633
10607
  const { languages } = servicesProvider();
@@ -10635,6 +10609,7 @@ function createVSCodeApi(servicesProvider) {
10635
10609
  return disposable_1$1.Disposable.create(() => { });
10636
10610
  }
10637
10611
  return languages.registerDocumentSemanticTokensProvider(selector, {
10612
+ onDidChange: provider.onDidChangeSemanticTokens,
10638
10613
  provideDocumentSemanticTokens({ textDocument }, token) {
10639
10614
  return provider.provideDocumentSemanticTokens(textDocument, token);
10640
10615
  },
@@ -10644,7 +10619,7 @@ function createVSCodeApi(servicesProvider) {
10644
10619
  }, legend);
10645
10620
  },
10646
10621
  registerDocumentRangeSemanticTokensProvider(selector, provider, legend) {
10647
- if (!services_1$3.isDocumentSelector(selector)) {
10622
+ if (!(0, services_1$3.isDocumentSelector)(selector)) {
10648
10623
  throw new Error('unexpected selector: ' + JSON.stringify(selector));
10649
10624
  }
10650
10625
  const { languages } = servicesProvider();
@@ -10707,7 +10682,7 @@ function createVSCodeApi(servicesProvider) {
10707
10682
  if (window && window.withProgress) {
10708
10683
  return window.withProgress(options, task);
10709
10684
  }
10710
- return task({ report: () => { } }, new vscode$2.CancellationTokenSource().token);
10685
+ return task({ report: () => { } }, new vscode_languageserver_protocol_1$e.CancellationTokenSource().token);
10711
10686
  },
10712
10687
  showTextDocument: unsupported,
10713
10688
  createTextEditorDecorationType: unsupported,
@@ -10834,7 +10809,9 @@ function createVSCodeApi(servicesProvider) {
10834
10809
  Disposable: CodeDisposable,
10835
10810
  SignatureHelpTriggerKind: services_1$3.SignatureHelpTriggerKind,
10836
10811
  DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
10837
- EventEmitter: ServicesModule.Emitter
10812
+ EventEmitter: ServicesModule.Emitter,
10813
+ CancellationTokenSource: vscode_languageserver_protocol_1$e.CancellationTokenSource,
10814
+ ProgressLocation: ServicesModule.ProgressLocation
10838
10815
  };
10839
10816
  return partialApi;
10840
10817
  }
@@ -10846,7 +10823,7 @@ vscodeApi.createVSCodeApi = createVSCodeApi;
10846
10823
  * ------------------------------------------------------------------------------------------ */
10847
10824
  const vscode_api_1 = vscodeApi;
10848
10825
  const services_1$2 = services$1;
10849
- var vscodeCompatibility = vscode_api_1.createVSCodeApi(services_1$2.Services.get);
10826
+ var vscodeCompatibility = (0, vscode_api_1.createVSCodeApi)(services_1$2.Services.get);
10850
10827
 
10851
10828
  var configuration = {};
10852
10829
 
@@ -10861,7 +10838,7 @@ Object.defineProperty(configuration, "__esModule", {
10861
10838
  });
10862
10839
  configuration.toJSONObject = configuration.ConfigurationFeature = void 0;
10863
10840
  const vscode_1$8 = vscodeCompatibility;
10864
- const vscode_languageserver_protocol_1$c = main$3;
10841
+ const vscode_languageserver_protocol_1$d = main$3;
10865
10842
 
10866
10843
  class ConfigurationFeature {
10867
10844
  constructor(_client) {
@@ -10875,7 +10852,7 @@ class ConfigurationFeature {
10875
10852
 
10876
10853
  initialize() {
10877
10854
  let client = this._client;
10878
- client.onRequest(vscode_languageserver_protocol_1$c.ConfigurationRequest.type, (params, token) => {
10855
+ client.onRequest(vscode_languageserver_protocol_1$d.ConfigurationRequest.type, (params, token) => {
10879
10856
  let configuration = params => {
10880
10857
  let result = [];
10881
10858
 
@@ -11206,7 +11183,7 @@ const protocolDocumentLink_1$1 = protocolDocumentLink;
11206
11183
  const protocolCodeAction_1$1 = protocolCodeAction;
11207
11184
  const protocolDiagnostic_1$1 = protocolDiagnostic;
11208
11185
  const protocolCallHierarchyItem_1$1 = protocolCallHierarchyItem;
11209
- const vscode_languageserver_protocol_1$b = main$3;
11186
+ const vscode_languageserver_protocol_1$c = main$3;
11210
11187
  var InsertReplaceRange;
11211
11188
 
11212
11189
  (function (InsertReplaceRange) {
@@ -11795,7 +11772,7 @@ function createConverter$1(uriConverter) {
11795
11772
  }
11796
11773
 
11797
11774
  if (result.insertTextMode === undefined && item.keepWhitespace === true) {
11798
- result.insertTextMode = vscode_languageserver_protocol_1$b.InsertTextMode.adjustIndentation;
11775
+ result.insertTextMode = vscode_languageserver_protocol_1$c.InsertTextMode.adjustIndentation;
11799
11776
  }
11800
11777
 
11801
11778
  return result;
@@ -12119,7 +12096,7 @@ const protocolDocumentLink_1 = protocolDocumentLink;
12119
12096
  const protocolCodeAction_1 = protocolCodeAction;
12120
12097
  const protocolDiagnostic_1 = protocolDiagnostic;
12121
12098
  const protocolCallHierarchyItem_1 = protocolCallHierarchyItem;
12122
- const vscode_languageserver_protocol_1$a = main$3;
12099
+ const vscode_languageserver_protocol_1$b = main$3;
12123
12100
  var CodeBlock;
12124
12101
 
12125
12102
  (function (CodeBlock) {
@@ -12460,7 +12437,7 @@ function createConverter(uriConverter, trustMarkdown) {
12460
12437
  if (item.insertTextMode !== undefined) {
12461
12438
  result.insertTextMode = item.insertTextMode;
12462
12439
 
12463
- if (item.insertTextMode === vscode_languageserver_protocol_1$a.InsertTextMode.asIs) {
12440
+ if (item.insertTextMode === vscode_languageserver_protocol_1$b.InsertTextMode.asIs) {
12464
12441
  result.keepWhitespace = true;
12465
12442
  }
12466
12443
  }
@@ -12953,7 +12930,7 @@ function createConverter(uriConverter, trustMarkdown) {
12953
12930
  const uri = _uriConverter(change.textDocument.uri);
12954
12931
 
12955
12932
  for (const edit of change.edits) {
12956
- if (vscode_languageserver_protocol_1$a.AnnotatedTextEdit.is(edit)) {
12933
+ if (vscode_languageserver_protocol_1$b.AnnotatedTextEdit.is(edit)) {
12957
12934
  result.replace(uri, asRange(edit.range), edit.newText, asMetadata(edit.annotationId));
12958
12935
  } else {
12959
12936
  result.replace(uri, asRange(edit.range), edit.newText);
@@ -13258,7 +13235,7 @@ Object.defineProperty(async, "__esModule", {
13258
13235
  value: true
13259
13236
  });
13260
13237
  async.Delayer = void 0;
13261
- const vscode_languageserver_protocol_1$9 = main$3;
13238
+ const vscode_languageserver_protocol_1$a = main$3;
13262
13239
 
13263
13240
  class Delayer {
13264
13241
  constructor(defaultDelay) {
@@ -13290,7 +13267,7 @@ class Delayer {
13290
13267
  }
13291
13268
 
13292
13269
  if (delay >= 0 || this.timeout === void 0) {
13293
- this.timeout = vscode_languageserver_protocol_1$9.RAL().timer.setTimeout(() => {
13270
+ this.timeout = vscode_languageserver_protocol_1$a.RAL().timer.setTimeout(() => {
13294
13271
  this.timeout = undefined;
13295
13272
  this.onSuccess(undefined);
13296
13273
  }, delay >= 0 ? delay : this.defaultDelay);
@@ -13323,7 +13300,7 @@ class Delayer {
13323
13300
 
13324
13301
  cancelTimeout() {
13325
13302
  if (this.timeout !== void 0) {
13326
- vscode_languageserver_protocol_1$9.RAL().timer.clearTimeout(this.timeout);
13303
+ vscode_languageserver_protocol_1$a.RAL().timer.clearTimeout(this.timeout);
13327
13304
  this.timeout = undefined;
13328
13305
  }
13329
13306
  }
@@ -13429,7 +13406,7 @@ Object.defineProperty(progressPart, "__esModule", {
13429
13406
  });
13430
13407
  progressPart.ProgressPart = void 0;
13431
13408
  const vscode_1$7 = vscodeCompatibility;
13432
- const vscode_languageserver_protocol_1$8 = main$3;
13409
+ const vscode_languageserver_protocol_1$9 = main$3;
13433
13410
  const Is$1 = is;
13434
13411
 
13435
13412
  class ProgressPart {
@@ -13437,7 +13414,7 @@ class ProgressPart {
13437
13414
  this._client = _client;
13438
13415
  this._token = _token;
13439
13416
  this._reported = 0;
13440
- this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$8.WorkDoneProgress.type, this._token, value => {
13417
+ this._disposable = this._client.onProgress(vscode_languageserver_protocol_1$9.WorkDoneProgress.type, this._token, value => {
13441
13418
  switch (value.kind) {
13442
13419
  case 'begin':
13443
13420
  this.begin(value);
@@ -13467,7 +13444,7 @@ class ProgressPart {
13467
13444
  this._cancellationToken = cancellationToken;
13468
13445
 
13469
13446
  this._cancellationToken.onCancellationRequested(() => {
13470
- this._client.sendNotification(vscode_languageserver_protocol_1$8.WorkDoneProgressCancelNotification.type, {
13447
+ this._client.sendNotification(vscode_languageserver_protocol_1$9.WorkDoneProgressCancelNotification.type, {
13471
13448
  token: this._token
13472
13449
  });
13473
13450
  });
@@ -16795,10 +16772,10 @@ Object.defineProperty(typeDefinition, "__esModule", {
16795
16772
  });
16796
16773
  typeDefinition.TypeDefinitionFeature = void 0;
16797
16774
  const vscode_1$6 = vscodeCompatibility;
16798
- const vscode_languageserver_protocol_1$7 = main$3;
16775
+ const vscode_languageserver_protocol_1$8 = main$3;
16799
16776
  const client_1$6 = client;
16800
16777
 
16801
- function ensure$6(target, key) {
16778
+ function ensure$7(target, key) {
16802
16779
  if (target[key] === void 0) {
16803
16780
  target[key] = {};
16804
16781
  }
@@ -16808,12 +16785,12 @@ function ensure$6(target, key) {
16808
16785
 
16809
16786
  class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
16810
16787
  constructor(client) {
16811
- super(client, vscode_languageserver_protocol_1$7.TypeDefinitionRequest.type);
16788
+ super(client, vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type);
16812
16789
  }
16813
16790
 
16814
16791
  fillClientCapabilities(capabilities) {
16815
- ensure$6(ensure$6(capabilities, 'textDocument'), 'typeDefinition').dynamicRegistration = true;
16816
- let typeDefinitionSupport = ensure$6(ensure$6(capabilities, 'textDocument'), 'typeDefinition');
16792
+ ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition').dynamicRegistration = true;
16793
+ let typeDefinitionSupport = ensure$7(ensure$7(capabilities, 'textDocument'), 'typeDefinition');
16817
16794
  typeDefinitionSupport.dynamicRegistration = true;
16818
16795
  typeDefinitionSupport.linkSupport = true;
16819
16796
  }
@@ -16837,8 +16814,8 @@ class TypeDefinitionFeature extends client_1$6.TextDocumentFeature {
16837
16814
  const client = this._client;
16838
16815
 
16839
16816
  const provideTypeDefinition = (document, position, token) => {
16840
- return client.sendRequest(vscode_languageserver_protocol_1$7.TypeDefinitionRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
16841
- return client.handleFailedRequest(vscode_languageserver_protocol_1$7.TypeDefinitionRequest.type, error, null);
16817
+ return client.sendRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
16818
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$8.TypeDefinitionRequest.type, error, null);
16842
16819
  });
16843
16820
  };
16844
16821
 
@@ -16866,10 +16843,10 @@ Object.defineProperty(implementation, "__esModule", {
16866
16843
  });
16867
16844
  implementation.ImplementationFeature = void 0;
16868
16845
  const vscode_1$5 = vscodeCompatibility;
16869
- const vscode_languageserver_protocol_1$6 = main$3;
16846
+ const vscode_languageserver_protocol_1$7 = main$3;
16870
16847
  const client_1$5 = client;
16871
16848
 
16872
- function ensure$5(target, key) {
16849
+ function ensure$6(target, key) {
16873
16850
  if (target[key] === void 0) {
16874
16851
  target[key] = {};
16875
16852
  }
@@ -16879,11 +16856,11 @@ function ensure$5(target, key) {
16879
16856
 
16880
16857
  class ImplementationFeature extends client_1$5.TextDocumentFeature {
16881
16858
  constructor(client) {
16882
- super(client, vscode_languageserver_protocol_1$6.ImplementationRequest.type);
16859
+ super(client, vscode_languageserver_protocol_1$7.ImplementationRequest.type);
16883
16860
  }
16884
16861
 
16885
16862
  fillClientCapabilities(capabilities) {
16886
- let implementationSupport = ensure$5(ensure$5(capabilities, 'textDocument'), 'implementation');
16863
+ let implementationSupport = ensure$6(ensure$6(capabilities, 'textDocument'), 'implementation');
16887
16864
  implementationSupport.dynamicRegistration = true;
16888
16865
  implementationSupport.linkSupport = true;
16889
16866
  }
@@ -16907,8 +16884,8 @@ class ImplementationFeature extends client_1$5.TextDocumentFeature {
16907
16884
  const client = this._client;
16908
16885
 
16909
16886
  const provideImplementation = (document, position, token) => {
16910
- return client.sendRequest(vscode_languageserver_protocol_1$6.ImplementationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
16911
- return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ImplementationRequest.type, error, null);
16887
+ return client.sendRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, client.code2ProtocolConverter.asTextDocumentPositionParams(document, position), token).then(client.protocol2CodeConverter.asDefinitionResult, error => {
16888
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$7.ImplementationRequest.type, error, null);
16912
16889
  });
16913
16890
  };
16914
16891
 
@@ -16936,10 +16913,10 @@ Object.defineProperty(colorProvider, "__esModule", {
16936
16913
  });
16937
16914
  colorProvider.ColorProviderFeature = void 0;
16938
16915
  const vscode_1$4 = vscodeCompatibility;
16939
- const vscode_languageserver_protocol_1$5 = main$3;
16916
+ const vscode_languageserver_protocol_1$6 = main$3;
16940
16917
  const client_1$4 = client;
16941
16918
 
16942
- function ensure$4(target, key) {
16919
+ function ensure$5(target, key) {
16943
16920
  if (target[key] === void 0) {
16944
16921
  target[key] = {};
16945
16922
  }
@@ -16949,11 +16926,11 @@ function ensure$4(target, key) {
16949
16926
 
16950
16927
  class ColorProviderFeature extends client_1$4.TextDocumentFeature {
16951
16928
  constructor(client) {
16952
- super(client, vscode_languageserver_protocol_1$5.DocumentColorRequest.type);
16929
+ super(client, vscode_languageserver_protocol_1$6.DocumentColorRequest.type);
16953
16930
  }
16954
16931
 
16955
16932
  fillClientCapabilities(capabilities) {
16956
- ensure$4(ensure$4(capabilities, 'textDocument'), 'colorProvider').dynamicRegistration = true;
16933
+ ensure$5(ensure$5(capabilities, 'textDocument'), 'colorProvider').dynamicRegistration = true;
16957
16934
  }
16958
16935
 
16959
16936
  initialize(capabilities, documentSelector) {
@@ -16980,8 +16957,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
16980
16957
  textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(context.document),
16981
16958
  range: client.code2ProtocolConverter.asRange(context.range)
16982
16959
  };
16983
- return client.sendRequest(vscode_languageserver_protocol_1$5.ColorPresentationRequest.type, requestParams, token).then(this.asColorPresentations.bind(this), error => {
16984
- return client.handleFailedRequest(vscode_languageserver_protocol_1$5.ColorPresentationRequest.type, error, null);
16960
+ return client.sendRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, requestParams, token).then(this.asColorPresentations.bind(this), error => {
16961
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
16985
16962
  });
16986
16963
  };
16987
16964
 
@@ -16995,8 +16972,8 @@ class ColorProviderFeature extends client_1$4.TextDocumentFeature {
16995
16972
  const requestParams = {
16996
16973
  textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
16997
16974
  };
16998
- return client.sendRequest(vscode_languageserver_protocol_1$5.DocumentColorRequest.type, requestParams, token).then(this.asColorInformations.bind(this), error => {
16999
- return client.handleFailedRequest(vscode_languageserver_protocol_1$5.ColorPresentationRequest.type, error, null);
16975
+ return client.sendRequest(vscode_languageserver_protocol_1$6.DocumentColorRequest.type, requestParams, token).then(this.asColorInformations.bind(this), error => {
16976
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$6.ColorPresentationRequest.type, error, null);
17000
16977
  });
17001
16978
  };
17002
16979
 
@@ -17052,7 +17029,7 @@ Object.defineProperty(workspaceFolders, "__esModule", {
17052
17029
  workspaceFolders.WorkspaceFoldersFeature = workspaceFolders.arrayDiff = void 0;
17053
17030
  const UUID = uuid;
17054
17031
  const vscode_1$3 = vscodeCompatibility;
17055
- const vscode_languageserver_protocol_1$4 = main$3;
17032
+ const vscode_languageserver_protocol_1$5 = main$3;
17056
17033
 
17057
17034
  function access(target, key) {
17058
17035
  if (target === void 0) {
@@ -17075,7 +17052,7 @@ class WorkspaceFoldersFeature {
17075
17052
  }
17076
17053
 
17077
17054
  get registrationType() {
17078
- return vscode_languageserver_protocol_1$4.DidChangeWorkspaceFoldersNotification.type;
17055
+ return vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type;
17079
17056
  }
17080
17057
 
17081
17058
  fillInitializeParams(params) {
@@ -17100,7 +17077,7 @@ class WorkspaceFoldersFeature {
17100
17077
 
17101
17078
  initialize(capabilities) {
17102
17079
  const client = this._client;
17103
- client.onRequest(vscode_languageserver_protocol_1$4.WorkspaceFoldersRequest.type, token => {
17080
+ client.onRequest(vscode_languageserver_protocol_1$5.WorkspaceFoldersRequest.type, token => {
17104
17081
  const workspaceFolders = () => {
17105
17082
  const folders = vscode_1$3.workspace.workspaceFolders;
17106
17083
 
@@ -17157,7 +17134,7 @@ class WorkspaceFoldersFeature {
17157
17134
  }
17158
17135
  };
17159
17136
 
17160
- this._client.sendNotification(vscode_languageserver_protocol_1$4.DidChangeWorkspaceFoldersNotification.type, params);
17137
+ this._client.sendNotification(vscode_languageserver_protocol_1$5.DidChangeWorkspaceFoldersNotification.type, params);
17161
17138
  }
17162
17139
 
17163
17140
  register(data) {
@@ -17225,10 +17202,10 @@ Object.defineProperty(foldingRange, "__esModule", {
17225
17202
  });
17226
17203
  foldingRange.FoldingRangeFeature = void 0;
17227
17204
  const vscode_1$2 = vscodeCompatibility;
17228
- const vscode_languageserver_protocol_1$3 = main$3;
17205
+ const vscode_languageserver_protocol_1$4 = main$3;
17229
17206
  const client_1$3 = client;
17230
17207
 
17231
- function ensure$3(target, key) {
17208
+ function ensure$4(target, key) {
17232
17209
  if (target[key] === void 0) {
17233
17210
  target[key] = {};
17234
17211
  }
@@ -17238,11 +17215,11 @@ function ensure$3(target, key) {
17238
17215
 
17239
17216
  class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
17240
17217
  constructor(client) {
17241
- super(client, vscode_languageserver_protocol_1$3.FoldingRangeRequest.type);
17218
+ super(client, vscode_languageserver_protocol_1$4.FoldingRangeRequest.type);
17242
17219
  }
17243
17220
 
17244
17221
  fillClientCapabilities(capabilities) {
17245
- let capability = ensure$3(ensure$3(capabilities, 'textDocument'), 'foldingRange');
17222
+ let capability = ensure$4(ensure$4(capabilities, 'textDocument'), 'foldingRange');
17246
17223
  capability.dynamicRegistration = true;
17247
17224
  capability.rangeLimit = 5000;
17248
17225
  capability.lineFoldingOnly = true;
@@ -17270,8 +17247,8 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
17270
17247
  const requestParams = {
17271
17248
  textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document)
17272
17249
  };
17273
- return client.sendRequest(vscode_languageserver_protocol_1$3.FoldingRangeRequest.type, requestParams, token).then(FoldingRangeFeature.asFoldingRanges, error => {
17274
- return client.handleFailedRequest(vscode_languageserver_protocol_1$3.FoldingRangeRequest.type, error, null);
17250
+ return client.sendRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, requestParams, token).then(FoldingRangeFeature.asFoldingRanges, error => {
17251
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$4.FoldingRangeRequest.type, error, null);
17275
17252
  });
17276
17253
  };
17277
17254
 
@@ -17285,13 +17262,13 @@ class FoldingRangeFeature extends client_1$3.TextDocumentFeature {
17285
17262
  static asFoldingRangeKind(kind) {
17286
17263
  if (kind) {
17287
17264
  switch (kind) {
17288
- case vscode_languageserver_protocol_1$3.FoldingRangeKind.Comment:
17265
+ case vscode_languageserver_protocol_1$4.FoldingRangeKind.Comment:
17289
17266
  return vscode_1$2.FoldingRangeKind.Comment;
17290
17267
 
17291
- case vscode_languageserver_protocol_1$3.FoldingRangeKind.Imports:
17268
+ case vscode_languageserver_protocol_1$4.FoldingRangeKind.Imports:
17292
17269
  return vscode_1$2.FoldingRangeKind.Imports;
17293
17270
 
17294
- case vscode_languageserver_protocol_1$3.FoldingRangeKind.Region:
17271
+ case vscode_languageserver_protocol_1$4.FoldingRangeKind.Region:
17295
17272
  return vscode_1$2.FoldingRangeKind.Region;
17296
17273
  }
17297
17274
  }
@@ -17326,10 +17303,10 @@ Object.defineProperty(callHierarchy, "__esModule", {
17326
17303
  });
17327
17304
  callHierarchy.CallHierarchyFeature = void 0;
17328
17305
  const vscode_1$1 = vscodeCompatibility;
17329
- const vscode_languageserver_protocol_1$2 = main$3;
17306
+ const vscode_languageserver_protocol_1$3 = main$3;
17330
17307
  const client_1$2 = client;
17331
17308
 
17332
- function ensure$2(target, key) {
17309
+ function ensure$3(target, key) {
17333
17310
  if (target[key] === void 0) {
17334
17311
  target[key] = {};
17335
17312
  }
@@ -17349,10 +17326,10 @@ class CallHierarchyProvider {
17349
17326
 
17350
17327
  const prepareCallHierarchy = (document, position, token) => {
17351
17328
  const params = client.code2ProtocolConverter.asTextDocumentPositionParams(document, position);
17352
- return client.sendRequest(vscode_languageserver_protocol_1$2.CallHierarchyPrepareRequest.type, params, token).then(result => {
17329
+ return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, params, token).then(result => {
17353
17330
  return client.protocol2CodeConverter.asCallHierarchyItems(result);
17354
17331
  }, error => {
17355
- return client.handleFailedRequest(vscode_languageserver_protocol_1$2.CallHierarchyPrepareRequest.type, error, null);
17332
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type, error, null);
17356
17333
  });
17357
17334
  };
17358
17335
 
@@ -17367,10 +17344,10 @@ class CallHierarchyProvider {
17367
17344
  const params = {
17368
17345
  item: client.code2ProtocolConverter.asCallHierarchyItem(item)
17369
17346
  };
17370
- return client.sendRequest(vscode_languageserver_protocol_1$2.CallHierarchyIncomingCallsRequest.type, params, token).then(result => {
17347
+ return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, params, token).then(result => {
17371
17348
  return client.protocol2CodeConverter.asCallHierarchyIncomingCalls(result);
17372
17349
  }, error => {
17373
- return client.handleFailedRequest(vscode_languageserver_protocol_1$2.CallHierarchyIncomingCallsRequest.type, error, null);
17350
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyIncomingCallsRequest.type, error, null);
17374
17351
  });
17375
17352
  };
17376
17353
 
@@ -17385,10 +17362,10 @@ class CallHierarchyProvider {
17385
17362
  const params = {
17386
17363
  item: client.code2ProtocolConverter.asCallHierarchyItem(item)
17387
17364
  };
17388
- return client.sendRequest(vscode_languageserver_protocol_1$2.CallHierarchyOutgoingCallsRequest.type, params, token).then(result => {
17365
+ return client.sendRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, params, token).then(result => {
17389
17366
  return client.protocol2CodeConverter.asCallHierarchyOutgoingCalls(result);
17390
17367
  }, error => {
17391
- return client.handleFailedRequest(vscode_languageserver_protocol_1$2.CallHierarchyOutgoingCallsRequest.type, error, null);
17368
+ return client.handleFailedRequest(vscode_languageserver_protocol_1$3.CallHierarchyOutgoingCallsRequest.type, error, null);
17392
17369
  });
17393
17370
  };
17394
17371
 
@@ -17399,12 +17376,12 @@ class CallHierarchyProvider {
17399
17376
 
17400
17377
  class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
17401
17378
  constructor(client) {
17402
- super(client, vscode_languageserver_protocol_1$2.CallHierarchyPrepareRequest.type);
17379
+ super(client, vscode_languageserver_protocol_1$3.CallHierarchyPrepareRequest.type);
17403
17380
  }
17404
17381
 
17405
17382
  fillClientCapabilities(cap) {
17406
17383
  const capabilities = cap;
17407
- const capability = ensure$2(ensure$2(capabilities, 'textDocument'), 'callHierarchy');
17384
+ const capability = ensure$3(ensure$3(capabilities, 'textDocument'), 'callHierarchy');
17408
17385
  capability.dynamicRegistration = true;
17409
17386
  }
17410
17387
 
@@ -17431,6 +17408,65 @@ class CallHierarchyFeature extends client_1$2.TextDocumentFeature {
17431
17408
 
17432
17409
  callHierarchy.CallHierarchyFeature = CallHierarchyFeature;
17433
17410
 
17411
+ var progress = {};
17412
+
17413
+ /* --------------------------------------------------------------------------------------------
17414
+ * Copyright (c) Microsoft Corporation. All rights reserved.
17415
+ * Licensed under the MIT License. See License.txt in the project root for license information.
17416
+ * ------------------------------------------------------------------------------------------ */
17417
+
17418
+
17419
+ Object.defineProperty(progress, "__esModule", {
17420
+ value: true
17421
+ });
17422
+ progress.ProgressFeature = void 0;
17423
+ const vscode_languageserver_protocol_1$2 = main$3;
17424
+ const progressPart_1 = progressPart;
17425
+
17426
+ function ensure$2(target, key) {
17427
+ if (target[key] === void 0) {
17428
+ target[key] = Object.create(null);
17429
+ }
17430
+
17431
+ return target[key];
17432
+ }
17433
+
17434
+ class ProgressFeature {
17435
+ constructor(_client) {
17436
+ this._client = _client;
17437
+ this.activeParts = new Set();
17438
+ }
17439
+
17440
+ fillClientCapabilities(capabilities) {
17441
+ ensure$2(capabilities, 'window').workDoneProgress = true;
17442
+ }
17443
+
17444
+ initialize() {
17445
+ const client = this._client;
17446
+
17447
+ const deleteHandler = part => {
17448
+ this.activeParts.delete(part);
17449
+ };
17450
+
17451
+ const createHandler = params => {
17452
+ this.activeParts.add(new progressPart_1.ProgressPart(this._client, params.token, deleteHandler));
17453
+ };
17454
+
17455
+ client.onRequest(vscode_languageserver_protocol_1$2.WorkDoneProgressCreateRequest.type, createHandler);
17456
+ }
17457
+
17458
+ dispose() {
17459
+ for (const part of this.activeParts) {
17460
+ part.done();
17461
+ }
17462
+
17463
+ this.activeParts.clear();
17464
+ }
17465
+
17466
+ }
17467
+
17468
+ progress.ProgressFeature = ProgressFeature;
17469
+
17434
17470
  var semanticTokens = {};
17435
17471
 
17436
17472
  /* --------------------------------------------------------------------------------------------
@@ -17682,6 +17718,7 @@ const colorProvider_1 = colorProvider;
17682
17718
  const workspaceFolders_1 = workspaceFolders;
17683
17719
  const foldingRange_1 = foldingRange;
17684
17720
  const callHierarchy_1 = callHierarchy;
17721
+ const progress_1 = progress;
17685
17722
  const semanticTokens_1 = semanticTokens;
17686
17723
  const declaration_1 = declaration;
17687
17724
  __exportStar(client, exports);
@@ -17749,6 +17786,7 @@ class MonacoLanguageClient extends client_1.BaseLanguageClient {
17749
17786
  this.registerFeature(new declaration_1.DeclarationFeature(this));
17750
17787
  this.registerFeature(new semanticTokens_1.SemanticTokensFeature(this));
17751
17788
  this.registerFeature(new callHierarchy_1.CallHierarchyFeature(this));
17789
+ this.registerFeature(new progress_1.ProgressFeature(this));
17752
17790
  const features = this['_features'];
17753
17791
  for (const feature of features) {
17754
17792
  if (feature instanceof colorProvider_1.ColorProviderFeature) {
@@ -18537,6 +18575,7 @@ class MonacoLanguages {
18537
18575
  getLegend() {
18538
18576
  return legend;
18539
18577
  },
18578
+ onDidChange: provider.onDidChange,
18540
18579
  provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {
18541
18580
  if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {
18542
18581
  return undefined;
@@ -18605,6 +18644,9 @@ class MonacoLanguages {
18605
18644
  else {
18606
18645
  languages.add(this.matchLanguageByFilter(selector));
18607
18646
  }
18647
+ if (languages.has('*')) {
18648
+ return new Set(['*']);
18649
+ }
18608
18650
  return languages;
18609
18651
  }
18610
18652
  matchLanguageByFilter(selector) {
@@ -18626,7 +18668,7 @@ var monacoWorkspace = {};
18626
18668
  Object.defineProperty(monacoWorkspace, "__esModule", { value: true });
18627
18669
  monacoWorkspace.MonacoWorkspace = void 0;
18628
18670
  const services_1 = services$1;
18629
- const vscode_languageserver_textdocument_1 = require$$1$1;
18671
+ const vscode_languageserver_textdocument_1 = require$$1;
18630
18672
  class MonacoWorkspace {
18631
18673
  constructor(_monaco, p2m, m2p, _rootUri = null) {
18632
18674
  this._monaco = _monaco;
@@ -20031,6 +20073,20 @@ class WatchableConsoleWindow {
20031
20073
  _defineProperty(this, "onDidChangeChannelsEmitter", new lib$1.Emitter());
20032
20074
 
20033
20075
  _defineProperty(this, "channels", new Map());
20076
+
20077
+ _defineProperty(this, "withProgress", async (options, task) => {
20078
+ console.debug('[LSP]', 'Starting task with progress:', options.location, options.title);
20079
+
20080
+ try {
20081
+ return await task({
20082
+ report: params => {
20083
+ console.info('[LSP]', "Task progress: ".concat(params.increment, "%:"), params.message);
20084
+ }
20085
+ }, new lib$1.CancellationTokenSource().token);
20086
+ } finally {
20087
+ console.info('[LSP]', 'Task completed:', options.title);
20088
+ }
20089
+ });
20034
20090
  }
20035
20091
 
20036
20092
  async showMessage(type, message) {
@@ -20134,32 +20190,31 @@ class MemoryWorkspaceConfiguration {
20134
20190
 
20135
20191
  }
20136
20192
 
20193
+ const simpleConfigurationService = monaco.editor.StaticServices.configurationService.get();
20194
+
20137
20195
  class Configuration {
20138
20196
  constructor() {
20139
20197
  _defineProperty(this, "onDidChangeConfigurationEmitter", new lib$1.Emitter());
20140
-
20141
- _defineProperty(this, "configurations", {});
20142
20198
  }
20143
20199
 
20144
- getConfiguration(section) {
20145
- return new MemoryWorkspaceConfiguration(section != null ? lookUp(this.configurations, section) : this.configurations);
20200
+ getConfiguration(section, resource) {
20201
+ return new MemoryWorkspaceConfiguration(this.getValue(section, resource));
20146
20202
  }
20147
20203
 
20148
- update(section, value) {
20149
- monaco.extra.addToValueTree(this.configurations, section, value, e => {
20150
- throw new Error(e);
20151
- });
20152
- const event = {
20153
- affectsConfiguration(eventSection) {
20154
- return section === eventSection;
20155
- }
20156
-
20204
+ getValue(section, resource) {
20205
+ const override = {
20206
+ resource: resource != null ? monaco.Uri.parse(resource) : null
20157
20207
  };
20158
- this.onDidChangeConfigurationEmitter.fire(event);
20208
+
20209
+ if (section == null) {
20210
+ return simpleConfigurationService.getValue(override);
20211
+ }
20212
+
20213
+ return simpleConfigurationService.getValue(section, override);
20159
20214
  }
20160
20215
 
20161
20216
  get onDidChangeConfiguration() {
20162
- return this.onDidChangeConfigurationEmitter.event;
20217
+ return simpleConfigurationService.onDidChangeConfiguration;
20163
20218
  }
20164
20219
 
20165
20220
  }
@@ -20284,10 +20339,6 @@ function installServices() {
20284
20339
  }
20285
20340
  }
20286
20341
 
20287
- function updateConfiguration(section, value) {
20288
- services.workspace.configurations.update(section, value);
20289
- }
20290
-
20291
20342
  var lib = {};
20292
20343
 
20293
20344
  var disposable = {};
@@ -20708,7 +20759,7 @@ async function openConnection(url, errorHandler, closeHandler) {
20708
20759
  args[_key] = arguments[_key];
20709
20760
  }
20710
20761
 
20711
- connection.onRequest(args[0], function () {
20762
+ return connection.onRequest(args[0], function () {
20712
20763
  // Hack for https://github.com/OmniSharp/omnisharp-roslyn/issues/2119
20713
20764
  if (args[0].method === lib$1.RegistrationRequest.type.method) {
20714
20765
  const registrationParams = arguments.length <= 0 ? undefined : arguments[0];
@@ -20741,7 +20792,7 @@ async function openConnection(url, errorHandler, closeHandler) {
20741
20792
  // The shutdown should NEVER fail or the connection is not closed and the lsp client is not properly cleaned
20742
20793
  // see https://github.com/microsoft/vscode-languageserver-node/blob/master/client/src/client.ts#L3103
20743
20794
  try {
20744
- connection.exit();
20795
+ await connection.exit();
20745
20796
  } catch (error) {
20746
20797
  console.warn('[LSP]', 'Error while shutdown lsp', error);
20747
20798
  }
@@ -20760,24 +20811,18 @@ async function openConnection(url, errorHandler, closeHandler) {
20760
20811
  const RETRY_DELAY = 3000;
20761
20812
 
20762
20813
  class CGLSPConnectionProvider {
20763
- constructor(serverUrl, language, libraryUrls, getSecurityToken) {
20764
- _defineProperty(this, "serverUrl", void 0);
20765
-
20766
- _defineProperty(this, "language", void 0);
20767
-
20768
- _defineProperty(this, "libraryUrls", void 0);
20769
-
20770
- _defineProperty(this, "getSecurityToken", void 0);
20771
-
20772
- this.serverUrl = serverUrl;
20773
- this.language = language;
20814
+ constructor(serverAddress, id, sessionId, libraryUrls, getSecurityToken) {
20815
+ this.serverAddress = serverAddress;
20816
+ this.id = id;
20817
+ this.sessionId = sessionId;
20774
20818
  this.libraryUrls = libraryUrls;
20775
20819
  this.getSecurityToken = getSecurityToken;
20776
20820
  }
20777
20821
 
20778
20822
  async get(errorHandler, closeHandler) {
20779
20823
  try {
20780
- const url = new URL("run/".concat(this.language), this.serverUrl);
20824
+ const path = this.sessionId != null ? "run/".concat(this.sessionId, "/").concat(this.id) : "run/".concat(this.id);
20825
+ const url = new URL(path, this.serverAddress);
20781
20826
  this.libraryUrls.forEach(libraryUrl => url.searchParams.append('libraryUrl', libraryUrl));
20782
20827
  url.searchParams.append('token', await this.getSecurityToken());
20783
20828
  return await openConnection(url, errorHandler, closeHandler);
@@ -20790,39 +20835,274 @@ class CGLSPConnectionProvider {
20790
20835
 
20791
20836
  }
20792
20837
 
20793
- function createLanguageClient(_ref, languageServerUrl, getSecurityToken, libraryUrls, errorHandler, middleware) {
20838
+ function createLanguageClient(id, sessionId, _ref, languageServerAddress, getSecurityToken, libraryUrls, errorHandler, middleware) {
20794
20839
  let {
20795
20840
  documentSelector,
20796
- language: languageServerLanguage,
20797
- configurationSection,
20841
+ synchronize,
20798
20842
  initializationOptions
20799
20843
  } = _ref;
20800
20844
  const client = new lib$1.MonacoLanguageClient({
20801
- id: "".concat(languageServerLanguage, "-languageclient"),
20802
- name: "CodinGame ".concat(languageServerLanguage, " Language Client"),
20845
+ id: "".concat(id, "-languageclient"),
20846
+ name: "CodinGame ".concat(id, " Language Client"),
20803
20847
  clientOptions: {
20804
20848
  // use a language id as a document selector
20805
20849
  documentSelector,
20806
20850
  // disable the default error handler
20807
20851
  errorHandler,
20808
20852
  middleware,
20809
- synchronize: {
20810
- configurationSection
20811
- },
20853
+ synchronize,
20812
20854
  initializationOptions
20813
20855
  },
20814
- connectionProvider: new CGLSPConnectionProvider(languageServerUrl, languageServerLanguage, libraryUrls, getSecurityToken)
20856
+ connectionProvider: new CGLSPConnectionProvider(languageServerAddress, id, sessionId, libraryUrls, getSecurityToken)
20815
20857
  });
20816
20858
  client.registerProposedFeatures();
20817
- registerExtensionFeatures(client, languageServerLanguage);
20859
+ registerExtensionFeatures(client, id);
20818
20860
  return client;
20819
20861
  }
20820
20862
 
20863
+ const staticOptions = {
20864
+ angular: {
20865
+ documentSelector: [{
20866
+ scheme: 'file',
20867
+ pattern: '**/*.ts'
20868
+ }]
20869
+ },
20870
+ bash: {
20871
+ documentSelector: [{
20872
+ scheme: 'file',
20873
+ pattern: '**/*.bash'
20874
+ }]
20875
+ },
20876
+ c: {
20877
+ documentSelector: [{
20878
+ scheme: 'file',
20879
+ language: 'c'
20880
+ }]
20881
+ },
20882
+ csharp: {
20883
+ documentSelector: [{
20884
+ language: 'csharp'
20885
+ }]
20886
+ },
20887
+ cpp: {
20888
+ documentSelector: [{
20889
+ scheme: 'file',
20890
+ language: 'cpp'
20891
+ }, {
20892
+ scheme: 'file',
20893
+ language: 'cuda-cpp'
20894
+ }]
20895
+ },
20896
+ clojure: {
20897
+ documentSelector: [{
20898
+ scheme: 'file',
20899
+ pattern: '**/*.clj',
20900
+ language: 'clojure'
20901
+ }]
20902
+ },
20903
+ cobol: {
20904
+ documentSelector: ['COBOL'],
20905
+ synchronize: {
20906
+ configurationSection: 'cobol-lsp'
20907
+ }
20908
+ },
20909
+ dart: {
20910
+ documentSelector: [{
20911
+ scheme: 'file',
20912
+ pattern: '**/*.dart',
20913
+ language: 'dart'
20914
+ }]
20915
+ },
20916
+ go: {
20917
+ documentSelector: [{
20918
+ language: 'go',
20919
+ scheme: 'file'
20920
+ }, {
20921
+ language: 'go.mod',
20922
+ scheme: 'file'
20923
+ }, {
20924
+ language: 'go.sum',
20925
+ scheme: 'file'
20926
+ }, {
20927
+ language: 'go.work',
20928
+ scheme: 'file'
20929
+ }, {
20930
+ language: 'tmpl',
20931
+ scheme: 'file'
20932
+ }],
20933
+ initializationOptions: {
20934
+ lintTool: 'golint',
20935
+ diagnosticsEnabled: true,
20936
+ gocodeCompletionEnabled: true
20937
+ }
20938
+ },
20939
+ groovy: {
20940
+ documentSelector: [{
20941
+ scheme: 'file',
20942
+ language: 'groovy'
20943
+ }],
20944
+ synchronize: {
20945
+ configurationSection: 'groovy'
20946
+ }
20947
+ },
20948
+ java: {
20949
+ documentSelector: [{
20950
+ scheme: 'file',
20951
+ language: 'java'
20952
+ }, {
20953
+ scheme: 'jdt',
20954
+ language: 'java'
20955
+ }, {
20956
+ scheme: 'untitled',
20957
+ language: 'java'
20958
+ }],
20959
+ synchronize: {
20960
+ configurationSection: ['java', 'editor.insertSpaces', 'editor.tabSize']
20961
+ }
20962
+ },
20963
+ javascript: {
20964
+ documentSelector: [{
20965
+ pattern: '**/*.{js}',
20966
+ language: 'javascript'
20967
+ }, {
20968
+ pattern: '**/**.{js,jsx}',
20969
+ language: 'javascript'
20970
+ }]
20971
+ },
20972
+ kotlin: {
20973
+ // https://github.com/fwcd/vscode-kotlin/blob/db5916080868a6a8e064c60d49624926c2fa61bd/src/languageSetup.ts#L104
20974
+ documentSelector: [{
20975
+ language: 'kotlin',
20976
+ scheme: 'file'
20977
+ }, {
20978
+ language: 'kotlin',
20979
+ scheme: 'kls'
20980
+ }],
20981
+ synchronize: {
20982
+ configurationSection: 'kotlin'
20983
+ }
20984
+ },
20985
+ lua: {
20986
+ documentSelector: [{
20987
+ scheme: 'file',
20988
+ language: 'lua'
20989
+ }],
20990
+ synchronize: {
20991
+ configurationSection: 'Lua'
20992
+ }
20993
+ },
20994
+ 'php-serenata': {
20995
+ // https://gitlab.com/Serenata/visual-studio-code-client/-/blob/master/src/extension.ts#L120
20996
+ documentSelector: [{
20997
+ pattern: '**/*.php',
20998
+ scheme: 'file'
20999
+ }],
21000
+ synchronize: {
21001
+ configurationSection: 'serenata'
21002
+ },
21003
+ initializationOptions: {
21004
+ configuration: {
21005
+ uris: ['file:///tmp/project'],
21006
+ phpVersion: 7.3,
21007
+ fileExtensions: ['php'],
21008
+ indexDatabaseUri: 'file:///tmp/index.sqlite',
21009
+ excludedPathExpressions: ['file:///opt/serenata']
21010
+ }
21011
+ }
21012
+ },
21013
+ php: {
21014
+ documentSelector: [{
21015
+ pattern: '**/*.php',
21016
+ language: 'php'
21017
+ }]
21018
+ },
21019
+ python: {
21020
+ documentSelector: [{
21021
+ language: 'python'
21022
+ }],
21023
+ synchronize: {
21024
+ configurationSection: 'python'
21025
+ }
21026
+ },
21027
+ r: {
21028
+ // https://github.com/REditorSupport/vscode-R/blob/96ed4740101d8cd82f908b415df1dd205b4be824/src/languageService.ts#L186
21029
+ documentSelector: [{
21030
+ scheme: 'file',
21031
+ language: 'r'
21032
+ }, {
21033
+ scheme: 'file',
21034
+ language: 'rmd'
21035
+ }],
21036
+ synchronize: {
21037
+ configurationSection: 'r.lsp'
21038
+ }
21039
+ },
21040
+ react: {
21041
+ documentSelector: [{
21042
+ pattern: '**/*.{js,jsx}',
21043
+ language: 'javascript'
21044
+ }],
21045
+ synchronize: {}
21046
+ },
21047
+ ruby: {
21048
+ // https://github.com/rubyide/vscode-ruby/blob/8ba0e01956865a3dbd932279a3d42f7183bcf73a/packages/vscode-ruby-client/src/client.ts#L30
21049
+ documentSelector: [{
21050
+ scheme: 'file',
21051
+ language: 'ruby'
21052
+ }, {
21053
+ scheme: 'untitled',
21054
+ language: 'ruby'
21055
+ }]
21056
+ },
21057
+ rust: {
21058
+ // https://github.com/rust-lang/vscode-rust/blob/b1ae67b06640ffab6e1ebb72e07364b4477dfbf1/rust-analyzer/editors/code/src/client.ts#L42
21059
+ documentSelector: [{
21060
+ scheme: 'file',
21061
+ language: 'rust'
21062
+ }]
21063
+ },
21064
+ scala: {
21065
+ documentSelector: [{
21066
+ scheme: 'file',
21067
+ language: 'scala'
21068
+ }],
21069
+ synchronize: {
21070
+ configurationSection: 'metals'
21071
+ }
21072
+ },
21073
+ sql: {
21074
+ documentSelector: [{
21075
+ language: 'sql'
21076
+ }]
21077
+ },
21078
+ swift: {
21079
+ // https://github.com/apple/sourcekit-lsp/blob/59b5e68f7f8408b5bc44bd47f71ef1afdc63e7a6/Editors/vscode/src/extension.ts#L22
21080
+ documentSelector: ['swift', 'cpp', 'c', 'objective-c', 'objective-cpp'],
21081
+ synchronize: {}
21082
+ },
21083
+ typescript: {
21084
+ documentSelector: [{
21085
+ pattern: '**/*.{ts}',
21086
+ language: 'typescript'
21087
+ }],
21088
+ synchronize: {}
21089
+ },
21090
+ vue: {
21091
+ documentSelector: [{
21092
+ pattern: '**/*.js',
21093
+ language: 'javascript'
21094
+ }],
21095
+ synchronize: {}
21096
+ }
21097
+ };
21098
+
20821
21099
  class LanguageClientManager {
20822
- constructor(languageServerUrl, getSecurityToken, languageServerConfig, libraryUrls) {
20823
- this.languageServerUrl = languageServerUrl;
21100
+ constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls) {
21101
+ this.id = id;
21102
+ this.sessionId = sessionId;
21103
+ this.languageServerAddress = languageServerAddress;
20824
21104
  this.getSecurityToken = getSecurityToken;
20825
- this.languageServerConfig = languageServerConfig;
21105
+ this.languageServerOptions = languageServerOptions;
20826
21106
  this.libraryUrls = libraryUrls;
20827
21107
 
20828
21108
  _defineProperty(this, "languageClient", void 0);
@@ -20835,8 +21115,6 @@ class LanguageClientManager {
20835
21115
 
20836
21116
  _defineProperty(this, "currentStatus", void 0);
20837
21117
 
20838
- _defineProperty(this, "configuration", void 0);
20839
-
20840
21118
  _defineProperty(this, "handleClose", () => {
20841
21119
  if (this.isDisposed()) {
20842
21120
  return lib$1.CloseAction.DoNotRestart;
@@ -20853,8 +21131,6 @@ class LanguageClientManager {
20853
21131
  });
20854
21132
  return lib$1.ErrorAction.Continue;
20855
21133
  });
20856
-
20857
- this.configuration = languageServerConfig.configuration;
20858
21134
  }
20859
21135
 
20860
21136
  updateStatus(status) {
@@ -20899,41 +21175,64 @@ class LanguageClientManager {
20899
21175
  }
20900
21176
 
20901
21177
  isModelManaged(document) {
20902
- return lib$1.Services.get().languages.match(this.languageServerConfig.documentSelector, document);
21178
+ if (this.languageServerOptions.documentSelector == null) {
21179
+ return false;
21180
+ }
21181
+
21182
+ return lib$1.Services.get().languages.match(this.languageServerOptions.documentSelector, document);
20903
21183
  }
20904
21184
 
20905
21185
  isDisposed() {
20906
21186
  return this.languageClient == null;
20907
21187
  }
20908
21188
 
20909
- updateConfiguration(configuration) {
20910
- const {
20911
- configurationSection
20912
- } = this.languageServerConfig;
20913
- this.configuration = configuration;
20914
-
20915
- if (configurationSection != null && this.languageClient != null) {
20916
- updateConfiguration(configurationSection, configuration);
20917
- }
20918
- }
20919
-
20920
21189
  start() {
20921
- const onDidHandleDiagnostics = new lib$1.Emitter();
20922
- const languageClient = createLanguageClient(this.languageServerConfig, this.languageServerUrl, this.getSecurityToken, this.libraryUrls, {
21190
+ const onServerResponse = new lib$1.Emitter();
21191
+ const languageClient = createLanguageClient(this.id, this.sessionId, this.languageServerOptions, this.languageServerAddress, this.getSecurityToken, this.libraryUrls, {
20923
21192
  error: this.handleError,
20924
21193
  closed: this.handleClose
20925
21194
  }, {
20926
21195
  handleDiagnostics: (uri, diagnostics, next) => {
20927
21196
  next(uri, diagnostics);
20928
- onDidHandleDiagnostics.fire();
21197
+ onServerResponse.fire();
21198
+ },
21199
+ provideCodeActions: async (document, range, context, token, next) => {
21200
+ try {
21201
+ return await next(document, range, context, token);
21202
+ } finally {
21203
+ onServerResponse.fire();
21204
+ }
21205
+ },
21206
+ provideDocumentRangeSemanticTokens: async (document, range, token, next) => {
21207
+ try {
21208
+ return await next(document, range, token);
21209
+ } finally {
21210
+ onServerResponse.fire();
21211
+ }
21212
+ },
21213
+ provideDocumentSemanticTokens: async (document, token, next) => {
21214
+ try {
21215
+ return await next(document, token);
21216
+ } finally {
21217
+ onServerResponse.fire();
21218
+ }
21219
+ },
21220
+ handleWorkDoneProgress: async (token, params, next) => {
21221
+ next(token, params);
21222
+
21223
+ if (params.kind === 'end') {
21224
+ onServerResponse.fire();
21225
+ }
21226
+ },
21227
+ provideHover: async (document, position, token, next) => {
21228
+ try {
21229
+ return await next(document, position, token);
21230
+ } finally {
21231
+ onServerResponse.fire();
21232
+ }
20929
21233
  }
20930
21234
  });
20931
21235
  this.languageClient = languageClient;
20932
-
20933
- if (this.configuration != null) {
20934
- this.updateConfiguration(this.configuration);
20935
- }
20936
-
20937
21236
  let readyPromise = null;
20938
21237
  languageClient.onDidChangeState(async state => {
20939
21238
  switch (state.newState) {
@@ -20946,7 +21245,7 @@ class LanguageClientManager {
20946
21245
  readyPromise = languageClient.onReady().then(async () => {
20947
21246
  let disposable = null;
20948
21247
  await Promise.race([new Promise(resolve => {
20949
- disposable = onDidHandleDiagnostics.event(resolve);
21248
+ disposable = onServerResponse.event(resolve);
20950
21249
  }), delay$1(15000)]);
20951
21250
  disposable.dispose();
20952
21251
  }, error => {
@@ -20993,14 +21292,20 @@ class LanguageClientManager {
20993
21292
  }
20994
21293
  const languageClientManagerByLanguageId = {};
20995
21294
 
20996
- function createLanguageClientManager(languageServerUrl, getSecurityToken, languageServerConfig, libraryUrls) {
20997
- if (languageClientManagerByLanguageId[languageServerConfig.language] != null) {
20998
- throw new Error("Language client for language ".concat(languageServerConfig.language, " already started"));
21295
+ function createLanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, libraryUrls) {
21296
+ if (languageClientManagerByLanguageId[id] != null) {
21297
+ throw new Error("Language client for language ".concat(id, " already started"));
21298
+ }
21299
+
21300
+ const languageServerOptions = staticOptions[id];
21301
+
21302
+ if (languageServerOptions == null) {
21303
+ throw new Error("Unknown ".concat(id, " language server"));
20999
21304
  }
21000
21305
 
21001
21306
  installServices();
21002
- const languageClientManager = new LanguageClientManager(languageServerUrl, getSecurityToken, languageServerConfig, libraryUrls);
21003
- languageClientManagerByLanguageId[languageServerConfig.language] = languageClientManager;
21307
+ const languageClientManager = new LanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls);
21308
+ languageClientManagerByLanguageId[id] = languageClientManager;
21004
21309
  const textModelContentProviderDisposable = registerTextModelContentProvider('file', {
21005
21310
  async provideTextContent(resource) {
21006
21311
  try {
@@ -21014,7 +21319,7 @@ function createLanguageClientManager(languageServerUrl, getSecurityToken, langua
21014
21319
 
21015
21320
  });
21016
21321
  languageClientManager.onWillClose(() => {
21017
- delete languageClientManagerByLanguageId[languageServerConfig.language];
21322
+ delete languageClientManagerByLanguageId[id];
21018
21323
  textModelContentProviderDisposable.dispose();
21019
21324
  });
21020
21325
  return languageClientManager;