vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

IntelliSense shows wrong vue module when type `ref` #3266

Open ytliuSVN opened 2 years ago

ytliuSVN commented 2 years ago

Info

Problem

When I type ref, the IntelliSense will auto imports @vue/reactivity instead of vue. In normal case, it should be import { ref } from 'vue'

Reproducible Case

import-ref
Dhalsimzhao commented 2 years ago

same issue with "vue-demi"

MohammadYounes commented 1 year ago

I'm having the same issue. Is there a way around this ?

Using this (https://eslint.vuejs.org/rules/prefer-import-from-vue.html#vue-prefer-import-from-vue) would maintain consistent vue imports. However it will be much better to have them auto-completed under vue instead of @vue/*