Skip to content

Fix source map decoding to handle case sensitivity and --out option - #28273

Merged
Sheetal Nandi (sheetalkamat) merged 2 commits into
masterfrom
buildSourceMapNavigation
Nov 1, 2018
Merged

Fix source map decoding to handle case sensitivity and --out option#28273
Sheetal Nandi (sheetalkamat) merged 2 commits into
masterfrom
buildSourceMapNavigation

Conversation

@sheetalkamat

Copy link
Copy Markdown
Member

Discovered while working on #28261

@sheetalkamat
Sheetal Nandi (sheetalkamat) deleted the buildSourceMapNavigation branch November 1, 2018 01:13
targetIndex = ~targetIndex;
}
if (!maps[targetIndex] || comparePaths(loc.fileName, maps[targetIndex].sourcePath, sourceRoot) !== 0) {
if (!maps[targetIndex] || comparePaths(loc.fileName, maps[targetIndex].sourcePath, sourceRoot, !host.useCaseSensitiveFileNames) !== 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should that ignoreCase parameter in comparePaths be mandatory?

It doesn't look like is EVER safe to assume 'ignore case' without consulting the actual host parameter.

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

3 participants