idk
This commit is contained in:
Generated
+3
-3
@@ -130,9 +130,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dashmap"
|
name = "dashmap"
|
||||||
version = "6.2.1"
|
version = "6.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c"
|
checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
@@ -445,7 +445,7 @@ name = "mist-analyzer"
|
|||||||
version = "0.0.2"
|
version = "0.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cargo_metadata",
|
"cargo_metadata",
|
||||||
"dashmap 6.2.1",
|
"dashmap 6.1.0",
|
||||||
"mist-codegen",
|
"mist-codegen",
|
||||||
"mist-parser",
|
"mist-parser",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ categories = ["compilers"]
|
|||||||
mist-parser = { workspace = true }
|
mist-parser = { workspace = true }
|
||||||
mist-codegen = { 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"] }
|
tokio = { version = "1.52.3", features = ["full", "macros", "rt", "rt-multi-thread"] }
|
||||||
tower-lsp = "0.20.0"
|
tower-lsp = "0.20.0"
|
||||||
cargo_metadata = "0.23.1"
|
cargo_metadata = "0.23.1"
|
||||||
|
|||||||
@@ -205,7 +205,10 @@ impl LanguageServer for Backend {
|
|||||||
|
|
||||||
let output = transpiler::transpile_text(&source).expect("Failed to transpile");
|
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
|
self.client
|
||||||
.log_message(MessageType::INFO, format!("Found at {position}"))
|
.log_message(MessageType::INFO, format!("Found at {position}"))
|
||||||
|
|||||||
Reference in New Issue
Block a user