Skip to content

Make completion list sorting match the built-in godot order #1041

Description

@pklito

Godot version

4.7

VS Code version

1.125

Godot Tools VS Code extension version

2.7.1

System information

Windows 11

Problem statement

The completion list is my one gripe when using the vscode extension over the built in godot editor.
VScode's default alphabetical sorting means the same functions and attributes which are common to most classes will be first on the list, so the auto complete loses some of it's efficacy.

The current extension ordering vs. godot's version:

Image Image

Proposed solution

I wrote this issue in this repository although I am not 100% certain if it is a client-side or server-side LSP issue, so I would appreciate any corrections.

From what I could gather, GDCompletionProvider is currently unused in the code, and the default provider behavior is being used instead, but I won't pretend to know enough about this codebase or extensions to know what the proper solution would be.

Here is how it would look if the completion items were shown in the order they are recieved from the LSP:
Image
(I did this with a hacky fix incrementing the sortText of each item directly in the languageserver module, just as a hotfix for my own use)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions