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

Wait for preload scripts before loading renderers #164406

Merged
merged 4 commits into from Oct 24, 2022
Merged

Conversation

DonJayamanne
Copy link
Contributor

Fixes #164304

@DonJayamanne DonJayamanne marked this pull request as ready for review October 24, 2022 00:47
@DonJayamanne DonJayamanne enabled auto-merge (squash) October 24, 2022 01:11
@@ -1318,7 +1318,8 @@ async function webviewPreloads(ctx: PreloadContext) {
}

this._api = await module.activate(this.createRendererContext());

// Preloads need to be loaded before loading renderers.
await kernelPreloads.waitForAllCurrent();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should happen at the start of this function (before the import and activate)

@mjbvz mjbvz added this to the October 2022 milestone Oct 24, 2022
@DonJayamanne DonJayamanne merged commit ba822f2 into main Oct 24, 2022
@DonJayamanne DonJayamanne deleted the issue164304 branch October 24, 2022 18:33
@S1983tt
Copy link

S1983tt commented Oct 25, 2022

668e68d

formigoni pushed a commit to formigoni/vscode that referenced this pull request Oct 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2022
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.

Notebook preload scripts load after the renderer scripts
3 participants