diff --git a/.changeset/hot-months-promise.md b/.changeset/hot-months-promise.md new file mode 100644 index 00000000..7d80b0fc --- /dev/null +++ b/.changeset/hot-months-promise.md @@ -0,0 +1,6 @@ +--- +'@astrojs/language-server': patch +'astro-vscode': patch +--- + +Fix usage of prettier plugins without prettier-plugin-astro diff --git a/packages/language-server/src/languageServerPlugin.ts b/packages/language-server/src/languageServerPlugin.ts index a784aa55..50c24899 100644 --- a/packages/language-server/src/languageServerPlugin.ts +++ b/packages/language-server/src/languageServerPlugin.ts @@ -103,9 +103,9 @@ export const plugin: LanguageServerPlugin = ( ]; return { + ...resolvedConfig, plugins: plugins, parser: 'astro', - ...resolvedConfig, }; }, });