Search for symbol with basedpyright and ruff? #27192
2zqa
started this conversation in
Language Support
Replies: 2 comments
-
|
I don't know the solution but I have the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
i have rust and basepyright installed. "languages": {
"Python": {
"formatter": [
{
"code_actions": {
"source.organizeImports.ruff": true,
"source.fixAll.ruff": true
}
},
{
"language_server": {
"name": "ruff"
}
}
]
}
},
"lsp": {
"basedpyright": {
"settings": {
"basedpyright.analysis": {
"diagnosticMode": "workspace",
"typeCheckingMode": "basic"
}
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I have Ruff and Basedpyright configured, but when I try to use Ctrl + T to search for a symbol, it gives no results. Checking the LSP logs, it appears that ruff tries to handle to symbol search, when basedpyright should be the one handling it of course.
When you uninstall the Ruff extension and remove
rufffrom thelanguages.Python.language_serversbelow, it works fine.{ "lsp": { "basedpyright": { "settings": { "basedpyright.analysis": { "diagnosticMode": "workspace", "typeCheckingMode": "basic" } } } }, "languages": { "Python": { "language_servers": ["basedpyright", "ruff", "!pyright"], "formatter": [ { "code_actions": { "source.organizeImports.ruff": true, "source.fixAll.ruff": true } }, { "language_server": { "name": "ruff" } } ] } } }Does anyone know a fix?
Beta Was this translation helpful? Give feedback.
All reactions