Skip to content

Make DebugSession.loadSource work for non-cached sources, see #79228#80669

Merged
weinand merged 2 commits intomicrosoft:masterfrom
dgozman:for-79228
Sep 12, 2019
Merged

Make DebugSession.loadSource work for non-cached sources, see #79228#80669
weinand merged 2 commits intomicrosoft:masterfrom
dgozman:for-79228

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Sep 10, 2019

When source with passed uri has not been seen before, and didn't end up DebugSession.sources map, existing code throws an exception by constructing an invalid uri. Using Source.getEncodedDebugData helps.

@weinand Could you please take a look? Attempting to fix the issue with debug URIs. Thank you!

…ft#79228

When source with passed uri has not been seen before, and didn't end up DebugSession.sources map,
existing code throws an exception by constructing an invalid uri. Using Source.getEncodedDebugData helps.
Copy link
Contributor

@weinand weinand left a comment

Choose a reason for hiding this comment

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

looks good (and much simpler) to me.

@weinand weinand merged commit db4102a into microsoft:master Sep 12, 2019
@weinand
Copy link
Contributor

weinand commented Sep 12, 2019

@dgozman thanks for the PR

@weinand weinand added this to the September 2019 milestone Sep 12, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

2 participants