Resolved: Go To definition does not work in same file with VSCODE + VETUR


My vue.js configuration is
  • vue.js 2.0
  • use vue.cli
  • webpack
  • javascript not typescript
  • use multiple root
    • server : server project
    • client/dashboard : web client project(this is vue project)

On follow code, “go definition” does not work with “could not find definition”
<button @click="clickEvent"/>

export default {
  methods: {
    clickEvent() {
    function1() {
  • when go to definition on @click=”clickEvent”
  • when go to definition on this.function1()
  • computed, props is same


vetur is look like no this function. Maybe you can try use vue-helper.
enter image description here

If you have better answer, please add a comment about this, thank you!