Address hover panic and add hint to install go when language server failed to install
This commit is contained in:
parent
bc82d98ae5
commit
a477733bcb
3 changed files with 18 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue