13 references to ProjectState
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (1)
119var state = stateSet.GetOrCreateProjectState(project.Id);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (11)
29private readonly ConcurrentDictionary<ProjectId, ProjectState> _projectStates; 38_projectStates = new ConcurrentDictionary<ProjectId, ProjectState>(concurrencyLevel: 2, capacity: 1); 80if (_projectStates.TryGetValue(projectId, out var projectState) && !projectState.IsEmpty()) 90=> _projectStates.TryGetValue(projectId, out var projectState) && projectState.FromBuild; 95public bool TryGetProjectState(ProjectId projectId, [NotNullWhen(true)] out ProjectState? state) 101public ProjectState GetOrCreateProjectState(ProjectId projectId) 107if (!TryGetProjectState(document.Project.Id, out var projectState) || 136var projectState = GetOrCreateProjectState(document.Project.Id); 152if (TryGetProjectState(document.Project.Id, out var projectState)) 170if (_projectStates.TryGetValue(id.ProjectId, out var state)) 181if (_projectStates.TryRemove(id, out var state))
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
44var state = stateSet.GetOrCreateProjectState(project.Id);