@marko/language-server 1.1.11 → 1.1.12
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 +3 -9
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2362,15 +2362,9 @@ var ScriptService = {
|
|
|
2362
2362
|
tsProject.host
|
|
2363
2363
|
);
|
|
2364
2364
|
const generated = extracted.toString();
|
|
2365
|
-
const content = (
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
parser: lang === ScriptLang.ts ? "typescript" : "babel"
|
|
2369
|
-
});
|
|
2370
|
-
} catch {
|
|
2371
|
-
return generated;
|
|
2372
|
-
}
|
|
2373
|
-
})();
|
|
2365
|
+
const content = await prettier2.format(generated, {
|
|
2366
|
+
parser: lang === ScriptLang.ts ? "typescript" : "babel"
|
|
2367
|
+
}).catch(() => generated);
|
|
2374
2368
|
return {
|
|
2375
2369
|
language: lang === ScriptLang.ts ? "typescript" : "javascript",
|
|
2376
2370
|
content
|