Skip to content

Conversation

@eamodio
Copy link
Contributor

@eamodio eamodio commented Feb 23, 2021

Adds preload command which can be triggered by Codespaces to put the PR extension in a "pr" loading state (e.g. in the correct view with a loading welcome message).

Also defers a lot of activation code until post-activation to improve perceived performance, since views will be show much quicker in a loading state.

@eamodio eamodio requested a review from RMacfarlane February 23, 2021 00:15
package.json Outdated
{
"view": "pr:github",
"when": "!github:initialized",
"contents": "Loading pull requests..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, there's a point later when we are actually loading pull requests where we display "Loading...", so I think this text might be better as "Initializing..."

Copy link
Contributor

@RMacfarlane RMacfarlane left a comment

Choose a reason for hiding this comment

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

LGTM!

@RMacfarlane RMacfarlane merged commit 30884b3 into main Feb 24, 2021
@RMacfarlane RMacfarlane deleted the eamodio/perf branch March 2, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants