Hi @David Chan ,
Welcome to Microsoft Q&A!
How did you open the terminal?
Please try to launch your Visual Studio 2022 in Safe Mode (run devenv /SafeMode in Developer Command Prompt for VS 2022).
Starting VS in safe mode will prevents all third-party VSPackages from loading. If your VS works fine in safe mode, it needs to consider that the installed extension is causing the problem. You can disable or uninstall the installed extensions under Extensions > Manage Extensions > Installed.
By the way, do you have any anti-virus software installed on your pc? You can disable it and try again.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.