microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.95k stars 28.77k forks source link

Bug: Auto import from Vue.js adds separate import statements #227042

Closed ddenev closed 1 month ago

ddenev commented 1 month ago

Type: Bug

Every time I use auto import from 'vue', the symbol I want is imported in a separate import statement, resulting in multiple import { ... } from 'vue' statements.

Expected result is to reuse the 1st import statement and add the symbol there.

Here is before I auto-import the second symbol from vue: image And here is what happens immediately after I hit Enter on the computed symbol: image

VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.22621 Modes:

Extensions (19) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|12.8.0 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.9.0 js-codeformer|cms|2.6.1 vscode-eslint|dba|3.0.10 gitlens|eam|15.3.1 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 html-slim-scss-css-class-completion|gen|1.7.8 JavaScriptSnippetsStandard|jms|1.8.0 remote-ssh|ms-|0.113.1 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3 abracadabra|nic|9.4.6 material-icon-theme|PKi|5.10.0 vscode-yaml|red|1.15.0 volar|Vue|2.1.0 vscode-todo-highlight|way|1.0.5 material-theme|zhu|3.17.2
mjbvz commented 1 month ago

Since this is a vue file, this features actually comes through your vue extension. Please file this issue against them