Vetur: Syntax highlighting/autocomplete broken for .vue files

Created on 20 Feb 2019  路  8Comments  路  Source: vuejs/vetur

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

Info

Problem

1銆乶one highlight for data/components/methods/props...
image

2銆乮mport component from *.vue锛宑omplete with autocomplete...
image

if import component with none suffix锛宯one autocomplete...
image

Reproducible Case

  • update to the lates vs code
  • updated to the lates vetur
  • open a .vue file
  • observe
need-more-info

Most helpful comment

Hey @octref thanks for the quick response. So actually it turned out it was due to the fact that I opened my vscode in the parent directory of my SPA app :) I'm assuming some configuration files were not loaded correctly although the AutoComplete for the imports work (I already have a jsconfig in the root).

Not sure if we need to account for that in general, but I think it'd be helpful to come up with a documented workaround and/or highlight it in the FAQ. All the dotnet core apps have a solution folder that groups your projects together so I'm guessing I wasn't the only one who messed this up. This is my first vue project however I've had several React front end projects set up and never similar issues.

Let me know what you think,

Rob

All 8 comments

Same here, for example the autocomplete for javascript in .vue in

Related issues

octref picture octref  路  3Comments

pdanpdan picture pdanpdan  路  3Comments

shaunc picture shaunc  路  3Comments

octref picture octref  路  3Comments

deangoku picture deangoku  路  3Comments