Restrict schema completions to the current tool section
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 20
- Forks
- 0
- Avg merge
- 4m
- Merged PRs (30d)
- 8
Description
After the 0.2.1 completion changes in #132, completions in a tool-specific section include fields from unrelated tool schemas, such as ty and ruff fields within [tool.pyright].
Restore context-aware schema completion selection so suggestions are limited to the active TOML table and tool section, while retaining the unfiltered candidate behavior fixed in #132.
Reported by @rchl in https://github.com/terror/pyproject/issues/132#issuecomment-5083223927.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing schema completion selection after the 0.2.1 changes in #132 and reproduce the issue in a [tool.pyright] section containing unrelated ty and ruff fields. Done means suggestions are limited to the active TOML table and tool section while retaining the unfiltered candidate behavior fixed in #132.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100