Do you happen to use Java and Kotlin in the same project? This seems to not work well for VSCode when I tried it a while back.
That is actively being worked on currently, but is very WIP still
Mixed language projects is something that only IntelliJ can really do. It’s actually the reason I switched over to it from VsCode for Java since we mix Scala in our project.