Skip to content

Make dynamic path map case insensitive to match source files#55363

Merged
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:MakeDynamicFilesCaseInsensitive
Aug 5, 2021
Merged

Make dynamic path map case insensitive to match source files#55363
davidwengier merged 1 commit intodotnet:mainfrom
davidwengier:MakeDynamicFilesCaseInsensitive

Conversation

@davidwengier
Copy link
Copy Markdown
Member

Fixes #55362
Fixes https://github.com/dotnet/aspnetcore/issues/34963

Simple change, really painful to track down.

/cc @NTaylorMullen

@davidwengier davidwengier requested a review from a team as a code owner August 3, 2021 01:56
@ghost ghost added the Area-IDE label Aug 3, 2021
@NTaylorMullen
Copy link
Copy Markdown

really painful to track down.

image

/// We use the same string comparer as in the <see cref="BatchingDocumentCollection"/> used by _sourceFiles, below, as these
/// files are added to that collection too.
/// </remarks>
private readonly Dictionary<string, string?> _dynamicFilePathMaps = new(StringComparer.OrdinalIgnoreCase);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is only VSWin right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, but even if its not, its probably better that source files and dynamic files make the same mistakes 😛

@davidwengier davidwengier merged commit cbd0fb8 into dotnet:main Aug 5, 2021
@davidwengier davidwengier deleted the MakeDynamicFilesCaseInsensitive branch August 5, 2021 03:44
@ghost ghost added this to the Next milestone Aug 5, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Razor editor doesn't work if folder casing is mismatched Dynamic file map is case sensitive

4 participants