microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.28k stars 28.57k forks source link

Create New Terminal in Editor Area not working on non-main windows #224555

Closed tamnguyenswe closed 1 month ago

tamnguyenswe commented 1 month ago

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

Error message: The editor could not be opened due to an unexpected error: Not allowed to create elements in child window JavaScript context. Always use the main window so that "xyz instanceof HTMLElement" continues to work.

Steps to Reproduce:

  1. Open a new VS code window image
  2. Create a new file and drag out to make another window image
  3. Run "Create New Terminal in Editor Area" on that new window image
  4. The error will show up image
  5. Clicking "Try Again" will reload the terminal, but it doesn't accept inputs, cannot type anything there image

Creating terminal in main window and drag it to side windows does work, but I have to do that with every window reload. Yesterday I could still use terminals in side windows like normal, this only occured after updating to 1.92 July update Thanks for reading :)

AryaMewada commented 1 month ago

image Facing same issue

meganrogge commented 1 month ago

coming from xterm here I think

Image

Qinka commented 1 month ago

I have the same problem on Fedora 40 Sway.

After I click Try Again, it will create a non-interoperable terminal.

wsnjie commented 1 month ago

I'm also having this issue, I thought it might be a problem with WSL but it started for me after updating to VSCode 1.92.0 image_2024-08-05_104041191

subhadeepchowdhury41 commented 1 month ago

QUICK FIX!!!

Just create a new In-window terminal and drag it to the new terminal window. 👍

michaelschufi commented 1 month ago

Will this be hotfixed or should we downgrade?

Tyriar commented 1 month ago

@michaelschufi sorry this won't get a patch release as there's a few workarounds. To downgrade in the meantime you can grab 1.91.1 here https://code.visualstudio.com/updates/v1_91, you'll also want to set "update.mode": "none"

GillesTabary commented 3 weeks ago

Hi.

QUICK FIX!!! Just create a new In-window terminal and drag it to the new terminal window. 👍

Didn't do the trick for me. Other hack: Ctrl+J (new term in main window) > Ctrl + Shift + P > Terminal: Move Into New Window > Drag & Drop into wanted window. Cumbersom many many times a day.