Skip to content

fix: align completion comparator with LSP sortText semantics#1424

Merged
sebthom merged 1 commit intoeclipse-lsp4e:mainfrom
sebthom:issue-814
Nov 26, 2025
Merged

fix: align completion comparator with LSP sortText semantics#1424
sebthom merged 1 commit intoeclipse-lsp4e:mainfrom
sebthom:issue-814

Conversation

@sebthom
Copy link
Copy Markdown
Member

@sebthom sebthom commented Nov 25, 2025

Make behavior consistent with the LSP specification for sortText usage:

  • Honor LSP sortText as the primary tie-breaker for equal rank results
  • Restrict documentFilter-length influence to real matches (categories 1–4)
  • Preserve server order only when comparator returns 0 (true ties)

Fixes #814

Make behavior consistent with the LSP specification for sortText usage:
- Honor LSP sortText as the primary tie-breaker for equal rank results
- Restrict documentFilter-length influence to real matches (categories
1–4)
- Preserve server order only when comparator returns 0 (true ties)
@sebthom sebthom merged commit 151ba92 into eclipse-lsp4e:main Nov 26, 2025
10 checks passed
@sebthom sebthom deleted the issue-814 branch December 2, 2025 14: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.

Compare sortText length before compareToIgnoreCase in LSCompletionProposalComparator

2 participants