Skip to content

Commit

Permalink
chore: bump lsp-server to v0.7.7
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 9, 2024
1 parent a3e40a2 commit 2be06c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kclvm/Cargo.lock

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

1 change: 0 additions & 1 deletion kclvm/sema/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::HashMap;
use std::sync::Arc;

use super::{sup, DictType, Type, TypeFlags, TypeKind, TypeRef};
use petgraph::algo::is_cyclic_directed;
use petgraph::graph::{DiGraph, NodeIndex};
use petgraph::visit::{depth_first_search, DfsEvent};

Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ compiler_base_session = "0.1.3"
kclvm-query = { path = "../../../query" }
kclvm-span = { path = "../../../span" }

lsp-server = { version = "0.7.0", default-features = false }
lsp-server = { version = "0.7.7", default-features = false }
anyhow = { version = "1.0", default-features = false, features = ["std"] }
crossbeam-channel = { version = "0.5.7", default-features = false }
ra_ap_vfs = "0.0.149"
Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl LanguageServerState {
lsp_types::NumberOrString::Number(id) => id.into(),
lsp_types::NumberOrString::String(id) => id.into(),
};
self.request_queue.incoming.complete(id);
self.request_queue.incoming.complete(&id);
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl LanguageServerState {
/// Sends a response to the client. This method logs the time it took us to reply
/// to a request from the client.
pub(super) fn respond(&mut self, response: lsp_server::Response) -> anyhow::Result<()> {
if let Some((method, start)) = self.request_queue.incoming.complete(response.id.clone()) {
if let Some((method, start)) = self.request_queue.incoming.complete(&response.id) {
let duration = start.elapsed();
self.send(response.into())?;
self.log_message(format!(
Expand Down

0 comments on commit 2be06c7

Please sign in to comment.