neoclide / coc-vetur

Vue language server extension for coc.nvim
219 stars 7 forks source link

Outline view isn't retrieving all of the symbols #43

Closed Steadyx closed 4 years ago

Steadyx commented 4 years ago

Problem

*Hey there, I love the plug-in. Really helpful. It works great except for one minor issue, I've noticed that I can't access a lot of the symbols compared to something like vs-codes outline view. For instance, when I inspect the symbols in outline view I get all of the class names and everything in the template but for some reason, it seems to completely skip everything in the script tag except for the default object. Here are some screenshots to further explain what I mean.

Examples

Some test code in Vue

Screenshot 2020-06-30 at 15 40 48

The symbols in the outline view in vim:

Screenshot 2020-06-30 at 15 41 22 Screenshot 2020-06-30 at 15 41 53

The outline view with symbols in vs code looks further into the script methods and properties

Screenshot 2020-06-30 at 15 44 02

If you need any more information or if I wasn't descriptive enough let me know

chemzqm commented 4 years ago

It's what returned from vetur, could be different version of vetur of configuration problem.

Steadyx commented 4 years ago

Got it working cheers, it was driving me mad. I installed vls globally and gave the vetur.dev.vlsPath the path from the node_modules but for some reason that still wasn't working. I figured I'd try using the server from vs-code and it works like a charm now.

chemzqm commented 4 years ago

So they didn't made module on npm uptodate