[英]vetur go to definition can't redirect after alt+click
I am vue power user and I need in my project ALT+click (multiCursorModifier) on various vue component to jump into the definition/implementation.I have installed vetur and this is my settings.json vetur specific settings.我是 vue 高级用户,我需要在我的项目 ALT+click (multiCursorModifier) 中的各种 vue 组件上跳转到定义/实现。我已经安装了 vetur,这是我的 settings.json vetur 特定设置。
"vetur.experimental.templateInterpolationService": true,
"vetur.trace.server": "verbose"
This is my jsconfig.json这是我的 jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
}
}
}
This is what I get when I click on my vue 2 component.这就是我点击 vue 2 组件时得到的结果。
Unable to open 'vue-editor-bridge.ts': Unable to read file '\vue-temp\vue-editor-bridge.ts' (Error: Unable to resolve non-existing file '\vue-temp\vue-editor-bridge.ts').
All I want is click to definition to work.我想要的只是点击定义工作。 I have tried also vue peek extension with no success.我也尝试过 vue peek 扩展,但没有成功。 How can I proceed further?我怎样才能进一步?
You need to declare your components as global components inside the vetur config file :您需要在 vetur 配置文件中将您的组件声明为全局组件:
globalComponents: ['./components/**/*.vue']
More information in the vetur doc . vetur 文档中的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.