Address hover panic and add hint to install go when language server failed to install

This commit is contained in:
Keith Simmons 2022-06-27 15:48:15 -07:00
parent bc82d98ae5
commit a477733bcb
3 changed files with 18 additions and 6 deletions

View file

@ -92,7 +92,7 @@ impl super::LspAdapter for GoLspAdapter {
.output()
.await?;
if !install_output.status.success() {
Err(anyhow!("failed to install gopls"))?;
Err(anyhow!("failed to install gopls. Is go installed?"))?;
}
let installed_binary_path = gobin_dir.join("gopls");