Skip to content

PseudoTerminal.open isn't called in some circumstances #84174

Closed

Description

I have the following problem in one of the extensions:

  • Extension uses Terminal.create with Pseudoterminal API
  • In some circumstances pseudoterminal.open isn't called, though, when I resize and close it, events come

In extHostTerminalService I found the following code:

		let retries = 5;
		while (retries-- > 0) {
			if (this._terminalProcesses[id]) {
				(this._terminalProcesses[id] as ExtHostPseudoterminal).startSendingEvents(initialDimensions);
				return;
			}
			await timeout(50);
		}

It gives only 250ms for terminal to create and it seems that in my circumstances it's not enough. What's worse not even an error message is displayed. It's completely ignored. Could you do something around it, please?

Activity

  1. added
    bug
    help wanted
    terminal
    on Nov 8, 2019
  2. added
    verified
    verification-steps-needed
    and removed
    verified
    on Dec 5, 2019
  3. connor4312 commented on Dec 5, 2019

    @connor4312
    Member

    Daniel Imms (@Tyriar) could you add steps for this?

  4. Tyriar commented on Dec 5, 2019

    @Tyriar
    Contributor

    Connor Peet (@connor4312) I don't know how to reproduce the problem, an extra code review of the PR might be good enough?

    Konstantin Solomatov (@solomatov) could you verify whether the fix worked?

  5. removed
    verification-steps-needed
    on Dec 5, 2019
  6. connor4312 commented on Dec 5, 2019

    @connor4312
    Member

    Code lgtm

  7. solomatov commented on Dec 6, 2019

    @solomatov
    ContributorAuthor

    Daniel Imms (@Tyriar) The PR fixes the repro for the problem I had. I haven't encountered this error in other circumstance.s

  8. Tyriar commented on Dec 6, 2019

    @Tyriar
    Contributor

    Konstantin Solomatov (@solomatov) thanks, the best verification is from the OP 😃

  9. locked and limited conversation to collaborators on Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions