Chris Lees
Chris Lees

Reputation: 2210

VS Code stops letting me collapse code and navigate to definition when working in Vue.js

I've been having a really weird issue with VS Code. After using it for an undetermined amount of time, I'm unable to collapse code and navigate to definition. The arrow indicators in the left margin for collapsing code disappear and I can't seem to get them to come back. Closing the file doesn't work, and restarting the app doesn't work either. The only thing that works is a complete system restart. The same thing happens with ctrl+clicking a class name expecting it to navigate to definition but it doesn't.

I thought at first it was probably an extension I installed so I uninstalled all my extensions, restarted the app and now the collapse icons don't show up at all. I'm working in VueJS and think it might have something to do with *.vue extensions but I'm not sure.

Upvotes: 4

Views: 1874

Answers (1)

Jason
Jason

Reputation: 732

You need Vetur for pretty much any functionality in *.vue files, and Vue Peek for Ctrl+Clicking paths

Upvotes: 4

Related Questions