Open Dqgs opened 1 year ago
You can set the rust-analyzer.cargo.features
config to ["ssr"]
to enable the first arm, but that will also disable the second arm at the same time. Rust-analyzer only supports a single #[cfg]
configuration at the same time currently.
Any plans on updating for more?
I believe there is an open issue for it, but I can't find it.
For anybody stumbling on this and using nvim, here is an example on how to make the ssr blocks work https://gist.github.com/GeordieP/07ad21a714f98deda71a9ea4330caef1
Leptos currently uses cfg_if! macros and when having something like
it does not support the first one even if i type something random that has no function or anything it will not produce any errors
rust-analyzer version: rust-analyzer version: 0.3.1377-standalone (daa0138e4 2023-01-21)
rustc version: rustc 1.68.0-nightly (0fb8b72ce 2023-01-06)