-
Notifications
You must be signed in to change notification settings - Fork 3k
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
support global pyright setting in zed settings #10587
Comments
something like: "lsp": {
"pyright": {
"enabled": true,
"pythonVersion": "3.11",
"venvPath": ".",
"venv": ".venv",
"typeCheckingMode": "strict",
"strictListInference": true,
"reportDuplicateImport": true,
"reportMissingImports": true,
"reportMissingTypeStubs": false,
"defineConstant": { "DEBUG": true }
}
} or pylance in VSCode: {
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingModuleSource": "none"
},
"python.analysis.typeshedPaths": [
".venv/Lib/site-packages"
],
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
} |
Made a PR that should allow this: |
Dependency resolution still doesn't work for me with the folowing configuration in settings.json:
At the same time, it works fine with pyrightconfig.json:
I'm running zed preview 0.144.3 f11a992 |
The pyright global settings are different from the pyrightconfig.json ones. "lsp": {
"pyright": {
"settings": {
"python": {
"pythonPath": ".venv/bin/python"
}
}
}
} |
Got it! I tried setting |
Looks like this PR was included in the v0.145.0-pre release. |
Thanks, I have just updated to 0.145 and it works well 👍 |
Check for existing issues
Describe the feature
support global pyright setting in zed settings so that users don't need to generate pyrightconfig.json in every project dir.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: