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.
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 asortText
field. Because of this VSCode sorts them by label. If SourceKit-LSP wants to ensure the sorting of symbols it should include something insortText
field.Steps to Reproduce
No response
Logging
No response