Skip to content

fix: rank imported/same-namespace symbols above non-imported in completion#229

Merged
calebdw merged 1 commit into
mainfrom
calebdw/push-kulnruktqovs
Jul 10, 2026
Merged

fix: rank imported/same-namespace symbols above non-imported in completion#229
calebdw merged 1 commit into
mainfrom
calebdw/push-kulnruktqovs

Conversation

@calebdw

@calebdw calebdw commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Swap source_tier before origin_tier in the sort_text key for class, function, and constant completions. Previously origin_tier (project > core > vendor) came first, so a non-imported project class could outrank an already-imported vendor class. Now an imported symbol always ranks above a non-imported one regardless of provenance.

@calebdw calebdw force-pushed the calebdw/push-kulnruktqovs branch from 7219b01 to 959d6c6 Compare July 10, 2026 22:14
…etion

Swap source_tier before origin_tier in the sort_text key for class,
function, and constant completions. Previously origin_tier (project >
core > vendor) came first, so a non-imported project class could
outrank an already-imported vendor class. Now an imported symbol always
ranks above a non-imported one regardless of provenance.

Affects class_sort_text in class_completion.rs and
flat_symbol_sort_text in symbol_ranking.rs.
@calebdw calebdw force-pushed the calebdw/push-kulnruktqovs branch from 959d6c6 to ad28f07 Compare July 10, 2026 22:20
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@calebdw calebdw merged commit 20a9aa1 into main Jul 10, 2026
6 of 7 checks passed
@calebdw calebdw deleted the calebdw/push-kulnruktqovs branch July 10, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants