@ansible/ansible-ui-framework 2.4.2597 → 2.4.2599

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/index.js +44791 -148
  2. package/index.umd.cjs +258 -2173
  3. package/package.json +8 -6
  4. package/publish/index.d.ts +337 -148
  5. package/style.css +1 -1
  6. package/abap-BgxiW-yv.js +0 -1404
  7. package/apex-Ci_BavZh.js +0 -332
  8. package/assets/editor.worker-BKD3YLiN.js +0 -12
  9. package/assets/json.worker-D1dAtg0Q.js +0 -49
  10. package/assets/yaml.worker-DS47KmSZ.js +0 -476
  11. package/azcli-dfO4wGjy.js +0 -74
  12. package/bat-DD810Xk_.js +0 -106
  13. package/bicep-8OENIIxl.js +0 -108
  14. package/cameligo-NqPxsDwa.js +0 -180
  15. package/clojure-DuHkQIc1.js +0 -767
  16. package/coffee-B3cpF2mL.js +0 -238
  17. package/cpp-BJvlC8pp.js +0 -395
  18. package/csharp-B-mepg9G.js +0 -332
  19. package/csp-CZDIWMVF.js +0 -59
  20. package/css-CLWUu9O1.js +0 -193
  21. package/cssMode-BW_EgCuT.js +0 -1577
  22. package/cypher-DaPSdc0H.js +0 -269
  23. package/dart-Do9iT_o8.js +0 -287
  24. package/dockerfile-CbJBIDss.js +0 -136
  25. package/ecl-BqVPFR32.js +0 -462
  26. package/elixir-D1QTcrNJ.js +0 -575
  27. package/flow9-8noNFj4g.js +0 -148
  28. package/freemarker2-CZroC-2x.js +0 -995
  29. package/fsharp-C8jetu08.js +0 -223
  30. package/go-CwkaVtEf.js +0 -224
  31. package/graphql-CN0L02lB.js +0 -157
  32. package/handlebars-DdZaSSq2.js +0 -425
  33. package/hcl-B8DTUjkt.js +0 -189
  34. package/html-BStYWvMR.js +0 -314
  35. package/htmlMode-BZ30jslh.js +0 -1587
  36. package/index-_bG9dmst.js +0 -157805
  37. package/ini-BAHk9dez.js +0 -77
  38. package/java-BqU7F-WC.js +0 -238
  39. package/javascript-R1fkmvzs.js +0 -76
  40. package/jsonMode-B3D-ZZhn.js +0 -2002
  41. package/julia-7wzAFYJ_.js +0 -517
  42. package/kotlin-Ds6t9yxb.js +0 -259
  43. package/less-BsKXqSGe.js +0 -168
  44. package/lexon-CxjeM0Fy.js +0 -163
  45. package/liquid-COCYG7jZ.js +0 -246
  46. package/lua-CZeocWyu.js +0 -168
  47. package/m3-DrAa334y.js +0 -216
  48. package/markdown-BKScSdMX.js +0 -235
  49. package/mdx-CnriKNQ4.js +0 -171
  50. package/mips-C2kxK_Lk.js +0 -204
  51. package/msdax-CV-iM8Y9.js +0 -381
  52. package/mysql-0UKhlzQO.js +0 -884
  53. package/objective-c-CbKhSCGr.js +0 -189
  54. package/pascal-CP-K8RTj.js +0 -257
  55. package/pascaligo-DNS345Ec.js +0 -170
  56. package/perl-CU_O2Ux7.js +0 -632
  57. package/pgsql-CvE830Au.js +0 -857
  58. package/php-BvwPLbR6.js +0 -506
  59. package/pla-DJ8gwRb5.js +0 -143
  60. package/postiats-CGZof9No.js +0 -913
  61. package/powerquery-C7bI8brw.js +0 -896
  62. package/powershell-CmptSHHa.js +0 -245
  63. package/protobuf-CNFSy7mI.js +0 -426
  64. package/publish/abap-BgxiW-yv.d.ts +0 -63
  65. package/publish/apex-Ci_BavZh.d.ts +0 -65
  66. package/publish/assets/editor.worker-BKD3YLiN.d.ts +0 -0
  67. package/publish/assets/json.worker-D1dAtg0Q.d.ts +0 -3
  68. package/publish/assets/yaml.worker-DS47KmSZ.d.ts +0 -3
  69. package/publish/azcli-dfO4wGjy.d.ts +0 -47
  70. package/publish/bat-DD810Xk_.d.ts +0 -57
  71. package/publish/bicep-8OENIIxl.d.ts +0 -146
  72. package/publish/cameligo-NqPxsDwa.d.ts +0 -55
  73. package/publish/clojure-DuHkQIc1.d.ts +0 -50
  74. package/publish/coffee-B3cpF2mL.d.ts +0 -102
  75. package/publish/cpp-BJvlC8pp.d.ts +0 -83
  76. package/publish/csharp-B-mepg9G.d.ts +0 -113
  77. package/publish/csp-CZDIWMVF.d.ts +0 -17
  78. package/publish/css-CLWUu9O1.d.ts +0 -144
  79. package/publish/cssMode-BW_EgCuT.d.ts +0 -130
  80. package/publish/cypher-DaPSdc0H.d.ts +0 -65
  81. package/publish/dart-Do9iT_o8.d.ts +0 -83
  82. package/publish/dockerfile-CbJBIDss.d.ts +0 -73
  83. package/publish/ecl-BqVPFR32.d.ts +0 -60
  84. package/publish/elixir-D1QTcrNJ.d.ts +0 -307
  85. package/publish/flow9-8noNFj4g.d.ts +0 -45
  86. package/publish/freemarker2-CZroC-2x.d.ts +0 -1543
  87. package/publish/fsharp-C8jetu08.d.ts +0 -61
  88. package/publish/go-CwkaVtEf.d.ts +0 -51
  89. package/publish/graphql-CN0L02lB.d.ts +0 -75
  90. package/publish/handlebars-DdZaSSq2.d.ts +0 -176
  91. package/publish/hcl-B8DTUjkt.d.ts +0 -77
  92. package/publish/html-BStYWvMR.d.ts +0 -129
  93. package/publish/htmlMode-BZ30jslh.d.ts +0 -131
  94. package/publish/index-_bG9dmst.d.ts +0 -2914
  95. package/publish/ini-BAHk9dez.d.ts +0 -35
  96. package/publish/java-BqU7F-WC.d.ts +0 -57
  97. package/publish/javascript-R1fkmvzs.d.ts +0 -111
  98. package/publish/jsonMode-B3D-ZZhn.d.ts +0 -131
  99. package/publish/julia-7wzAFYJ_.d.ts +0 -92
  100. package/publish/kotlin-Ds6t9yxb.d.ts +0 -57
  101. package/publish/less-BsKXqSGe.d.ts +0 -88
  102. package/publish/lexon-CxjeM0Fy.d.ts +0 -81
  103. package/publish/liquid-COCYG7jZ.d.ts +0 -73
  104. package/publish/lua-CZeocWyu.d.ts +0 -66
  105. package/publish/m3-DrAa334y.d.ts +0 -63
  106. package/publish/markdown-BKScSdMX.d.ts +0 -129
  107. package/publish/mdx-CnriKNQ4.d.ts +0 -139
  108. package/publish/mips-C2kxK_Lk.d.ts +0 -79
  109. package/publish/msdax-CV-iM8Y9.d.ts +0 -68
  110. package/publish/mysql-0UKhlzQO.d.ts +0 -76
  111. package/publish/objective-c-CbKhSCGr.d.ts +0 -46
  112. package/publish/pascal-CP-K8RTj.d.ts +0 -62
  113. package/publish/pascaligo-DNS345Ec.d.ts +0 -55
  114. package/publish/perl-CU_O2Ux7.d.ts +0 -116
  115. package/publish/pgsql-CvE830Au.d.ts +0 -80
  116. package/publish/php-BvwPLbR6.d.ts +0 -193
  117. package/publish/pla-DJ8gwRb5.d.ts +0 -71
  118. package/publish/postiats-CGZof9No.d.ts +0 -212
  119. package/publish/powerquery-C7bI8brw.d.ts +0 -63
  120. package/publish/powershell-CmptSHHa.d.ts +0 -119
  121. package/publish/protobuf-CNFSy7mI.d.ts +0 -364
  122. package/publish/pug-CzItlbqs.d.ts +0 -170
  123. package/publish/python-8vPuu566.d.ts +0 -65
  124. package/publish/qsharp-C1B8howk.d.ts +0 -75
  125. package/publish/r-BTwZKg_d.d.ts +0 -77
  126. package/publish/razor-CtOmeuwi.d.ts +0 -194
  127. package/publish/redis-BUv7CvJd.d.ts +0 -63
  128. package/publish/redshift-jrBDFghq.d.ts +0 -80
  129. package/publish/restructuredtext-BxbR-VyS.d.ts +0 -69
  130. package/publish/ruby-B0TfnHZH.d.ts +0 -239
  131. package/publish/rust-D_saCUFK.d.ts +0 -94
  132. package/publish/sb-DcgiWk7t.d.ts +0 -54
  133. package/publish/scala-BfLWIEFR.d.ts +0 -135
  134. package/publish/scheme-CZaOrAgo.d.ts +0 -46
  135. package/publish/scss-Du10_18v.d.ts +0 -220
  136. package/publish/shell-D1p7ZuXl.d.ts +0 -53
  137. package/publish/solidity-DzIDOgno.d.ts +0 -50
  138. package/publish/sophia-BU-qT3RS.d.ts +0 -50
  139. package/publish/sparql-DVtIp1VH.d.ts +0 -47
  140. package/publish/sql-1GwNodTS.d.ts +0 -86
  141. package/publish/st-DPXgTepQ.d.ts +0 -87
  142. package/publish/swift-ZhwunzBf.d.ts +0 -80
  143. package/publish/systemverilog-CVvtzxud.d.ts +0 -109
  144. package/publish/tcl-CYCJd6bV.d.ts +0 -87
  145. package/publish/tsMode-BSdN2klD.d.ts +0 -436
  146. package/publish/twig-JIfYOL6u.d.ts +0 -135
  147. package/publish/typescript-DWjYWuYm.d.ts +0 -110
  148. package/publish/typespec-BH4BOGFR.d.ts +0 -146
  149. package/publish/vb-6Rp6KK9h.d.ts +0 -60
  150. package/publish/wgsl-kJTvkQmx.d.ts +0 -72
  151. package/publish/xml-BqVRyB3K.d.ts +0 -72
  152. package/publish/yaml-DEH8xqyy.d.ts +0 -87
  153. package/pug-CzItlbqs.js +0 -408
  154. package/python-8vPuu566.js +0 -307
  155. package/qsharp-C1B8howk.js +0 -307
  156. package/r-BTwZKg_d.js +0 -249
  157. package/razor-CtOmeuwi.js +0 -556
  158. package/redis-BUv7CvJd.js +0 -308
  159. package/redshift-jrBDFghq.js +0 -815
  160. package/restructuredtext-BxbR-VyS.js +0 -180
  161. package/ruby-B0TfnHZH.js +0 -517
  162. package/rust-D_saCUFK.js +0 -349
  163. package/sb-DcgiWk7t.js +0 -121
  164. package/scala-BfLWIEFR.js +0 -376
  165. package/scheme-CZaOrAgo.js +0 -114
  166. package/scss-Du10_18v.js +0 -268
  167. package/shell-D1p7ZuXl.js +0 -227
  168. package/solidity-DzIDOgno.js +0 -1373
  169. package/sophia-BU-qT3RS.js +0 -205
  170. package/sparql-DVtIp1VH.js +0 -207
  171. package/sql-1GwNodTS.js +0 -859
  172. package/st-DPXgTepQ.js +0 -422
  173. package/swift-ZhwunzBf.js +0 -318
  174. package/systemverilog-CVvtzxud.js +0 -582
  175. package/tcl-CYCJd6bV.js +0 -238
  176. package/tsMode-BSdN2klD.js +0 -895
  177. package/twig-JIfYOL6u.js +0 -398
  178. package/typescript-DWjYWuYm.js +0 -349
  179. package/typespec-BH4BOGFR.js +0 -123
  180. package/vb-6Rp6KK9h.js +0 -378
  181. package/wgsl-kJTvkQmx.js +0 -445
  182. package/xml-BqVRyB3K.js +0 -101
  183. package/yaml-DEH8xqyy.js +0 -212
@@ -1,895 +0,0 @@
1
- import { t as O, m as I } from "./index-_bG9dmst.js";
2
- /*!-----------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
5
- * Released under the MIT license
6
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
7
- *-----------------------------------------------------------------------------*/
8
- var N = Object.defineProperty, M = Object.getOwnPropertyDescriptor, R = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, E = (e, t, i, o) => {
9
- if (t && typeof t == "object" || typeof t == "function")
10
- for (let n of R(t))
11
- !K.call(e, n) && n !== i && N(e, n, { get: () => t[n], enumerable: !(o = M(t, n)) || o.enumerable });
12
- return e;
13
- }, H = (e, t, i) => (E(e, t, "default"), i), a = {};
14
- H(a, I);
15
- var V = class {
16
- constructor(e, t) {
17
- this._modeId = e, this._defaults = t, this._worker = null, this._client = null, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker()), this._updateExtraLibsToken = 0, this._extraLibsChangeListener = this._defaults.onDidExtraLibsChange(
18
- () => this._updateExtraLibs()
19
- );
20
- }
21
- dispose() {
22
- this._configChangeListener.dispose(), this._extraLibsChangeListener.dispose(), this._stopWorker();
23
- }
24
- _stopWorker() {
25
- this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
26
- }
27
- async _updateExtraLibs() {
28
- if (!this._worker)
29
- return;
30
- const e = ++this._updateExtraLibsToken, t = await this._worker.getProxy();
31
- this._updateExtraLibsToken === e && t.updateExtraLibs(this._defaults.getExtraLibs());
32
- }
33
- _getClient() {
34
- return this._client || (this._client = (async () => (this._worker = a.editor.createWebWorker({
35
- // module that exports the create() method and returns a `TypeScriptWorker` instance
36
- moduleId: "vs/language/typescript/tsWorker",
37
- label: this._modeId,
38
- keepIdleModels: !0,
39
- // passed in to the create() method
40
- createData: {
41
- compilerOptions: this._defaults.getCompilerOptions(),
42
- extraLibs: this._defaults.getExtraLibs(),
43
- customWorkerPath: this._defaults.workerOptions.customWorkerPath,
44
- inlayHintsOptions: this._defaults.inlayHintsOptions
45
- }
46
- }), this._defaults.getEagerModelSync() ? await this._worker.withSyncedResources(
47
- a.editor.getModels().filter((e) => e.getLanguageId() === this._modeId).map((e) => e.uri)
48
- ) : await this._worker.getProxy()))()), this._client;
49
- }
50
- async getLanguageServiceWorker(...e) {
51
- const t = await this._getClient();
52
- return this._worker && await this._worker.withSyncedResources(e), t;
53
- }
54
- }, r = {};
55
- r["lib.d.ts"] = !0;
56
- r["lib.decorators.d.ts"] = !0;
57
- r["lib.decorators.legacy.d.ts"] = !0;
58
- r["lib.dom.asynciterable.d.ts"] = !0;
59
- r["lib.dom.d.ts"] = !0;
60
- r["lib.dom.iterable.d.ts"] = !0;
61
- r["lib.es2015.collection.d.ts"] = !0;
62
- r["lib.es2015.core.d.ts"] = !0;
63
- r["lib.es2015.d.ts"] = !0;
64
- r["lib.es2015.generator.d.ts"] = !0;
65
- r["lib.es2015.iterable.d.ts"] = !0;
66
- r["lib.es2015.promise.d.ts"] = !0;
67
- r["lib.es2015.proxy.d.ts"] = !0;
68
- r["lib.es2015.reflect.d.ts"] = !0;
69
- r["lib.es2015.symbol.d.ts"] = !0;
70
- r["lib.es2015.symbol.wellknown.d.ts"] = !0;
71
- r["lib.es2016.array.include.d.ts"] = !0;
72
- r["lib.es2016.d.ts"] = !0;
73
- r["lib.es2016.full.d.ts"] = !0;
74
- r["lib.es2016.intl.d.ts"] = !0;
75
- r["lib.es2017.d.ts"] = !0;
76
- r["lib.es2017.date.d.ts"] = !0;
77
- r["lib.es2017.full.d.ts"] = !0;
78
- r["lib.es2017.intl.d.ts"] = !0;
79
- r["lib.es2017.object.d.ts"] = !0;
80
- r["lib.es2017.sharedmemory.d.ts"] = !0;
81
- r["lib.es2017.string.d.ts"] = !0;
82
- r["lib.es2017.typedarrays.d.ts"] = !0;
83
- r["lib.es2018.asyncgenerator.d.ts"] = !0;
84
- r["lib.es2018.asynciterable.d.ts"] = !0;
85
- r["lib.es2018.d.ts"] = !0;
86
- r["lib.es2018.full.d.ts"] = !0;
87
- r["lib.es2018.intl.d.ts"] = !0;
88
- r["lib.es2018.promise.d.ts"] = !0;
89
- r["lib.es2018.regexp.d.ts"] = !0;
90
- r["lib.es2019.array.d.ts"] = !0;
91
- r["lib.es2019.d.ts"] = !0;
92
- r["lib.es2019.full.d.ts"] = !0;
93
- r["lib.es2019.intl.d.ts"] = !0;
94
- r["lib.es2019.object.d.ts"] = !0;
95
- r["lib.es2019.string.d.ts"] = !0;
96
- r["lib.es2019.symbol.d.ts"] = !0;
97
- r["lib.es2020.bigint.d.ts"] = !0;
98
- r["lib.es2020.d.ts"] = !0;
99
- r["lib.es2020.date.d.ts"] = !0;
100
- r["lib.es2020.full.d.ts"] = !0;
101
- r["lib.es2020.intl.d.ts"] = !0;
102
- r["lib.es2020.number.d.ts"] = !0;
103
- r["lib.es2020.promise.d.ts"] = !0;
104
- r["lib.es2020.sharedmemory.d.ts"] = !0;
105
- r["lib.es2020.string.d.ts"] = !0;
106
- r["lib.es2020.symbol.wellknown.d.ts"] = !0;
107
- r["lib.es2021.d.ts"] = !0;
108
- r["lib.es2021.full.d.ts"] = !0;
109
- r["lib.es2021.intl.d.ts"] = !0;
110
- r["lib.es2021.promise.d.ts"] = !0;
111
- r["lib.es2021.string.d.ts"] = !0;
112
- r["lib.es2021.weakref.d.ts"] = !0;
113
- r["lib.es2022.array.d.ts"] = !0;
114
- r["lib.es2022.d.ts"] = !0;
115
- r["lib.es2022.error.d.ts"] = !0;
116
- r["lib.es2022.full.d.ts"] = !0;
117
- r["lib.es2022.intl.d.ts"] = !0;
118
- r["lib.es2022.object.d.ts"] = !0;
119
- r["lib.es2022.regexp.d.ts"] = !0;
120
- r["lib.es2022.sharedmemory.d.ts"] = !0;
121
- r["lib.es2022.string.d.ts"] = !0;
122
- r["lib.es2023.array.d.ts"] = !0;
123
- r["lib.es2023.collection.d.ts"] = !0;
124
- r["lib.es2023.d.ts"] = !0;
125
- r["lib.es2023.full.d.ts"] = !0;
126
- r["lib.es5.d.ts"] = !0;
127
- r["lib.es6.d.ts"] = !0;
128
- r["lib.esnext.collection.d.ts"] = !0;
129
- r["lib.esnext.d.ts"] = !0;
130
- r["lib.esnext.decorators.d.ts"] = !0;
131
- r["lib.esnext.disposable.d.ts"] = !0;
132
- r["lib.esnext.full.d.ts"] = !0;
133
- r["lib.esnext.intl.d.ts"] = !0;
134
- r["lib.esnext.object.d.ts"] = !0;
135
- r["lib.esnext.promise.d.ts"] = !0;
136
- r["lib.scripthost.d.ts"] = !0;
137
- r["lib.webworker.asynciterable.d.ts"] = !0;
138
- r["lib.webworker.d.ts"] = !0;
139
- r["lib.webworker.importscripts.d.ts"] = !0;
140
- r["lib.webworker.iterable.d.ts"] = !0;
141
- function D(e, t, i = 0) {
142
- if (typeof e == "string")
143
- return e;
144
- if (e === void 0)
145
- return "";
146
- let o = "";
147
- if (i) {
148
- o += t;
149
- for (let n = 0; n < i; n++)
150
- o += " ";
151
- }
152
- if (o += e.messageText, i++, e.next)
153
- for (const n of e.next)
154
- o += D(n, t, i);
155
- return o;
156
- }
157
- function w(e) {
158
- return e ? e.map((t) => t.text).join("") : "";
159
- }
160
- var _ = class {
161
- constructor(e) {
162
- this._worker = e;
163
- }
164
- // protected _positionToOffset(model: editor.ITextModel, position: monaco.IPosition): number {
165
- // return model.getOffsetAt(position);
166
- // }
167
- // protected _offsetToPosition(model: editor.ITextModel, offset: number): monaco.IPosition {
168
- // return model.getPositionAt(offset);
169
- // }
170
- _textSpanToRange(e, t) {
171
- let i = e.getPositionAt(t.start), o = e.getPositionAt(t.start + t.length), { lineNumber: n, column: c } = i, { lineNumber: u, column: s } = o;
172
- return { startLineNumber: n, startColumn: c, endLineNumber: u, endColumn: s };
173
- }
174
- }, W = class {
175
- constructor(e) {
176
- this._worker = e, this._libFiles = {}, this._hasFetchedLibFiles = !1, this._fetchLibFilesPromise = null;
177
- }
178
- isLibFile(e) {
179
- return e && e.path.indexOf("/lib.") === 0 ? !!r[e.path.slice(1)] : !1;
180
- }
181
- getOrCreateModel(e) {
182
- const t = a.Uri.parse(e), i = a.editor.getModel(t);
183
- if (i)
184
- return i;
185
- if (this.isLibFile(t) && this._hasFetchedLibFiles)
186
- return a.editor.createModel(this._libFiles[t.path.slice(1)], "typescript", t);
187
- const o = O.getExtraLibs()[e];
188
- return o ? a.editor.createModel(o.content, "typescript", t) : null;
189
- }
190
- _containsLibFile(e) {
191
- for (let t of e)
192
- if (this.isLibFile(t))
193
- return !0;
194
- return !1;
195
- }
196
- async fetchLibFilesIfNecessary(e) {
197
- this._containsLibFile(e) && await this._fetchLibFiles();
198
- }
199
- _fetchLibFiles() {
200
- return this._fetchLibFilesPromise || (this._fetchLibFilesPromise = this._worker().then((e) => e.getLibFiles()).then((e) => {
201
- this._hasFetchedLibFiles = !0, this._libFiles = e;
202
- })), this._fetchLibFilesPromise;
203
- }
204
- }, j = class extends _ {
205
- constructor(e, t, i, o) {
206
- super(o), this._libFiles = e, this._defaults = t, this._selector = i, this._disposables = [], this._listener = /* @__PURE__ */ Object.create(null);
207
- const n = (s) => {
208
- if (s.getLanguageId() !== i)
209
- return;
210
- const l = () => {
211
- const { onlyVisible: h } = this._defaults.getDiagnosticsOptions();
212
- h ? s.isAttachedToEditor() && this._doValidate(s) : this._doValidate(s);
213
- };
214
- let g;
215
- const d = s.onDidChangeContent(() => {
216
- clearTimeout(g), g = window.setTimeout(l, 500);
217
- }), b = s.onDidChangeAttached(() => {
218
- const { onlyVisible: h } = this._defaults.getDiagnosticsOptions();
219
- h && (s.isAttachedToEditor() ? l() : a.editor.setModelMarkers(s, this._selector, []));
220
- });
221
- this._listener[s.uri.toString()] = {
222
- dispose() {
223
- d.dispose(), b.dispose(), clearTimeout(g);
224
- }
225
- }, l();
226
- }, c = (s) => {
227
- a.editor.setModelMarkers(s, this._selector, []);
228
- const l = s.uri.toString();
229
- this._listener[l] && (this._listener[l].dispose(), delete this._listener[l]);
230
- };
231
- this._disposables.push(
232
- a.editor.onDidCreateModel((s) => n(s))
233
- ), this._disposables.push(a.editor.onWillDisposeModel(c)), this._disposables.push(
234
- a.editor.onDidChangeModelLanguage((s) => {
235
- c(s.model), n(s.model);
236
- })
237
- ), this._disposables.push({
238
- dispose() {
239
- for (const s of a.editor.getModels())
240
- c(s);
241
- }
242
- });
243
- const u = () => {
244
- for (const s of a.editor.getModels())
245
- c(s), n(s);
246
- };
247
- this._disposables.push(this._defaults.onDidChange(u)), this._disposables.push(this._defaults.onDidExtraLibsChange(u)), a.editor.getModels().forEach((s) => n(s));
248
- }
249
- dispose() {
250
- this._disposables.forEach((e) => e && e.dispose()), this._disposables = [];
251
- }
252
- async _doValidate(e) {
253
- const t = await this._worker(e.uri);
254
- if (e.isDisposed())
255
- return;
256
- const i = [], { noSyntaxValidation: o, noSemanticValidation: n, noSuggestionDiagnostics: c } = this._defaults.getDiagnosticsOptions();
257
- o || i.push(t.getSyntacticDiagnostics(e.uri.toString())), n || i.push(t.getSemanticDiagnostics(e.uri.toString())), c || i.push(t.getSuggestionDiagnostics(e.uri.toString()));
258
- const u = await Promise.all(i);
259
- if (!u || e.isDisposed())
260
- return;
261
- const s = u.reduce((g, d) => d.concat(g), []).filter(
262
- (g) => (this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore || []).indexOf(g.code) === -1
263
- ), l = s.map((g) => g.relatedInformation || []).reduce((g, d) => d.concat(g), []).map(
264
- (g) => g.file ? a.Uri.parse(g.file.fileName) : null
265
- );
266
- await this._libFiles.fetchLibFilesIfNecessary(l), !e.isDisposed() && a.editor.setModelMarkers(
267
- e,
268
- this._selector,
269
- s.map((g) => this._convertDiagnostics(e, g))
270
- );
271
- }
272
- _convertDiagnostics(e, t) {
273
- const i = t.start || 0, o = t.length || 1, { lineNumber: n, column: c } = e.getPositionAt(i), { lineNumber: u, column: s } = e.getPositionAt(
274
- i + o
275
- ), l = [];
276
- return t.reportsUnnecessary && l.push(a.MarkerTag.Unnecessary), t.reportsDeprecated && l.push(a.MarkerTag.Deprecated), {
277
- severity: this._tsDiagnosticCategoryToMarkerSeverity(t.category),
278
- startLineNumber: n,
279
- startColumn: c,
280
- endLineNumber: u,
281
- endColumn: s,
282
- message: D(t.messageText, `
283
- `),
284
- code: t.code.toString(),
285
- tags: l,
286
- relatedInformation: this._convertRelatedInformation(e, t.relatedInformation)
287
- };
288
- }
289
- _convertRelatedInformation(e, t) {
290
- if (!t)
291
- return [];
292
- const i = [];
293
- return t.forEach((o) => {
294
- let n = e;
295
- if (o.file && (n = this._libFiles.getOrCreateModel(o.file.fileName)), !n)
296
- return;
297
- const c = o.start || 0, u = o.length || 1, { lineNumber: s, column: l } = n.getPositionAt(c), { lineNumber: g, column: d } = n.getPositionAt(
298
- c + u
299
- );
300
- i.push({
301
- resource: n.uri,
302
- startLineNumber: s,
303
- startColumn: l,
304
- endLineNumber: g,
305
- endColumn: d,
306
- message: D(o.messageText, `
307
- `)
308
- });
309
- }), i;
310
- }
311
- _tsDiagnosticCategoryToMarkerSeverity(e) {
312
- switch (e) {
313
- case 1:
314
- return a.MarkerSeverity.Error;
315
- case 3:
316
- return a.MarkerSeverity.Info;
317
- case 0:
318
- return a.MarkerSeverity.Warning;
319
- case 2:
320
- return a.MarkerSeverity.Hint;
321
- }
322
- return a.MarkerSeverity.Info;
323
- }
324
- }, B = class C extends _ {
325
- get triggerCharacters() {
326
- return ["."];
327
- }
328
- async provideCompletionItems(t, i, o, n) {
329
- const c = t.getWordUntilPosition(i), u = new a.Range(
330
- i.lineNumber,
331
- c.startColumn,
332
- i.lineNumber,
333
- c.endColumn
334
- ), s = t.uri, l = t.getOffsetAt(i), g = await this._worker(s);
335
- if (t.isDisposed())
336
- return;
337
- const d = await g.getCompletionsAtPosition(s.toString(), l);
338
- return !d || t.isDisposed() ? void 0 : {
339
- suggestions: d.entries.map((h) => {
340
- let y = u;
341
- if (h.replacementSpan) {
342
- const S = t.getPositionAt(h.replacementSpan.start), x = t.getPositionAt(h.replacementSpan.start + h.replacementSpan.length);
343
- y = new a.Range(S.lineNumber, S.column, x.lineNumber, x.column);
344
- }
345
- const v = [];
346
- return h.kindModifiers !== void 0 && h.kindModifiers.indexOf("deprecated") !== -1 && v.push(a.languages.CompletionItemTag.Deprecated), {
347
- uri: s,
348
- position: i,
349
- offset: l,
350
- range: y,
351
- label: h.name,
352
- insertText: h.name,
353
- sortText: h.sortText,
354
- kind: C.convertKind(h.kind),
355
- tags: v
356
- };
357
- })
358
- };
359
- }
360
- async resolveCompletionItem(t, i) {
361
- const o = t, n = o.uri, c = o.position, u = o.offset, l = await (await this._worker(n)).getCompletionEntryDetails(
362
- n.toString(),
363
- u,
364
- o.label
365
- );
366
- return l ? {
367
- uri: n,
368
- position: c,
369
- label: l.name,
370
- kind: C.convertKind(l.kind),
371
- detail: w(l.displayParts),
372
- documentation: {
373
- value: C.createDocumentationString(l)
374
- }
375
- } : o;
376
- }
377
- static convertKind(t) {
378
- switch (t) {
379
- case f.primitiveType:
380
- case f.keyword:
381
- return a.languages.CompletionItemKind.Keyword;
382
- case f.variable:
383
- case f.localVariable:
384
- return a.languages.CompletionItemKind.Variable;
385
- case f.memberVariable:
386
- case f.memberGetAccessor:
387
- case f.memberSetAccessor:
388
- return a.languages.CompletionItemKind.Field;
389
- case f.function:
390
- case f.memberFunction:
391
- case f.constructSignature:
392
- case f.callSignature:
393
- case f.indexSignature:
394
- return a.languages.CompletionItemKind.Function;
395
- case f.enum:
396
- return a.languages.CompletionItemKind.Enum;
397
- case f.module:
398
- return a.languages.CompletionItemKind.Module;
399
- case f.class:
400
- return a.languages.CompletionItemKind.Class;
401
- case f.interface:
402
- return a.languages.CompletionItemKind.Interface;
403
- case f.warning:
404
- return a.languages.CompletionItemKind.File;
405
- }
406
- return a.languages.CompletionItemKind.Property;
407
- }
408
- static createDocumentationString(t) {
409
- let i = w(t.documentation);
410
- if (t.tags)
411
- for (const o of t.tags)
412
- i += `
413
-
414
- ${T(o)}`;
415
- return i;
416
- }
417
- };
418
- function T(e) {
419
- let t = `*@${e.name}*`;
420
- if (e.name === "param" && e.text) {
421
- const [i, ...o] = e.text;
422
- t += `\`${i.text}\``, o.length > 0 && (t += ` — ${o.map((n) => n.text).join(" ")}`);
423
- } else Array.isArray(e.text) ? t += ` — ${e.text.map((i) => i.text).join(" ")}` : e.text && (t += ` — ${e.text}`);
424
- return t;
425
- }
426
- var U = class P extends _ {
427
- constructor() {
428
- super(...arguments), this.signatureHelpTriggerCharacters = ["(", ","];
429
- }
430
- static _toSignatureHelpTriggerReason(t) {
431
- switch (t.triggerKind) {
432
- case a.languages.SignatureHelpTriggerKind.TriggerCharacter:
433
- return t.triggerCharacter ? t.isRetrigger ? { kind: "retrigger", triggerCharacter: t.triggerCharacter } : { kind: "characterTyped", triggerCharacter: t.triggerCharacter } : { kind: "invoked" };
434
- case a.languages.SignatureHelpTriggerKind.ContentChange:
435
- return t.isRetrigger ? { kind: "retrigger" } : { kind: "invoked" };
436
- case a.languages.SignatureHelpTriggerKind.Invoke:
437
- default:
438
- return { kind: "invoked" };
439
- }
440
- }
441
- async provideSignatureHelp(t, i, o, n) {
442
- const c = t.uri, u = t.getOffsetAt(i), s = await this._worker(c);
443
- if (t.isDisposed())
444
- return;
445
- const l = await s.getSignatureHelpItems(c.toString(), u, {
446
- triggerReason: P._toSignatureHelpTriggerReason(n)
447
- });
448
- if (!l || t.isDisposed())
449
- return;
450
- const g = {
451
- activeSignature: l.selectedItemIndex,
452
- activeParameter: l.argumentIndex,
453
- signatures: []
454
- };
455
- return l.items.forEach((d) => {
456
- const b = {
457
- label: "",
458
- parameters: []
459
- };
460
- b.documentation = {
461
- value: w(d.documentation)
462
- }, b.label += w(d.prefixDisplayParts), d.parameters.forEach((h, y, v) => {
463
- const S = w(h.displayParts), x = {
464
- label: S,
465
- documentation: {
466
- value: w(h.documentation)
467
- }
468
- };
469
- b.label += S, b.parameters.push(x), y < v.length - 1 && (b.label += w(d.separatorDisplayParts));
470
- }), b.label += w(d.suffixDisplayParts), g.signatures.push(b);
471
- }), {
472
- value: g,
473
- dispose() {
474
- }
475
- };
476
- }
477
- }, $ = class extends _ {
478
- async provideHover(e, t, i) {
479
- const o = e.uri, n = e.getOffsetAt(t), c = await this._worker(o);
480
- if (e.isDisposed())
481
- return;
482
- const u = await c.getQuickInfoAtPosition(o.toString(), n);
483
- if (!u || e.isDisposed())
484
- return;
485
- const s = w(u.documentation), l = u.tags ? u.tags.map((d) => T(d)).join(`
486
-
487
- `) : "", g = w(u.displayParts);
488
- return {
489
- range: this._textSpanToRange(e, u.textSpan),
490
- contents: [
491
- {
492
- value: "```typescript\n" + g + "\n```\n"
493
- },
494
- {
495
- value: s + (l ? `
496
-
497
- ` + l : "")
498
- }
499
- ]
500
- };
501
- }
502
- }, z = class extends _ {
503
- async provideDocumentHighlights(e, t, i) {
504
- const o = e.uri, n = e.getOffsetAt(t), c = await this._worker(o);
505
- if (e.isDisposed())
506
- return;
507
- const u = await c.getDocumentHighlights(o.toString(), n, [
508
- o.toString()
509
- ]);
510
- if (!(!u || e.isDisposed()))
511
- return u.flatMap((s) => s.highlightSpans.map((l) => ({
512
- range: this._textSpanToRange(e, l.textSpan),
513
- kind: l.kind === "writtenReference" ? a.languages.DocumentHighlightKind.Write : a.languages.DocumentHighlightKind.Text
514
- })));
515
- }
516
- }, G = class extends _ {
517
- constructor(e, t) {
518
- super(t), this._libFiles = e;
519
- }
520
- async provideDefinition(e, t, i) {
521
- const o = e.uri, n = e.getOffsetAt(t), c = await this._worker(o);
522
- if (e.isDisposed())
523
- return;
524
- const u = await c.getDefinitionAtPosition(o.toString(), n);
525
- if (!u || e.isDisposed() || (await this._libFiles.fetchLibFilesIfNecessary(
526
- u.map((l) => a.Uri.parse(l.fileName))
527
- ), e.isDisposed()))
528
- return;
529
- const s = [];
530
- for (let l of u) {
531
- const g = this._libFiles.getOrCreateModel(l.fileName);
532
- g && s.push({
533
- uri: g.uri,
534
- range: this._textSpanToRange(g, l.textSpan)
535
- });
536
- }
537
- return s;
538
- }
539
- }, J = class extends _ {
540
- constructor(e, t) {
541
- super(t), this._libFiles = e;
542
- }
543
- async provideReferences(e, t, i, o) {
544
- const n = e.uri, c = e.getOffsetAt(t), u = await this._worker(n);
545
- if (e.isDisposed())
546
- return;
547
- const s = await u.getReferencesAtPosition(n.toString(), c);
548
- if (!s || e.isDisposed() || (await this._libFiles.fetchLibFilesIfNecessary(
549
- s.map((g) => a.Uri.parse(g.fileName))
550
- ), e.isDisposed()))
551
- return;
552
- const l = [];
553
- for (let g of s) {
554
- const d = this._libFiles.getOrCreateModel(g.fileName);
555
- d && l.push({
556
- uri: d.uri,
557
- range: this._textSpanToRange(d, g.textSpan)
558
- });
559
- }
560
- return l;
561
- }
562
- }, Q = class extends _ {
563
- async provideDocumentSymbols(e, t) {
564
- const i = e.uri, o = await this._worker(i);
565
- if (e.isDisposed())
566
- return;
567
- const n = await o.getNavigationTree(i.toString());
568
- if (!n || e.isDisposed())
569
- return;
570
- const c = (s, l) => {
571
- var d;
572
- return {
573
- name: s.text,
574
- detail: "",
575
- kind: m[s.kind] || a.languages.SymbolKind.Variable,
576
- range: this._textSpanToRange(e, s.spans[0]),
577
- selectionRange: this._textSpanToRange(e, s.spans[0]),
578
- tags: [],
579
- children: (d = s.childItems) == null ? void 0 : d.map((b) => c(b, s.text)),
580
- containerName: l
581
- };
582
- };
583
- return n.childItems ? n.childItems.map((s) => c(s)) : [];
584
- }
585
- }, p, f = (p = class {
586
- }, p.unknown = "", p.keyword = "keyword", p.script = "script", p.module = "module", p.class = "class", p.interface = "interface", p.type = "type", p.enum = "enum", p.variable = "var", p.localVariable = "local var", p.function = "function", p.localFunction = "local function", p.memberFunction = "method", p.memberGetAccessor = "getter", p.memberSetAccessor = "setter", p.memberVariable = "property", p.constructorImplementation = "constructor", p.callSignature = "call", p.indexSignature = "index", p.constructSignature = "construct", p.parameter = "parameter", p.typeParameter = "type parameter", p.primitiveType = "primitive type", p.label = "label", p.alias = "alias", p.const = "const", p.let = "let", p.warning = "warning", p), m = /* @__PURE__ */ Object.create(null);
587
- m[f.module] = a.languages.SymbolKind.Module;
588
- m[f.class] = a.languages.SymbolKind.Class;
589
- m[f.enum] = a.languages.SymbolKind.Enum;
590
- m[f.interface] = a.languages.SymbolKind.Interface;
591
- m[f.memberFunction] = a.languages.SymbolKind.Method;
592
- m[f.memberVariable] = a.languages.SymbolKind.Property;
593
- m[f.memberGetAccessor] = a.languages.SymbolKind.Property;
594
- m[f.memberSetAccessor] = a.languages.SymbolKind.Property;
595
- m[f.variable] = a.languages.SymbolKind.Variable;
596
- m[f.const] = a.languages.SymbolKind.Variable;
597
- m[f.localVariable] = a.languages.SymbolKind.Variable;
598
- m[f.variable] = a.languages.SymbolKind.Variable;
599
- m[f.function] = a.languages.SymbolKind.Function;
600
- m[f.localFunction] = a.languages.SymbolKind.Function;
601
- var k = class extends _ {
602
- static _convertOptions(e) {
603
- return {
604
- ConvertTabsToSpaces: e.insertSpaces,
605
- TabSize: e.tabSize,
606
- IndentSize: e.tabSize,
607
- IndentStyle: 2,
608
- NewLineCharacter: `
609
- `,
610
- InsertSpaceAfterCommaDelimiter: !0,
611
- InsertSpaceAfterSemicolonInForStatements: !0,
612
- InsertSpaceBeforeAndAfterBinaryOperators: !0,
613
- InsertSpaceAfterKeywordsInControlFlowStatements: !0,
614
- InsertSpaceAfterFunctionKeywordForAnonymousFunctions: !0,
615
- InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: !1,
616
- InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: !1,
617
- InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: !1,
618
- PlaceOpenBraceOnNewLineForControlBlocks: !1,
619
- PlaceOpenBraceOnNewLineForFunctions: !1
620
- };
621
- }
622
- _convertTextChanges(e, t) {
623
- return {
624
- text: t.newText,
625
- range: this._textSpanToRange(e, t.span)
626
- };
627
- }
628
- }, q = class extends k {
629
- constructor() {
630
- super(...arguments), this.canFormatMultipleRanges = !1;
631
- }
632
- async provideDocumentRangeFormattingEdits(e, t, i, o) {
633
- const n = e.uri, c = e.getOffsetAt({
634
- lineNumber: t.startLineNumber,
635
- column: t.startColumn
636
- }), u = e.getOffsetAt({
637
- lineNumber: t.endLineNumber,
638
- column: t.endColumn
639
- }), s = await this._worker(n);
640
- if (e.isDisposed())
641
- return;
642
- const l = await s.getFormattingEditsForRange(
643
- n.toString(),
644
- c,
645
- u,
646
- k._convertOptions(i)
647
- );
648
- if (!(!l || e.isDisposed()))
649
- return l.map((g) => this._convertTextChanges(e, g));
650
- }
651
- }, X = class extends k {
652
- get autoFormatTriggerCharacters() {
653
- return [";", "}", `
654
- `];
655
- }
656
- async provideOnTypeFormattingEdits(e, t, i, o, n) {
657
- const c = e.uri, u = e.getOffsetAt(t), s = await this._worker(c);
658
- if (e.isDisposed())
659
- return;
660
- const l = await s.getFormattingEditsAfterKeystroke(
661
- c.toString(),
662
- u,
663
- i,
664
- k._convertOptions(o)
665
- );
666
- if (!(!l || e.isDisposed()))
667
- return l.map((g) => this._convertTextChanges(e, g));
668
- }
669
- }, Y = class extends k {
670
- async provideCodeActions(e, t, i, o) {
671
- const n = e.uri, c = e.getOffsetAt({
672
- lineNumber: t.startLineNumber,
673
- column: t.startColumn
674
- }), u = e.getOffsetAt({
675
- lineNumber: t.endLineNumber,
676
- column: t.endColumn
677
- }), s = k._convertOptions(e.getOptions()), l = i.markers.filter((h) => h.code).map((h) => h.code).map(Number), g = await this._worker(n);
678
- if (e.isDisposed())
679
- return;
680
- const d = await g.getCodeFixesAtPosition(
681
- n.toString(),
682
- c,
683
- u,
684
- l,
685
- s
686
- );
687
- return !d || e.isDisposed() ? { actions: [], dispose: () => {
688
- } } : {
689
- actions: d.filter((h) => h.changes.filter((y) => y.isNewFile).length === 0).map((h) => this._tsCodeFixActionToMonacoCodeAction(e, i, h)),
690
- dispose: () => {
691
- }
692
- };
693
- }
694
- _tsCodeFixActionToMonacoCodeAction(e, t, i) {
695
- const o = [];
696
- for (const c of i.changes)
697
- for (const u of c.textChanges)
698
- o.push({
699
- resource: e.uri,
700
- versionId: void 0,
701
- textEdit: {
702
- range: this._textSpanToRange(e, u.span),
703
- text: u.newText
704
- }
705
- });
706
- return {
707
- title: i.description,
708
- edit: { edits: o },
709
- diagnostics: t.markers,
710
- kind: "quickfix"
711
- };
712
- }
713
- }, Z = class extends _ {
714
- constructor(e, t) {
715
- super(t), this._libFiles = e;
716
- }
717
- async provideRenameEdits(e, t, i, o) {
718
- const n = e.uri, c = n.toString(), u = e.getOffsetAt(t), s = await this._worker(n);
719
- if (e.isDisposed())
720
- return;
721
- const l = await s.getRenameInfo(c, u, {
722
- allowRenameOfImportPath: !1
723
- });
724
- if (l.canRename === !1)
725
- return {
726
- edits: [],
727
- rejectReason: l.localizedErrorMessage
728
- };
729
- if (l.fileToRename !== void 0)
730
- throw new Error("Renaming files is not supported.");
731
- const g = await s.findRenameLocations(
732
- c,
733
- u,
734
- /*strings*/
735
- !1,
736
- /*comments*/
737
- !1,
738
- /*prefixAndSuffix*/
739
- !1
740
- );
741
- if (!g || e.isDisposed())
742
- return;
743
- const d = [];
744
- for (const b of g) {
745
- const h = this._libFiles.getOrCreateModel(b.fileName);
746
- if (h)
747
- d.push({
748
- resource: h.uri,
749
- versionId: void 0,
750
- textEdit: {
751
- range: this._textSpanToRange(h, b.textSpan),
752
- text: i
753
- }
754
- });
755
- else
756
- throw new Error(`Unknown file ${b.fileName}.`);
757
- }
758
- return { edits: d };
759
- }
760
- }, ee = class extends _ {
761
- async provideInlayHints(e, t, i) {
762
- const o = e.uri, n = o.toString(), c = e.getOffsetAt({
763
- lineNumber: t.startLineNumber,
764
- column: t.startColumn
765
- }), u = e.getOffsetAt({
766
- lineNumber: t.endLineNumber,
767
- column: t.endColumn
768
- }), s = await this._worker(o);
769
- return e.isDisposed() ? null : { hints: (await s.provideInlayHints(n, c, u)).map((d) => ({
770
- ...d,
771
- label: d.text,
772
- position: e.getPositionAt(d.position),
773
- kind: this._convertHintKind(d.kind)
774
- })), dispose: () => {
775
- } };
776
- }
777
- _convertHintKind(e) {
778
- switch (e) {
779
- case "Parameter":
780
- return a.languages.InlayHintKind.Parameter;
781
- case "Type":
782
- return a.languages.InlayHintKind.Type;
783
- default:
784
- return a.languages.InlayHintKind.Type;
785
- }
786
- }
787
- }, A, F;
788
- function re(e) {
789
- F = L(e, "typescript");
790
- }
791
- function ie(e) {
792
- A = L(e, "javascript");
793
- }
794
- function ne() {
795
- return new Promise((e, t) => {
796
- if (!A)
797
- return t("JavaScript not registered!");
798
- e(A);
799
- });
800
- }
801
- function ae() {
802
- return new Promise((e, t) => {
803
- if (!F)
804
- return t("TypeScript not registered!");
805
- e(F);
806
- });
807
- }
808
- function L(e, t) {
809
- const i = [], o = new V(t, e), n = (...s) => o.getLanguageServiceWorker(...s), c = new W(n);
810
- function u() {
811
- const { modeConfiguration: s } = e;
812
- te(i), s.completionItems && i.push(
813
- a.languages.registerCompletionItemProvider(
814
- t,
815
- new B(n)
816
- )
817
- ), s.signatureHelp && i.push(
818
- a.languages.registerSignatureHelpProvider(
819
- t,
820
- new U(n)
821
- )
822
- ), s.hovers && i.push(
823
- a.languages.registerHoverProvider(t, new $(n))
824
- ), s.documentHighlights && i.push(
825
- a.languages.registerDocumentHighlightProvider(
826
- t,
827
- new z(n)
828
- )
829
- ), s.definitions && i.push(
830
- a.languages.registerDefinitionProvider(
831
- t,
832
- new G(c, n)
833
- )
834
- ), s.references && i.push(
835
- a.languages.registerReferenceProvider(
836
- t,
837
- new J(c, n)
838
- )
839
- ), s.documentSymbols && i.push(
840
- a.languages.registerDocumentSymbolProvider(
841
- t,
842
- new Q(n)
843
- )
844
- ), s.rename && i.push(
845
- a.languages.registerRenameProvider(
846
- t,
847
- new Z(c, n)
848
- )
849
- ), s.documentRangeFormattingEdits && i.push(
850
- a.languages.registerDocumentRangeFormattingEditProvider(
851
- t,
852
- new q(n)
853
- )
854
- ), s.onTypeFormattingEdits && i.push(
855
- a.languages.registerOnTypeFormattingEditProvider(
856
- t,
857
- new X(n)
858
- )
859
- ), s.codeActions && i.push(
860
- a.languages.registerCodeActionProvider(t, new Y(n))
861
- ), s.inlayHints && i.push(
862
- a.languages.registerInlayHintsProvider(t, new ee(n))
863
- ), s.diagnostics && i.push(new j(c, e, t, n));
864
- }
865
- return u(), n;
866
- }
867
- function te(e) {
868
- for (; e.length; )
869
- e.pop().dispose();
870
- }
871
- export {
872
- _ as Adapter,
873
- Y as CodeActionAdaptor,
874
- G as DefinitionAdapter,
875
- j as DiagnosticsAdapter,
876
- z as DocumentHighlightAdapter,
877
- q as FormatAdapter,
878
- k as FormatHelper,
879
- X as FormatOnTypeAdapter,
880
- ee as InlayHintsAdapter,
881
- f as Kind,
882
- W as LibFiles,
883
- Q as OutlineAdapter,
884
- $ as QuickInfoAdapter,
885
- J as ReferenceAdapter,
886
- Z as RenameAdapter,
887
- U as SignatureHelpAdapter,
888
- B as SuggestAdapter,
889
- V as WorkerManager,
890
- D as flattenDiagnosticMessageText,
891
- ne as getJavaScriptWorker,
892
- ae as getTypeScriptWorker,
893
- ie as setupJavaScript,
894
- re as setupTypeScript
895
- };