vuejs / vetur

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

Find all references from TS file doesn't reveal usage in .vue files #2358

Open vicpon opened 4 years ago

vicpon commented 4 years ago

I'm not really sure if this is a Vetur issue or vs code or typescript or something I'm missing in my configuration.

Info

Problem

I am using typescript. If I look for usages of a class or enum using "Find All References" context menu item, it only returns references in .ts files. It does not return references in .vue files.

Reproducible Case

You can see it in this sample project. If you try to find references of store/enums/test.ts, it doesn't find it in HelloWorld.vue https://github.com/vicpon/my-project

image image

yoyo930021 commented 4 years ago

Need https://github.com/vuejs/vetur/issues/2016

dyllandry commented 2 years ago

Has this effort been put on the back burner for now?

I just started using identifiers for vuex mutation names so I could use "find all references" to see everywhere it's used. Sadly, this doesn't find references contained in vue files when searching from the vuex module, only the other way around.