Skip to content

CompletionItem sortText is not set #1234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adam-fowler opened this issue May 7, 2024 · 2 comments
Closed

CompletionItem sortText is not set #1234

adam-fowler opened this issue May 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@adam-fowler
Copy link
Contributor

Swift version

Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)

Platform

macOS

Editor

VSCode

Does the issue reproduce with Swift 6?

None

Description

The CompletionItems returned by SourceKIt-LSP in a textDocument/completion response do not include a sortText field. Because of this VSCode sorts them by label. If SourceKit-LSP wants to ensure the sorting of symbols it should include something in sortText field.

Steps to Reproduce

No response

Logging

No response

@ahoppen
Copy link
Member

ahoppen commented May 7, 2024

Synced to Apple’s issue tracker as rdar://118089327

@ahoppen
Copy link
Member

ahoppen commented Feb 5, 2025

Resolved by #1937

@ahoppen ahoppen closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants