Skip to content

Commit 93f8537

Browse files
Construct _filePathToProjectKeyMap with a FilePathComparer
1 parent 21f0b6d commit 93f8537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationStateSynchronizer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ private sealed record UpdateProject(string ConfigurationFilePath, ProjectKey Pro
3737
private readonly CancellationTokenSource _disposeTokenSource;
3838
private readonly AsyncBatchingWorkQueue<Work> _workQueue;
3939

40-
private ImmutableDictionary<string, ProjectKey> _filePathToProjectKeyMap = ImmutableDictionary<string, ProjectKey>.Empty;
40+
private ImmutableDictionary<string, ProjectKey> _filePathToProjectKeyMap =
41+
ImmutableDictionary<string, ProjectKey>.Empty.WithComparers(keyComparer: FilePathComparer.Instance);
4142

4243
public ProjectConfigurationStateSynchronizer(
4344
IRazorProjectService projectService,

0 commit comments

Comments
 (0)