Skip to content

Commit

Permalink
fix type in 'interest'
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Feb 1, 2024
1 parent 0e3578c commit 6fb5979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl Client {
.expect("language server not yet initialized!")
}

pub(crate) fn file_operations_intests(&self) -> &FileOperationsInterest {
pub(crate) fn file_operations_interest(&self) -> &FileOperationsInterest {
self.file_operation_interest
.get_or_init(|| FileOperationsInterest::new(self.capabilities()))
}
Expand Down Expand Up @@ -752,7 +752,7 @@ impl Client {
new_path: &Path,
is_dir: bool,
) -> Option<impl Future<Output = Result<lsp::WorkspaceEdit>>> {
let capabilities = self.file_operations_intests();
let capabilities = self.file_operations_interest();
if !capabilities.will_rename.has_interest(old_path, is_dir) {
return None;
}
Expand Down Expand Up @@ -786,7 +786,7 @@ impl Client {
new_path: &Path,
is_dir: bool,
) -> Option<impl Future<Output = std::result::Result<(), Error>>> {
let capabilities = self.file_operations_intests();
let capabilities = self.file_operations_interest();
if !capabilities.did_rename.has_interest(new_path, is_dir) {
return None;
}
Expand Down

0 comments on commit 6fb5979

Please sign in to comment.