diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 0ff94697cabcc..4cbff3061a440 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -44,7 +44,7 @@ | `:show-directory`, `:pwd` | Show the current working directory. | | `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. | | `:reload` | Discard changes and reload from the source file. | -| `:lsp-reload` | Reload the Language Server that is in use by the current doc | +| `:lsp-restart` | Restarts the Language Server that is in use by the current doc | | `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. | | `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. | | `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. | diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs index 75ab637f09f34..89b5dd10b73ee 100644 --- a/helix-lsp/src/lib.rs +++ b/helix-lsp/src/lib.rs @@ -379,7 +379,7 @@ impl Registry { struct NewClientResult(Arc, UnboundedReceiver<(usize, Call)>); /// start_client takes both a LanguageConfiguration and a LanguageServerConfiguration to ensure that -/// it is only called when it makes sense, specifically, start_client shouldn't care whether. +/// it is only called when it makes sense. fn start_client( id: usize, config: &LanguageConfiguration, diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 3dabd7c8ec0ce..1046acefc9418 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1863,9 +1863,9 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ completer: None, }, TypableCommand { - name: "lsp-reload", + name: "lsp-restart", aliases: &[], - doc: "Reload the Language Server that is in use by the current doc", + doc: "Restarts the Language Server that is in use by the current doc", fun: lsp_restart, completer: None, },