mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
When editing SQL with concrete tables already referenced (a FROM clause, a "table." qualifier, or an INSERT column list), column completions only carried `computeBoost + keyBoost (0/500)` — lower than keyword boosts (1200-1900) — so the table's own columns were interleaved among keywords instead of ranking at the top where the user expects them. Give columns a relevance boost (+2000) in these referenced-table contexts so they rank above plain keywords. Added a unit test asserting columns outrank keywords when a table is referenced. Co-authored-by: vrustx <vrustx@vrustxdeMac-mini.local> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>