Visual Studio 从命令行启动的代码混淆了两个进程

Visual Studio Code launched from command line conflates the two processes

如果您从命令行启动 Visual Studio 代码,输入 "code",命令行(终端)进程和 vsc 进程将链接在一起。 vsc 日志条目被写入终端。终端变得易碎或无法使用。终止终端也会终止 VSC。

这是 Windows10,VSC v 1.33.1。 VSC 安装使用默认设置。 code.exe 文件位于 C:\Users{userid}\AppData\Local\Programs\Microsoft VS Code\

如何避免这个问题?

解决方案是启动 "code.cmd" 而不是仅启动 "code"(启动 code.exe。)

code.cmd 位于 code.exe.

文件夹下的 bin 文件夹中

这两个文件夹都在我的 PATH 上,大概是因为安装程序这样做了。