@marko/language-server 1.0.7 → 1.0.8
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 +5 -1
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +13 -8
- package/dist/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1166,6 +1166,10 @@ var import_path6 = __toESM(require("path"));
|
|
|
1166
1166
|
var import_language_tools13 = require("@marko/language-tools");
|
|
1167
1167
|
var fsPathReg = /^(?:[./\\]|[A-Z]:)/i;
|
|
1168
1168
|
var modulePartsReg = /^((?:@(?:[^/]+)\/)?(?:[^/]+))(.*)$/;
|
|
1169
|
+
import_language_tools13.Project.setDefaultTypePaths({
|
|
1170
|
+
internalTypesFile: import_path6.default.join(__dirname, "marko.internal.d.ts"),
|
|
1171
|
+
markoTypesFile: import_path6.default.join(__dirname, "marko.runtime.d.ts")
|
|
1172
|
+
});
|
|
1169
1173
|
function patch(ts2, configFile, extractCache2, resolutionCache, host, ps) {
|
|
1170
1174
|
var _a, _b, _c;
|
|
1171
1175
|
const processors = import_language_tools13.Processors.create({
|
|
@@ -1205,7 +1209,7 @@ function patch(ts2, configFile, extractCache2, resolutionCache, host, ps) {
|
|
|
1205
1209
|
}
|
|
1206
1210
|
ps == null ? void 0 : ps.getOrCreateScriptInfoForNormalizedPath(
|
|
1207
1211
|
fileName,
|
|
1208
|
-
|
|
1212
|
+
true,
|
|
1209
1213
|
void 0,
|
|
1210
1214
|
ts2.ScriptKind.Deferred,
|
|
1211
1215
|
false,
|