Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lsp): will save #8952

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix type in 'interest'
  • Loading branch information
matoous committed Mar 31, 2024
commit dec397e780f9fb9831407cdf1eb503f1f6ab99cd
6 changes: 3 additions & 3 deletions helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,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 @@ -741,7 +741,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 @@ -775,7 +775,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