Skip to content

Commit 1119c85

Browse files
authored
Merge to main-vs-deps (#78864)
2 parents d8a2da2 + c854a27 commit 1119c85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/VisualStudio/Core/Impl/SolutionExplorer/SymbolTree/RootSymbolTreeItemSourceProvider.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ private async ValueTask UpdateCollectionSourcesAsync(
116116
lock (_filePathToCollectionSources)
117117
{
118118
foreach (var filePath in updatedFilePaths)
119-
sources.AddRange(_filePathToCollectionSources[filePath]);
119+
{
120+
if (_filePathToCollectionSources.TryGetValue(filePath, out var pathSources))
121+
sources.AddRange(pathSources);
122+
}
120123
}
121124

122125
// Update all the affected documents in parallel.

0 commit comments

Comments
 (0)