Resolving Shell Environment is Slow
VS Code Shell Environment
Details
When launching VS Code from the UI on macOS and Linux, it won't have access to your configured .bashrc or .zshrc environment settings, by default. In that situation, VSCode will start a small process to resolve your shell environment in order to still get that environment. That way you can still benefit from your shell configuration when launching tasks or debug targets from within VS Code, even if you didn't start VS Code from a shell.
Too Slow Warning or Error
If resolving your shell environment is blocking the window for more than 3 seconds, you will be seeing this warning:

After blocking the window for 10 seconds, we will give up waiting for the shell environment to resolve and you will be seeing this error:

Both notifications indicate that some of the configuration in your .bashrc or .zshrc configuration file takes a long time to resolve. The easiest way to address this issue is to:
- open these files (e.g. in VSCode by typing
~/.bashrcor~/.zshrcin quick open) - selectively start to comment out lines
- save and fully restart VSCode until the warning or error disappears
