Background code analysis in Visual Studio grinds my windows VM to a halt after every few keystrokes. Yet they spend time speeding up colorization of bracket pairs, which worked just fine for the last 10 releases or so.
In both VS and VSCode, semantic analysis is handled by specific language extensions (some of which might ship in the box, as C# is in VS and TypeScript is in VSCode). So it's impossible to answer this question without knowing which language you're using.