You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
This PR gates TOML registration behind a Ruff version check to avoid the
issue reported in
#1127 (comment),
where older versions of Ruff try to lint TOML files as Python code.
The version check uses 0.16.2 because that includes the formatting fix
in astral-sh/ruff#27332, in addition to the
basic TOML support added to the LSP in
astral-sh/ruff#26862 (shipped in 0.16.1) and to
the linter in astral-sh/ruff#26772 (shipped in
0.15.22).
TOML files are also excluded when `ruff-lsp` is used.
## Test plan
Manual testing in VS Code:
<img width="649" height="496" alt="image"
src="https://github.com/user-attachments/assets/735ae6c7-50a1-4d77-86b5-5d861c7a9bf5"
/>
No problem is detected now, but if I use the same executable with the
published version of the extension, I reproduce the diagnostic from the
comment.
0 commit comments