Vetur: Completion for local variables from v-for is not working

Created on 1 Aug 2019  路  2Comments  路  Source: vuejs/vetur

  • [X] I have searched through existing issues
  • [X] I have read through docs
  • [X] I have read FAQ

Info

  • Platform: Win
  • Vetur version: 0.21.1
  • VS Code version: 1.36.1

Problem

111

image

image

bug completion template-interpolation

Most helpful comment

I realized that this issue is related with #1129

All 2 comments

Repro code:

<template>
  <div>
    <div v-for="item in list">
      {{ item.bar }}
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'

interface Foo {
  bar: string
}

export default Vue.extend({
  data: () => ({
    list: [] as Foo[]
  })
})
</script>

Looks like hover is also not working on local variables declared by v-for. => EDIT: filed #1374

I realized that this issue is related with #1129

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabrielboliveira picture gabrielboliveira  路  3Comments

AnnAngela picture AnnAngela  路  3Comments

yoyoys picture yoyoys  路  3Comments

OsterHuang picture OsterHuang  路  3Comments

shaunc picture shaunc  路  3Comments