Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
  • Loading branch information
pascalkuthe and the-mikedavis authored Dec 8, 2023
1 parent e8de61f commit 7491577
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helix-lsp/src/file_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl FileOperationsInterest {
.workspace
.as_ref()
.and_then(|capabilities| capabilities.file_operations.as_ref());
let Some(capabilities) =capabilities else {
let Some(capabilities) = capabilities else {
return FileOperationsInterest::default();
};
FileOperationsInterest {
Expand Down
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ impl Document {
self.encoding
}

/// sets the document path withoult sending events to various
/// sets the document path without sending events to various
/// observers (like LSP), in most cases `Editor::set_doc_path`
/// should be used instead
pub fn set_path(&mut self, path: Option<&Path>) {
Expand Down
4 changes: 2 additions & 2 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ impl Editor {
self.launch_language_servers(doc_id)
}

/// moves/renames a path, invocing any event handlers (currently only lsp)
/// moves/renames a path, invoking any event handlers (currently only lsp)
/// and calling `set_doc_path` if the file is open in the editor
pub fn move_path(&mut self, old_path: &Path, new_path: &Path) -> io::Result<()> {
let new_path = get_canonicalized_path(new_path);
Expand Down Expand Up @@ -1256,7 +1256,7 @@ impl Editor {
// we need to clear the list of language servers here so that
// refresh_doc_language/refresh_language_servers doesn't resend
// text_document_did_close. Since we called `text_document_did_close`
// we have fully unregistered this document form its LS
// we have fully unregistered this document from its LS
doc.language_servers.clear();
doc.set_path(Some(path));
self.refresh_language_servers(doc_id)
Expand Down

0 comments on commit 7491577

Please sign in to comment.