-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hey 👋🏾
First of all, thanks for this cool plugin! 🙏🏾
I have a weird request. I'm working with VueJS projects. And the language server for Vue SFCs has a not standardized LSP method that can give you "additional" references.
In case you are not familiar with VueJS, I try to sum it up a little. In Vue you can write so call single-file-components. They are a single file and include template, styling, logic and more for a web component. Anyway, there is a lot of "magic" happening under-the-hood by the Vue TypeScript Compiler. In the end, this file makes a (default) export that is "invisible". With invisible I mean that there is no piece of text/code in this whole file I could call textDocument/reference on to figure out where this component is used.
To solve this problem, the language server added a new special method (not even a workspace/executeCommand). It takes the same parameters as a textDocument/reference request (though, the position gets ignored). The result is also the same format with a list of LSP locations.
My question is now what would be the best way to integrate this into this plugin somehow. By configuration or similar I mean. Not a first-level support for this special case ofc. Do you have an idea? 🙈
Thanks for the help!