Skip to content

Terminals never finishing starting up when the pty host takes a long time to start up #185256

Closed

Description

@Tyriar

Repro:

  1. Set "terminal.integrated.developer.ptyHost.startupDelay": 10000
  2. Restart main process
  3. Open a terminal during start up
  4. Open another terminal after a few seconds, 🐛 the first is broken but the second isn't

image

Activity

  1. added
    bug
    terminal-process
    on Jun 15, 2023
  2. Tyriar commented on Jun 15, 2023

    @Tyriar
    ContributorAuthor

    Probably because we're not handling this:

    [uncaught exception in main]: Channel name 'ptyHost' timed out after 1000ms
    
  3. Tyriar commented on Jun 15, 2023

    @Tyriar
    ContributorAuthor

    image

  4. Tyriar commented on Jun 15, 2023

    @Tyriar
    ContributorAuthor

    We only initialize the terminal if it's connected at the time of restore:

    private _initializeTerminal() {
    if (this.isBodyVisible() && this._terminalService.isProcessSupportRegistered && this._terminalService.connectionState === TerminalConnectionState.Connected && !this._terminalGroupService.groups.length) {
    this._terminalService.createTerminal({ location: TerminalLocation.Panel });
    }
    }

  5. added
    remote
    on Jun 16, 2023
  6. added a commit that references this issue on Jun 22, 2023
    1dbc950
  7. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jun 22, 2023
  8. locked and limited conversation to collaborators on Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedon-testplanremoteterminal-process

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions