felixfbecker / php-language-server

PHP Implementation of the VS Code Language Server Protocol 🆚↔🖥
ISC License
1.16k stars 185 forks source link

Document and workspace symbol search not listing variables #449

Open mikuslusens opened 7 years ago

mikuslusens commented 7 years ago

Not sure if this is the right place for posting this but here goes. This isn't a huge problem for me, as the project I'm working on is fairly small, but this might become a bigger problem in the future. My project does not contain any classes, methods, properties, interfaces or namespaces, so I don't know about those, but functions and constants do show up in the list, only variables are missing. The project does appear to be properly indexed, as things like going to definition are working fine. I was hoping that someone might have some idea as to what might be causing this, because I have no clue.

duplicate-issues[bot] commented 7 years ago

Hey @mikuslusens,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job :smile:

If not, the maintainers will get to this issue shortly.

Cheers, Your Friendly Neighborhood ProBot

mikuslusens commented 7 years ago

Not even close, sadly.

felixfbecker commented 7 years ago

This is by design for performance reasons and to not clutter the list. Do you have a use case for them?

mikuslusens commented 7 years ago

Oh, I see. Well, like I said it's not a big deal for me, I simply thought that they where supposed to be listed because that is "advertised" in the extension's (and repo's) description. I thought it might be useful for a larger project, but I suppose performance and cluttering are valid reasons to exclude them.