-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Adding duplicate import statement when using CRLF line endings and organize imports #933
Comments
This should normally already been fixed, see #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 microsoft/vscode-languageserver-node#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
withastro/prettier-plugin-astro#425
The text was updated successfully, but these errors were encountered: