Skip to content

CompletionItem sortText is not set #1234

Closed
@adam-fowler

Description

@adam-fowler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions