12 references to GetTextSynchronously
Microsoft.CodeAnalysis.Workspaces (12)
CodeActions\Operations\ApplyChangesOperation.cs (1)
155forkedSolution = forkedSolution.WithTextDocumentText(documentId, changedDocument.GetTextSynchronously(cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
45var text = document.GetTextSynchronously(cancellationToken);
Workspace\Solution\Document.cs (2)
485text = useAsync ? await this.GetTextAsync(cancellationToken).ConfigureAwait(false) : this.GetTextSynchronously(cancellationToken); 486oldText = useAsync ? await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false) : oldDocument.GetTextSynchronously(cancellationToken);
Workspace\Workspace.cs (7)
1942var text = document.GetTextSynchronously(CancellationToken.None); 1951var text = document.GetTextSynchronously(CancellationToken.None); 1960var text = document.GetTextSynchronously(CancellationToken.None); 1977var currentText = newDoc.GetTextSynchronously(CancellationToken.None); // needs wait 1987var currentText = newDoc.GetTextSynchronously(CancellationToken.None); // needs wait 2009var currentText = newDoc.GetTextSynchronously(CancellationToken.None); // needs wait 2044=> CreateDocumentInfoWithoutText(doc).WithTextLoader(TextLoader.From(TextAndVersion.Create(doc.GetTextSynchronously(CancellationToken.None), VersionStamp.Create(), doc.FilePath)));
Workspace\Workspace_Editor.cs (1)
587var oldText = oldDocument.GetTextSynchronously(CancellationToken.None);