Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/document.rs')
| -rw-r--r-- | helix-view/src/document.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index dcdc8dc2..5a17c5b7 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -642,7 +642,6 @@ where } use helix_lsp::{lsp, Client, LanguageServerId, LanguageServerName}; -use url::Url; impl Document { pub fn from( @@ -1822,8 +1821,8 @@ impl Document { } /// File path as a URL. - pub fn url(&self) -> Option<Url> { - Url::from_file_path(self.path()?).ok() + pub fn url(&self) -> Option<lsp::Url> { + lsp::Url::from_file_path(self.path()?).ok() } pub fn uri(&self) -> Option<helix_core::Uri> { @@ -1909,7 +1908,7 @@ impl Document { pub fn lsp_diagnostic_to_diagnostic( text: &Rope, language_config: Option<&LanguageConfiguration>, - diagnostic: &helix_lsp::lsp::Diagnostic, + diagnostic: &lsp::Diagnostic, language_server_id: LanguageServerId, offset_encoding: helix_lsp::OffsetEncoding, ) -> Option<Diagnostic> { |