vuejs / vetur

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

vetur does not say when there is an unknown Vue component tag in template #1997

Open vegerot opened 4 years ago

vegerot commented 4 years ago

Feature Request

Just spent 45 minutes debugging a component only to realize I hadn't included it in the components where I'm including it. In WebStorm, such a blunder would result in image However, VSCode doesn't provide any such feedback. Curiously enough, pressing "Goto Definition" on the tag takes me to the correct component, even though it's not imported.

To add onto that, pressing "Goto Definition" takes me to the definition only in VSCode, not in vim with coc-vetur

yoyo930021 commented 4 years ago

This PR is need #2243 .

michaelschufi commented 3 years ago

Hi @yoyo930021 I'm a bit confused. As #2243 is already closed and you said "Add in v0.31.0". So was this added in 0.31 and I can just not find the setting?

yoyo930021 commented 3 years ago

Hi @yoyo930021 I'm a bit confused. As #2243 is already closed and you said "Add in v0.31.0". So was this added in 0.31 and I can just not find the setting?

https://vuejs.github.io/vetur/guide/global-components.html#example

michaelschufi commented 3 years ago

@yoyo930021 Ah, thank you. I thought it was already solving this issue. Sorry for bothering you.