mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-07 00:07:29 +00:00
- workspace/configuration answers a server's own section (basedpyright) from its settings block; basedpyright runs in "standard" mode and keeps auto search paths on, so `src/` layouts resolve from `tests/`. - jdtls: formatting follows the editor indent, calls complete without guessed arguments, and JDK internals stay out of completion. - `max-java` in a language server config picks an installed JDK no newer than that (kotlin-language-server fails on JDK 25). - Server initialization may take up to 5 minutes (first Gradle import). - `lsp_resend_diagnostics` re-emits stored diagnostics after a reload. - Spelling only checks declared names (not called methods like `substring`) and accepts plurals of known software terms.
40 lines
1.4 KiB
TOML
40 lines
1.4 KiB
TOML
id = "python"
|
|
name = "Python"
|
|
extensions = ["py", "pyi", "pyw"]
|
|
filenames = ["SConstruct", "SConscript"]
|
|
first-line = "^#!.*\\bpython[0-9.]*\\b"
|
|
line-comment = "#"
|
|
indent = { tab-size = 4, insert-spaces = true }
|
|
ui-mode = "Python"
|
|
tree-sitter = "python"
|
|
|
|
[[language-servers]]
|
|
name = "basedpyright"
|
|
command = "basedpyright-langserver"
|
|
args = ["--stdio"]
|
|
root-markers = ["pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json"]
|
|
install-hint = "pip install basedpyright (or: uv tool install basedpyright)"
|
|
|
|
# basedpyright defaults to "recommended", which flags unannotated attributes and
|
|
# every unknown type. "standard" reports real problems; a project's own
|
|
# `[tool.basedpyright]` / pyrightconfig.json still takes precedence.
|
|
[language-servers.initialization-options.settings.basedpyright.analysis]
|
|
typeCheckingMode = "standard"
|
|
# Off whenever analysis settings are sent without it: `src/` layouts would stop resolving.
|
|
autoSearchPaths = true
|
|
|
|
[[language-servers]]
|
|
name = "pyright"
|
|
# Alternative: used only when the server above is not installed.
|
|
fallback = true
|
|
command = "pyright-langserver"
|
|
args = ["--stdio"]
|
|
root-markers = ["pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json"]
|
|
install-hint = "npm i -g pyright (or: pip install pyright)"
|
|
|
|
[debugger]
|
|
adapter = "debugpy"
|
|
command = "python3"
|
|
args = ["-m", "debugpy.adapter"]
|
|
install-hint = "pip install debugpy"
|