Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal: Spawning Speed issue fix #12225

Conversation

FernandoAscencio
Copy link
Contributor

@FernandoAscencio FernandoAscencio commented Feb 24, 2023

What it does

Closes #1733.

The pull-request fixes an issue where if multiple terminals are spawned quickly, their content would incorrectly be rendered in a previous terminal. The issue is related to the created option which would not take into account milliseconds which meant calls to getOrCreateWidget would return a previous widget rather than create a new one as intended.

How to test

  1. start the application
  2. use the keybinding ctrl+shift+` to quickly spawn multiple terminals
  3. confirm that the terminal creation is correct, and that content is not appended to previous terminals

Review checklist

Reminder for reviewers

This commit closed the issue eclipse-theia#1733.

Signed-off-by: FernandoAscencio <fernando.ascencio.cama@ericsson.com>
@vince-fugnitto vince-fugnitto added the terminal issues related to the terminal label Feb 27, 2023
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that it fixes the issue when spawning multiple terminals and content is overlapped 👍

@vince-fugnitto vince-fugnitto merged commit a5e1162 into eclipse-theia:master Mar 3, 2023
@vince-fugnitto vince-fugnitto deleted the fa/FastTerminalSpawnFix branch March 3, 2023 20:22
kenneth-marut-work pushed a commit to kenneth-marut-work/theia that referenced this pull request Mar 6, 2023
@vince-fugnitto vince-fugnitto added this to the 1.36.0 milestone Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
terminal issues related to the terminal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[terminal] Spawning terminals too quickly merges them together inside one panel
2 participants