Skip to content

Commit

Permalink
Merge branch 'helix-editor:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
midnightexigent committed May 18, 2022
2 parents c02dc2e + 29121a1 commit 1b902b3
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 345 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ encoding_rs = "0.8"

chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] }

etcetera = "0.3"
etcetera = "0.4"
textwrap = "0.15.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion helix-loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ homepage = "https://helix-editor.com"
anyhow = "1"
serde = { version = "1.0", features = ["derive"] }
toml = "0.5"
etcetera = "0.3"
etcetera = "0.4"
tree-sitter = "0.20"
once_cell = "1.9"

Expand Down
29 changes: 15 additions & 14 deletions helix-lsp/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,20 +215,21 @@ impl Transport {
}
};

let tx = self
.pending_requests
.lock()
.await
.remove(&id)
.expect("pending_request with id not found!");

match tx.send(result).await {
Ok(_) => (),
Err(_) => error!(
"Tried sending response into a closed channel (id={:?}), original request likely timed out",
id
),
};
if let Some(tx) = self.pending_requests.lock().await.remove(&id) {
match tx.send(result).await {
Ok(_) => (),
Err(_) => error!(
"Tried sending response into a closed channel (id={:?}), original request likely timed out",
id
),
};
} else {
log::error!(
"Discarding Language Server response without a request (id={:?}) {:?}",
id,
result
);
}

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ injection-regex = "hare"
file-types = ["ha"]
roots = []
comment-token = "//"
indent = { tab-width = 4, unit = "\t" }
indent = { tab-width = 8, unit = "\t" }

[[grammar]]
name = "hare"
Expand Down
Loading

0 comments on commit 1b902b3

Please sign in to comment.