terror / terror/pyproject

Restrict schema completions to the current tool section

Open
#185 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.