-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Configuration file setting is ignored for LSP4IJ mode #66
Comments
Console mode works as expected |
This is expected. Pyright's LSP mode does not support explicit explicit configuration file. See this discussion. You can file an enhancement request for Pyright, though. |
Could you not add a |
That wouldn't work, since LSP mode uses workspace folders and not the working directory. You can try the build out yourself to verify this. LSP4IJ, which is the client this plugin is using, has yet to support workspace folders, so I'm afraid you will have to wait. I wonder if Pylance supports your use case. |
Ah ok that make sense. Didn't know that the underlying LSP system does not yet support it. And yeah I just tested your test build and it does not work. Even though ti seem to run the server in the context of my sub folder it still somehow detects the |
What happened?
When using the LSP4IJ mode the language server is ignoring the Configuration file I manually set and instead uses a
pyproject.toml
in the root of my project.Steps to reproduce
my_sub
and create apyrightconfig.json
filePyright (Project)
->Configuration
setting tomy_sub/pyrightconfig.json
Running mode
to LSP4IJ`Relevant log output or stack trace
Operating system
macOS
The text was updated successfully, but these errors were encountered: