VS Code 无法启动终端进程:CreateProcess 失败

Har*_*ari 1 sapui5 sap-fiori visual-studio-code

我正在尝试在 VS Code 中打开终端窗口,但失败并显示消息

无法启动终端进程:CreateProcess 失败

我看到这个链接有同样的问题,但没有看到他是如何修复它的。有任何想法吗? https://github.com/microsoft/vscode/issues/57285

我的settings.json

{
  "[xml]": {
    "editor.defaultFormatter": "SAPSE.sap-ux-annotation-modeler-extension"
  },
  "ui5.plugin.jsCodeLens": true,
  "ui5.plugin.ui5version": "1.71.22",
  "sap.ux.serviceModeler.selectDefaultView": "Expanded",
  "workbench.editorAssociations": [],
  "terminal.integrated.windowsEnableConpty": false
}
Run Code Online (Sandbox Code Playgroud)

这是powershell配置文件:

<configuration>
  <uri>
    <schemeSettings>
      <add name="http" genericUriParserOptions="DontUnescapePathDotsAndSlashes" />
      <add name="https" genericUriParserOptions="DontUnescapePathDotsAndSlashes" />
    </schemeSettings>
  </uri>
  <runtime>
    <AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=false" />
  </runtime>
</configuration>
Run Code Online (Sandbox Code Playgroud)

不知道具体该怎么做...

Har*_*ari 6

我可以使用 settings.json 中的以下代码行进行修复

https://github.com/microsoft/vscode/issues/66894

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe"
Run Code Online (Sandbox Code Playgroud)