@menapo/vi18n 0.1.1 → 0.1.2

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 (118) hide show
  1. package/dist/{apply-Bre-lY9J.js → apply-FAHl1R6T.js} +69 -89
  2. package/dist/{captured-Bj8bO6vd.js → captured-CTjjDF5o.js} +196 -217
  3. package/dist/{check-BIKEuu6B.js → check-DwFwOB1d.js} +66 -84
  4. package/dist/cli.js +2 -3
  5. package/dist/{collect-Cx4_SKOe.js → collect-CYATDjdo.js} +1 -2
  6. package/dist/collisions-uMTuq36M.js +215 -0
  7. package/dist/compile-CEvH-6sY.js +240 -0
  8. package/dist/{compile-Cc97JaW2.js → compile-DqkofbiO.js} +376 -331
  9. package/dist/concurrency-BCY_4zcr.js +1 -0
  10. package/dist/concurrency-Dy2ny50V.js +107 -0
  11. package/dist/config.d.ts +1 -5
  12. package/dist/config.js +4 -5
  13. package/dist/{types-D3QGM8XO.js → diagnostics-1onDF6Ua.js} +26 -26
  14. package/dist/{dir-zw6bGMKQ.js → dir-TGLYuOZb.js} +34 -37
  15. package/dist/{duplicates-yuRljQ6h.js → duplicates-CsUXRX2J.js} +10 -27
  16. package/dist/engine-Bf7nVigL.js +556 -0
  17. package/dist/engine.d.ts +1 -5
  18. package/dist/engine.js +297 -168
  19. package/dist/exchange-DYG9RZoT.js +41 -0
  20. package/dist/{exclude-Du-Zd_qI.js → exclude-vMnm3lqU.js} +2 -3
  21. package/dist/{export-C9Sy6UWv.js → export-BYq0gfLd.js} +17 -38
  22. package/dist/{extract-C3S8btx0.js → extract-CYtuEo8u.js} +114 -82
  23. package/dist/{formats-9unqj_fZ.js → formats-ChV1LVH_.js} +352 -276
  24. package/dist/fs-ezCMZeDV.js +52 -0
  25. package/dist/i18next-1waHziMy.js +1 -0
  26. package/dist/i18next-D66Icz3L.js +1907 -0
  27. package/dist/{import-nANvQutw.js → import-BApbQlmm.js} +81 -75
  28. package/dist/index.d.ts +1 -13
  29. package/dist/index.js +14 -16
  30. package/dist/{init-C2ScuW6a.js → init-J7AwwA5e.js} +466 -501
  31. package/dist/{library-D5CWvTQs.js → library-BfSOBeBd.js} +975 -451
  32. package/dist/lingui-Ee2farVo.js +902 -0
  33. package/dist/lint.d.ts +0 -4
  34. package/dist/lint.js +68 -81
  35. package/dist/{load-gW-oJt1Q.js → load-BFLLqY8x.js} +272 -147
  36. package/dist/{load-CQRz4PpM.js → load-CMwhukZ4.js} +1211 -1115
  37. package/dist/{locales-DX4MOBFE.js → locales-DxLDrx-h.js} +271 -237
  38. package/dist/{lsp-RMMMc88P.js → lsp-BC7xDGON.js} +4 -5
  39. package/dist/{match-BGr8EXB3.js → match-BLDcj610.js} +11 -4
  40. package/dist/{mcp-CHVwBoRP.js → mcp-Cka8ywDF.js} +4 -5
  41. package/dist/{merge-driver-BTX87aVm.js → merge-driver-B04Apm29.js} +138 -122
  42. package/dist/migrate-D7TNl6SD.js +2169 -0
  43. package/dist/migrate-khCY8TE0.js +1 -0
  44. package/dist/{openai-CTaMDcl-.js → openai-RWw0YlAx.js} +128 -87
  45. package/dist/{output-DWE3SIUA.js → output-CF9uvk_-.js} +15 -9
  46. package/dist/parse.d.ts +1 -3
  47. package/dist/parse.js +7 -8
  48. package/dist/{pipeline-DbX6rlo5.js → pipeline-B30irGMD.js} +1 -1
  49. package/dist/{pipeline-C9Dbotkh.js → pipeline-sgl_q_op.js} +387 -359
  50. package/dist/project-DSzWKU3C.js +544 -0
  51. package/dist/{pseudo-DRv30iN5.js → pseudo-DNbNNVGP.js} +125 -3
  52. package/dist/{raw-C4Y6vyGY.js → raw-YsYZMS9n.js} +52 -29
  53. package/dist/react-intl-tzGIk6G3.js +634 -0
  54. package/dist/restore-BG_zMpSj.js +199 -0
  55. package/dist/rewrite-hAcRJwiZ.js +415 -0
  56. package/dist/{rich-DCUKl5HM.js → rich-ApY1Dm4S.js} +35 -28
  57. package/dist/rolldown-runtime-C1I3wEg2.js +43 -0
  58. package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  59. package/dist/run-CFzR3V93.js +647 -0
  60. package/dist/scan-worker.d.ts +2 -4
  61. package/dist/scan-worker.js +1 -1
  62. package/dist/{scoped-BMYpSthj.js → scoped-h3KE8XWW.js} +3 -4
  63. package/dist/{server-deBOq2vq.js → server-WlxZH0oX.js} +275 -330
  64. package/dist/{server-Da1Ot9IN.js → server-ceuzzkal.js} +292 -386
  65. package/dist/server.d.ts +1 -17
  66. package/dist/server.js +415 -381
  67. package/dist/{sitemap-DJXzKoza.js → sitemap-796jJKUT.js} +21 -33
  68. package/dist/{sources-D19czDSA.js → sources-DuOdM02f.js} +712 -373
  69. package/dist/{status-zr4jY59Y.js → status-CTH3qI-0.js} +30 -30
  70. package/dist/{stdio-FPOKQAgu.js → stdio-D9kTzyqB.js} +2 -4
  71. package/dist/{stdio-CVaJfxA7.js → stdio-FWIVU3P4.js} +1 -2
  72. package/dist/sync-CpL0Qsgw.js +1352 -0
  73. package/dist/{t-DC-c9zE5.js → t-gvEXx25s.js} +76 -53
  74. package/dist/test.d.ts +5 -16
  75. package/dist/test.js +77 -48
  76. package/dist/translate-BrfVRkjl.js +336 -0
  77. package/dist/{ts-BaU5yOf0.js → ts-BX6kwig5.js} +25 -14
  78. package/dist/{types-DtvQ7UdD.js → types-3kwyaCAm.js} +1 -2
  79. package/dist/{types-DsdWBG0b.d.ts → types-BaG1LboH.d.ts} +2 -6
  80. package/dist/{types-CgUCkFU1.d.ts → types-Cy2bPdSg.d.ts} +14 -20
  81. package/dist/types-Ds_vebja.js +41 -0
  82. package/dist/{units-CQ5Q99RC.js → units-VVLgQ7x7.js} +7 -16
  83. package/dist/{url-CRfCOhUI.js → url-Bpc6wLea.js} +24 -11
  84. package/dist/{url-CsBkRaJy.js → url-D2_VlEeH.js} +25 -12
  85. package/dist/{validate-D6DJepZv.js → validate-PGgMsasz.js} +3 -5
  86. package/dist/{validate-BxpupdAf.js → validate-zv4-IZyZ.js} +690 -377
  87. package/dist/{version-Byqi2guX.js → version-BFs370Ce.js} +3 -5
  88. package/dist/{vite-scan-CT_vsp4g.js → vite-scan-DFKSGVE9.js} +87 -92
  89. package/dist/vite.d.ts +2 -6
  90. package/dist/vite.js +6482 -6018
  91. package/dist/vue-i18n-CBmZqHbG.js +806 -0
  92. package/dist/{which-BOemZ5Q8.js → which-BpyJyBkX.js} +44 -37
  93. package/dist/{worker-84U6uYB3.js → worker-BjzVqJVO.js} +454 -608
  94. package/package.json +5 -5
  95. package/dist/check-HsmmpJZg.js +0 -1
  96. package/dist/codec-DuvU2VQy.js +0 -207
  97. package/dist/collisions-CfpZU8e4.js +0 -217
  98. package/dist/compile-BaDh0cHG.js +0 -245
  99. package/dist/concurrency-C9UUWuDC.js +0 -96
  100. package/dist/concurrency-DONL7t4V.js +0 -1
  101. package/dist/engine-C2ENBRJe.js +0 -531
  102. package/dist/i18next-9HAoxwUI.js +0 -1
  103. package/dist/i18next-BEJgv_S8.js +0 -1596
  104. package/dist/lingui-zUiCl9Um.js +0 -833
  105. package/dist/messages-BfjIExyB.js +0 -166
  106. package/dist/migrate-IpLDMXmq.js +0 -1484
  107. package/dist/migrate-rCQuOGsf.js +0 -1
  108. package/dist/project-Bw9UPIdx.js +0 -1046
  109. package/dist/project-C4GpaN-n.js +0 -381
  110. package/dist/react-intl-BP0u-D5m.js +0 -519
  111. package/dist/restore-CiYv-jxS.js +0 -175
  112. package/dist/rewrite-EsIw_lsq.js +0 -803
  113. package/dist/run-BEcnBbu-.js +0 -694
  114. package/dist/runtime-DTMmliT1.js +0 -64
  115. package/dist/sync-B9V2KFwb.js +0 -658
  116. package/dist/translate-CQnJfLjO.js +0 -299
  117. package/dist/types-wSh9fCBY.js +0 -11
  118. package/dist/vue-i18n-g0iGy6CZ.js +0 -651
@@ -1,16 +1,15 @@
1
- import { a as __commonJSMin, c as __require, i as messageView, l as __toCommonJS, o as __esmMin, r as localeView, s as __exportAll, t as indexCatalog } from "./messages-BfjIExyB.js";
2
- import { o as isDiagnosticError } from "./types-D3QGM8XO.js";
3
- import { r as validateTranslation } from "./validate-BxpupdAf.js";
4
- import { t as createCodec } from "./codec-DuvU2VQy.js";
5
- import { l as loadCatalogSet, o as catalogLayout, s as catalogPath, u as parseCatalog } from "./library-D5CWvTQs.js";
6
- import { a as toPosix, r as isIncluded } from "./project-Bw9UPIdx.js";
7
- import { n as loadConfig, t as findConfigFile } from "./load-gW-oJt1Q.js";
8
- import { t as VERSION } from "./version-Byqi2guX.js";
9
- import { i as scanSource, r as scanConfig } from "./worker-84U6uYB3.js";
10
- import { n as syntaxOfEntry } from "./check-BIKEuu6B.js";
1
+ import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-C1I3wEg2.js";
2
+ import { t as VERSION } from "./version-BFs370Ce.js";
3
+ import { u as toPosix } from "./validate-zv4-IZyZ.js";
4
+ import { F as isIncluded, l as loadCatalogSet, s as catalogPath, u as parseCatalog } from "./library-BfSOBeBd.js";
5
+ import { r as loadConfig, t as findConfigFile } from "./load-BFLLqY8x.js";
6
+ import { n as isDiagnosticError } from "./diagnostics-1onDF6Ua.js";
7
+ import { i as scanSource, r as scanConfig } from "./worker-BjzVqJVO.js";
8
+ import { S as checkTranslation, _ as indexCatalog, b as localeView, d as projectOf, v as indexCatalogs, w as syntaxOfEntry, x as messageView } from "./project-DSzWKU3C.js";
9
+ import { o as errorMessage } from "./output-CF9uvk_-.js";
11
10
  import { dirname, relative } from "node:path";
12
11
  import { fileURLToPath, pathToFileURL } from "node:url";
13
- //#region ../../node_modules/.pnpm/vscode-languageserver-textdocument@1.0.15/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
12
+ // ../../node_modules/.pnpm/vscode-languageserver-textdocument@1.0.15/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
14
13
  var FullTextDocument$1 = class FullTextDocument$1 {
15
14
  constructor(uri, languageId, version, content) {
16
15
  this._uri = uri;
@@ -251,8 +250,7 @@ function getWellformedEdit(textEdit) {
251
250
  };
252
251
  return textEdit;
253
252
  }
254
- //#endregion
255
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/utils/is.js
253
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/utils/is.js
256
254
  var require_is$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
257
255
  Object.defineProperty(exports, "__esModule", { value: true });
258
256
  exports.boolean = boolean;
@@ -292,8 +290,7 @@ var require_is$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
292
290
  return value && func(value.then);
293
291
  }
294
292
  }));
295
- //#endregion
296
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js
293
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js
297
294
  var require_is$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
298
295
  Object.defineProperty(exports, "__esModule", { value: true });
299
296
  exports.boolean = boolean;
@@ -325,8 +322,7 @@ var require_is$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
325
322
  return array(value) && value.every((elem) => string(elem));
326
323
  }
327
324
  }));
328
- //#endregion
329
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js
325
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js
330
326
  var require_messages$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$19) => {
331
327
  var __createBinding = this$19 && this$19.__createBinding || (Object.create ? (function(o, m, k, k2) {
332
328
  if (k2 === void 0) k2 = k;
@@ -760,8 +756,7 @@ var require_messages$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1
760
756
  Message.isResponse = isResponse;
761
757
  })(Message || (exports.Message = Message = {}));
762
758
  }));
763
- //#endregion
764
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js
759
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js
765
760
  var require_linkedMap = /* @__PURE__ */ __commonJSMin(((exports) => {
766
761
  Object.defineProperty(exports, "__esModule", { value: true });
767
762
  exports.LRUCache = exports.LinkedMap = exports.Touch = void 0;
@@ -1107,8 +1102,7 @@ var require_linkedMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1107
1102
  };
1108
1103
  exports.LRUCache = LRUCache;
1109
1104
  }));
1110
- //#endregion
1111
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js
1105
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js
1112
1106
  var require_disposable = /* @__PURE__ */ __commonJSMin(((exports) => {
1113
1107
  Object.defineProperty(exports, "__esModule", { value: true });
1114
1108
  exports.Disposable = void 0;
@@ -1120,8 +1114,7 @@ var require_disposable = /* @__PURE__ */ __commonJSMin(((exports) => {
1120
1114
  Disposable.create = create;
1121
1115
  })(Disposable || (exports.Disposable = Disposable = {}));
1122
1116
  }));
1123
- //#endregion
1124
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js
1117
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js
1125
1118
  var require_ral = /* @__PURE__ */ __commonJSMin(((exports) => {
1126
1119
  Object.defineProperty(exports, "__esModule", { value: true });
1127
1120
  let _ral;
@@ -1138,8 +1131,7 @@ var require_ral = /* @__PURE__ */ __commonJSMin(((exports) => {
1138
1131
  })(RAL || (RAL = {}));
1139
1132
  exports.default = RAL;
1140
1133
  }));
1141
- //#endregion
1142
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js
1134
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js
1143
1135
  var require_events = /* @__PURE__ */ __commonJSMin(((exports, module, this$18) => {
1144
1136
  var __importDefault = this$18 && this$18.__importDefault || function(mod) {
1145
1137
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -1239,8 +1231,7 @@ var require_events = /* @__PURE__ */ __commonJSMin(((exports, module, this$18) =
1239
1231
  }
1240
1232
  };
1241
1233
  }));
1242
- //#endregion
1243
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js
1234
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js
1244
1235
  var require_cancellation = /* @__PURE__ */ __commonJSMin(((exports, module, this$17) => {
1245
1236
  var __createBinding = this$17 && this$17.__createBinding || (Object.create ? (function(o, m, k, k2) {
1246
1237
  if (k2 === void 0) k2 = k;
@@ -1357,8 +1348,7 @@ var require_cancellation = /* @__PURE__ */ __commonJSMin(((exports, module, this
1357
1348
  };
1358
1349
  exports.CancellationTokenSource = CancellationTokenSource;
1359
1350
  }));
1360
- //#endregion
1361
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
1351
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
1362
1352
  var require_sharedArrayCancellation = /* @__PURE__ */ __commonJSMin(((exports) => {
1363
1353
  Object.defineProperty(exports, "__esModule", { value: true });
1364
1354
  exports.SharedArrayReceiverStrategy = exports.SharedArraySenderStrategy = void 0;
@@ -1425,8 +1415,7 @@ var require_sharedArrayCancellation = /* @__PURE__ */ __commonJSMin(((exports) =
1425
1415
  };
1426
1416
  exports.SharedArrayReceiverStrategy = SharedArrayReceiverStrategy;
1427
1417
  }));
1428
- //#endregion
1429
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js
1418
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js
1430
1419
  var require_semaphore = /* @__PURE__ */ __commonJSMin(((exports, module, this$16) => {
1431
1420
  var __importDefault = this$16 && this$16.__importDefault || function(mod) {
1432
1421
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -1491,8 +1480,7 @@ var require_semaphore = /* @__PURE__ */ __commonJSMin(((exports, module, this$16
1491
1480
  };
1492
1481
  exports.Semaphore = Semaphore;
1493
1482
  }));
1494
- //#endregion
1495
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js
1483
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js
1496
1484
  var require_messageReader = /* @__PURE__ */ __commonJSMin(((exports, module, this$15) => {
1497
1485
  var __createBinding = this$15 && this$15.__createBinding || (Object.create ? (function(o, m, k, k2) {
1498
1486
  if (k2 === void 0) k2 = k;
@@ -1726,8 +1714,7 @@ var require_messageReader = /* @__PURE__ */ __commonJSMin(((exports, module, thi
1726
1714
  };
1727
1715
  exports.ReadableStreamMessageReader = ReadableStreamMessageReader;
1728
1716
  }));
1729
- //#endregion
1730
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js
1717
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js
1731
1718
  var require_messageWriter = /* @__PURE__ */ __commonJSMin(((exports, module, this$14) => {
1732
1719
  var __createBinding = this$14 && this$14.__createBinding || (Object.create ? (function(o, m, k, k2) {
1733
1720
  if (k2 === void 0) k2 = k;
@@ -1886,8 +1873,7 @@ var require_messageWriter = /* @__PURE__ */ __commonJSMin(((exports, module, thi
1886
1873
  };
1887
1874
  exports.WriteableStreamMessageWriter = WriteableStreamMessageWriter;
1888
1875
  }));
1889
- //#endregion
1890
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
1876
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
1891
1877
  var require_messageBuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
1892
1878
  Object.defineProperty(exports, "__esModule", { value: true });
1893
1879
  exports.AbstractMessageBuffer = void 0;
@@ -2015,8 +2001,7 @@ var require_messageBuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
2015
2001
  };
2016
2002
  exports.AbstractMessageBuffer = AbstractMessageBuffer;
2017
2003
  }));
2018
- //#endregion
2019
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js
2004
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js
2020
2005
  var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$13) => {
2021
2006
  var __createBinding = this$13 && this$13.__createBinding || (Object.create ? (function(o, m, k, k2) {
2022
2007
  if (k2 === void 0) k2 = k;
@@ -2974,8 +2959,7 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this
2974
2959
  return connection;
2975
2960
  }
2976
2961
  }));
2977
- //#endregion
2978
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js
2962
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js
2979
2963
  var require_api$2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) => {
2980
2964
  var __importDefault = this$12 && this$12.__importDefault || function(mod) {
2981
2965
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -3373,8 +3357,7 @@ var require_api$2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) =>
3373
3357
  });
3374
3358
  exports.RAL = __importDefault(require_ral()).default;
3375
3359
  }));
3376
- //#endregion
3377
- //#region ../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js
3360
+ // ../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js
3378
3361
  var main_exports = /* @__PURE__ */ __exportAll({
3379
3362
  AnnotatedTextEdit: () => AnnotatedTextEdit,
3380
3363
  ApplyKind: () => ApplyKind,
@@ -5417,8 +5400,7 @@ var init_main = __esmMin((() => {
5417
5400
  Is.typedArray = typedArray;
5418
5401
  })(Is || (Is = {}));
5419
5402
  }));
5420
- //#endregion
5421
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/messages.js
5403
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/messages.js
5422
5404
  var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
5423
5405
  Object.defineProperty(exports, "__esModule", { value: true });
5424
5406
  exports.CM = exports.ProtocolNotificationType = exports.ProtocolNotificationType0 = exports.ProtocolRequestType = exports.ProtocolRequestType0 = exports.RegistrationType = exports.MessageDirection = void 0;
@@ -5500,8 +5482,7 @@ var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
5500
5482
  CM.create = create;
5501
5483
  })(CM || (exports.CM = CM = {}));
5502
5484
  }));
5503
- //#endregion
5504
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js
5485
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js
5505
5486
  var require_is = /* @__PURE__ */ __commonJSMin(((exports) => {
5506
5487
  Object.defineProperty(exports, "__esModule", { value: true });
5507
5488
  exports.boolean = boolean;
@@ -5541,8 +5522,7 @@ var require_is = /* @__PURE__ */ __commonJSMin(((exports) => {
5541
5522
  return value !== null && typeof value === "object";
5542
5523
  }
5543
5524
  }));
5544
- //#endregion
5545
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js
5525
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js
5546
5526
  var require_protocol_implementation = /* @__PURE__ */ __commonJSMin(((exports) => {
5547
5527
  Object.defineProperty(exports, "__esModule", { value: true });
5548
5528
  exports.ImplementationRequest = void 0;
@@ -5560,8 +5540,7 @@ var require_protocol_implementation = /* @__PURE__ */ __commonJSMin(((exports) =
5560
5540
  ImplementationRequest.capabilities = messages_1.CM.create("textDocument.implementation", "implementationProvider");
5561
5541
  })(ImplementationRequest || (exports.ImplementationRequest = ImplementationRequest = {}));
5562
5542
  }));
5563
- //#endregion
5564
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js
5543
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js
5565
5544
  var require_protocol_typeDefinition = /* @__PURE__ */ __commonJSMin(((exports) => {
5566
5545
  Object.defineProperty(exports, "__esModule", { value: true });
5567
5546
  exports.TypeDefinitionRequest = void 0;
@@ -5579,8 +5558,7 @@ var require_protocol_typeDefinition = /* @__PURE__ */ __commonJSMin(((exports) =
5579
5558
  TypeDefinitionRequest.capabilities = messages_1.CM.create("textDocument.typeDefinition", "typeDefinitionProvider");
5580
5559
  })(TypeDefinitionRequest || (exports.TypeDefinitionRequest = TypeDefinitionRequest = {}));
5581
5560
  }));
5582
- //#endregion
5583
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js
5561
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js
5584
5562
  var require_protocol_workspaceFolder = /* @__PURE__ */ __commonJSMin(((exports) => {
5585
5563
  Object.defineProperty(exports, "__esModule", { value: true });
5586
5564
  exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = void 0;
@@ -5607,8 +5585,7 @@ var require_protocol_workspaceFolder = /* @__PURE__ */ __commonJSMin(((exports)
5607
5585
  DidChangeWorkspaceFoldersNotification.capabilities = messages_1.CM.create(void 0, "workspace.workspaceFolders.changeNotifications");
5608
5586
  })(DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = DidChangeWorkspaceFoldersNotification = {}));
5609
5587
  }));
5610
- //#endregion
5611
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js
5588
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js
5612
5589
  var require_protocol_configuration = /* @__PURE__ */ __commonJSMin(((exports) => {
5613
5590
  Object.defineProperty(exports, "__esModule", { value: true });
5614
5591
  exports.ConfigurationRequest = void 0;
@@ -5630,8 +5607,7 @@ var require_protocol_configuration = /* @__PURE__ */ __commonJSMin(((exports) =>
5630
5607
  ConfigurationRequest.capabilities = messages_1.CM.create("workspace.configuration", void 0);
5631
5608
  })(ConfigurationRequest || (exports.ConfigurationRequest = ConfigurationRequest = {}));
5632
5609
  }));
5633
- //#endregion
5634
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js
5610
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js
5635
5611
  var require_protocol_colorProvider = /* @__PURE__ */ __commonJSMin(((exports) => {
5636
5612
  Object.defineProperty(exports, "__esModule", { value: true });
5637
5613
  exports.ColorPresentationRequest = exports.DocumentColorRequest = void 0;
@@ -5663,8 +5639,7 @@ var require_protocol_colorProvider = /* @__PURE__ */ __commonJSMin(((exports) =>
5663
5639
  ColorPresentationRequest.capabilities = messages_1.CM.create("textDocument.colorProvider", "colorProvider");
5664
5640
  })(ColorPresentationRequest || (exports.ColorPresentationRequest = ColorPresentationRequest = {}));
5665
5641
  }));
5666
- //#endregion
5667
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js
5642
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js
5668
5643
  var require_protocol_foldingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
5669
5644
  Object.defineProperty(exports, "__esModule", { value: true });
5670
5645
  exports.FoldingRangeRefreshRequest = exports.FoldingRangeRequest = void 0;
@@ -5695,8 +5670,7 @@ var require_protocol_foldingRange = /* @__PURE__ */ __commonJSMin(((exports) =>
5695
5670
  FoldingRangeRefreshRequest.capabilities = messages_1.CM.create("workspace.foldingRange.refreshSupport", void 0);
5696
5671
  })(FoldingRangeRefreshRequest || (exports.FoldingRangeRefreshRequest = FoldingRangeRefreshRequest = {}));
5697
5672
  }));
5698
- //#endregion
5699
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js
5673
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js
5700
5674
  var require_protocol_declaration = /* @__PURE__ */ __commonJSMin(((exports) => {
5701
5675
  Object.defineProperty(exports, "__esModule", { value: true });
5702
5676
  exports.DeclarationRequest = void 0;
@@ -5715,8 +5689,7 @@ var require_protocol_declaration = /* @__PURE__ */ __commonJSMin(((exports) => {
5715
5689
  DeclarationRequest.capabilities = messages_1.CM.create("textDocument.declaration", "declarationProvider");
5716
5690
  })(DeclarationRequest || (exports.DeclarationRequest = DeclarationRequest = {}));
5717
5691
  }));
5718
- //#endregion
5719
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js
5692
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js
5720
5693
  var require_protocol_selectionRange = /* @__PURE__ */ __commonJSMin(((exports) => {
5721
5694
  Object.defineProperty(exports, "__esModule", { value: true });
5722
5695
  exports.SelectionRangeRequest = void 0;
@@ -5735,8 +5708,7 @@ var require_protocol_selectionRange = /* @__PURE__ */ __commonJSMin(((exports) =
5735
5708
  SelectionRangeRequest.capabilities = messages_1.CM.create("textDocument.selectionRange", "selectionRangeProvider");
5736
5709
  })(SelectionRangeRequest || (exports.SelectionRangeRequest = SelectionRangeRequest = {}));
5737
5710
  }));
5738
- //#endregion
5739
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js
5711
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js
5740
5712
  var require_protocol_progress = /* @__PURE__ */ __commonJSMin(((exports) => {
5741
5713
  Object.defineProperty(exports, "__esModule", { value: true });
5742
5714
  exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = void 0;
@@ -5772,8 +5744,7 @@ var require_protocol_progress = /* @__PURE__ */ __commonJSMin(((exports) => {
5772
5744
  WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
5773
5745
  })(WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = WorkDoneProgressCancelNotification = {}));
5774
5746
  }));
5775
- //#endregion
5776
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js
5747
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js
5777
5748
  var require_protocol_callHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
5778
5749
  Object.defineProperty(exports, "__esModule", { value: true });
5779
5750
  exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.CallHierarchyPrepareRequest = void 0;
@@ -5816,8 +5787,7 @@ var require_protocol_callHierarchy = /* @__PURE__ */ __commonJSMin(((exports) =>
5816
5787
  CallHierarchyOutgoingCallsRequest.capabilities = messages_1.CM.create("textDocument.callHierarchy", "callHierarchyProvider");
5817
5788
  })(CallHierarchyOutgoingCallsRequest || (exports.CallHierarchyOutgoingCallsRequest = CallHierarchyOutgoingCallsRequest = {}));
5818
5789
  }));
5819
- //#endregion
5820
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js
5790
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js
5821
5791
  var require_protocol_semanticTokens = /* @__PURE__ */ __commonJSMin(((exports) => {
5822
5792
  Object.defineProperty(exports, "__esModule", { value: true });
5823
5793
  exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.SemanticTokensRegistrationType = exports.TokenFormat = void 0;
@@ -5875,8 +5845,7 @@ var require_protocol_semanticTokens = /* @__PURE__ */ __commonJSMin(((exports) =
5875
5845
  SemanticTokensRefreshRequest.capabilities = messages_1.CM.create("workspace.semanticTokens.refreshSupport", void 0);
5876
5846
  })(SemanticTokensRefreshRequest || (exports.SemanticTokensRefreshRequest = SemanticTokensRefreshRequest = {}));
5877
5847
  }));
5878
- //#endregion
5879
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js
5848
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js
5880
5849
  var require_protocol_showDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
5881
5850
  Object.defineProperty(exports, "__esModule", { value: true });
5882
5851
  exports.ShowDocumentRequest = void 0;
@@ -5897,8 +5866,7 @@ var require_protocol_showDocument = /* @__PURE__ */ __commonJSMin(((exports) =>
5897
5866
  ShowDocumentRequest.capabilities = messages_1.CM.create("window.showDocument.support", void 0);
5898
5867
  })(ShowDocumentRequest || (exports.ShowDocumentRequest = ShowDocumentRequest = {}));
5899
5868
  }));
5900
- //#endregion
5901
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js
5869
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js
5902
5870
  var require_protocol_linkedEditingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
5903
5871
  Object.defineProperty(exports, "__esModule", { value: true });
5904
5872
  exports.LinkedEditingRangeRequest = void 0;
@@ -5916,8 +5884,7 @@ var require_protocol_linkedEditingRange = /* @__PURE__ */ __commonJSMin(((export
5916
5884
  LinkedEditingRangeRequest.capabilities = messages_1.CM.create("textDocument.linkedEditingRange", "linkedEditingRangeProvider");
5917
5885
  })(LinkedEditingRangeRequest || (exports.LinkedEditingRangeRequest = LinkedEditingRangeRequest = {}));
5918
5886
  }));
5919
- //#endregion
5920
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js
5887
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js
5921
5888
  var require_protocol_fileOperations = /* @__PURE__ */ __commonJSMin(((exports) => {
5922
5889
  Object.defineProperty(exports, "__esModule", { value: true });
5923
5890
  exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.DidRenameFilesNotification = exports.WillRenameFilesRequest = exports.DidCreateFilesNotification = exports.WillCreateFilesRequest = exports.FileOperationPatternKind = void 0;
@@ -6022,8 +5989,7 @@ var require_protocol_fileOperations = /* @__PURE__ */ __commonJSMin(((exports) =
6022
5989
  WillDeleteFilesRequest.capabilities = messages_1.CM.create("workspace.fileOperations.willDelete", "workspace.fileOperations.willDelete");
6023
5990
  })(WillDeleteFilesRequest || (exports.WillDeleteFilesRequest = WillDeleteFilesRequest = {}));
6024
5991
  }));
6025
- //#endregion
6026
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js
5992
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js
6027
5993
  var require_protocol_moniker = /* @__PURE__ */ __commonJSMin(((exports) => {
6028
5994
  Object.defineProperty(exports, "__esModule", { value: true });
6029
5995
  exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = void 0;
@@ -6090,8 +6056,7 @@ var require_protocol_moniker = /* @__PURE__ */ __commonJSMin(((exports) => {
6090
6056
  MonikerRequest.capabilities = messages_1.CM.create("textDocument.moniker", "monikerProvider");
6091
6057
  })(MonikerRequest || (exports.MonikerRequest = MonikerRequest = {}));
6092
6058
  }));
6093
- //#endregion
6094
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js
6059
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js
6095
6060
  var require_protocol_typeHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
6096
6061
  Object.defineProperty(exports, "__esModule", { value: true });
6097
6062
  exports.TypeHierarchySubtypesRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchyPrepareRequest = void 0;
@@ -6132,8 +6097,7 @@ var require_protocol_typeHierarchy = /* @__PURE__ */ __commonJSMin(((exports) =>
6132
6097
  TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
6133
6098
  })(TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = TypeHierarchySubtypesRequest = {}));
6134
6099
  }));
6135
- //#endregion
6136
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js
6100
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js
6137
6101
  var require_protocol_inlineValue = /* @__PURE__ */ __commonJSMin(((exports) => {
6138
6102
  Object.defineProperty(exports, "__esModule", { value: true });
6139
6103
  exports.InlineValueRefreshRequest = exports.InlineValueRequest = void 0;
@@ -6163,8 +6127,7 @@ var require_protocol_inlineValue = /* @__PURE__ */ __commonJSMin(((exports) => {
6163
6127
  InlineValueRefreshRequest.capabilities = messages_1.CM.create("workspace.inlineValue.refreshSupport", void 0);
6164
6128
  })(InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = InlineValueRefreshRequest = {}));
6165
6129
  }));
6166
- //#endregion
6167
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js
6130
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js
6168
6131
  var require_protocol_inlayHint = /* @__PURE__ */ __commonJSMin(((exports) => {
6169
6132
  Object.defineProperty(exports, "__esModule", { value: true });
6170
6133
  exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = void 0;
@@ -6208,8 +6171,7 @@ var require_protocol_inlayHint = /* @__PURE__ */ __commonJSMin(((exports) => {
6208
6171
  InlayHintRefreshRequest.capabilities = messages_1.CM.create("workspace.inlayHint.refreshSupport", void 0);
6209
6172
  })(InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = InlayHintRefreshRequest = {}));
6210
6173
  }));
6211
- //#endregion
6212
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js
6174
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js
6213
6175
  var require_protocol_diagnostic = /* @__PURE__ */ __commonJSMin(((exports, module, this$11) => {
6214
6176
  var __createBinding = this$11 && this$11.__createBinding || (Object.create ? (function(o, m, k, k2) {
6215
6177
  if (k2 === void 0) k2 = k;
@@ -6326,8 +6288,7 @@ var require_protocol_diagnostic = /* @__PURE__ */ __commonJSMin(((exports, modul
6326
6288
  DiagnosticRefreshRequest.capabilities = messages_1.CM.create("workspace.diagnostics.refreshSupport", void 0);
6327
6289
  })(DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = DiagnosticRefreshRequest = {}));
6328
6290
  }));
6329
- //#endregion
6330
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js
6291
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js
6331
6292
  var require_protocol_notebook = /* @__PURE__ */ __commonJSMin(((exports, module, this$10) => {
6332
6293
  var __createBinding = this$10 && this$10.__createBinding || (Object.create ? (function(o, m, k, k2) {
6333
6294
  if (k2 === void 0) k2 = k;
@@ -6550,8 +6511,7 @@ var require_protocol_notebook = /* @__PURE__ */ __commonJSMin(((exports, module,
6550
6511
  DidCloseNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
6551
6512
  })(DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = DidCloseNotebookDocumentNotification = {}));
6552
6513
  }));
6553
- //#endregion
6554
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js
6514
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js
6555
6515
  var require_protocol_inlineCompletion = /* @__PURE__ */ __commonJSMin(((exports) => {
6556
6516
  Object.defineProperty(exports, "__esModule", { value: true });
6557
6517
  exports.InlineCompletionRequest = void 0;
@@ -6571,8 +6531,7 @@ var require_protocol_inlineCompletion = /* @__PURE__ */ __commonJSMin(((exports)
6571
6531
  InlineCompletionRequest.capabilities = messages_1.CM.create("textDocument.inlineCompletion", "inlineCompletionProvider");
6572
6532
  })(InlineCompletionRequest || (exports.InlineCompletionRequest = InlineCompletionRequest = {}));
6573
6533
  }));
6574
- //#endregion
6575
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js
6534
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js
6576
6535
  var require_protocol_textDocumentContent = /* @__PURE__ */ __commonJSMin(((exports) => {
6577
6536
  Object.defineProperty(exports, "__esModule", { value: true });
6578
6537
  exports.TextDocumentContentRefreshRequest = exports.TextDocumentContentRequest = void 0;
@@ -6603,8 +6562,7 @@ var require_protocol_textDocumentContent = /* @__PURE__ */ __commonJSMin(((expor
6603
6562
  TextDocumentContentRefreshRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRefreshRequest.method);
6604
6563
  })(TextDocumentContentRefreshRequest || (exports.TextDocumentContentRefreshRequest = TextDocumentContentRefreshRequest = {}));
6605
6564
  }));
6606
- //#endregion
6607
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.js
6565
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.js
6608
6566
  var require_protocol = /* @__PURE__ */ __commonJSMin(((exports, module, this$9) => {
6609
6567
  var __createBinding = this$9 && this$9.__createBinding || (Object.create ? (function(o, m, k, k2) {
6610
6568
  if (k2 === void 0) k2 = k;
@@ -7928,8 +7886,7 @@ var require_protocol = /* @__PURE__ */ __commonJSMin(((exports, module, this$9)
7928
7886
  ApplyWorkspaceEditRequest.capabilities = messages_1.CM.create("workspace.applyEdit", void 0);
7929
7887
  })(ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = ApplyWorkspaceEditRequest = {}));
7930
7888
  }));
7931
- //#endregion
7932
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js
7889
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js
7933
7890
  var require_connection = /* @__PURE__ */ __commonJSMin(((exports) => {
7934
7891
  Object.defineProperty(exports, "__esModule", { value: true });
7935
7892
  exports.createProtocolConnection = createProtocolConnection;
@@ -7939,8 +7896,7 @@ var require_connection = /* @__PURE__ */ __commonJSMin(((exports) => {
7939
7896
  return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger, options);
7940
7897
  }
7941
7898
  }));
7942
- //#endregion
7943
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js
7899
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js
7944
7900
  var require_api$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
7945
7901
  var __createBinding = this$8 && this$8.__createBinding || (Object.create ? (function(o, m, k, k2) {
7946
7902
  if (k2 === void 0) k2 = k;
@@ -8023,8 +7979,7 @@ var require_api$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) =>
8023
7979
  LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
8024
7980
  })(LSPErrorCodes || (exports.LSPErrorCodes = LSPErrorCodes = {}));
8025
7981
  }));
8026
- //#endregion
8027
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/utils/uuid.js
7982
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/utils/uuid.js
8028
7983
  var require_uuid = /* @__PURE__ */ __commonJSMin(((exports) => {
8029
7984
  Object.defineProperty(exports, "__esModule", { value: true });
8030
7985
  exports.empty = void 0;
@@ -8140,8 +8095,7 @@ var require_uuid = /* @__PURE__ */ __commonJSMin(((exports) => {
8140
8095
  return v4().asHex();
8141
8096
  }
8142
8097
  }));
8143
- //#endregion
8144
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/progress.js
8098
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/progress.js
8145
8099
  var require_progress = /* @__PURE__ */ __commonJSMin(((exports) => {
8146
8100
  Object.defineProperty(exports, "__esModule", { value: true });
8147
8101
  exports.ProgressFeature = exports.WorkDoneProgressReporter = void 0;
@@ -8290,8 +8244,7 @@ var require_progress = /* @__PURE__ */ __commonJSMin(((exports) => {
8290
8244
  return new ResultProgressReporterImpl(connection, token);
8291
8245
  }
8292
8246
  }));
8293
- //#endregion
8294
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/configuration.js
8247
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/configuration.js
8295
8248
  var require_configuration = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
8296
8249
  var __createBinding = this$7 && this$7.__createBinding || (Object.create ? (function(o, m, k, k2) {
8297
8250
  if (k2 === void 0) k2 = k;
@@ -8356,8 +8309,7 @@ var require_configuration = /* @__PURE__ */ __commonJSMin(((exports, module, thi
8356
8309
  };
8357
8310
  exports.ConfigurationFeature = ConfigurationFeature;
8358
8311
  }));
8359
- //#endregion
8360
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/workspaceFolder.js
8312
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/workspaceFolder.js
8361
8313
  var require_workspaceFolder = /* @__PURE__ */ __commonJSMin(((exports) => {
8362
8314
  Object.defineProperty(exports, "__esModule", { value: true });
8363
8315
  exports.WorkspaceFoldersFeature = void 0;
@@ -8398,8 +8350,7 @@ var require_workspaceFolder = /* @__PURE__ */ __commonJSMin(((exports) => {
8398
8350
  };
8399
8351
  exports.WorkspaceFoldersFeature = WorkspaceFoldersFeature;
8400
8352
  }));
8401
- //#endregion
8402
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/callHierarchy.js
8353
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/callHierarchy.js
8403
8354
  var require_callHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
8404
8355
  Object.defineProperty(exports, "__esModule", { value: true });
8405
8356
  exports.CallHierarchyFeature = void 0;
@@ -8431,8 +8382,7 @@ var require_callHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
8431
8382
  };
8432
8383
  exports.CallHierarchyFeature = CallHierarchyFeature;
8433
8384
  }));
8434
- //#endregion
8435
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/semanticTokens.js
8385
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/semanticTokens.js
8436
8386
  var require_semanticTokens = /* @__PURE__ */ __commonJSMin(((exports) => {
8437
8387
  Object.defineProperty(exports, "__esModule", { value: true });
8438
8388
  exports.SemanticTokensBuilder = exports.SemanticTokensDiff = exports.SemanticTokensFeature = void 0;
@@ -8646,8 +8596,7 @@ var require_semanticTokens = /* @__PURE__ */ __commonJSMin(((exports) => {
8646
8596
  }
8647
8597
  };
8648
8598
  }));
8649
- //#endregion
8650
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/showDocument.js
8599
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/showDocument.js
8651
8600
  var require_showDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
8652
8601
  Object.defineProperty(exports, "__esModule", { value: true });
8653
8602
  exports.ShowDocumentFeature = void 0;
@@ -8661,8 +8610,7 @@ var require_showDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
8661
8610
  };
8662
8611
  exports.ShowDocumentFeature = ShowDocumentFeature;
8663
8612
  }));
8664
- //#endregion
8665
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/fileOperations.js
8613
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/fileOperations.js
8666
8614
  var require_fileOperations = /* @__PURE__ */ __commonJSMin(((exports) => {
8667
8615
  Object.defineProperty(exports, "__esModule", { value: true });
8668
8616
  exports.FileOperationsFeature = void 0;
@@ -8703,8 +8651,7 @@ var require_fileOperations = /* @__PURE__ */ __commonJSMin(((exports) => {
8703
8651
  };
8704
8652
  exports.FileOperationsFeature = FileOperationsFeature;
8705
8653
  }));
8706
- //#endregion
8707
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/linkedEditingRange.js
8654
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/linkedEditingRange.js
8708
8655
  var require_linkedEditingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
8709
8656
  Object.defineProperty(exports, "__esModule", { value: true });
8710
8657
  exports.LinkedEditingRangeFeature = void 0;
@@ -8720,8 +8667,7 @@ var require_linkedEditingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
8720
8667
  };
8721
8668
  exports.LinkedEditingRangeFeature = LinkedEditingRangeFeature;
8722
8669
  }));
8723
- //#endregion
8724
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/typeHierarchy.js
8670
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/typeHierarchy.js
8725
8671
  var require_typeHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
8726
8672
  Object.defineProperty(exports, "__esModule", { value: true });
8727
8673
  exports.TypeHierarchyFeature = void 0;
@@ -8753,8 +8699,7 @@ var require_typeHierarchy = /* @__PURE__ */ __commonJSMin(((exports) => {
8753
8699
  };
8754
8700
  exports.TypeHierarchyFeature = TypeHierarchyFeature;
8755
8701
  }));
8756
- //#endregion
8757
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlineValue.js
8702
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlineValue.js
8758
8703
  var require_inlineValue = /* @__PURE__ */ __commonJSMin(((exports) => {
8759
8704
  Object.defineProperty(exports, "__esModule", { value: true });
8760
8705
  exports.InlineValueFeature = void 0;
@@ -8777,8 +8722,7 @@ var require_inlineValue = /* @__PURE__ */ __commonJSMin(((exports) => {
8777
8722
  };
8778
8723
  exports.InlineValueFeature = InlineValueFeature;
8779
8724
  }));
8780
- //#endregion
8781
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/foldingRange.js
8725
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/foldingRange.js
8782
8726
  var require_foldingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
8783
8727
  Object.defineProperty(exports, "__esModule", { value: true });
8784
8728
  exports.FoldingRangeFeature = void 0;
@@ -8802,8 +8746,7 @@ var require_foldingRange = /* @__PURE__ */ __commonJSMin(((exports) => {
8802
8746
  };
8803
8747
  exports.FoldingRangeFeature = FoldingRangeFeature;
8804
8748
  }));
8805
- //#endregion
8806
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlayHint.js
8749
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlayHint.js
8807
8750
  var require_inlayHint = /* @__PURE__ */ __commonJSMin(((exports) => {
8808
8751
  Object.defineProperty(exports, "__esModule", { value: true });
8809
8752
  exports.InlayHintFeature = void 0;
@@ -8831,8 +8774,7 @@ var require_inlayHint = /* @__PURE__ */ __commonJSMin(((exports) => {
8831
8774
  };
8832
8775
  exports.InlayHintFeature = InlayHintFeature;
8833
8776
  }));
8834
- //#endregion
8835
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/diagnostic.js
8777
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/diagnostic.js
8836
8778
  var require_diagnostic = /* @__PURE__ */ __commonJSMin(((exports) => {
8837
8779
  Object.defineProperty(exports, "__esModule", { value: true });
8838
8780
  exports.DiagnosticFeature = void 0;
@@ -8860,8 +8802,7 @@ var require_diagnostic = /* @__PURE__ */ __commonJSMin(((exports) => {
8860
8802
  };
8861
8803
  exports.DiagnosticFeature = DiagnosticFeature;
8862
8804
  }));
8863
- //#endregion
8864
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/textDocuments.js
8805
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/textDocuments.js
8865
8806
  var require_textDocuments = /* @__PURE__ */ __commonJSMin(((exports) => {
8866
8807
  Object.defineProperty(exports, "__esModule", { value: true });
8867
8808
  exports.TextDocuments = void 0;
@@ -9035,8 +8976,7 @@ var require_textDocuments = /* @__PURE__ */ __commonJSMin(((exports) => {
9035
8976
  };
9036
8977
  exports.TextDocuments = TextDocuments;
9037
8978
  }));
9038
- //#endregion
9039
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/notebook.js
8979
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/notebook.js
9040
8980
  var require_notebook = /* @__PURE__ */ __commonJSMin(((exports) => {
9041
8981
  Object.defineProperty(exports, "__esModule", { value: true });
9042
8982
  exports.NotebookDocuments = exports.NotebookSyncFeature = void 0;
@@ -9279,8 +9219,7 @@ var require_notebook = /* @__PURE__ */ __commonJSMin(((exports) => {
9279
9219
  };
9280
9220
  exports.NotebookDocuments = NotebookDocuments;
9281
9221
  }));
9282
- //#endregion
9283
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/moniker.js
9222
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/moniker.js
9284
9223
  var require_moniker = /* @__PURE__ */ __commonJSMin(((exports) => {
9285
9224
  Object.defineProperty(exports, "__esModule", { value: true });
9286
9225
  exports.MonikerFeature = void 0;
@@ -9299,8 +9238,7 @@ var require_moniker = /* @__PURE__ */ __commonJSMin(((exports) => {
9299
9238
  };
9300
9239
  exports.MonikerFeature = MonikerFeature;
9301
9240
  }));
9302
- //#endregion
9303
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlineCompletion.js
9241
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/inlineCompletion.js
9304
9242
  var require_inlineCompletion = /* @__PURE__ */ __commonJSMin(((exports) => {
9305
9243
  Object.defineProperty(exports, "__esModule", { value: true });
9306
9244
  exports.InlineCompletionFeature = void 0;
@@ -9318,8 +9256,7 @@ var require_inlineCompletion = /* @__PURE__ */ __commonJSMin(((exports) => {
9318
9256
  };
9319
9257
  exports.InlineCompletionFeature = InlineCompletionFeature;
9320
9258
  }));
9321
- //#endregion
9322
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/textDocumentContent.js
9259
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/textDocumentContent.js
9323
9260
  var require_textDocumentContent = /* @__PURE__ */ __commonJSMin(((exports) => {
9324
9261
  Object.defineProperty(exports, "__esModule", { value: true });
9325
9262
  exports.TextDocumentContentFeature = void 0;
@@ -9342,8 +9279,7 @@ var require_textDocumentContent = /* @__PURE__ */ __commonJSMin(((exports) => {
9342
9279
  };
9343
9280
  exports.TextDocumentContentFeature = TextDocumentContentFeature;
9344
9281
  }));
9345
- //#endregion
9346
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/server.js
9282
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/server.js
9347
9283
  var require_server = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
9348
9284
  var __createBinding = this$6 && this$6.__createBinding || (Object.create ? (function(o, m, k, k2) {
9349
9285
  if (k2 === void 0) k2 = k;
@@ -10080,8 +10016,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) =>
10080
10016
  return protocolConnection;
10081
10017
  }
10082
10018
  }));
10083
- //#endregion
10084
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/node/files.js
10019
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/node/files.js
10085
10020
  var require_files = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
10086
10021
  var __createBinding = this$5 && this$5.__createBinding || (Object.create ? (function(o, m, k, k2) {
10087
10022
  if (k2 === void 0) k2 = k;
@@ -10320,8 +10255,7 @@ var require_files = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
10320
10255
  } else return resolve(moduleName, resolveGlobalNodePath(tracer), workspaceRoot, tracer);
10321
10256
  }
10322
10257
  }));
10323
- //#endregion
10324
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/node/ril.js
10258
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/node/ril.js
10325
10259
  var require_ril = /* @__PURE__ */ __commonJSMin(((exports) => {
10326
10260
  Object.defineProperty(exports, "__esModule", { value: true });
10327
10261
  const util_1 = __require("util");
@@ -10458,8 +10392,7 @@ var require_ril = /* @__PURE__ */ __commonJSMin(((exports) => {
10458
10392
  })(RIL || (RIL = {}));
10459
10393
  exports.default = RIL;
10460
10394
  }));
10461
- //#endregion
10462
- //#region ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/node/main.js
10395
+ // ../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/node/main.js
10463
10396
  var require_main$2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
10464
10397
  var __createBinding = this$4 && this$4.__createBinding || (Object.create ? (function(o, m, k, k2) {
10465
10398
  if (k2 === void 0) k2 = k;
@@ -10728,8 +10661,7 @@ var require_main$2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) =>
10728
10661
  return (0, api_1.createMessageConnection)(reader, writer, logger, options);
10729
10662
  }
10730
10663
  }));
10731
- //#endregion
10732
- //#region ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/node/main.js
10664
+ // ../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/node/main.js
10733
10665
  var require_main$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
10734
10666
  var __createBinding = this$3 && this$3.__createBinding || (Object.create ? (function(o, m, k, k2) {
10735
10667
  if (k2 === void 0) k2 = k;
@@ -10757,8 +10689,7 @@ var require_main$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) =>
10757
10689
  return (0, node_1.createMessageConnection)(input, output, logger, options);
10758
10690
  }
10759
10691
  }));
10760
- //#endregion
10761
- //#region ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/api.js
10692
+ // ../../node_modules/.pnpm/vscode-languageserver@10.1.2/node_modules/vscode-languageserver/lib/common/api.js
10762
10693
  var require_api = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
10763
10694
  var __createBinding = this$2 && this$2.__createBinding || (Object.create ? (function(o, m, k, k2) {
10764
10695
  if (k2 === void 0) k2 = k;
@@ -10814,8 +10745,7 @@ var require_api = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
10814
10745
  ProposedFeatures.all = { __brand: "features" };
10815
10746
  })(ProposedFeatures || (exports.ProposedFeatures = ProposedFeatures = {}));
10816
10747
  }));
10817
- //#endregion
10818
- //#region src/cli/lsp/text.ts
10748
+ // src/cli/lsp/text.ts
10819
10749
  var import_main = (/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
10820
10750
  var __createBinding = this$1 && this$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
10821
10751
  if (k2 === void 0) k2 = k;
@@ -11102,7 +11032,7 @@ function offsetOf(text, starts, line, column) {
11102
11032
  const next = index + 1 < starts.length ? starts[index + 1] - 1 : text.length;
11103
11033
  return Math.min(start + Math.max(column, 1) - 1, next);
11104
11034
  }
11105
- function positionOf(starts, offset) {
11035
+ function lspPosition(starts, offset) {
11106
11036
  let low = 0;
11107
11037
  let high = starts.length - 1;
11108
11038
  while (low < high) {
@@ -11119,12 +11049,12 @@ function positionOf(starts, offset) {
11119
11049
  function tokenRange(text, starts, line, column) {
11120
11050
  const start = offsetOf(text, starts, line, column);
11121
11051
  return {
11122
- start: positionOf(starts, start),
11123
- end: positionOf(starts, tokenEnd(text, start))
11052
+ start: lspPosition(starts, start),
11053
+ end: lspPosition(starts, tokenEnd(text, start))
11124
11054
  };
11125
11055
  }
11126
11056
  /** A whole 1-based line, without its indentation and line break. */
11127
- function lineRange(text, starts, line) {
11057
+ function lspLineRange(text, starts, line) {
11128
11058
  const index = Math.min(Math.max(line, 1), starts.length) - 1;
11129
11059
  const start = starts[index];
11130
11060
  let end = index + 1 < starts.length ? starts[index + 1] - 1 : text.length;
@@ -11165,7 +11095,7 @@ const REASONS = {
11165
11095
  };
11166
11096
  /** Why a locale's own entry is not used, in words. */
11167
11097
  function reasonText(reason) {
11168
- return REASONS[reason ?? "no-entry"] ?? reason;
11098
+ return REASONS[reason ?? "no-entry"];
11169
11099
  }
11170
11100
  /** The hover of one message: id, source, notes, then one table row per locale. */
11171
11101
  function hoverMarkdown(message) {
@@ -11197,8 +11127,7 @@ function hoverMarkdown(message) {
11197
11127
  function escapeMarkdown(text) {
11198
11128
  return text.replace(/[\\`*_{}[\]<>()#+!|]/g, "\\$&");
11199
11129
  }
11200
- //#endregion
11201
- //#region src/cli/lsp/workspace.ts
11130
+ // src/cli/lsp/workspace.ts
11202
11131
  /**
11203
11132
  * What the language server knows (INTERNALS §2.17): per `vi18n.config.ts`,
11204
11133
  * the resolved config and every locale's catalog index; per open document,
@@ -11260,7 +11189,7 @@ var LanguageWorkspace = class {
11260
11189
  });
11261
11190
  return { catalogChanged: false };
11262
11191
  }
11263
- const configFile = project.project.config.configFile;
11192
+ const { configFile } = project;
11264
11193
  const locale = project.catalogs.get(path);
11265
11194
  if (locale !== void 0) {
11266
11195
  const { index, diagnostics } = this.readOpenCatalog(project, locale, path, document.text);
@@ -11386,10 +11315,8 @@ var LanguageWorkspace = class {
11386
11315
  for (const uri of uris) {
11387
11316
  const path = filePath(uri);
11388
11317
  if (path === null) continue;
11389
- if (path.endsWith("/vi18n.config.ts") || path.endsWith("\\vi18n.config.ts")) {
11390
- this.configs.clear();
11391
- this.projects.clear();
11392
- this.states.clear();
11318
+ if (this.projects.has(path) || /[\\/]vi18n\.config\.ts$/.test(path)) {
11319
+ this.reset();
11393
11320
  return true;
11394
11321
  }
11395
11322
  for (const pending of this.projects.values()) {
@@ -11448,30 +11375,22 @@ var LanguageWorkspace = class {
11448
11375
  configFile
11449
11376
  });
11450
11377
  } catch (error) {
11451
- const message = isDiagnosticError(error) ? error.diagnostic.message : error instanceof Error ? error.message : String(error);
11378
+ const message = isDiagnosticError(error) ? error.diagnostic.message : errorMessage(error);
11452
11379
  this.options.log(`vi18n: ${configFile} could not be loaded: ${message}`);
11453
11380
  return null;
11454
11381
  }
11455
- const codec = createCodec(config.ids.length);
11456
- const project = {
11457
- config,
11458
- codec,
11459
- layout: catalogLayout(config)
11460
- };
11382
+ const project = projectOf(config);
11461
11383
  const state = {
11462
11384
  project,
11385
+ configFile,
11463
11386
  scan: scanConfig(config),
11464
11387
  catalogs: new Map(config.locales.map((locale) => [catalogPath(config, locale), locale])),
11465
11388
  indexes: /* @__PURE__ */ new Map(),
11466
11389
  overlays: /* @__PURE__ */ new Set()
11467
11390
  };
11468
- const loaded = await loadCatalogSet(config, codec);
11391
+ const loaded = await loadCatalogSet(config, project.codec);
11469
11392
  for (const diagnostic of loaded.diagnostics) if (diagnostic.severity === "error") this.options.log(`vi18n: ${diagnostic.message}`);
11470
- for (const locale of [config.sourceLocale, ...config.locales]) {
11471
- const read = loaded.set.get(locale);
11472
- if (read === void 0 || state.indexes.has(locale)) continue;
11473
- state.indexes.set(locale, indexCatalog(project, locale, read.path, read.catalog, read.hash));
11474
- }
11393
+ state.indexes = indexCatalogs(project, loaded.set);
11475
11394
  this.options.log(`vi18n: loaded ${configFile} (${config.locales.join(", ")})`);
11476
11395
  return state;
11477
11396
  }
@@ -11490,7 +11409,7 @@ var LanguageWorkspace = class {
11490
11409
  */
11491
11410
  readOpenCatalog(state, locale, path, text) {
11492
11411
  const { project } = state;
11493
- const { config, codec, layout } = project;
11412
+ const { config, layout } = project;
11494
11413
  const isSourceLocale = locale === config.sourceLocale;
11495
11414
  const read = parseCatalog(text, {
11496
11415
  locale,
@@ -11502,37 +11421,34 @@ var LanguageWorkspace = class {
11502
11421
  for (const entry of read.catalog.entries) syntaxOfEntry(found, entry, index.file, locale);
11503
11422
  const starts = lineStarts(text);
11504
11423
  const out = [];
11505
- for (const diagnostic of found) out.push(toLsp(diagnostic, lineRange(text, starts, diagnostic.line ?? 1)));
11506
- if (!isSourceLocale) for (const entry of read.catalog.entries) {
11507
- if (entry.translation === "" || entry.source === null || entry.foreignContext !== null) continue;
11508
- let source;
11509
- try {
11510
- source = codec.parse(codec.canonicalize(entry.source));
11511
- } catch (error) {
11512
- if (!isDiagnosticError(error)) throw error;
11513
- continue;
11514
- }
11515
- const range = lineRange(text, starts, translationLine(text, starts, entry.line, layout));
11516
- let parsed;
11517
- try {
11518
- parsed = codec.parse(entry.translation);
11519
- } catch (error) {
11520
- if (!isDiagnosticError(error)) throw error;
11521
- out.push(toLsp(error.diagnostic, range));
11522
- continue;
11523
- }
11524
- const options = {
11525
- locale,
11526
- text: entry.translation
11527
- };
11528
- if (entry.maxLength !== null) options.maxLength = entry.maxLength;
11529
- for (const diagnostic of validateTranslation(parsed, source, options)) out.push(toLsp(diagnostic, range));
11530
- }
11424
+ for (const diagnostic of found) out.push(toLsp(diagnostic, lspLineRange(text, starts, diagnostic.line ?? 1)));
11425
+ if (!isSourceLocale) for (const entry of read.catalog.entries) out.push(...this.entryDiagnostics(project, locale, entry, text, starts));
11531
11426
  return {
11532
11427
  index,
11533
11428
  diagnostics: out
11534
11429
  };
11535
11430
  }
11431
+ /** An open catalog entry's translation checked against the source the entry records. */
11432
+ entryDiagnostics(project, locale, entry, text, starts) {
11433
+ const { codec, layout } = project;
11434
+ if (entry.translation === "" || entry.source === null || entry.foreignContext !== null) return [];
11435
+ let source;
11436
+ try {
11437
+ source = codec.parse(codec.canonicalize(entry.source));
11438
+ } catch (error) {
11439
+ if (!isDiagnosticError(error)) throw error;
11440
+ return [];
11441
+ }
11442
+ const range = lspLineRange(text, starts, translationLine(text, starts, entry.line, layout));
11443
+ const checked = checkTranslation(codec, {
11444
+ translation: entry.translation,
11445
+ source,
11446
+ locale,
11447
+ maxLength: entry.maxLength
11448
+ });
11449
+ if (checked.parseError !== null) return [toLsp(checked.parseError, range)];
11450
+ return checked.findings.map((diagnostic) => toLsp(diagnostic, range));
11451
+ }
11536
11452
  /**
11537
11453
  * One message's translation diagnostics at its call site: one per locale
11538
11454
  * whose translation is invalid (`strict.invalid`), and one listing the
@@ -11635,8 +11551,7 @@ function filePath(uri) {
11635
11551
  return null;
11636
11552
  }
11637
11553
  }
11638
- //#endregion
11639
- //#region src/cli/lsp/server.ts
11554
+ // src/cli/lsp/server.ts
11640
11555
  /**
11641
11556
  * `vi18n lsp` (INTERNALS §2.17): the Language Server Protocol over a pair of
11642
11557
  * streams. Built on `vscode-languageserver`'s protocol connection rather than
@@ -11647,89 +11562,116 @@ function filePath(uri) {
11647
11562
  */
11648
11563
  /** Resolves with the exit code once the client exits or the input ends: 0 after a `shutdown` request, 1 otherwise (LSP). */
11649
11564
  function startLanguageServer(options) {
11650
- const delay = options.delay ?? 150;
11651
- const connection = (0, import_main.createProtocolConnection)(new import_main.StreamMessageReader(options.input), new import_main.StreamMessageWriter(options.output));
11652
- const log = (message) => {
11653
- connection.sendNotification(import_main.LogMessageNotification.type, {
11565
+ return new LanguageServer(options).done;
11566
+ }
11567
+ var LanguageServer = class {
11568
+ done;
11569
+ options;
11570
+ delay;
11571
+ connection;
11572
+ workspace;
11573
+ documents = /* @__PURE__ */ new Map();
11574
+ timers = /* @__PURE__ */ new Map();
11575
+ shutdown = false;
11576
+ watchedFiles = false;
11577
+ parentWatch;
11578
+ finished = false;
11579
+ resolveDone = () => {};
11580
+ onAbort = () => this.finish(this.shutdown ? 0 : 1);
11581
+ constructor(options) {
11582
+ this.options = options;
11583
+ this.delay = options.delay ?? 150;
11584
+ this.connection = (0, import_main.createProtocolConnection)(new import_main.StreamMessageReader(options.input), new import_main.StreamMessageWriter(options.output));
11585
+ this.workspace = new LanguageWorkspace({
11586
+ cwd: options.cwd,
11587
+ configFile: options.configFile,
11588
+ log: (message) => this.log(message)
11589
+ });
11590
+ this.done = new Promise((resolve) => {
11591
+ this.resolveDone = resolve;
11592
+ });
11593
+ options.signal?.addEventListener("abort", this.onAbort, { once: true });
11594
+ this.registerLifecycle();
11595
+ this.registerDocuments();
11596
+ this.registerRequests();
11597
+ this.connection.listen();
11598
+ }
11599
+ log(message) {
11600
+ this.connection.sendNotification(import_main.LogMessageNotification.type, {
11654
11601
  type: import_main.MessageType.Log,
11655
11602
  message
11656
11603
  });
11657
- };
11658
- const workspace = new LanguageWorkspace({
11659
- cwd: options.cwd,
11660
- configFile: options.configFile,
11661
- log
11662
- });
11663
- const documents = /* @__PURE__ */ new Map();
11664
- const timers = /* @__PURE__ */ new Map();
11665
- let shutdown = false;
11666
- let watchedFiles = false;
11667
- let parentWatch;
11668
- let finish = () => {};
11669
- const done = new Promise((resolve) => {
11670
- let finished = false;
11671
- finish = (code) => {
11672
- if (finished) return;
11673
- finished = true;
11674
- for (const timer of timers.values()) clearTimeout(timer);
11675
- timers.clear();
11676
- if (parentWatch !== void 0) clearInterval(parentWatch);
11677
- options.signal?.removeEventListener("abort", onAbort);
11678
- connection.dispose();
11679
- options.input.destroy?.();
11680
- resolve(code);
11681
- };
11682
- });
11683
- const onAbort = () => finish(shutdown ? 0 : 1);
11684
- options.signal?.addEventListener("abort", onAbort, { once: true });
11604
+ }
11605
+ finish(code) {
11606
+ if (this.finished) return;
11607
+ this.finished = true;
11608
+ for (const timer of this.timers.values()) clearTimeout(timer);
11609
+ this.timers.clear();
11610
+ if (this.parentWatch !== void 0) clearInterval(this.parentWatch);
11611
+ this.options.signal?.removeEventListener("abort", this.onAbort);
11612
+ this.connection.dispose();
11613
+ this.options.input.destroy?.();
11614
+ this.resolveDone(code);
11615
+ }
11685
11616
  /** Publishes one document's diagnostics, unless it was closed meanwhile. */
11686
- const publish = async (uri) => {
11687
- const document = documents.get(uri);
11617
+ async publish(uri) {
11618
+ const document = this.documents.get(uri);
11688
11619
  if (document === void 0) return;
11689
- const diagnostics = await workspace.diagnostics(uri);
11690
- if (documents.get(uri) !== document) return;
11691
- connection.sendNotification(import_main.PublishDiagnosticsNotification.type, {
11620
+ const diagnostics = await this.workspace.diagnostics(uri);
11621
+ if (this.documents.get(uri) !== document) return;
11622
+ this.connection.sendNotification(import_main.PublishDiagnosticsNotification.type, {
11692
11623
  uri,
11693
11624
  version: document.version,
11694
11625
  diagnostics
11695
11626
  });
11696
- };
11697
- const publishAll = async () => {
11698
- for (const uri of workspace.openUris()) {
11699
- await workspace.refresh(uri);
11700
- await publish(uri);
11627
+ }
11628
+ async publishAll() {
11629
+ for (const uri of this.workspace.openUris()) {
11630
+ await this.workspace.refresh(uri);
11631
+ await this.publish(uri);
11701
11632
  }
11702
- };
11633
+ }
11703
11634
  /** Re-analyses one document; a catalog edit changes every open document's diagnostics. */
11704
- const analyse = async (uri) => {
11635
+ async analyse(uri) {
11705
11636
  try {
11706
- const { catalogChanged } = await workspace.refresh(uri);
11707
- if (catalogChanged) await publishAll();
11708
- else await publish(uri);
11637
+ const { catalogChanged } = await this.workspace.refresh(uri);
11638
+ if (catalogChanged) await this.publishAll();
11639
+ else await this.publish(uri);
11709
11640
  } catch (error) {
11710
- log(`vi18n: ${uri}: ${error instanceof Error ? error.stack ?? error.message : String(error)}`);
11641
+ this.log(`vi18n: ${uri}: ${error instanceof Error ? error.stack ?? error.message : String(error)}`);
11711
11642
  }
11712
- };
11713
- const schedule = (uri) => {
11714
- const pending = timers.get(uri);
11715
- if (pending !== void 0) clearTimeout(pending);
11716
- timers.set(uri, setTimeout(() => {
11717
- timers.delete(uri);
11718
- analyse(uri);
11719
- }, delay));
11720
- };
11721
- connection.onRequest(import_main.InitializeRequest.type, (params) => {
11722
- watchedFiles = params.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration === true;
11643
+ }
11644
+ /** Drops a document's pending rescan; whether there was one. */
11645
+ cancelPending(uri) {
11646
+ const pending = this.timers.get(uri);
11647
+ if (pending === void 0) return false;
11648
+ clearTimeout(pending);
11649
+ this.timers.delete(uri);
11650
+ return true;
11651
+ }
11652
+ schedule(uri) {
11653
+ this.cancelPending(uri);
11654
+ this.timers.set(uri, setTimeout(() => {
11655
+ this.timers.delete(uri);
11656
+ this.analyse(uri);
11657
+ }, this.delay));
11658
+ }
11659
+ /** A pending rescan runs now: positions must match the text the client shows. */
11660
+ async settle(uri) {
11661
+ if (this.cancelPending(uri)) await this.analyse(uri);
11662
+ }
11663
+ initialize(params) {
11664
+ this.watchedFiles = params.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration === true;
11723
11665
  if (typeof params.processId === "number") {
11724
11666
  const pid = params.processId;
11725
- parentWatch = setInterval(() => {
11667
+ this.parentWatch = setInterval(() => {
11726
11668
  try {
11727
11669
  process.kill(pid, 0);
11728
11670
  } catch {
11729
- finish(1);
11671
+ this.finish(1);
11730
11672
  }
11731
11673
  }, 3e3);
11732
- parentWatch.unref();
11674
+ this.parentWatch.unref();
11733
11675
  }
11734
11676
  return {
11735
11677
  capabilities: {
@@ -11745,10 +11687,15 @@ function startLanguageServer(options) {
11745
11687
  version: VERSION
11746
11688
  }
11747
11689
  };
11748
- });
11749
- connection.onNotification(import_main.InitializedNotification.type, () => {
11750
- if (!watchedFiles) return;
11751
- connection.sendRequest(import_main.RegistrationRequest.type, { registrations: [{
11690
+ }
11691
+ /**
11692
+ * Catalogs and configs edited outside the editor (vi18n extract, git,
11693
+ * the dev server) reach the server as file events; JSON catalogs need
11694
+ * the broad pattern, and events for other files cost a map lookup.
11695
+ */
11696
+ watchFiles() {
11697
+ if (!this.watchedFiles) return;
11698
+ this.connection.sendRequest(import_main.RegistrationRequest.type, { registrations: [{
11752
11699
  id: "vi18n-watched-files",
11753
11700
  method: import_main.DidChangeWatchedFilesNotification.method,
11754
11701
  registerOptions: { watchers: [
@@ -11756,68 +11703,66 @@ function startLanguageServer(options) {
11756
11703
  { globPattern: "**/*.po" },
11757
11704
  { globPattern: "**/*.json" }
11758
11705
  ] }
11759
- }] }).catch((error) => log(`vi18n: file watching unavailable: ${String(error)}`));
11760
- });
11761
- connection.onRequest(import_main.ShutdownRequest.type, () => {
11762
- shutdown = true;
11763
- });
11764
- connection.onNotification(import_main.ExitNotification.type, () => finish(shutdown ? 0 : 1));
11765
- connection.onClose(() => setImmediate(() => finish(shutdown ? 0 : 1)));
11766
- connection.onNotification(import_main.DidOpenTextDocumentNotification.type, ({ textDocument }) => {
11767
- const document = TextDocument$1.create(textDocument.uri, textDocument.languageId, textDocument.version, textDocument.text);
11768
- documents.set(textDocument.uri, document);
11769
- workspace.open({
11770
- uri: document.uri,
11771
- version: document.version,
11772
- text: document.getText()
11706
+ }] }).catch((error) => this.log(`vi18n: file watching unavailable: ${String(error)}`));
11707
+ }
11708
+ registerLifecycle() {
11709
+ const { connection } = this;
11710
+ connection.onRequest(import_main.InitializeRequest.type, (params) => this.initialize(params));
11711
+ connection.onNotification(import_main.InitializedNotification.type, () => this.watchFiles());
11712
+ connection.onRequest(import_main.ShutdownRequest.type, () => {
11713
+ this.shutdown = true;
11773
11714
  });
11774
- analyse(textDocument.uri);
11775
- });
11776
- connection.onNotification(import_main.DidChangeTextDocumentNotification.type, ({ textDocument, contentChanges }) => {
11777
- const previous = documents.get(textDocument.uri);
11778
- if (previous === void 0) return;
11779
- const document = TextDocument$1.update(previous, contentChanges, textDocument.version);
11780
- documents.set(textDocument.uri, document);
11781
- workspace.open({
11782
- uri: document.uri,
11783
- version: document.version,
11784
- text: document.getText()
11715
+ connection.onNotification(import_main.ExitNotification.type, () => this.finish(this.shutdown ? 0 : 1));
11716
+ connection.onClose(() => setImmediate(() => this.finish(this.shutdown ? 0 : 1)));
11717
+ }
11718
+ registerDocuments() {
11719
+ const { connection, documents, workspace } = this;
11720
+ connection.onNotification(import_main.DidOpenTextDocumentNotification.type, ({ textDocument }) => {
11721
+ const document = TextDocument$1.create(textDocument.uri, textDocument.languageId, textDocument.version, textDocument.text);
11722
+ documents.set(textDocument.uri, document);
11723
+ workspace.open({
11724
+ uri: document.uri,
11725
+ version: document.version,
11726
+ text: document.getText()
11727
+ });
11728
+ this.analyse(textDocument.uri);
11785
11729
  });
11786
- schedule(textDocument.uri);
11787
- });
11788
- connection.onNotification(import_main.DidCloseTextDocumentNotification.type, ({ textDocument }) => {
11789
- const { uri } = textDocument;
11790
- documents.delete(uri);
11791
- const pending = timers.get(uri);
11792
- if (pending !== void 0) clearTimeout(pending);
11793
- timers.delete(uri);
11794
- connection.sendNotification(import_main.PublishDiagnosticsNotification.type, {
11795
- uri,
11796
- diagnostics: []
11730
+ connection.onNotification(import_main.DidChangeTextDocumentNotification.type, ({ textDocument, contentChanges }) => {
11731
+ const previous = documents.get(textDocument.uri);
11732
+ if (previous === void 0) return;
11733
+ const document = TextDocument$1.update(previous, contentChanges, textDocument.version);
11734
+ documents.set(textDocument.uri, document);
11735
+ workspace.open({
11736
+ uri: document.uri,
11737
+ version: document.version,
11738
+ text: document.getText()
11739
+ });
11740
+ this.schedule(textDocument.uri);
11797
11741
  });
11798
- workspace.close(uri).then((wasCatalog) => wasCatalog ? publishAll() : void 0);
11799
- });
11800
- connection.onNotification(import_main.DidChangeWatchedFilesNotification.type, ({ changes }) => {
11801
- workspace.filesChanged(changes.map((change) => change.uri)).then((changed) => changed ? publishAll() : void 0).catch((error) => log(`vi18n: ${String(error)}`));
11802
- });
11803
- connection.onRequest(import_main.HoverRequest.type, async ({ textDocument, position }) => {
11804
- await settle(textDocument.uri);
11805
- return workspace.hover(textDocument.uri, position);
11806
- });
11807
- connection.onRequest(import_main.DefinitionRequest.type, async ({ textDocument, position }) => {
11808
- await settle(textDocument.uri);
11809
- return workspace.definition(textDocument.uri, position);
11810
- });
11811
- /** A pending rescan runs now: positions must match the text the client shows. */
11812
- const settle = async (uri) => {
11813
- const pending = timers.get(uri);
11814
- if (pending === void 0) return;
11815
- clearTimeout(pending);
11816
- timers.delete(uri);
11817
- await analyse(uri);
11818
- };
11819
- connection.listen();
11820
- return done;
11821
- }
11822
- //#endregion
11742
+ connection.onNotification(import_main.DidCloseTextDocumentNotification.type, ({ textDocument }) => {
11743
+ const { uri } = textDocument;
11744
+ documents.delete(uri);
11745
+ this.cancelPending(uri);
11746
+ connection.sendNotification(import_main.PublishDiagnosticsNotification.type, {
11747
+ uri,
11748
+ diagnostics: []
11749
+ });
11750
+ workspace.close(uri).then((wasCatalog) => wasCatalog ? this.publishAll() : void 0).catch((error) => this.log(`vi18n: ${String(error)}`));
11751
+ });
11752
+ connection.onNotification(import_main.DidChangeWatchedFilesNotification.type, ({ changes }) => {
11753
+ workspace.filesChanged(changes.map((change) => change.uri)).then((changed) => changed ? this.publishAll() : void 0).catch((error) => this.log(`vi18n: ${String(error)}`));
11754
+ });
11755
+ }
11756
+ registerRequests() {
11757
+ const { connection, workspace } = this;
11758
+ connection.onRequest(import_main.HoverRequest.type, async ({ textDocument, position }) => {
11759
+ await this.settle(textDocument.uri);
11760
+ return workspace.hover(textDocument.uri, position);
11761
+ });
11762
+ connection.onRequest(import_main.DefinitionRequest.type, async ({ textDocument, position }) => {
11763
+ await this.settle(textDocument.uri);
11764
+ return workspace.definition(textDocument.uri, position);
11765
+ });
11766
+ }
11767
+ };
11823
11768
  export { startLanguageServer };