@vrowzer/vite-plugin 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +290 -0
  3. package/dist/ide/assets/css.worker-uWEFNxvl.js +89 -0
  4. package/dist/ide/assets/html.worker-1tLoAl5Z.js +502 -0
  5. package/dist/ide/assets/json.worker-CL3sVQd6.js +58 -0
  6. package/dist/ide/assets/ts.worker-BFpNHPy5.js +67719 -0
  7. package/dist/ide/css-CPSW8DVZ.js +286 -0
  8. package/dist/ide/cssMode-B5DtFEwy.js +65 -0
  9. package/dist/ide/graphql-BteLL2CG.js +176 -0
  10. package/dist/ide/handlebars-BcqMM6pa.js +412 -0
  11. package/dist/ide/html-CxO5OaJl.js +333 -0
  12. package/dist/ide/htmlMode-DxpUG2jm.js +74 -0
  13. package/dist/ide/ide.css +2 -0
  14. package/dist/ide/ide.js +5523 -0
  15. package/dist/ide/javascript-CvtLx4_Z.js +21 -0
  16. package/dist/ide/jsonMode-LVtiYWKr.js +449 -0
  17. package/dist/ide/less-BubkcFWW.js +244 -0
  18. package/dist/ide/lspLanguageFeatures-BDyekQt2.js +1455 -0
  19. package/dist/ide/markdown-DPB5N4OB.js +264 -0
  20. package/dist/ide/mdx-Sun87_nd.js +329 -0
  21. package/dist/ide/monaco.contribution-DVj8eGe_.js +116 -0
  22. package/dist/ide/pug-BONHZNEg.js +302 -0
  23. package/dist/ide/scss-0r6NeK1P.js +419 -0
  24. package/dist/ide/shell-Vh_eZpea.js +225 -0
  25. package/dist/ide/toggleHighContrast-DI4ZeqFk.js +113328 -0
  26. package/dist/ide/tsMode-BKTkt1bt.js +567 -0
  27. package/dist/ide/typescript-CHC4VYBW.js +257 -0
  28. package/dist/ide/workers-IG_hD8Jy.js +47 -0
  29. package/dist/ide/xml-C0QFzMaz.js +130 -0
  30. package/dist/ide/yaml-o-RP7lYY.js +223 -0
  31. package/dist/index.d.mts +138 -0
  32. package/dist/index.d.mts.map +1 -0
  33. package/dist/index.mjs +1335 -0
  34. package/dist/index.mjs.map +1 -0
  35. package/dist/manifest-generate.d.mts +89 -0
  36. package/dist/manifest-generate.d.mts.map +1 -0
  37. package/dist/manifest-generate.mjs +438 -0
  38. package/dist/manifest-generate.mjs.map +1 -0
  39. package/package.json +88 -0
@@ -0,0 +1,264 @@
1
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.js
2
+ var e = {
3
+ comments: { blockComment: ["<!--", "-->"] },
4
+ brackets: [
5
+ ["{", "}"],
6
+ ["[", "]"],
7
+ ["(", ")"]
8
+ ],
9
+ autoClosingPairs: [
10
+ {
11
+ open: "{",
12
+ close: "}"
13
+ },
14
+ {
15
+ open: "[",
16
+ close: "]"
17
+ },
18
+ {
19
+ open: "(",
20
+ close: ")"
21
+ },
22
+ {
23
+ open: "<",
24
+ close: ">",
25
+ notIn: ["string"]
26
+ }
27
+ ],
28
+ surroundingPairs: [
29
+ {
30
+ open: "(",
31
+ close: ")"
32
+ },
33
+ {
34
+ open: "[",
35
+ close: "]"
36
+ },
37
+ {
38
+ open: "`",
39
+ close: "`"
40
+ }
41
+ ],
42
+ folding: { markers: {
43
+ start: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
44
+ end: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
45
+ } }
46
+ }, t = {
47
+ defaultToken: "",
48
+ tokenPostfix: ".md",
49
+ control: /[\\`*_\[\]{}()#+\-\.!]/,
50
+ noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
51
+ escapes: /\\(?:@control)/,
52
+ jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
53
+ empty: [
54
+ "area",
55
+ "base",
56
+ "basefont",
57
+ "br",
58
+ "col",
59
+ "frame",
60
+ "hr",
61
+ "img",
62
+ "input",
63
+ "isindex",
64
+ "link",
65
+ "meta",
66
+ "param"
67
+ ],
68
+ tokenizer: {
69
+ root: [
70
+ [
71
+ /^\s*\|/,
72
+ "@rematch",
73
+ "@table_header"
74
+ ],
75
+ [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, [
76
+ "white",
77
+ "keyword",
78
+ "keyword",
79
+ "keyword"
80
+ ]],
81
+ [/^\s*(=+|\-+)\s*$/, "keyword"],
82
+ [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
83
+ [/^\s*>+/, "comment"],
84
+ [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
85
+ [/^(\t|[ ]{4})[^ ].*$/, "string"],
86
+ [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, {
87
+ token: "string",
88
+ next: "@codeblock"
89
+ }],
90
+ [/^\s*```\s*((?:\w|[\/\-#])+).*$/, {
91
+ token: "string",
92
+ next: "@codeblockgh",
93
+ nextEmbedded: "$1"
94
+ }],
95
+ [/^\s*```\s*$/, {
96
+ token: "string",
97
+ next: "@codeblock"
98
+ }],
99
+ { include: "@linecontent" }
100
+ ],
101
+ table_header: [{ include: "@table_common" }, [/[^\|]+/, "keyword.table.header"]],
102
+ table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
103
+ table_common: [
104
+ [/\s*[\-:]+\s*/, {
105
+ token: "keyword",
106
+ switchTo: "table_body"
107
+ }],
108
+ [/^\s*\|/, "keyword.table.left"],
109
+ [
110
+ /^\s*[^\|]/,
111
+ "@rematch",
112
+ "@pop"
113
+ ],
114
+ [
115
+ /^\s*$/,
116
+ "@rematch",
117
+ "@pop"
118
+ ],
119
+ [/\|/, { cases: {
120
+ "@eos": "keyword.table.right",
121
+ "@default": "keyword.table.middle"
122
+ } }]
123
+ ],
124
+ codeblock: [
125
+ [/^\s*~~~\s*$/, {
126
+ token: "string",
127
+ next: "@pop"
128
+ }],
129
+ [/^\s*```\s*$/, {
130
+ token: "string",
131
+ next: "@pop"
132
+ }],
133
+ [/.*$/, "variable.source"]
134
+ ],
135
+ codeblockgh: [[/```\s*$/, {
136
+ token: "string",
137
+ next: "@pop",
138
+ nextEmbedded: "@pop"
139
+ }], [/[^`]+/, "variable.source"]],
140
+ linecontent: [
141
+ [/&\w+;/, "string.escape"],
142
+ [/@escapes/, "escape"],
143
+ [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
144
+ [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
145
+ [/\b_[^_]+_\b/, "emphasis"],
146
+ [/\*([^\\*]|@escapes)+\*/, "emphasis"],
147
+ [/`([^\\`]|@escapes)+`/, "variable"],
148
+ [/\{+[^}]+\}+/, "string.target"],
149
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, [
150
+ "string.link",
151
+ "",
152
+ "string.link"
153
+ ]],
154
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
155
+ { include: "html" }
156
+ ],
157
+ html: [
158
+ [/<(\w+)\/>/, "tag"],
159
+ [/<(\w+)(\-|\w)*/, { cases: {
160
+ "@empty": {
161
+ token: "tag",
162
+ next: "@tag.$1"
163
+ },
164
+ "@default": {
165
+ token: "tag",
166
+ next: "@tag.$1"
167
+ }
168
+ } }],
169
+ [/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
170
+ [
171
+ /<!--/,
172
+ "comment",
173
+ "@comment"
174
+ ]
175
+ ],
176
+ comment: [
177
+ [/[^<\-]+/, "comment.content"],
178
+ [
179
+ /-->/,
180
+ "comment",
181
+ "@pop"
182
+ ],
183
+ [/<!--/, "comment.content.invalid"],
184
+ [/[<\-]/, "comment.content"]
185
+ ],
186
+ tag: [
187
+ [/[ \t\r\n]+/, "white"],
188
+ [/(type)(\s*=\s*)(")([^"]+)(")/, [
189
+ "attribute.name.html",
190
+ "delimiter.html",
191
+ "string.html",
192
+ {
193
+ token: "string.html",
194
+ switchTo: "@tag.$S2.$4"
195
+ },
196
+ "string.html"
197
+ ]],
198
+ [/(type)(\s*=\s*)(')([^']+)(')/, [
199
+ "attribute.name.html",
200
+ "delimiter.html",
201
+ "string.html",
202
+ {
203
+ token: "string.html",
204
+ switchTo: "@tag.$S2.$4"
205
+ },
206
+ "string.html"
207
+ ]],
208
+ [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, [
209
+ "attribute.name.html",
210
+ "delimiter.html",
211
+ "string.html"
212
+ ]],
213
+ [/\w+/, "attribute.name.html"],
214
+ [
215
+ /\/>/,
216
+ "tag",
217
+ "@pop"
218
+ ],
219
+ [/>/, { cases: {
220
+ "$S2==style": {
221
+ token: "tag",
222
+ switchTo: "embeddedStyle",
223
+ nextEmbedded: "text/css"
224
+ },
225
+ "$S2==script": { cases: {
226
+ $S3: {
227
+ token: "tag",
228
+ switchTo: "embeddedScript",
229
+ nextEmbedded: "$S3"
230
+ },
231
+ "@default": {
232
+ token: "tag",
233
+ switchTo: "embeddedScript",
234
+ nextEmbedded: "text/javascript"
235
+ }
236
+ } },
237
+ "@default": {
238
+ token: "tag",
239
+ next: "@pop"
240
+ }
241
+ } }]
242
+ ],
243
+ embeddedStyle: [
244
+ [/[^<]+/, ""],
245
+ [/<\/style\s*>/, {
246
+ token: "@rematch",
247
+ next: "@pop",
248
+ nextEmbedded: "@pop"
249
+ }],
250
+ [/</, ""]
251
+ ],
252
+ embeddedScript: [
253
+ [/[^<]+/, ""],
254
+ [/<\/script\s*>/, {
255
+ token: "@rematch",
256
+ next: "@pop",
257
+ nextEmbedded: "@pop"
258
+ }],
259
+ [/</, ""]
260
+ ]
261
+ }
262
+ };
263
+ //#endregion
264
+ export { e as conf, t as language };
@@ -0,0 +1,329 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.js
3
+ var t = {
4
+ comments: { blockComment: ["{/*", "*/}"] },
5
+ brackets: [["{", "}"]],
6
+ autoClosingPairs: [
7
+ {
8
+ open: "\"",
9
+ close: "\""
10
+ },
11
+ {
12
+ open: "'",
13
+ close: "'"
14
+ },
15
+ {
16
+ open: "“",
17
+ close: "”"
18
+ },
19
+ {
20
+ open: "‘",
21
+ close: "’"
22
+ },
23
+ {
24
+ open: "`",
25
+ close: "`"
26
+ },
27
+ {
28
+ open: "{",
29
+ close: "}"
30
+ },
31
+ {
32
+ open: "(",
33
+ close: ")"
34
+ },
35
+ {
36
+ open: "_",
37
+ close: "_"
38
+ },
39
+ {
40
+ open: "**",
41
+ close: "**"
42
+ },
43
+ {
44
+ open: "<",
45
+ close: ">"
46
+ }
47
+ ],
48
+ onEnterRules: [
49
+ {
50
+ beforeText: /^\s*- .+/,
51
+ action: {
52
+ indentAction: e.IndentAction.None,
53
+ appendText: "- "
54
+ }
55
+ },
56
+ {
57
+ beforeText: /^\s*\+ .+/,
58
+ action: {
59
+ indentAction: e.IndentAction.None,
60
+ appendText: "+ "
61
+ }
62
+ },
63
+ {
64
+ beforeText: /^\s*\* .+/,
65
+ action: {
66
+ indentAction: e.IndentAction.None,
67
+ appendText: "* "
68
+ }
69
+ },
70
+ {
71
+ beforeText: /^> /,
72
+ action: {
73
+ indentAction: e.IndentAction.None,
74
+ appendText: "> "
75
+ }
76
+ },
77
+ {
78
+ beforeText: /<\w+/,
79
+ action: { indentAction: e.IndentAction.Indent }
80
+ },
81
+ {
82
+ beforeText: /\s+>\s*$/,
83
+ action: { indentAction: e.IndentAction.Indent }
84
+ },
85
+ {
86
+ beforeText: /<\/\w+>/,
87
+ action: { indentAction: e.IndentAction.Outdent }
88
+ },
89
+ ...Array.from({ length: 100 }, (t, n) => ({
90
+ beforeText: RegExp(`^${n}\\. .+`),
91
+ action: {
92
+ indentAction: e.IndentAction.None,
93
+ appendText: `${n + 1}. `
94
+ }
95
+ }))
96
+ ]
97
+ }, n = {
98
+ defaultToken: "",
99
+ tokenPostfix: ".mdx",
100
+ control: /[!#()*+.[\\\]_`{}\-]/,
101
+ escapes: /\\@control/,
102
+ tokenizer: {
103
+ root: [
104
+ [/^---$/, {
105
+ token: "meta.content",
106
+ next: "@frontmatter",
107
+ nextEmbedded: "yaml"
108
+ }],
109
+ [/^\s*import/, {
110
+ token: "keyword",
111
+ next: "@import",
112
+ nextEmbedded: "js"
113
+ }],
114
+ [/^\s*export/, {
115
+ token: "keyword",
116
+ next: "@export",
117
+ nextEmbedded: "js"
118
+ }],
119
+ [/<\w+/, {
120
+ token: "type.identifier",
121
+ next: "@jsx"
122
+ }],
123
+ [/<\/?\w+>/, "type.identifier"],
124
+ [/^(\s*)(>*\s*)(#{1,6}\s)/, [
125
+ { token: "white" },
126
+ { token: "comment" },
127
+ {
128
+ token: "keyword",
129
+ next: "@header"
130
+ }
131
+ ]],
132
+ [/^(\s*)(>*\s*)([*+-])(\s+)/, [
133
+ "white",
134
+ "comment",
135
+ "keyword",
136
+ "white"
137
+ ]],
138
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
139
+ "white",
140
+ "comment",
141
+ "number",
142
+ "white"
143
+ ]],
144
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
145
+ "white",
146
+ "comment",
147
+ "number",
148
+ "white"
149
+ ]],
150
+ [/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, [
151
+ "white",
152
+ "comment",
153
+ "keyword"
154
+ ]],
155
+ [/`{3,}(\s.*)?$/, {
156
+ token: "string",
157
+ next: "@codeblock_backtick"
158
+ }],
159
+ [/~{3,}(\s.*)?$/, {
160
+ token: "string",
161
+ next: "@codeblock_tilde"
162
+ }],
163
+ [/`{3,}(\S+).*$/, {
164
+ token: "string",
165
+ next: "@codeblock_highlight_backtick",
166
+ nextEmbedded: "$1"
167
+ }],
168
+ [/~{3,}(\S+).*$/, {
169
+ token: "string",
170
+ next: "@codeblock_highlight_tilde",
171
+ nextEmbedded: "$1"
172
+ }],
173
+ [/^(\s*)(-{4,})$/, ["white", "comment"]],
174
+ [/^(\s*)(>+)/, ["white", "comment"]],
175
+ { include: "content" }
176
+ ],
177
+ content: [
178
+ [/(\[)(.+)(]\()(.+)(\s+".*")(\))/, [
179
+ "",
180
+ "string.link",
181
+ "",
182
+ "type.identifier",
183
+ "string.link",
184
+ ""
185
+ ]],
186
+ [/(\[)(.+)(]\()(.+)(\))/, [
187
+ "",
188
+ "type.identifier",
189
+ "",
190
+ "string.link",
191
+ ""
192
+ ]],
193
+ [/(\[)(.+)(]\[)(.+)(])/, [
194
+ "",
195
+ "type.identifier",
196
+ "",
197
+ "type.identifier",
198
+ ""
199
+ ]],
200
+ [/(\[)(.+)(]:\s+)(\S*)/, [
201
+ "",
202
+ "type.identifier",
203
+ "",
204
+ "string.link"
205
+ ]],
206
+ [/(\[)(.+)(])/, [
207
+ "",
208
+ "type.identifier",
209
+ ""
210
+ ]],
211
+ [/`.*`/, "variable.source"],
212
+ [/_/, {
213
+ token: "emphasis",
214
+ next: "@emphasis_underscore"
215
+ }],
216
+ [/\*(?!\*)/, {
217
+ token: "emphasis",
218
+ next: "@emphasis_asterisk"
219
+ }],
220
+ [/\*\*/, {
221
+ token: "strong",
222
+ next: "@strong"
223
+ }],
224
+ [/{/, {
225
+ token: "delimiter.bracket",
226
+ next: "@expression",
227
+ nextEmbedded: "js"
228
+ }]
229
+ ],
230
+ import: [[/'\s*(;|$)/, {
231
+ token: "string",
232
+ next: "@pop",
233
+ nextEmbedded: "@pop"
234
+ }]],
235
+ expression: [[/{/, {
236
+ token: "delimiter.bracket",
237
+ next: "@expression"
238
+ }], [/}/, {
239
+ token: "delimiter.bracket",
240
+ next: "@pop",
241
+ nextEmbedded: "@pop"
242
+ }]],
243
+ export: [[/^\s*$/, {
244
+ token: "delimiter.bracket",
245
+ next: "@pop",
246
+ nextEmbedded: "@pop"
247
+ }]],
248
+ jsx: [
249
+ [/\s+/, ""],
250
+ [/(\w+)(=)("(?:[^"\\]|\\.)*")/, [
251
+ "attribute.name",
252
+ "operator",
253
+ "string"
254
+ ]],
255
+ [/(\w+)(=)('(?:[^'\\]|\\.)*')/, [
256
+ "attribute.name",
257
+ "operator",
258
+ "string"
259
+ ]],
260
+ [/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
261
+ [/={/, {
262
+ token: "delimiter.bracket",
263
+ next: "@expression",
264
+ nextEmbedded: "js"
265
+ }],
266
+ [/>/, {
267
+ token: "type.identifier",
268
+ next: "@pop"
269
+ }]
270
+ ],
271
+ header: [
272
+ [/.$/, {
273
+ token: "keyword",
274
+ next: "@pop"
275
+ }],
276
+ { include: "content" },
277
+ [/./, { token: "keyword" }]
278
+ ],
279
+ strong: [
280
+ [/\*\*/, {
281
+ token: "strong",
282
+ next: "@pop"
283
+ }],
284
+ { include: "content" },
285
+ [/./, { token: "strong" }]
286
+ ],
287
+ emphasis_underscore: [
288
+ [/_/, {
289
+ token: "emphasis",
290
+ next: "@pop"
291
+ }],
292
+ { include: "content" },
293
+ [/./, { token: "emphasis" }]
294
+ ],
295
+ emphasis_asterisk: [
296
+ [/\*(?!\*)/, {
297
+ token: "emphasis",
298
+ next: "@pop"
299
+ }],
300
+ { include: "content" },
301
+ [/./, { token: "emphasis" }]
302
+ ],
303
+ frontmatter: [[/^---$/, {
304
+ token: "meta.content",
305
+ nextEmbedded: "@pop",
306
+ next: "@pop"
307
+ }]],
308
+ codeblock_highlight_backtick: [[/\s*`{3,}\s*$/, {
309
+ token: "string",
310
+ next: "@pop",
311
+ nextEmbedded: "@pop"
312
+ }], [/.*$/, "variable.source"]],
313
+ codeblock_highlight_tilde: [[/\s*~{3,}\s*$/, {
314
+ token: "string",
315
+ next: "@pop",
316
+ nextEmbedded: "@pop"
317
+ }], [/.*$/, "variable.source"]],
318
+ codeblock_backtick: [[/\s*`{3,}\s*$/, {
319
+ token: "string",
320
+ next: "@pop"
321
+ }], [/.*$/, "variable.source"]],
322
+ codeblock_tilde: [[/\s*~{3,}\s*$/, {
323
+ token: "string",
324
+ next: "@pop"
325
+ }], [/.*$/, "variable.source"]]
326
+ }
327
+ };
328
+ //#endregion
329
+ export { t as conf, n as language };
@@ -0,0 +1,116 @@
1
+ import { c as e, t } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js
3
+ var n = class {
4
+ constructor(e, n, r, i, a) {
5
+ this._onDidChange = new t(), this._onDidExtraLibsChange = new t(), this._extraLibs = /* @__PURE__ */ Object.create(null), this._removedExtraLibs = /* @__PURE__ */ Object.create(null), this._eagerModelSync = !1, this.setCompilerOptions(e), this.setDiagnosticsOptions(n), this.setWorkerOptions(r), this.setInlayHintsOptions(i), this.setModeConfiguration(a), this._onDidExtraLibsChangeTimeout = -1;
6
+ }
7
+ get onDidChange() {
8
+ return this._onDidChange.event;
9
+ }
10
+ get onDidExtraLibsChange() {
11
+ return this._onDidExtraLibsChange.event;
12
+ }
13
+ get modeConfiguration() {
14
+ return this._modeConfiguration;
15
+ }
16
+ get workerOptions() {
17
+ return this._workerOptions;
18
+ }
19
+ get inlayHintsOptions() {
20
+ return this._inlayHintsOptions;
21
+ }
22
+ getExtraLibs() {
23
+ return this._extraLibs;
24
+ }
25
+ addExtraLib(e, t) {
26
+ let n;
27
+ if (n = t === void 0 ? `ts:extralib-${Math.random().toString(36).substring(2, 15)}` : t, this._extraLibs[n] && this._extraLibs[n].content === e) return { dispose: () => {} };
28
+ let r = 1;
29
+ return this._removedExtraLibs[n] && (r = this._removedExtraLibs[n] + 1), this._extraLibs[n] && (r = this._extraLibs[n].version + 1), this._extraLibs[n] = {
30
+ content: e,
31
+ version: r
32
+ }, this._fireOnDidExtraLibsChangeSoon(), { dispose: () => {
33
+ let e = this._extraLibs[n];
34
+ e && e.version === r && (delete this._extraLibs[n], this._removedExtraLibs[n] = r, this._fireOnDidExtraLibsChangeSoon());
35
+ } };
36
+ }
37
+ setExtraLibs(e) {
38
+ for (let e in this._extraLibs) this._removedExtraLibs[e] = this._extraLibs[e].version;
39
+ if (this._extraLibs = /* @__PURE__ */ Object.create(null), e && e.length > 0) for (let t of e) {
40
+ let e = t.filePath || `ts:extralib-${Math.random().toString(36).substring(2, 15)}`, n = t.content, r = 1;
41
+ this._removedExtraLibs[e] && (r = this._removedExtraLibs[e] + 1), this._extraLibs[e] = {
42
+ content: n,
43
+ version: r
44
+ };
45
+ }
46
+ this._fireOnDidExtraLibsChangeSoon();
47
+ }
48
+ _fireOnDidExtraLibsChangeSoon() {
49
+ this._onDidExtraLibsChangeTimeout === -1 && (this._onDidExtraLibsChangeTimeout = window.setTimeout(() => {
50
+ this._onDidExtraLibsChangeTimeout = -1, this._onDidExtraLibsChange.fire(void 0);
51
+ }, 0));
52
+ }
53
+ getCompilerOptions() {
54
+ return this._compilerOptions;
55
+ }
56
+ setCompilerOptions(e) {
57
+ this._compilerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
58
+ }
59
+ getDiagnosticsOptions() {
60
+ return this._diagnosticsOptions;
61
+ }
62
+ setDiagnosticsOptions(e) {
63
+ this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
64
+ }
65
+ setWorkerOptions(e) {
66
+ this._workerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
67
+ }
68
+ setInlayHintsOptions(e) {
69
+ this._inlayHintsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
70
+ }
71
+ setMaximumWorkerIdleTime(e) {}
72
+ setEagerModelSync(e) {
73
+ this._eagerModelSync = e;
74
+ }
75
+ getEagerModelSync() {
76
+ return this._eagerModelSync;
77
+ }
78
+ setModeConfiguration(e) {
79
+ this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
80
+ }
81
+ }, r = {
82
+ completionItems: !0,
83
+ hovers: !0,
84
+ documentSymbols: !0,
85
+ definitions: !0,
86
+ references: !0,
87
+ documentHighlights: !0,
88
+ rename: !0,
89
+ diagnostics: !0,
90
+ documentRangeFormattingEdits: !0,
91
+ signatureHelp: !0,
92
+ onTypeFormattingEdits: !0,
93
+ codeActions: !0,
94
+ inlayHints: !0
95
+ }, i = new n({
96
+ allowNonTsExtensions: !0,
97
+ target: 99
98
+ }, {
99
+ noSemanticValidation: !1,
100
+ noSyntaxValidation: !1,
101
+ onlyVisible: !1
102
+ }, {}, {}, r), a = new n({
103
+ allowNonTsExtensions: !0,
104
+ allowJs: !0,
105
+ target: 99
106
+ }, {
107
+ noSemanticValidation: !0,
108
+ noSyntaxValidation: !1,
109
+ onlyVisible: !1
110
+ }, {}, {}, r);
111
+ function o() {
112
+ return import("./tsMode-BKTkt1bt.js");
113
+ }
114
+ e.onLanguage("typescript", () => o().then((e) => e.setupTypeScript(i))), e.onLanguage("javascript", () => o().then((e) => e.setupJavaScript(a)));
115
+ //#endregion
116
+ export { i as t };