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).
When looking for
gluon_language-serverusing thegluon.language-server.pathvariable, the extension should add~/.cargo/bin/to$PATHprior to searching for the command. This way no configuration will be necessary for anyone who runscargo 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 theinstall.rootcargo key, then$CARGO_HOME, and then finally$HOME/.cargo), but the simplistic approach of just adding~/.cargo/binwould cover the default un-customized case (which is probably most people).