Skip to content

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

Merged
sheetalkamat merged 2 commits intomasterfrom
buildSourceMapNavigation
Nov 1, 2018
Merged

Fix source map decoding to handle case sensitivity and --out option#28273
sheetalkamat merged 2 commits intomasterfrom
buildSourceMapNavigation

Conversation

@sheetalkamat
Copy link
Member

Discovered while working on #28261

@sheetalkamat sheetalkamat requested review from a user, rbuckton, sandersn and weswigham October 31, 2018 22:43
@sheetalkamat sheetalkamat merged commit 0544b77 into master Nov 1, 2018
@sheetalkamat 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
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 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

Comments