Skip to content

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

Closed
@tamnguyenswe

Description

@tamnguyenswe

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

  • VS Code Version: 1.92.0, commit b1c0a14
  • OS Version: Windows 10 Enterprise, 22H2 build 19045.4651

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 :)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberinsiders-releasedPatch has been released in VS Code Insidersterminal-editorsupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-fixedThe underlying upstream issue has been fixedupstream-issue-linkedThis is an upstream issue that has been reported upstreamverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions