Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

We adapt to the latest version of Node.js which uses file:/// and we don't send sourceRef for files that exist #373

Merged

Conversation

digeff
Copy link
Contributor

@digeff digeff commented Oct 23, 2018

We adapt to the latest version of Node.js which uses file:/// and we don't send sourceRef for files that exist

In Node v11 it adds file:/// to script urls. That made existAsync return false, we sent the sourceRef to VS which assumes that the file is not on disk because of that, and causes breakpoints to not be shown properly.

We use the canonicalized version which removes file:/// to fix that issue

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

Good catch

@roblourens roblourens merged commit 091b3f0 into microsoft:master Oct 23, 2018
@roblourens roblourens added this to the October 2018 milestone Oct 23, 2018
@digeff digeff deleted the fix_sending_sourceref_for_existing_files branch October 23, 2018 21:54
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