You can enable optional features on Rust analyser. For example, to enable ssr Leptos feature on VSCode, you'd need to create a .vscode/settings file:
{ "rust-analyzer.cargo.features": [ "ssr" ] }
Currently, though, you cannot enable the incompatible "hydrate" feature at the same time, sadly.