Skip to content

Commit

Permalink
Update helix-term/src/commands/typed.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
mangas and the-mikedavis committed Aug 25, 2022
1 parent 738722f commit d27d752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ fn lsp_restart(
let (_view, doc) = current!(cx.editor);
let config = doc
.language_config()
.ok_or_else(|| anyhow!("LSP not defined for current document"))?;
.context("LSP not defined for the current document")?;

let scope = config.scope.clone();
cx.editor.language_servers.restart(config)?;
Expand Down

0 comments on commit d27d752

Please sign in to comment.