This commit is contained in:
2026-05-23 11:27:05 +02:00
parent fa00b3a199
commit eb24767617
3 changed files with 8 additions and 5 deletions
Generated
+3 -3
View File
@@ -130,9 +130,9 @@ dependencies = [
[[package]]
name = "dashmap"
version = "6.2.1"
version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c"
checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
dependencies = [
"cfg-if",
"crossbeam-utils",
@@ -445,7 +445,7 @@ name = "mist-analyzer"
version = "0.0.2"
dependencies = [
"cargo_metadata",
"dashmap 6.2.1",
"dashmap 6.1.0",
"mist-codegen",
"mist-parser",
"tokio",
+1 -1
View File
@@ -12,7 +12,7 @@ categories = ["compilers"]
mist-parser = { workspace = true }
mist-codegen = { workspace = true }
dashmap = "6.2.1"
dashmap = "6.1.0"
tokio = { version = "1.52.3", features = ["full", "macros", "rt", "rt-multi-thread"] }
tower-lsp = "0.20.0"
cargo_metadata = "0.23.1"
+4 -1
View File
@@ -205,7 +205,10 @@ impl LanguageServer for Backend {
let output = transpiler::transpile_text(&source).expect("Failed to transpile");
let position = output.find(inject).expect("Didn't find injection").saturating_sub(1);
let position = output
.find(inject)
.expect("Didn't find injection")
.saturating_sub(1);
self.client
.log_message(MessageType::INFO, format!("Found at {position}"))