lsp: use project-name instead of crate_name to generate Cargo.toml path

My original patch was broken for crates with names-like-this, since it would incorrectly
add underscores instead of dashes to the pathname. This patch fixes the problem.
pull/14/head
William Findlay 3 years ago
parent 9849294865
commit b2838bd9eb
No known key found for this signature in database
GPG Key ID: 7162B44E9E560373

@ -1,3 +1,3 @@
{
"rust-analyzer.linkedProjects": ["Cargo.toml", "{{crate_name}}-ebpf/Cargo.toml"]
"rust-analyzer.linkedProjects": ["Cargo.toml", "{{project-name}}-ebpf/Cargo.toml"]
}

@ -1,3 +1,3 @@
{
"rust-analyzer.linkedProjects": ["Cargo.toml", "{{crate_name}}-ebpf/Cargo.toml"]
"rust-analyzer.linkedProjects": ["Cargo.toml", "{{project-name}}-ebpf/Cargo.toml"]
}

Loading…
Cancel
Save