This is mainly for vue2 and vetur users. Vetur doesn't support jump to a .vue file which ignore the .vue extension in module path. For example:
// complete module path is ./components/button/index.vue
import Button from './components/button';
// complete module path is ./comp.vue
import Comp from './comp';
This extension also fix the vetur another issue: In monorepo project, you can't use Go to Definition for a package which is installed in root but not current workspace.
By default, this feature is disabled, you need manually enable it:
{
"neoVueHelper.moduleDefinition.enable": true
}
Every time you change the above setting, you need to reload vscode to take effect.
TODOs
[x] go to definition support for vue sfc module without .vue extension and directory index.vue