VS Code outputs its logs to the PowerShell terminal from which it was launched using the code . command. Disabling these logs would be interesting as it populates a terminal instance for no good reason. I searched through Stackoverflow without success so far, so I hope there's not a duplicate out there.
Did anyone encounter this issue or have an idea in which direction I should be looking into? From what I've tried so far it seems that it's specific to PowerShell 7.
System: Windows 10, PowerShell 7

What I would expect: No logs being outputted to the powershell terminal where code was launched.
Yes, it is related to a broken $PATH.
You need to remove the path that points to code.exe and add the path that points to the bin folder in the same directory where code.exe is located.
The bin folder contains scripts that run code.exe without logs.
source of info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With