12 references to GetTextSynchronously
Microsoft.CodeAnalysis.Workspaces (12)
CodeActions\Operations\ApplyChangesOperation.cs (1)
155
forkedSolution = forkedSolution.WithTextDocumentText(documentId, changedDocument.
GetTextSynchronously
(cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
45
var text = document.
GetTextSynchronously
(cancellationToken);
Workspace\Solution\Document.cs (2)
485
text = useAsync ? await this.GetTextAsync(cancellationToken).ConfigureAwait(false) : this.
GetTextSynchronously
(cancellationToken);
486
oldText = useAsync ? await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false) : oldDocument.
GetTextSynchronously
(cancellationToken);
Workspace\Workspace.cs (7)
1942
var text = document.
GetTextSynchronously
(CancellationToken.None);
1951
var text = document.
GetTextSynchronously
(CancellationToken.None);
1960
var text = document.
GetTextSynchronously
(CancellationToken.None);
1977
var currentText = newDoc.
GetTextSynchronously
(CancellationToken.None); // needs wait
1987
var currentText = newDoc.
GetTextSynchronously
(CancellationToken.None); // needs wait
2009
var 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)
587
var oldText = oldDocument.
GetTextSynchronously
(CancellationToken.None);