@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.js CHANGED
@@ -2335,15 +2335,9 @@ var ScriptService = {
2335
2335
  tsProject.host
2336
2336
  );
2337
2337
  const generated = extracted.toString();
2338
- const content = (() => {
2339
- try {
2340
- return prettier2.format(generated, {
2341
- parser: lang === import_language_tools17.ScriptLang.ts ? "typescript" : "babel"
2342
- });
2343
- } catch {
2344
- return generated;
2345
- }
2346
- })();
2338
+ const content = await prettier2.format(generated, {
2339
+ parser: lang === import_language_tools17.ScriptLang.ts ? "typescript" : "babel"
2340
+ }).catch(() => generated);
2347
2341
  return {
2348
2342
  language: lang === import_language_tools17.ScriptLang.ts ? "typescript" : "javascript",
2349
2343
  content