@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.mjs
CHANGED
|
@@ -1373,7 +1373,7 @@ var markoExt = ".marko";
|
|
|
1373
1373
|
var markoExtReg = /\.marko$/;
|
|
1374
1374
|
var modulePartsReg = /^((?:@(?:[^/]+)\/)?(?:[^/]+))(.*)$/;
|
|
1375
1375
|
var fsPathReg = /^(?:[./\\]|[A-Z]:)/i;
|
|
1376
|
-
function patch(ts2, scriptLang, cache, host) {
|
|
1376
|
+
function patch(ts2, scriptLang, cache, host, ps) {
|
|
1377
1377
|
var _a, _b, _c;
|
|
1378
1378
|
const rootDir = host.getCurrentDirectory();
|
|
1379
1379
|
const projectTypeLibs = getProjectTypeLibs(
|
|
@@ -1424,6 +1424,14 @@ function patch(ts2, scriptLang, cache, host) {
|
|
|
1424
1424
|
} catch {
|
|
1425
1425
|
cached = { snapshot: ts2.ScriptSnapshot.fromString("") };
|
|
1426
1426
|
}
|
|
1427
|
+
ps == null ? void 0 : ps.getOrCreateScriptInfoForNormalizedPath(
|
|
1428
|
+
filename,
|
|
1429
|
+
false,
|
|
1430
|
+
void 0,
|
|
1431
|
+
ts2.ScriptKind.Deferred,
|
|
1432
|
+
false,
|
|
1433
|
+
host
|
|
1434
|
+
);
|
|
1427
1435
|
cache.set(filename, cached);
|
|
1428
1436
|
}
|
|
1429
1437
|
return cached.snapshot;
|