@bascik/language-server 0.1.0-rc.4 → 0.1.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -30
- package/dist/analyzer.d.ts +70 -1
- package/dist/analyzer.d.ts.map +1 -1
- package/dist/analyzer.js +657 -77
- package/dist/analyzer.js.map +1 -1
- package/dist/api-rules.d.ts +7 -0
- package/dist/api-rules.d.ts.map +1 -1
- package/dist/api-rules.js +235 -16
- package/dist/api-rules.js.map +1 -1
- package/dist/bin.js +4 -1
- package/dist/bin.js.map +1 -1
- package/dist/check.d.ts +14 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +116 -10
- package/dist/check.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +27 -8
- package/dist/cli.js.map +1 -1
- package/dist/compatibility-rules.json +21 -3
- package/dist/component-metadata.d.ts.map +1 -1
- package/dist/component-metadata.js +3 -1
- package/dist/component-metadata.js.map +1 -1
- package/dist/component-usages.d.ts +47 -0
- package/dist/component-usages.d.ts.map +1 -0
- package/dist/component-usages.js +495 -0
- package/dist/component-usages.js.map +1 -0
- package/dist/config-reader.d.ts +41 -0
- package/dist/config-reader.d.ts.map +1 -0
- package/dist/config-reader.js +461 -0
- package/dist/config-reader.js.map +1 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +25 -30
- package/dist/config.js.map +1 -1
- package/dist/directive-rules.d.ts +3 -3
- package/dist/directive-rules.d.ts.map +1 -1
- package/dist/directive-rules.js +6 -6
- package/dist/directive-rules.js.map +1 -1
- package/dist/hand-written-escaper.d.ts +35 -0
- package/dist/hand-written-escaper.d.ts.map +1 -0
- package/dist/hand-written-escaper.js +739 -0
- package/dist/hand-written-escaper.js.map +1 -0
- package/dist/module-specifiers.d.ts +25 -0
- package/dist/module-specifiers.d.ts.map +1 -1
- package/dist/module-specifiers.js +234 -165
- package/dist/module-specifiers.js.map +1 -1
- package/dist/name-groups.d.ts +36 -0
- package/dist/name-groups.d.ts.map +1 -0
- package/dist/name-groups.js +198 -0
- package/dist/name-groups.js.map +1 -0
- package/dist/plain-holes.d.ts +116 -0
- package/dist/plain-holes.d.ts.map +1 -0
- package/dist/plain-holes.js +1970 -0
- package/dist/plain-holes.js.map +1 -0
- package/dist/project.d.ts +58 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +146 -8
- package/dist/project.js.map +1 -1
- package/dist/references.d.ts +47 -0
- package/dist/references.d.ts.map +1 -0
- package/dist/references.js +241 -0
- package/dist/references.js.map +1 -0
- package/dist/script-modules.d.ts +60 -0
- package/dist/script-modules.d.ts.map +1 -0
- package/dist/script-modules.js +382 -0
- package/dist/script-modules.js.map +1 -0
- package/dist/server-script-rules.d.ts +94 -1
- package/dist/server-script-rules.d.ts.map +1 -1
- package/dist/server-script-rules.js +2572 -230
- package/dist/server-script-rules.js.map +1 -1
- package/dist/server-script-templates.d.ts +250 -0
- package/dist/server-script-templates.d.ts.map +1 -0
- package/dist/server-script-templates.js +1685 -0
- package/dist/server-script-templates.js.map +1 -0
- package/dist/server.d.ts +191 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +822 -50
- package/dist/server.js.map +1 -1
- package/dist/start.d.ts +10 -1
- package/dist/start.d.ts.map +1 -1
- package/dist/start.js +14 -2
- package/dist/start.js.map +1 -1
- package/dist/string-typed-flow.d.ts +26 -0
- package/dist/string-typed-flow.d.ts.map +1 -0
- package/dist/string-typed-flow.js +496 -0
- package/dist/string-typed-flow.js.map +1 -0
- package/dist/typescript-blocks.d.ts +205 -0
- package/dist/typescript-blocks.d.ts.map +1 -0
- package/dist/typescript-blocks.js +464 -0
- package/dist/typescript-blocks.js.map +1 -0
- package/dist/typescript-editor-mode.d.ts +28 -0
- package/dist/typescript-editor-mode.d.ts.map +1 -0
- package/dist/typescript-editor-mode.js +161 -0
- package/dist/typescript-editor-mode.js.map +1 -0
- package/dist/typescript-engine.d.ts +115 -0
- package/dist/typescript-engine.d.ts.map +1 -0
- package/dist/typescript-engine.js +286 -0
- package/dist/typescript-engine.js.map +1 -0
- package/dist/typescript-features.d.ts +136 -0
- package/dist/typescript-features.d.ts.map +1 -0
- package/dist/typescript-features.js +374 -0
- package/dist/typescript-features.js.map +1 -0
- package/dist/typescript-loader.d.ts +55 -0
- package/dist/typescript-loader.d.ts.map +1 -0
- package/dist/typescript-loader.js +202 -0
- package/dist/typescript-loader.js.map +1 -0
- package/dist/typescript-lsp.d.ts +8 -0
- package/dist/typescript-lsp.d.ts.map +1 -0
- package/dist/typescript-lsp.js +115 -0
- package/dist/typescript-lsp.js.map +1 -0
- package/dist/typescript-service.d.ts +350 -0
- package/dist/typescript-service.d.ts.map +1 -0
- package/dist/typescript-service.js +1465 -0
- package/dist/typescript-service.js.map +1 -0
- package/dist/typescript-worker.d.ts +11 -0
- package/dist/typescript-worker.d.ts.map +1 -0
- package/dist/typescript-worker.js +107 -0
- package/dist/typescript-worker.js.map +1 -0
- package/package.json +20 -7
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import { pathToFileURL } from "node:url";
|
|
3
|
+
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
4
|
+
import { findCommentEnd, findComponentUsages, maskLikeCompiler, } from "./component-usages.js";
|
|
5
|
+
import { isInsideComponentRoots, normalizeComponentName, } from "./project.js";
|
|
6
|
+
export { findCommentEnd };
|
|
7
|
+
const RAW_TEXT_TAGS = new Set(["script", "style", "textarea"]);
|
|
8
|
+
const isTagNameStart = (code) => (code >= 65 && code <= 90) || (code >= 97 && code <= 122);
|
|
9
|
+
const isTagNameChar = (code) => isTagNameStart(code) ||
|
|
10
|
+
(code >= 48 && code <= 57) ||
|
|
11
|
+
code === 95 ||
|
|
12
|
+
code === 45;
|
|
13
|
+
const isTagNameEnd = (code) => Number.isNaN(code) ||
|
|
14
|
+
code === 9 ||
|
|
15
|
+
code === 10 ||
|
|
16
|
+
code === 12 ||
|
|
17
|
+
code === 13 ||
|
|
18
|
+
code === 32 ||
|
|
19
|
+
code === 47 /* / */ ||
|
|
20
|
+
code === 62; /* > */
|
|
21
|
+
/**
|
|
22
|
+
* The tags of an HTML source in order, as a reader sees them: a comment, an attribute value, or the body of
|
|
23
|
+
* a `<script>`, `<style>` or `<textarea>` hides any tag text inside it, and a comment with no end hides
|
|
24
|
+
* nothing. Literal tags inside `<pre>`, `<code>` and `<template>` are tags. It places the cursor on a closing
|
|
25
|
+
* tag and finds a component's root element; which opening tags are usages is decided by
|
|
26
|
+
* `findComponentUsages`, which follows the compiler exactly. Linear time: the end of a tag body depends only
|
|
27
|
+
* on where its scan starts, so it is remembered per position.
|
|
28
|
+
*/
|
|
29
|
+
export function scanHtmlTags(html) {
|
|
30
|
+
const tags = [];
|
|
31
|
+
const length = html.length;
|
|
32
|
+
// 0 = not scanned yet, -1 = no closing `>`, otherwise the index after `>`.
|
|
33
|
+
const tagEndFrom = new Int32Array(length + 1);
|
|
34
|
+
const visited = [];
|
|
35
|
+
const findTagEnd = (from) => {
|
|
36
|
+
let position = from;
|
|
37
|
+
let end = -1;
|
|
38
|
+
visited.length = 0;
|
|
39
|
+
while (position < length) {
|
|
40
|
+
const known = tagEndFrom[position];
|
|
41
|
+
if (known !== 0) {
|
|
42
|
+
end = known;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
visited.push(position);
|
|
46
|
+
const code = html.charCodeAt(position);
|
|
47
|
+
if (code === 62 /* > */) {
|
|
48
|
+
end = position + 1;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
if (code === 34 /* " */ || code === 39 /* ' */) {
|
|
52
|
+
const close = html.indexOf(html[position], position + 1);
|
|
53
|
+
if (close < 0)
|
|
54
|
+
break;
|
|
55
|
+
position = close + 1;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
position++;
|
|
59
|
+
}
|
|
60
|
+
for (const index of visited)
|
|
61
|
+
tagEndFrom[index] = end;
|
|
62
|
+
return end;
|
|
63
|
+
};
|
|
64
|
+
// Where each raw-text closer was last found, so a run of unclosed openers does not rescan the rest.
|
|
65
|
+
const closerSearch = new Map();
|
|
66
|
+
const findCloser = (name, from) => {
|
|
67
|
+
const known = closerSearch.get(name);
|
|
68
|
+
if (known && known.from <= from && (known.at < 0 || known.at >= from))
|
|
69
|
+
return known.at;
|
|
70
|
+
const pattern = new RegExp(`</${name}\\s*>`, "gi");
|
|
71
|
+
pattern.lastIndex = from;
|
|
72
|
+
const match = pattern.exec(html);
|
|
73
|
+
const at = match ? match.index : -1;
|
|
74
|
+
closerSearch.set(name, { from, at });
|
|
75
|
+
return at;
|
|
76
|
+
};
|
|
77
|
+
// After a comment with no end, no later comment can end either, so none is looked for.
|
|
78
|
+
let comments = true;
|
|
79
|
+
let cursor = 0;
|
|
80
|
+
while (cursor < length) {
|
|
81
|
+
const open = html.indexOf("<", cursor);
|
|
82
|
+
if (open < 0)
|
|
83
|
+
break;
|
|
84
|
+
if (comments && html.startsWith("<!--", open)) {
|
|
85
|
+
const end = findCommentEnd(html, open);
|
|
86
|
+
if (end < 0)
|
|
87
|
+
comments = false;
|
|
88
|
+
cursor = end < 0 ? open + 4 : end;
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
const closing = html.charCodeAt(open + 1) === 47; /* / */
|
|
92
|
+
const nameStart = open + (closing ? 2 : 1);
|
|
93
|
+
if (!isTagNameStart(html.charCodeAt(nameStart))) {
|
|
94
|
+
cursor = open + 1;
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
let nameEnd = nameStart + 1;
|
|
98
|
+
while (nameEnd < length && isTagNameChar(html.charCodeAt(nameEnd)))
|
|
99
|
+
nameEnd++;
|
|
100
|
+
const end = findTagEnd(nameEnd);
|
|
101
|
+
if (end < 0 || !isTagNameEnd(html.charCodeAt(nameEnd))) {
|
|
102
|
+
cursor = open + 1;
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
const name = html.slice(nameStart, nameEnd);
|
|
106
|
+
tags.push({ name, closing, start: open, nameStart, end });
|
|
107
|
+
cursor = end;
|
|
108
|
+
const lower = name.toLowerCase();
|
|
109
|
+
if (!closing &&
|
|
110
|
+
RAW_TEXT_TAGS.has(lower) &&
|
|
111
|
+
!/\/\s*>$/.test(html.slice(open, end))) {
|
|
112
|
+
const closer = findCloser(lower, end);
|
|
113
|
+
if (closer >= 0)
|
|
114
|
+
cursor = closer;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return tags;
|
|
118
|
+
}
|
|
119
|
+
/** The leading `<!-- @bascik` doc comment's `[start, end)`, when the file starts with one. */
|
|
120
|
+
function findDocComment(html) {
|
|
121
|
+
const start = html.search(/\S/);
|
|
122
|
+
if (start < 0 || !html.startsWith("<!--", start))
|
|
123
|
+
return undefined;
|
|
124
|
+
if (!/^<!--\s*@bascik(?:\s|-->|$)/.test(html.slice(start, start + 64)))
|
|
125
|
+
return undefined;
|
|
126
|
+
const end = findCommentEnd(html, start);
|
|
127
|
+
return [start, end < 0 ? html.length : end];
|
|
128
|
+
}
|
|
129
|
+
/** Elements that may sit ahead of a component's root element without being it. */
|
|
130
|
+
const NON_ROOT_TAGS = new Set(["script", "style", "link", "meta"]);
|
|
131
|
+
const normalize = (fsPath) => path.resolve(fsPath).replace(/\\/g, "/");
|
|
132
|
+
/** Is `fsPath` the file that defines a component, and which one? */
|
|
133
|
+
export function componentNameForFile(fsPath, snapshot) {
|
|
134
|
+
if (!isInsideComponentRoots(normalize(fsPath), snapshot.componentRoots))
|
|
135
|
+
return undefined;
|
|
136
|
+
const name = normalizeComponentName(fsPath);
|
|
137
|
+
const defined = snapshot.componentMap.get(name);
|
|
138
|
+
return defined && normalize(defined) === normalize(fsPath) ? name : undefined;
|
|
139
|
+
}
|
|
140
|
+
/** The component a references request at `offset` asks about, or undefined. */
|
|
141
|
+
export function resolveReferencedComponent(text, offset, fsPath, snapshot) {
|
|
142
|
+
const tags = scanHtmlTags(text);
|
|
143
|
+
// (a) A component tag name, opening or closing, wins wherever it is. An opening tag counts where the
|
|
144
|
+
// compiler expands it; a closing tag counts outside what the compiler masks.
|
|
145
|
+
const masked = maskLikeCompiler(text);
|
|
146
|
+
const opening = findComponentUsages(text, new Set(snapshot.componentMap.keys()), masked).find((usage) => offset >= usage.nameStart && offset <= usage.nameEnd);
|
|
147
|
+
if (opening)
|
|
148
|
+
return opening.name;
|
|
149
|
+
const closing = tags.find((tag) => tag.closing &&
|
|
150
|
+
offset >= tag.nameStart &&
|
|
151
|
+
offset <= tag.nameStart + tag.name.length &&
|
|
152
|
+
masked.startsWith(tag.name, tag.nameStart));
|
|
153
|
+
if (closing) {
|
|
154
|
+
const name = closing.name.toLowerCase();
|
|
155
|
+
if (snapshot.componentMap.has(name))
|
|
156
|
+
return name;
|
|
157
|
+
}
|
|
158
|
+
// (b) A line of the component's own file that identifies it.
|
|
159
|
+
const ownName = componentNameForFile(fsPath, snapshot);
|
|
160
|
+
if (!ownName)
|
|
161
|
+
return undefined;
|
|
162
|
+
const lineOf = (at) => {
|
|
163
|
+
let line = 0;
|
|
164
|
+
for (let i = text.indexOf("\n"); i >= 0 && i < at; i = text.indexOf("\n", i + 1))
|
|
165
|
+
line++;
|
|
166
|
+
return line;
|
|
167
|
+
};
|
|
168
|
+
const cursorLine = lineOf(offset);
|
|
169
|
+
if (cursorLine === 0)
|
|
170
|
+
return ownName;
|
|
171
|
+
const docComment = findDocComment(text);
|
|
172
|
+
if (docComment && offset >= docComment[0] && offset <= docComment[1])
|
|
173
|
+
return ownName;
|
|
174
|
+
const root = tags.find((tag) => !tag.closing && !NON_ROOT_TAGS.has(tag.name.toLowerCase()));
|
|
175
|
+
if (root &&
|
|
176
|
+
cursorLine >= lineOf(root.start) &&
|
|
177
|
+
cursorLine <= lineOf(root.end - 1))
|
|
178
|
+
return ownName;
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Find All References for a component: one Location per opening tag that uses it, spanning the tag name,
|
|
183
|
+
* pages first, then component files, each by path and then position. With `includeDeclaration`, the
|
|
184
|
+
* component file's first line comes first. Anything that does not resolve to a component is an empty list.
|
|
185
|
+
*/
|
|
186
|
+
export function createReferences(request) {
|
|
187
|
+
const { document, fsPath, position, snapshot, sources } = request;
|
|
188
|
+
if (document.languageId !== "html" || !fsPath.toLowerCase().endsWith(".html"))
|
|
189
|
+
return [];
|
|
190
|
+
const name = resolveReferencedComponent(document.getText(), document.offsetAt(position), fsPath, snapshot);
|
|
191
|
+
if (!name)
|
|
192
|
+
return [];
|
|
193
|
+
const componentPath = snapshot.componentMap.get(name);
|
|
194
|
+
if (!componentPath)
|
|
195
|
+
return [];
|
|
196
|
+
const found = [];
|
|
197
|
+
const names = new Set(snapshot.componentMap.keys());
|
|
198
|
+
for (const [file, text] of sources) {
|
|
199
|
+
const usages = findComponentUsages(text, names).filter((usage) => usage.name === name);
|
|
200
|
+
if (usages.length === 0)
|
|
201
|
+
continue;
|
|
202
|
+
const lines = TextDocument.create("file:///", "html", 0, text);
|
|
203
|
+
const uri = pathToFileURL(file).toString();
|
|
204
|
+
found.push({
|
|
205
|
+
file: normalize(file),
|
|
206
|
+
isComponent: isInsideComponentRoots(normalize(file), snapshot.componentRoots),
|
|
207
|
+
locations: usages.map((usage) => ({
|
|
208
|
+
uri,
|
|
209
|
+
range: {
|
|
210
|
+
start: lines.positionAt(usage.nameStart),
|
|
211
|
+
end: lines.positionAt(usage.nameEnd),
|
|
212
|
+
},
|
|
213
|
+
})),
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
found.sort((left, right) => left.isComponent !== right.isComponent
|
|
217
|
+
? left.isComponent
|
|
218
|
+
? 1
|
|
219
|
+
: -1
|
|
220
|
+
: left.file < right.file
|
|
221
|
+
? -1
|
|
222
|
+
: left.file > right.file
|
|
223
|
+
? 1
|
|
224
|
+
: 0);
|
|
225
|
+
const locations = found.flatMap((entry) => entry.locations);
|
|
226
|
+
if (!request.includeDeclaration)
|
|
227
|
+
return locations;
|
|
228
|
+
const declarationText = sources.get(componentPath) ?? "";
|
|
229
|
+
const firstLineEnd = declarationText.search(/\r?\n|\r|$/);
|
|
230
|
+
return [
|
|
231
|
+
{
|
|
232
|
+
uri: pathToFileURL(componentPath).toString(),
|
|
233
|
+
range: {
|
|
234
|
+
start: { line: 0, character: 0 },
|
|
235
|
+
end: { line: 0, character: Math.max(0, firstLineEnd) },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
...locations,
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.js","sourceRoot":"","sources":["../src/references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GAEvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,CAAC;AAe1B,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAE/D,MAAM,cAAc,GAAG,CAAC,IAAY,EAAW,EAAE,CAC/C,CAAC,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC;AAC5D,MAAM,aAAa,GAAG,CAAC,IAAY,EAAW,EAAE,CAC9C,cAAc,CAAC,IAAI,CAAC;IACpB,CAAC,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAC1B,IAAI,K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AAG,KAAK,CAAC,IAAI;gBACtB,CAAC,CAAC,CAAC;gBACH,CAAC,CAAC,CAAC,CACV,CAAC;IACF,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5D,IAAI,CAAC,OAAO,CAAC,kBAAkB;QAAE,OAAO,SAAS,CAAC;IAElD,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACzD,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC1D,OAAO;QACL;YACE,GAAG,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;YAC5C,KAAK,EAAE;gBACL,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;gBAChC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE;aACvD;SACF;QACD,GAAG,SAAS;KACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ProjectSnapshot } from "./project.js";
|
|
2
|
+
/** Forward slashes, so Windows and POSIX paths compare the same. */
|
|
3
|
+
export declare const normalizeModulePath: (fsPath: string) => string;
|
|
4
|
+
export interface ScriptModuleSources {
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
importRoot: string;
|
|
7
|
+
/** HTML files (pages and components) and their text. */
|
|
8
|
+
html: Iterable<[fsPath: string, text: string]>;
|
|
9
|
+
/** API route files. */
|
|
10
|
+
apiRoutes?: Iterable<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Folders outside the project whose files belong to it too: the
|
|
13
|
+
* configured component roots (`directory.components` may name
|
|
14
|
+
* `../shared/components`), the API root and `scripts.importRoot`.
|
|
15
|
+
*/
|
|
16
|
+
extraRoots?: Iterable<string>;
|
|
17
|
+
/** Text of a module that is open in the editor, used in place of the disk. */
|
|
18
|
+
readText?: (fsPath: string) => string | undefined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The files that run in Node (normalized paths). `requestTime` holds the
|
|
22
|
+
* ones that run per request: API routes and what server scripts, stream
|
|
23
|
+
* scripts and API routes reach. `browser` holds what browser code reaches
|
|
24
|
+
* (a plain `<script src>` companion and what browser scripts import); a
|
|
25
|
+
* file can be in both sets, when browser and Node code share it.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ScriptModules extends Set<string> {
|
|
28
|
+
readonly requestTime: Set<string>;
|
|
29
|
+
readonly browser: Set<string>;
|
|
30
|
+
/** Every module of both, request-time or browser in either. */
|
|
31
|
+
static union(a: ScriptModules, b: ScriptModules): ScriptModules;
|
|
32
|
+
}
|
|
33
|
+
/** Every file that runs in Node, from the given pages, components and API routes. */
|
|
34
|
+
export declare function findScriptModules(sources: ScriptModuleSources): ScriptModules;
|
|
35
|
+
/** The API route files under `apiRoot`, skipping tests and folders that start with a dot. */
|
|
36
|
+
export declare function listApiRoutes(apiRoot: string | undefined): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Forgets every cached module set. The language server calls it when a
|
|
39
|
+
* .ts or .js file changes on disk (a checkout, a formatter, an agent's
|
|
40
|
+
* edit), since a closed module's imports decide which files run in Node.
|
|
41
|
+
*/
|
|
42
|
+
export declare function invalidateScriptModules(): void;
|
|
43
|
+
/**
|
|
44
|
+
* The Node modules of a project snapshot: its pages' and components' HTML
|
|
45
|
+
* (open HTML buffers in place of the disk) and its API routes. Cached per
|
|
46
|
+
* snapshot, and reused while the open buffers' scripts and imports stay the
|
|
47
|
+
* same, so typing in a module or in a page's markup does not walk the
|
|
48
|
+
* project again; an edit that adds, removes or changes an import does, and
|
|
49
|
+
* so does invalidateScriptModules().
|
|
50
|
+
*/
|
|
51
|
+
export declare function scriptModulesOf(snapshot: ProjectSnapshot, openDocumentTexts?: {
|
|
52
|
+
fsPath: string;
|
|
53
|
+
text: string;
|
|
54
|
+
}[]): ScriptModules;
|
|
55
|
+
/**
|
|
56
|
+
* A snapshot's component roots, API root and `scripts.importRoot`, which
|
|
57
|
+
* may lie outside the project (a monorepo's shared folder).
|
|
58
|
+
*/
|
|
59
|
+
export declare const snapshotRoots: (snapshot: ProjectSnapshot) => string[];
|
|
60
|
+
//# sourceMappingURL=script-modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-modules.d.ts","sourceRoot":"","sources":["../src/script-modules.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAkGpD,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,WAAY,MAAM,KAAG,MACX,CAAC;AAsD3C,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,IAAI,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,uBAAuB;IACvB,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACnD;AAED;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,MAAM,CAAC;IAC5C,QAAQ,CAAC,WAAW,cAAqB;IACzC,QAAQ,CAAC,OAAO,cAAqB;IAErC,+DAA+D;IAC/D,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,aAAa,CAM9D;CACF;AAID,qFAAqF;AACrF,wBAAgB,iBAA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