I imported two Vapor modules into a file. As soon as I did I noticed that they were underlined in red and appeared in the problems tab in VSCode. From that point on the fans on my MacBook Pro increased dramatically in speed while I waited for these modules to be ... I assume 'indexed'. The whole process took about a minute. I had already built the project. I thought that all this indexing occurred when a build occurred.
Any ideas on why this is happening?
Here is another example:
In this example I imported the two modules and then typed in the classname and 'Model' protocol. This also took about a minute to come back from validating. I didn't even try and do any code completion. The fans again spun up on the MacBook Pro. I finally got the problems listed at the bottom of the screenshot.
I don't understand why this is happening.