Skip to content

Fix duplicated scripts and prep to publish dwds #1414

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

Merged

Conversation

annagrin
Copy link
Contributor

Make inspector initializer wait on the same future as
getScripts call in ChromeProxyService to make sure
we populate caches only once.

Prep to publish to support file picker work in devtools.

Closes: #1413

Make inspector initializer wait on the same future as
getScripts call in ChromeProxyService to make sure
we populate caches only once.

Prep to publish to support file picker work in devtools.

Closes: dart-lang#1413
@google-cla google-cla bot added the cla: yes label Sep 23, 2021
@annagrin annagrin requested review from grouma and nshahan September 23, 2021 17:43
@nshahan
Copy link
Contributor

nshahan commented Sep 23, 2021

I'm trying to see how this would be different but I don't see when the cache is ever populated. How does that happen?

@annagrin annagrin requested a review from grouma September 28, 2021 20:43
Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

One comment but LGTM.

@annagrin
Copy link
Contributor Author

I'm trying to see how this would be different but I don't see when the cache is ever populated. How does that happen?

The cache is populated on first scriptRefs call during inspector initialization.

@annagrin annagrin merged commit 8d32135 into dart-lang:master Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DWDS returns duplicate scripts in Dart DevTools
3 participants