1 instantiation of ActiveFileState
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
99
=> _activeFileStates.GetOrAdd(documentId, id => new
ActiveFileState
(id));
11 references to ActiveFileState
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (1)
86
var
state = analyzerWithState.State;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (1)
250
public async ValueTask MergeAsync(
ActiveFileState
state, TextDocument document, IGlobalOptionService globalOptions)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (7)
28
private readonly ConcurrentDictionary<DocumentId,
ActiveFileState
> _activeFileStates;
37
_activeFileStates = new ConcurrentDictionary<DocumentId,
ActiveFileState
>(concurrencyLevel: 2, capacity: 10);
92
public bool TryGetActiveFileState(DocumentId documentId, [NotNullWhen(true)] out
ActiveFileState
? state)
98
public
ActiveFileState
GetOrCreateActiveFileState(DocumentId documentId)
118
var
activeFileState = GetOrCreateActiveFileState(document.Id);
130
if (!_activeFileStates.TryRemove(document.Id, out
var
activeFileState))
146
if (TryGetActiveFileState(document.Id, out
var
activeFileState))
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (2)
226
var
state = stateSet.GetOrCreateActiveFileState(_document.Id);
540
private sealed record class AnalyzerWithState(DiagnosticAnalyzer Analyzer, bool IsHostAnalyzer,
ActiveFileState
State, DocumentAnalysisData ExistingData);