@marko/language-server 1.0.3 → 1.0.4
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/dist/index.js +9 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +2 -2
- package/dist/ts-plugin/host.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1349,7 +1349,7 @@ var markoExt = ".marko";
|
|
|
1349
1349
|
var markoExtReg = /\.marko$/;
|
|
1350
1350
|
var modulePartsReg = /^((?:@(?:[^/]+)\/)?(?:[^/]+))(.*)$/;
|
|
1351
1351
|
var fsPathReg = /^(?:[./\\]|[A-Z]:)/i;
|
|
1352
|
-
function patch(ts2, scriptLang, cache, host) {
|
|
1352
|
+
function patch(ts2, scriptLang, cache, host, ps) {
|
|
1353
1353
|
var _a, _b, _c;
|
|
1354
1354
|
const rootDir = host.getCurrentDirectory();
|
|
1355
1355
|
const projectTypeLibs = getProjectTypeLibs(
|
|
@@ -1400,6 +1400,14 @@ function patch(ts2, scriptLang, cache, host) {
|
|
|
1400
1400
|
} catch {
|
|
1401
1401
|
cached = { snapshot: ts2.ScriptSnapshot.fromString("") };
|
|
1402
1402
|
}
|
|
1403
|
+
ps == null ? void 0 : ps.getOrCreateScriptInfoForNormalizedPath(
|
|
1404
|
+
filename,
|
|
1405
|
+
false,
|
|
1406
|
+
void 0,
|
|
1407
|
+
ts2.ScriptKind.Deferred,
|
|
1408
|
+
false,
|
|
1409
|
+
host
|
|
1410
|
+
);
|
|
1403
1411
|
cache.set(filename, cached);
|
|
1404
1412
|
}
|
|
1405
1413
|
return cached.snapshot;
|