Closed xkeshav closed 3 months ago
This should normally already been fixed, see https://github.com/withastro/language-tools/issues/928
I cannot reproduce the issue with your snippet, so there must be something else going on... Could you share a repo?
Managed to reproduce, it only happens in prod and with CRLF line endings again...
Figured it out, there was an update to an upstream dependency that unexpectedly caused a change in how we generate the Volar mappings https://github.com/microsoft/vscode-languageserver-node/pull/1286
I'm not sure if Microsoft intended for it to be breaking or not, but a bit annoying. It only happened in prod because prod ended up using a different version of the dependency due to a difference between how pnpm and npm handled the dep.
But it is happening in a dev environment too
Should be fixed in latest version of the extension!
Describe the Bug
Whenever we save an
.astro
file; it automatically add the last import statment one more time. earlier I though it is due to some eslint and vd code settings. here is full details of issue.Astro extension v v2.13.2
VS Code v 1.92
.prettierrc.js
is default formatter and.eslintrc.js
is on placeSteps to Reproduce
Please see here for details
Link to Minimal Reproducible Example
https://github.com/withastro/prettier-plugin-astro/issues/425