Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-lsp/src/lib.rs')
-rw-r--r--helix-lsp/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index ecbf1084..2a910f87 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -612,7 +612,7 @@ impl Registry {
&mut self,
name: String,
ls_config: &LanguageConfiguration,
- doc_path: Option<&std::path::PathBuf>,
+ doc_path: Option<&std::path::Path>,
root_dirs: &[PathBuf],
enable_snippets: bool,
) -> Result<Arc<Client>, StartupError> {
@@ -645,7 +645,7 @@ impl Registry {
&mut self,
name: &str,
language_config: &LanguageConfiguration,
- doc_path: Option<&std::path::PathBuf>,
+ doc_path: Option<&std::path::Path>,
root_dirs: &[PathBuf],
enable_snippets: bool,
) -> Option<Result<Arc<Client>>> {
@@ -700,7 +700,7 @@ impl Registry {
pub fn get<'a>(
&'a mut self,
language_config: &'a LanguageConfiguration,
- doc_path: Option<&'a std::path::PathBuf>,
+ doc_path: Option<&'a std::path::Path>,
root_dirs: &'a [PathBuf],
enable_snippets: bool,
) -> impl Iterator<Item = (LanguageServerName, Result<Arc<Client>>)> + 'a {
@@ -888,7 +888,7 @@ fn start_client(
name: String,
config: &LanguageConfiguration,
ls_config: &LanguageServerConfiguration,
- doc_path: Option<&std::path::PathBuf>,
+ doc_path: Option<&std::path::Path>,
root_dirs: &[PathBuf],
enable_snippets: bool,
) -> Result<NewClient, StartupError> {