260 references to GetTextAsync
IdeCoreBenchmarks (1)
ClassificationBenchmarks.cs (1)
99var text = document.GetTextAsync().Result.ToString();
Microsoft.Analyzers.Extra.Tests (7)
Resources\RoslynTestUtils.cs (7)
379var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 387var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 394var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 470var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 478var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 485var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 506var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Analyzers.Local.Tests (7)
Resources\RoslynTestUtils.cs (7)
380var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 388var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 395var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 471var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 479var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 486var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 507var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
40var sourceText = await updatedDocument.GetTextAsync();
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
50var originalText = await doc.GetTextAsync().ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
255var unshippedText = await unshippedDataDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
130var text = await additionalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return new ValueTask<SourceText>(document.GetTextAsync(cancellationToken));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
55var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
55var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 147var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
262var newText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (26)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (4)
188var actualText = (await modifiedOriginalDocument.GetTextAsync()).ToString(); 196var oldRefText = (await oldSolution.GetDocument(refDocumentId).GetTextAsync()).ToString(); 197var newRefText = (await newSolution.GetDocument(refDocumentId).GetTextAsync()).ToString(); 204var actualRefText = (await newSolution.GetDocument(refDocumentId).GetTextAsync()).ToString();
Completion\CompletionServiceTests.cs (1)
139var text = await document.GetTextAsync();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (5)
67await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 95await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 177await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, new TextSpan(0, sourceDocument.GetTextAsync().Result.Length)); 207var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 263var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
67var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 76var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 365var text = await editorconfig.GetTextAsync();
Formatting\RazorLineFormattingOptionsTests.cs (1)
72var formattedText = await formattedDocument.GetTextAsync();
Workspaces\WorkspaceTests_EditorFeatures.cs (12)
517var docZText = await docZ.GetTextAsync(); 581var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 656var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 678var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 740Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 747Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 1075Assert.Equal("some text", (await additionalDocument.GetTextAsync()).ToString()); 1099Assert.Equal("root = true", (await analyzerConfigDocument.GetTextAsync()).ToString()); 1441Assert.Equal(originalText, (await eventArgs[0].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1442Assert.Equal(originalText, (await eventArgs[1].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1444Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1445Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
55var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
55var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 147var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
305var oldText = await oldDocument.GetTextAsync(); 310var newText = await newDocument.GetTextAsync();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (11)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (1)
34var text = (await document.GetTextAsync(cancellationToken)).ToString();
BracePairs\AbstractBracePairsTests.cs (1)
33var text = await document.GetTextAsync();
Completion\AbstractCompletionProviderTests.cs (3)
178var code = (await document.GetTextAsync()).ToString(); 657var text = await document.GetTextAsync(); 750var text = await document.GetTextAsync();
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
168var updatedCode = (await updatedDocument.GetTextAsync()).ToString();
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
34var text = await document.GetTextAsync();
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
33var text = await document.GetTextAsync();
Rename\RenamerTests.cs (1)
101AssertEx.EqualOrDiff(endDocument.Text, (await updatedDocument.GetTextAsync()).ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (2)
353var code = (await document.GetTextAsync()).ToString(); 469var code = (await document.GetTextAsync()).ToString();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
CodeFixes\CodeFixServiceTests.cs (2)
938var text = await document.GetTextAsync(ct).ConfigureAwait(false); 1160var text = await sourceDocument.GetTextAsync();
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
245var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
416var text = await additionalDoc.GetTextAsync(); 578var text = await document.GetTextAsync(); 612text = await document.GetTextAsync();
Diagnostics\DiagnosticDataTests.cs (1)
128var text = await document.GetTextAsync();
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
265var document1 = await solution.GetDocument(documentId).GetTextAsync();
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (2)
104var sourceText = await linkedDocument.GetTextAsync(); 108.WithDocumentText(document.Id, (await document.GetTextAsync()).Replace(textString.IndexOf("public"), "public".Length, "internal"))
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
74var text = await document.GetTextAsync();
Preview\PreviewWorkspaceTests.cs (1)
82Assert.Equal(previewWorkspace.CurrentSolution.Projects.First().Documents.First().GetTextAsync().Result.ToString(), text);
TextEditor\TryGetDocumentTests.cs (1)
42var newSourceText = newDocument.GetTextAsync().Result;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
116Dim actual = (Await updatedDocument.GetTextAsync()).ToString().Trim()
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
58Dim actual = updatedDocument.GetTextAsync().Result.ToString().Trim()
InlineHints\AbstractInlineHintsTests.vb (2)
67Dim value = Await document.GetTextAsync().ConfigureAwait(False) 69Dim expectedText = Await expectedDocument.GetTextAsync().ConfigureAwait(False)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
670Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Simplification\AbstractSimplificationTests.vb (1)
129Dim actualText = (Await simplifiedDocument.GetTextAsync()).ToString()
Simplification\ParameterSimplificationTests.vb (1)
31Assert.Equal(expected, (Await simplifiedDocument.GetTextAsync()).ToString())
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
229var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Navigation\IDefinitionLocationService.cs (1)
61var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Snippets\AbstractSnippetProviderTests.cs (1)
63var documentSourceText = await document.GetTextAsync();
Microsoft.CodeAnalysis.LanguageServer (2)
LanguageServer\Handler\CopilotCompletion\CopilotCompletionResolveContextHandler.cs (1)
42var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Testing\TestDiscoverer.cs (1)
81var text = await document.GetTextAsync(cancellationToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
54var originalSourceText = await originalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionResultFactory.cs (3)
535var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 661var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 686var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\MapCode\MapCodeHandler.cs (2)
109var oldText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 121var focusText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Rename\PrepareRenameHandler.cs (1)
40var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
38var text = await contextDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (11)
Completion\CompletionFeaturesTests.cs (2)
597var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 890var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
225var sourceText = await document.GetTextAsync();
InlayHint\AbstractInlayHintTests.cs (1)
27var text = await document.GetTextAsync(CancellationToken.None);
MapCode\MapCodeTests.cs (1)
37var text = await document.GetTextAsync(cancellationToken);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
71var miscWorkspaceText = await GetMiscellaneousDocument(testLspServer)!.GetTextAsync(CancellationToken.None); 82miscWorkspaceText = await GetMiscellaneousDocument(testLspServer)!.GetTextAsync(CancellationToken.None);
SemanticTokens\AbstractSemanticTokensTests.cs (1)
79var text = await document.GetTextAsync().ConfigureAwait(false);
SpellCheck\SpellCheckTests.cs (1)
629var sourceText = await document.GetTextAsync();
Workspaces\LspWorkspaceManagerTests.cs (2)
749Assert.Equal(generatorText, (await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString()); 760Assert.Equal(openText, (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (6)
AnnotatePublicApiFix.cs (2)
64SourceText sourceText = await publicSurfaceAreaDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 165var text = await doc.GetTextAsync(cancellationToken).ConfigureAwait(false);
DeclarePublicApiFix.cs (2)
94var sourceText = await surfaceAreaDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 239await publicSurfaceAreaAdditionalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false) :
NullableEnablePublicApiFix.cs (2)
58SourceText sourceText = await surfaceAreaDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 103var shippedSourceText = await shippedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
27var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
475Dim newText = Await newDocument.GetTextAsync()
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CaseCorrection\VisualBasicCaseCorrectionTestBase.vb (1)
20Dim actual = Await newNode.GetTextAsync()
CodeGeneration\AddImportsTests.vb (2)
102Dim actualText = (Await formatted.GetTextAsync()).ToString() 109Dim actualText = (Await formatted.GetTextAsync()).ToString()
Formatting\FormattingTests.vb (4)
3022AssertResult(inputOutput, Await document.GetTextAsync(), result) 3024Dim document2 = document.WithText((Await document.GetTextAsync()).WithChanges(result)) 3029AssertResult(inputOutput, Await document2.GetTextAsync(), result2) 4211Dim actual = (Await document.GetTextAsync()).ToString()
Formatting\VisualBasicFormattingTestBase.vb (3)
68AssertResult(expected, Await document.GetTextAsync(), changes) 71AssertResult(expected, Await document.GetTextAsync(), changes) 77AssertResult(expected, Await document.GetTextAsync(), changes)
Microsoft.CodeAnalysis.Workspaces (3)
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
57.SelectAsArrayAsync(async documentId => (documentId, await cleanedSolution.GetRequiredDocument(documentId).GetTextAsync(cancellationToken).ConfigureAwait(false)))
Workspace\Solution\Document.cs (2)
504text = useAsync ? await this.GetTextAsync(cancellationToken).ConfigureAwait(false) : this.GetTextSynchronously(cancellationToken); 505oldText = useAsync ? await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false) : oldDocument.GetTextSynchronously(cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (25)
VisualStudioMSBuildWorkspaceTests.cs (25)
964var getTextTask = doc.GetTextAsync(); 996var text = await doc.GetTextAsync(); 2008var text2 = await document2.GetTextAsync(); 2040var originalText = await document.GetTextAsync(); 2051var text2 = await document2.GetTextAsync(); 2059var text = await document.GetTextAsync(); 2074var originalText = await document.GetTextAsync(); 2087var text = await document.GetTextAsync(); 2101var text = await document.GetTextAsync(); 2110var text2 = await document2.GetTextAsync(); 2128var text = await document.GetTextAsync(); 2137var text2 = await document2.GetTextAsync(); 2163var text2 = await document2.GetTextAsync(); 2224var text = await doc.GetTextAsync(); 2254var text = await doc.GetTextAsync(); 2338var text = await doc.GetTextAsync(); 2779var text = await document.GetTextAsync(); 2798var text = await document.GetTextAsync(); 2817var text = await document.GetTextAsync(); 2870var doc2text = await doc2.GetTextAsync(); 2877var text = await document.GetTextAsync(); 2884var doc3text = await doc3.GetTextAsync(); 2893var noEncodingDocText = await noEncodingDoc.GetTextAsync(); 3231var text = await analyzerConfigDocument.GetTextAsync(); 3294var text = await document.GetTextAsync();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
58await AssertFormatAsync(workspace.Services.SolutionServices, expected, root, spans.AsImmutable(), formattingOptions, await document.GetTextAsync());
Microsoft.CodeAnalysis.Workspaces.UnitTests (53)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
42var text = (await gooDoc.GetTextAsync()).ToString();
Formatter\FormatterTests.cs (1)
58var formattedText = await formattedDocument.GetTextAsync();
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
53AssertEx.EqualOrDiff(expectedMergedText, mergedSolution.GetDocument(documentIds[i]).GetTextAsync().Result.ToString());
SolutionTests\ProjectSemanticVersionTests.cs (16)
43var text = await document.GetTextAsync(); 57var text = await document.GetTextAsync(); 71var text = await document.GetTextAsync(); 85var text = await document.GetTextAsync(); 99var text = await document.GetTextAsync(); 113var text = await document.GetTextAsync(); 127var text = await document.GetTextAsync(); 141var text = await document.GetTextAsync(); 155var text = await document.GetTextAsync(); 169var text = await document.GetTextAsync(); 183var text = await document.GetTextAsync(); 197var text = await document.GetTextAsync(); 211var text = await document.GetTextAsync(); 225var text = await document.GetTextAsync(); 239var text = await document.GetTextAsync(); 253var text = await document.GetTextAsync();
SolutionTests\SolutionTests.cs (13)
1650Assert.Equal(expectedAlgorithm, (await document.GetTextAsync(default)).ChecksumAlgorithm); 3170var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString(); 3315var observedText2 = sol.GetDocument(did).GetTextAsync().Result; 3333var docText = doc.GetTextAsync().Result; 3355var docText = doc.GetTextAsync().Result; 3380var docText = doc.GetTextAsync().Result; 3528var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3559var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3917var text = await doc.GetTextAsync().ConfigureAwait(false); 4001Assert.Equal(Encoding.UTF32, doc.GetTextAsync().Result.Encoding); 4008Assert.Equal(Encoding.UTF32, newDoc.GetTextAsync().Result.Encoding); 5475var newDocText = await newDoc.GetTextAsync(); 5476var sameText = await newDoc.GetTextAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (18)
564var existingText = await project.Documents.Single().GetTextAsync(); 599Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 647Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 815.AddDocument(originalDocument1.Name, await originalDocument1.GetTextAsync().ConfigureAwait(false), filePath: originalDocument1.FilePath); 888Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1003var sourceText = await updatedDocument.GetTextAsync(); 1031var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1036sourceText = await updatedDocument.GetTextAsync(); 1060var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1114var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1119sourceText = await updatedDocument.GetTextAsync(); 1142var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1146sourceText = await sourceGeneratedDocument.GetTextAsync(); 1151sourceText = await updatedDocument.GetTextAsync(); 1236Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1273Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1304Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1339Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
WorkspaceTests\AdhocWorkspaceTests.cs (3)
76Assert.Equal(source, (await doc.GetTextAsync()).ToString()); 338currentText = await doc.GetTextAsync(); 366var actualText = await newDoc.GetTextAsync();
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Logging.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Metrics.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchQueryExecutor.cs (1)
63query ??= (await queryDocument!.GetTextAsync(cancellationToken).ConfigureAwait(false)).ToString();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\FileCodeFunctionTests.cs (2)
495var text = await (GetCurrentDocument()).GetTextAsync(); 508var text = await (GetCurrentDocument()).GetTextAsync();
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Preview\PreviewChangesTests.vb (12)
41Dim text = document.GetTextAsync().Result 94Dim text = document.GetTextAsync().Result 136Dim text = document.GetTextAsync().Result 159Dim finalText = previewEngine.FinalSolution.GetDocument(documentId).GetTextAsync().Result.ToString() 160Assert.Equal(document.GetTextAsync().Result.ToString(), finalText) 189Dim text = document.GetTextAsync().Result 235Dim changedDocText = finalSolution.GetDocument(docId).GetTextAsync().Result.ToString() 236Assert.Equal(forkedDocument.GetTextAsync().Result.ToString(), changedDocText) 238Dim finalAddedDocText = finalSolution.GetDocument(addedDocumentId1).GetTextAsync().Result.ToString() 241Dim finalNotRemovedDocText = finalSolution.GetDocument(removedDocumentId2).GetTextAsync().Result.ToString() 275Dim text1 = document1.GetTextAsync().Result 278Dim text2 = document2.GetTextAsync().Result
Venus\DocumentService_IntegrationTests.vb (5)
85Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 152Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 189Assert.Equal(String.Empty, (Await newDocument.GetTextAsync()).ToString()) 275Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False) 313Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False)
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Refactoring\AbstractRefactoringHelpers`3.cs (2)
185var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 494var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Refactoring\CodeRefactoringHelpers.cs (1)
28var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (3)
99var oldText = await oldDocument.GetTextAsync(); 499var localText = await localDoc.GetTextAsync(); 500var remoteText = await localDoc.GetTextAsync();