@marko/language-server 1.1.10 → 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.mjs CHANGED
@@ -2362,15 +2362,9 @@ var ScriptService = {
2362
2362
  tsProject.host
2363
2363
  );
2364
2364
  const generated = extracted.toString();
2365
- const content = (() => {
2366
- try {
2367
- return prettier2.format(generated, {
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