Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 549
Chris Lees Avatar asked Oct 31 '25 04:10

Chris Lees


1 Answers

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

like image 62
Jason Avatar answered Nov 02 '25 13:11

Jason