vscode: Cannot open terminal after using the `code-insiders` command to open a folder

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.72.0-insider (commit 6a5e3aad96929a7d35e09ed8d22e87a72bd16ff6).
  • OS Version: Darwin arm64 21.6.0

T.L.;D.R.: I cannot open the integrated terminal in VS Code windows that were opened by using the code-insiders some-folder command.

Steps to Reproduce:

  1. Using the integrated terminal, open a folder in a new window using the code-insiders command.
  2. In the new window the terminal window briefly flickers and then disappears. The same flicker happens after trying to reopen it using the “new terminal” command or by using the UI.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (21 by maintainers)

Most upvoted comments

@meganrogge Oh but you’re opening the new window from a bash shell, not the zsh one.

@MariaSolOs You are correct - good catch. I believe this is a duplicate of #160889 which I had erroneously closed bc was using bash to try to reproduce the issue.

Thanks for the investigation.

/duplicate #160889

maybe related https://github.com/microsoft/vscode/pull/161433

I have put env > ~/vscode-debug/zsh-env-$(gdate +%s) at the beginning of the following file to output env when vscode integrated terminal could not be executed.

/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-env.zsh


I was also successful in confirming the env using the following approach. https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

@meganrogge Oh but you’re opening the new window from a bash shell, not the zsh one.