-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intellisense not listing files when plugin active #222
Comments
Sounds pretty special to your environment. A language server is only going to be useful for the files it knows about, those in the compilation database. |
I don't know how you mean that. I consider it perfectly normal to have the main meson project in a subdirectory, especially since this is a git submodule that covers the C/C++ part of a larger project. The Meson sidebar discovers the project perfectly: The build comands work: But IntelliSense is broken, as described above. When I enable the Meson plugin, I get this "Configuration Provider" set in Extensions > C/C++ > IntelliSense: Then it no longer works. And I can't change the value, it is always set back to "mesonbuild.mesonbuild". However, I just found how to disable that. Add this to "mesonbuild.modifySettings": false, This seems to make it behave. Still, this appears to be a bug. |
What does "intellisense not listing files" mean? |
Somehow IntelliSense needs to know which |
How do you know it isn't used? |
Like I initially described, "Go to Definition", "Find All References" etc. only work in the limited scope of opened files. As soon as I remove Meson plugin from the equation, either by disabling it, or by |
I don't understand your project layout. Do you have C/C++ files outside of the submodule that you're trying to use "Go to Definition" or "Find All References" on? |
There is a toplevel project, that contains various git submodules. The submodules cover different technologies and/or programming languages. One of them is a C/C++ project with a meson.build file.
This should be a normal use case. And like I said: the other functions like building or showing the project tree, work. |
Description
Intellisense does not seem to list the project C/C++ files correctly, when under control of the meson plugin. It only sees files currently open in the IDE, or #include-d by the open files. "Go to Definition", "Find All References" etc. only work in that limited scope.
As soon as I deactivated the plugin it started to work again.
Our workspace is special in that the meson project is in a subdirectory (actually a git submodule). Maybe that could be the reason. The meson build commands work correctly, and the project is still correctly shown in the tree. But Intellisense is broken.
The text was updated successfully, but these errors were encountered: