Skip to content

gluon.language-server.path should search in ~/.cargo.bin/ by default #20

Description

@lilyball

When looking for gluon_language-server using the gluon.language-server.path variable, the extension should add ~/.cargo/bin/ to $PATH prior to searching for the command. This way no configuration will be necessary for anyone who runs cargo install gluon_language-server.

If you want to be smarter, you could reproduce Cargo's logic for determining where to install ($CARGO_INSTALL_ROOT, followed by the install.root cargo key, then $CARGO_HOME, and then finally $HOME/.cargo), but the simplistic approach of just adding ~/.cargo/bin would cover the default un-customized case (which is probably most people).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions