Bug: Auto import from vue adds separate import statements in .vue files #17471
Labels
area/cli
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
In VSCode, every time I use auto import from 'vue', the symbol I select is imported in a separate import statement (separate line), resulting in multiple import { ... } from 'vue' statements.
Here is the state before I auto-import the second symbol from vue:
And here is what happens immediately after I hit Enter on the
computed
symbol:This happens only in .vue files, works ok in .js files.
Important: this also works in a pure Vue project (
npm create vue@latest
), only in Quasar project the problem exists. See reproduction.Note: I already reported this issue to:
What did you expect to happen?
Expected result is to reuse the 1st import statement and add the symbol there.
Reproduction URL
https://codepen.io/ddenev/pen/QWXVNyL
How to reproduce?
This is only reproducible in VSCode.
yarn global add @quasar/cli
yarn create quasar
(accept all defaults)src
The result is:
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
VSCode version 1.92.2
Volar version 2.1.2
Quasar version 2.16.9
The text was updated successfully, but these errors were encountered: