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"/> 89private readonly Dictionary<DocumentId, DocumentState> _documentState = []; 93public CommittedSolution(DebuggingSession debuggingSession, Solution solution, IEnumerable<KeyValuePair<DocumentId, DocumentState>> initialDocumentStates) 101internal void Test_SetDocumentState(DocumentId documentId, DocumentState state) 110internal ImmutableArray<(DocumentId id, DocumentState state)> Test_GetDocumentStates() 140public async Task<(Document? Document, DocumentState State)> GetDocumentAndStateAsync(DocumentId documentId, Document? currentDocument, CancellationToken cancellationToken, bool reloadOutOfSyncDocument = false) 145var documentState = DocumentState.None; 157case DocumentState.MatchesBuildOutput: 162case DocumentState.DesignTimeOnly: 165case DocumentState.OutOfSync: 173case DocumentState.Indeterminate: 177case DocumentState.None: 186return (sourceGeneratedDocument, DocumentState.MatchesBuildOutput); 192return (null, DocumentState.MatchesBuildOutput); 205return (null, DocumentState.None); 213return (null, DocumentState.DesignTimeOnly); 218return (null, DocumentState.DesignTimeOnly); 232documentState != DocumentState.OutOfSync && 233documentState != DocumentState.Indeterminate) 238DocumentState newState; 244return (document, DocumentState.Indeterminate); 253newState = (committedDocument != null) ? DocumentState.DesignTimeOnly : DocumentState.MatchesBuildOutput; 258return (document, DocumentState.Indeterminate); 295newState = DocumentState.MatchesBuildOutput; 300newState = DocumentState.OutOfSync; 347internal static async Task<IEnumerable<KeyValuePair<DocumentId, DocumentState>>> GetMatchingDocumentsAsync( 404return documentIdArrays.SelectMany(ids => ids.WhereNotNull()).Select(id => KeyValuePairUtil.Create(id, DocumentState.MatchesBuildOutput));
EditAndContinue\DebuggingSession.cs (4)
104IEnumerable<KeyValuePair<DocumentId, CommittedSolution.DocumentState>> initialDocumentStates, 442if (oldDocumentState is CommittedSolution.DocumentState.OutOfSync or 443CommittedSolution.DocumentState.Indeterminate or 444CommittedSolution.DocumentState.DesignTimeOnly)
EditAndContinue\EditAndContinueService.cs (1)
148IEnumerable<KeyValuePair<DocumentId, CommittedSolution.DocumentState>> initialDocumentStates;
EditAndContinue\EditSession.cs (5)
539case CommittedSolution.DocumentState.DesignTimeOnly: 542case CommittedSolution.DocumentState.Indeterminate: 543case CommittedSolution.DocumentState.OutOfSync: 544var descriptor = EditAndContinueDiagnosticDescriptors.GetDescriptor((oldDocumentState == CommittedSolution.DocumentState.Indeterminate) ? 549case CommittedSolution.DocumentState.MatchesBuildOutput: