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

Send breakpoint init requests in parallel #163250

Merged
merged 4 commits into from Oct 12, 2022
Merged

Conversation

roblourens
Copy link
Member

Fix #163248

@roblourens roblourens marked this pull request as ready for review October 11, 2022 17:30
// If sending breakpoints to one session which we know supports the configurationDone request, can make all requests in parallel
if (session?.capabilities.supportsConfigurationDoneRequest) {
await Promise.all([
...distinct(this.model.getBreakpoints(), bp => bp.uri.toString()).map(bp => this.sendBreakpoints(bp.uri, false, session)),
Copy link
Member

Choose a reason for hiding this comment

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

Could store the Promise<void>[] for this in a variable to use in both places and avoid duplicating, since it's somewhat complex

connor4312
connor4312 previously approved these changes Oct 11, 2022
@roblourens roblourens merged commit 2889179 into main Oct 12, 2022
@roblourens roblourens deleted the roblou/remote-reindeer branch October 12, 2022 00:27
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 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.

Send all breakpoint requests in parallel
3 participants