We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8a2da2 + c854a27 commit 1119c85Copy full SHA for 1119c85
src/VisualStudio/Core/Impl/SolutionExplorer/SymbolTree/RootSymbolTreeItemSourceProvider.cs
@@ -116,7 +116,10 @@ private async ValueTask UpdateCollectionSourcesAsync(
116
lock (_filePathToCollectionSources)
117
{
118
foreach (var filePath in updatedFilePaths)
119
- sources.AddRange(_filePathToCollectionSources[filePath]);
+ {
120
+ if (_filePathToCollectionSources.TryGetValue(filePath, out var pathSources))
121
+ sources.AddRange(pathSources);
122
+ }
123
}
124
125
// Update all the affected documents in parallel.
0 commit comments