Skip to content

Commit

Permalink
Merge pull request dotnet#29828 from sharwell/fix-integration-tests
Browse files Browse the repository at this point in the history
Fixes for integration tests
  • Loading branch information
sharwell authored Oct 11, 2018
2 parents d4dc31a + 0f980c1 commit 9899151
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 6 additions & 0 deletions Roslyn.sln
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,14 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roslyn.Compilers.Extension", "src\Compilers\Extension\Roslyn.Compilers.Extension.csproj", "{43026D51-3083-4850-928D-07E1883D5B1A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.IntegrationTest.Setup", "src\VisualStudio\IntegrationTest\TestSetup\Microsoft.VisualStudio.IntegrationTest.Setup.csproj", "{A88AB44F-7F9D-43F6-A127-83BB65E5A7E2}"
ProjectSection(ProjectDependencies) = postProject
{600AF682-E097-407B-AD85-EE3CED37E680} = {600AF682-E097-407B-AD85-EE3CED37E680}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.IntegrationTests", "src\VisualStudio\IntegrationTest\IntegrationTests\Microsoft.VisualStudio.LanguageServices.IntegrationTests.csproj", "{E5A55C16-A5B9-4874-9043-A5266DC02F58}"
ProjectSection(ProjectDependencies) = postProject
{A88AB44F-7F9D-43F6-A127-83BB65E5A7E2} = {A88AB44F-7F9D-43F6-A127-83BB65E5A7E2}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.IntegrationTest.Utilities", "src\VisualStudio\IntegrationTest\TestUtilities\Microsoft.VisualStudio.IntegrationTest.Utilities.csproj", "{3BED15FD-D608-4573-B432-1569C1026F6D}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public void RegisterOperationAction(DiagnosticAnalyzer analyzer, Action<Operatio

internal abstract class HostAnalysisScope
{
private readonly Dictionary<DiagnosticAnalyzer, AnalyzerActions> _analyzerActions = new Dictionary<DiagnosticAnalyzer, AnalyzerActions>();
private readonly ConcurrentDictionary<DiagnosticAnalyzer, AnalyzerActions> _analyzerActions = new ConcurrentDictionary<DiagnosticAnalyzer, AnalyzerActions>();

public virtual AnalyzerActions GetAnalyzerActions(DiagnosticAnalyzer analyzer)
{
Expand Down Expand Up @@ -617,14 +617,7 @@ public void RegisterOperationAction(DiagnosticAnalyzer analyzer, Action<Operatio

protected AnalyzerActions GetOrCreateAnalyzerActions(DiagnosticAnalyzer analyzer)
{
AnalyzerActions actions;
if (!_analyzerActions.TryGetValue(analyzer, out actions))
{
actions = new AnalyzerActions();
_analyzerActions[analyzer] = actions;
}

return actions;
return _analyzerActions.GetOrAdd(analyzer, _ => new AnalyzerActions());
}
}

Expand Down

0 comments on commit 9899151

Please sign in to comment.