Are you mixing .rs and .js(x)/.ts(x) files in the same project? Jetbrains doesn't support multiple languages in any version of their IDE well AFAIK. I daily drive PyCharm and Webstorm in parallel.
I think you can actually try to do it with separate module for each "subproject". But when I tried it, it was kind of buggy and very fragile. So in the end it was easier to just use two separate projects.
I myself work on a web project with a Rust backend and a TS front end, all in the same repo.
That said I use VS: Code, not Jetbrains stuff. It handles this case just fine.
Android Studio has C++ support, because Google lacked a CDT counterpart when they went InteliJ, and had to do an agreement with JetBrains to include the support.