44 references to DocumentState
Microsoft.CodeAnalysis.Features (44)
EditAndContinue\CommittedSolution.cs (34)
79
/// that maches the PDB checksum are considered <see cref="
DocumentState
.OutOfSync"/>.
83
/// <see cref="
DocumentState
.DesignTimeOnly"/>.
85
/// A document state can only change from <see cref="
DocumentState
.OutOfSync"/> to <see cref="
DocumentState
.MatchesBuildOutput"/>.
86
/// Once a document state is <see cref="
DocumentState
.MatchesBuildOutput"/> or <see cref="
DocumentState
.DesignTimeOnly"/>
89
private readonly Dictionary<DocumentId,
DocumentState
> _documentState = [];
93
public CommittedSolution(DebuggingSession debuggingSession, Solution solution, IEnumerable<KeyValuePair<DocumentId,
DocumentState
>> initialDocumentStates)
101
internal void Test_SetDocumentState(DocumentId documentId,
DocumentState
state)
110
internal ImmutableArray<(DocumentId id,
DocumentState
state)> Test_GetDocumentStates()
140
public async Task<(Document? Document,
DocumentState
State)> GetDocumentAndStateAsync(DocumentId documentId, Document? currentDocument, CancellationToken cancellationToken, bool reloadOutOfSyncDocument = false)
145
var
documentState =
DocumentState
.None;
157
case
DocumentState
.MatchesBuildOutput:
162
case
DocumentState
.DesignTimeOnly:
165
case
DocumentState
.OutOfSync:
173
case
DocumentState
.Indeterminate:
177
case
DocumentState
.None:
186
return (sourceGeneratedDocument,
DocumentState
.MatchesBuildOutput);
192
return (null,
DocumentState
.MatchesBuildOutput);
205
return (null,
DocumentState
.None);
213
return (null,
DocumentState
.DesignTimeOnly);
218
return (null,
DocumentState
.DesignTimeOnly);
232
documentState !=
DocumentState
.OutOfSync &&
233
documentState !=
DocumentState
.Indeterminate)
238
DocumentState
newState;
244
return (document,
DocumentState
.Indeterminate);
253
newState = (committedDocument != null) ?
DocumentState
.DesignTimeOnly :
DocumentState
.MatchesBuildOutput;
258
return (document,
DocumentState
.Indeterminate);
295
newState =
DocumentState
.MatchesBuildOutput;
300
newState =
DocumentState
.OutOfSync;
347
internal static async Task<IEnumerable<KeyValuePair<DocumentId,
DocumentState
>>> GetMatchingDocumentsAsync(
404
return documentIdArrays.SelectMany(ids => ids.WhereNotNull()).Select(id => KeyValuePairUtil.Create(id,
DocumentState
.MatchesBuildOutput));
EditAndContinue\DebuggingSession.cs (4)
104
IEnumerable<KeyValuePair<DocumentId, CommittedSolution.
DocumentState
>> initialDocumentStates,
442
if (oldDocumentState is CommittedSolution.
DocumentState
.OutOfSync or
443
CommittedSolution.
DocumentState
.Indeterminate or
444
CommittedSolution.
DocumentState
.DesignTimeOnly)
EditAndContinue\EditAndContinueService.cs (1)
148
IEnumerable<KeyValuePair<DocumentId, CommittedSolution.
DocumentState
>> initialDocumentStates;
EditAndContinue\EditSession.cs (5)
539
case CommittedSolution.
DocumentState
.DesignTimeOnly:
542
case CommittedSolution.
DocumentState
.Indeterminate:
543
case CommittedSolution.
DocumentState
.OutOfSync:
544
var descriptor = EditAndContinueDiagnosticDescriptors.GetDescriptor((oldDocumentState == CommittedSolution.
DocumentState
.Indeterminate) ?
549
case CommittedSolution.
DocumentState
.MatchesBuildOutput: