Layout when switching from welcome to terminal. by rehmsen · Pull Request #173368 · microsoft/vscode · GitHub
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

Layout when switching from welcome to terminal. #173368

Merged
merged 9 commits into from
Oct 31, 2023

Conversation

rehmsen
Copy link
Contributor

@rehmsen rehmsen commented Feb 3, 2023

Before this change, VSCode assumed in multiple places that we only ever either have terminals open (on desktop) or a "welcome" screen (on web, explaining that terminals are not supported). Switching between the two causes a broken layout. This is currently not visible in VSCode because VSCode opens a new terminal as soon as the terminal panel is opened, and closes the terminal panel when the last terminal is closed.

With this change, that assumption is removed and the question whether a welcome screen is available is centralized in one place. This makes it easier for downstream forks to have a welcome screen when first opening the panel, and when the last terminal is closed. In VSCode itself, this still works as before.

This change also removes relying on the side-effect of the shouldShowWelcome getter to write a member variable, and removes superfluously setting that member variable when is it already set.

Before this change, VSCode assumed in multiple places that we only ever
either have terminals open (on desktop) or a "welcome" screen (on web,
explaining that terminals are not supported). Switching between the two
causes a broken layout. This is currently not visible in VSCode because
VSCode opens a new terminal as soon as the terminal panel is opened,
and closes the terminal panel when the last terminal is closed.

With this change, that assumption is removed and the question whether a
welcome screen is available is centralized in one place. This makes it
easier for downstream forks to have a welcome screen when first opening
the panel, and when the last terminal is closed. In VSCode itself, this
still works as before.

This change also removes relying on the side-effect of the
`shouldShowWelcome` getter to write a member variable, and removes
superfluously setting that member variable when is it already set.
@joyceerhl joyceerhl assigned sbatten and unassigned joyceerhl Feb 23, 2023
@rehmsen
Copy link
Contributor Author

rehmsen commented Mar 20, 2023

Any update here? Do you need anything from me?

@rehmsen
Copy link
Contributor Author

rehmsen commented May 26, 2023

Hi @sbatten, is there any chance this will be reviewed? Should I update the PR one more time? Or do you have a general concern with this change and the PR should be declined?

@sbatten sbatten removed their request for review May 26, 2023 22:23
@sbatten sbatten assigned Tyriar and unassigned sbatten May 26, 2023
@sbatten
Copy link
Member

sbatten commented May 26, 2023

sorry @rehmsen, this was lost in my notifications and I think @Tyriar should have been assigned.

@Tyriar Tyriar added this to the June 2023 milestone May 28, 2023
@Tyriar Tyriar modified the milestones: June 2023, July 2023 Jun 27, 2023
@Tyriar Tyriar modified the milestones: July 2023, August 2023 Jul 24, 2023
@andreamah andreamah modified the milestones: August 2023, September 2023 Aug 31, 2023
@Tyriar Tyriar modified the milestones: September 2023, October 2023 Sep 29, 2023
@Tyriar Tyriar modified the milestones: October 2023, November 2023 Oct 23, 2023
Tyriar
Tyriar previously approved these changes Oct 31, 2023
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Thanks and sorry about the delay 😅

Not sure how to test welcome screens but we'll make sure it gets verified in vscode.dev

@Tyriar Tyriar enabled auto-merge October 31, 2023 14:55
@Tyriar Tyriar merged commit fb1c770 into microsoft:main Oct 31, 2023
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants