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

Adopt registerWorkbenchContribution2 for welcome page #204440

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

bhavyaus
Copy link
Collaborator

@bhavyaus bhavyaus commented Feb 6, 2024

Also fixes: #193623

There are two scenarios to consider here for the GettingStartedInput editor type:

  1. The startup editor (welcome page) is opened automatically if workbench.startupEditor setting is enabled by the user or on first launch for new users.

  2. OpenWalkthrough command is invoked on Activation as described by the user here onStartupFinished activation event has no criteria for startup finishing #193623

StartupPageRunnerContribution with WorkbenchPhase.AfterRestored supports Scenario 1
StartupPageEditorResolverContribution with WorkbenchPhase.BlockRestore supports Scenario 2 by ensuring the editorResolver has time to register the input type.

@bpasero
Copy link
Member

bpasero commented Feb 6, 2024

@bhavyaus thanks! This should be good to go: the editor resolver code still needs to run very early to register the editor. Only the run part can then use the new mechanism, please have a look and also see if it resolves the initial issue.

@bpasero bpasero added this to the February 2024 milestone Feb 6, 2024
@bhavyaus bhavyaus marked this pull request as ready for review February 6, 2024 05:53
@bhavyaus bhavyaus enabled auto-merge (squash) February 6, 2024 05:59
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

I do not understand the revert of the changes.

Sorry, had forgotten to push.

@bpasero
Copy link
Member

bpasero commented Feb 6, 2024

@bhavyaus with my commit, it should work. the editor resolver needs to be there on startup for the editor to actually load.

@bhavyaus bhavyaus requested a review from bpasero February 6, 2024 07:20
@bpasero bpasero merged commit 6a315f2 into main Feb 6, 2024
6 checks passed
@bpasero bpasero deleted the dev/bhavyau/welcome-page branch February 6, 2024 09:25
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
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.

onStartupFinished activation event has no criteria for startup finishing
3 participants