563 references to GetTextAsync
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
IdeCoreBenchmarks (1)
ClassificationBenchmarks.cs (1)
97var 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.AspNetCore.Razor.Microbenchmarks.Generator (1)
ProjectSetup.cs (1)
39var text = await additionalDocument.GetTextAsync();
Microsoft.AspNetCore.Razor.Test.Common.Tooling (3)
AssertExtensions.cs (3)
44var text = await document.GetTextAsync(cancellationToken); 73var text = await document.GetTextAsync(cancellationToken); 88var text = await document.GetTextAsync(cancellationToken);
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
256var unshippedText = await unshippedDataDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
175var text = await fixInfo.AdditionalDocumentToFix.GetTextAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
131var text = await additionalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
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)
56var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 148var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests_Razor.cs (2)
54(await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString()); 87(await newSourceGeneratedDocument!.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (2)
219var newText = await formattedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 260var newText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
InlineRename\CSharpEditorInlineRenameService.cs (2)
72var documentText = await renameDefinition.Document.GetTextAsync(cancellationToken).ConfigureAwait(false); 87var documentText = await renameLocation.Document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (44)
ChangeSignature\RemoveParametersTests.cs (4)
262Assert.Contains("void Ext(this C5 c, string s)", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 266Assert.Contains(@"c.Ext(""two"");", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 349Assert.Contains("void Ext(this C5 c, string s, int newIntegerParameter)", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 353Assert.Contains(@"c.Ext(""two"", 123);", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString());
CodeActions\MoveType\MoveTypeTests.MoveScope.cs (1)
865var formattedText = await formattedDocument.GetTextAsync().ConfigureAwait(false);
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\CompletionProviders\OverrideCompletionProviderTests.cs (1)
3537var text = await document.GetTextAsync();
Completion\CompletionServiceTests.cs (1)
139var text = await document.GetTextAsync();
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
245var test = await formatted.GetTextAsync();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (6)
55await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 83await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 119return await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 165await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, new TextSpan(0, sourceDocument.GetTextAsync().Result.Length)); 195var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 251var 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); 349var text = await editorconfig.GetTextAsync();
ExtractInterface\ExtractInterfaceTests.cs (5)
401var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 441var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 482var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 744var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 909var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString();
Formatting\CodeCleanupTests.cs (2)
892var actual = await newDoc.GetTextAsync(); 1000var actual = await newDoc.GetTextAsync();
Formatting\CodeCleanupTests.TestFixers.cs (2)
110solution = solution.WithDocumentText(document.Id, await document.GetTextAsync()); 160solution = solution.WithDocumentText(document.Id, await document.GetTextAsync());
Formatting\RazorLineFormattingOptionsTests.cs (1)
74var formattedText = await formattedDocument.GetTextAsync();
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
168var actual = await document.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()); 1077Assert.Equal("some text", (await additionalDocument.GetTextAsync()).ToString()); 1101Assert.Equal("root = true", (await analyzerConfigDocument.GetTextAsync()).ToString()); 1444Assert.Equal(originalText, (await eventArgs[0].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1445Assert.Equal(originalText, (await eventArgs[1].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1447Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1448Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.CSharp.Features (4)
Copilot\CSharpCopilotProposalAdjusterService.cs (1)
52var newText = await forkedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
55var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
56var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 148var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
296var oldText = await oldDocument.GetTextAsync(); 301var newText = await newDocument.GetTextAsync();
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests_Razor.cs (2)
54(await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString()); 87(await newSourceGeneratedDocument!.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\AddAttributesTests.cs (1)
61var actualText = (await formatted.GetTextAsync()).ToString();
CodeGeneration\AddImportsTests.cs (3)
96var actualText = (await formatted.GetTextAsync()).ToString(); 105var actualText = (await formatted.GetTextAsync()).ToString(); 893var actualText = (await formatted.GetTextAsync()).ToString();
Microsoft.CodeAnalysis.EditorFeatures (4)
GoOrFind\AbstractGoOrFindNavigationService.cs (1)
282var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.cs (2)
877: (documentId, newDocument.Name, newRoot: null, await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false))); 883result.Add((documentId, newDocument.Name, newRoot: null, await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false)));
Navigation\IDocumentNavigationServiceExtensions.cs (1)
85var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (1)
34var text = (await document.GetTextAsync(cancellationToken)).ToString();
BracePairs\AbstractBracePairsTests.cs (1)
33var text = await document.GetTextAsync();
Completion\AbstractCompletionProviderTests.cs (3)
181var code = (await document.GetTextAsync()).ToString(); 650var text = await document.GetTextAsync(); 743var text = await document.GetTextAsync();
ExtractInterface\AbstractExtractInterfaceTests.cs (3)
133var updatedCode = (await updatedOriginalDocument.GetTextAsync()).ToString(); 140var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 160var updatedCode = (await updatedDocument.GetTextAsync()).ToString();
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
40var actual = await formattedDocument.GetTextAsync();
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)
350var code = (await document.GetTextAsync()).ToString(); 467var code = (await document.GetTextAsync()).ToString();
TaskList\AbstractTaskListTests.cs (1)
45var sourceText = await document.GetTextAsync();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
CodeFixes\CodeFixServiceTests.cs (2)
913var text = await document.GetTextAsync(ct).ConfigureAwait(false); 1134var text = await sourceDocument.GetTextAsync();
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
300var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
406var text = await additionalDoc.GetTextAsync(); 568var text = await document.GetTextAsync(); 602text = await document.GetTextAsync();
Diagnostics\DiagnosticDataTests.cs (1)
137var text = await document.GetTextAsync();
EditAndContinue\EditorManagedHotReloadLanguageServiceTests.cs (2)
546_ = await document1.GetTextAsync(CancellationToken.None); 568var text = await document.GetTextAsync();
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (6)
78var text = await workspace.CurrentSolution.GetRequiredDocument(documentId).GetTextAsync(); 81var linkedText = await workspace.CurrentSolution.GetRequiredDocument(linkedDocumentId).GetTextAsync(); 91Assert.Equal(s_expectedCode, (await workspace.CurrentSolution.GetRequiredDocument(documentId).GetTextAsync()).ToString()); 92Assert.Equal(s_expectedCode, (await workspace.CurrentSolution.GetRequiredDocument(linkedDocumentId).GetTextAsync()).ToString()); 104var sourceText = await linkedDocument.GetTextAsync(); 108.WithDocumentText(document.Id, (await document.GetTextAsync()).Replace(textString.IndexOf("public"), "public".Length, "internal"))
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
70var text = await document.GetTextAsync();
Preview\PreviewWorkspaceTests.cs (1)
82Assert.Equal(previewWorkspace.CurrentSolution.Projects.First().Documents.First().GetTextAsync().Result.ToString(), text);
TextEditor\TryGetDocumentTests.cs (1)
40var newSourceText = newDocument.GetTextAsync().Result;
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
182var oldText = await textDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (1)
HotReloadServiceTests.cs (1)
37.GetTextAsync();
Microsoft.CodeAnalysis.Features (7)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
711var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Copilot\ICopilotChangeAnalysisService.cs (1)
91var oldText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Copilot\IProposalAdjusterService.cs (1)
132var oldText = await originalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
169var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Navigation\IDefinitionLocationService.cs (1)
61var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (1)
65var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
SemanticSearch\SemanticSearchWorkspace.cs (1)
43var newText = await queryDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Snippets\AbstractSnippetProviderTests.cs (1)
74var documentSourceText = await document.GetTextAsync();
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
1658var documentText = await document.GetTextAsync(CancellationToken.None); 1659var committedText = await committedDocument.GetTextAsync(CancellationToken.None); 1667var committedText = await committedDocument.GetTextAsync(CancellationToken.None); 3198var committedDocumentText1 = await committedDocument1.GetTextAsync(CancellationToken.None); 3217var committedDocumentText2 = await committedDocument2.GetTextAsync(CancellationToken.None); 4286var text = await debuggingSession.LastCommittedSolution.GetRequiredProject(document1.Project.Id).GetRequiredDocument(document1.Id).GetTextAsync(); 4823var sourceTextV1 = await document1.GetTextAsync(CancellationToken.None); 4948var text1 = await doc1.GetTextAsync(); 4949var text2 = await doc2.GetTextAsync();
Microsoft.CodeAnalysis.LanguageServer (2)
LanguageServer\Handler\CopilotCompletion\CopilotCompletionResolveContextHandler.cs (1)
37var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Testing\TestDiscoverer.cs (1)
81var text = await document.GetTextAsync(cancellationToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Extensions\ProtocolConversions.cs (1)
509var mappedText = await mappedDoc.GetTextAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
54var originalSourceText = await originalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionResultFactory.cs (3)
547var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 673var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 698var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
58var text = 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\OnAutoInsert\OnAutoInsertHandler.cs (1)
285var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Rename\PrepareRenameHandler.cs (1)
40var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
35var text = await contextDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SourceGenerators\SourceGeneratedDocumentContentProvider.cs (1)
40var text = await unfrozenDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\TextDocumentContent\TextDocumentContentHandler.cs (1)
40var text = await context.TextDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (76)
CodeActions\RunCodeActionsTests.cs (1)
50var textForB = await documentForB.GetTextAsync();
Completion\CompletionFeaturesTests.cs (2)
610var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 911var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionResolveTests.cs (1)
522var text = await document.GetTextAsync(cancellationToken);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
224var sourceText = await document.GetTextAsync();
Diagnostics\PullDiagnosticTests.cs (8)
329var text = await document.GetTextAsync(); 349var text = await document.GetTextAsync(); 713var workspaceText = await document.GetTextAsync(CancellationToken.None); 1719var text = await document.GetTextAsync(); 1815var csproj2DocumentText = await csproj2Document.GetTextAsync(); 1901var csproj3DocumentText = await csproj3Document.GetTextAsync().ConfigureAwait(false); 1969var csproj2DocumentText = await csproj2Document.GetTextAsync(); 2395var text = await testLspServer.GetCurrentSolution().GetDocument(documentId)!.GetTextAsync(CancellationToken.None);
InlayHint\AbstractInlayHintTests.cs (1)
27var text = await document.GetTextAsync(CancellationToken.None);
InlayHint\CSharpInlayHintTests.cs (1)
114var sourceText = await document.GetTextAsync();
MapCode\MapCodeTests.cs (2)
37var text = await document.GetTextAsync(cancellationToken); 122var documentText = await document.GetTextAsync();
OnAutoInsert\AbstractOnAutoInsertTests.cs (2)
51var documentText = await document.GetTextAsync(); 77var documentText = await (await testLspServer.GetDocumentAsync(locationTyped.DocumentUri)).GetTextAsync();
OnAutoInsert\RawStringOnAutoInsertTests.cs (1)
220var documentText = await document.GetTextAsync();
SelectionRanges\SelectionRangesTests.cs (1)
211var text = await document.GetTextAsync(CancellationToken.None);
SemanticTokens\AbstractSemanticTokensTests.cs (1)
78var text = await document.GetTextAsync().ConfigureAwait(false);
SemanticTokens\SemanticTokensRangeTests.cs (1)
489var text = await document.GetTextAsync();
SpellCheck\SpellCheckTests.cs (17)
64var sourceText = await document.GetTextAsync(); 95var sourceText = await document.GetTextAsync(); 130var sourceText = await document.GetTextAsync(); 165var sourceText = await document.GetTextAsync(); 200var sourceText = await document.GetTextAsync(); 223sourceText = await document.GetTextAsync(); 248var sourceText = await document.GetTextAsync(); 262sourceText = await document.GetTextAsync(); 288var sourceText = await document.GetTextAsync(); 314var sourceText = await document.GetTextAsync(); 344var sourceText = await document.GetTextAsync(); 424var sourceText = await document.GetTextAsync(); 464var sourceText = await document.GetTextAsync(); 502var sourceText = await document.GetTextAsync(); 518sourceText = await document.GetTextAsync(); 558var sourceText = await document.GetTextAsync(); 664var sourceText = await document.GetTextAsync();
TestSourceGeneratedDocumentSpanMappingService.cs (1)
60var sourceText = await document.GetTextAsync(cancellationToken);
UriTests.cs (8)
153var fileTextResult = await fileDocument.GetTextAsync(); 160var gitText = await gitDocument.GetTextAsync(); 191var originalText = await lspDocument.GetTextAsync(CancellationToken.None); 206var encodedText = await encodedDocument.GetTextAsync(CancellationToken.None); 239var originalText = await lspDocument.GetTextAsync(CancellationToken.None); 252var lowerCaseText = await lowerCaseDocument.GetTextAsync(CancellationToken.None); 285var originalText = await lspDocument.GetTextAsync(CancellationToken.None); 354Assert.Equal("hello", (await document!.GetTextAsync()).ToString());
Workspaces\LspWorkspaceManagerTests.cs (27)
37Assert.Equal("LSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 43Assert.Equal("More textLSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 94Assert.Equal($"Some more text{markupOne}", (await firstDocumentWithChange.GetTextAsync(CancellationToken.None)).ToString()); 124Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 129Assert.Equal("Two is now three!", (await secondDocument.GetTextAsync()).ToString()); 162Assert.Equal(markup, (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 195Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 354var changedFirstDocumentText = await changedFirstDocument.GetTextAsync(CancellationToken.None); 355var firstDocumentText = await firstDocument.GetTextAsync(CancellationToken.None); 450Assert.Equal("Server one text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString()); 454Assert.Equal("Original text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString()); 486Assert.Equal("Text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 511Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString()); 521(await document1.GetTextAsync(CancellationToken.None)).ToString(), 522(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString()); 530Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString()); 534(await document1.GetTextAsync(CancellationToken.None)).ToString(), 535(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString()); 548Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString()); 569Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString()); 577Assert.Equal("New Disk Contents", (await document.GetTextAsync()).ToString()); 583Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString()); 586Assert.Equal("Text", (await document.GetTextAsync()).ToString()); 608var originalSourceText = await originalDocument.GetTextAsync(CancellationToken.None); 619var newSourceText = await newDocument.GetTextAsync(CancellationToken.None); 706Assert.Equal(generatorText, (await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString()); 717Assert.Equal(openText, (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
FileBasedProgramsWorkspaceTests.cs (1)
835Assert.Equal(newAppCsText, (await document.GetTextAsync()).ToString());
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (6)
AnnotatePublicApiFix.cs (2)
73SourceText sourceText = await publicSurfaceAreaDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 181var text = await doc.GetTextAsync(cancellationToken).ConfigureAwait(false);
DeclarePublicApiFix.cs (2)
106var sourceText = await surfaceAreaDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 251await 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.Remote.Razor (7)
Completion\RemoteCompletionService.cs (1)
297var generatedText = await generatedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
DocumentMapping\RemoteDocumentMappingService.cs (1)
98var sourceText = await generatedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
DocumentMapping\RemoteSpanMappingService.cs (2)
65var razorDocumentText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 206var razorSource = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
ProjectSystem\RemoteDocumentSnapshot.cs (1)
46: new(TextDocument.GetTextAsync(cancellationToken));
RemoteTagHelperSearchEngine.cs (1)
75var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Rename\RemoteRenameService.cs (1)
164var text = await generatedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
27var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (3)
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
54.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 (26)
NetCoreTests.cs (1)
459var text = await libraryFs.GetTextAsync();
VisualStudioMSBuildWorkspaceTests.cs (25)
981var getTextTask = doc.GetTextAsync(); 1013var text = await doc.GetTextAsync(); 2002var text2 = await document2.GetTextAsync(); 2034var originalText = await document.GetTextAsync(); 2045var text2 = await document2.GetTextAsync(); 2053var text = await document.GetTextAsync(); 2068var originalText = await document.GetTextAsync(); 2081var text = await document.GetTextAsync(); 2095var text = await document.GetTextAsync(); 2104var text2 = await document2.GetTextAsync(); 2122var text = await document.GetTextAsync(); 2131var text2 = await document2.GetTextAsync(); 2157var text2 = await document2.GetTextAsync(); 2218var text = await doc.GetTextAsync(); 2248var text = await doc.GetTextAsync(); 2332var text = await doc.GetTextAsync(); 2770var text = await document.GetTextAsync(); 2789var text = await document.GetTextAsync(); 2808var text = await document.GetTextAsync(); 2863var doc2text = await doc2.GetTextAsync(); 2870var text = await document.GetTextAsync(); 2877var doc3text = await doc3.GetTextAsync(); 2886var noEncodingDocText = await noEncodingDoc.GetTextAsync(); 3224var text = await analyzerConfigDocument.GetTextAsync(); 3315var 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 (103)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
44var text = (await gooDoc.GetTextAsync()).ToString();
Formatter\FormatterTests.cs (2)
58var formattedText = await formattedDocument.GetTextAsync(); 96var 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 (50)
449var text1 = await document1.GetTextAsync(); 450var text2 = await document2.GetTextAsync(); 472text1 = await document1.GetTextAsync(); 473text2 = await document2.GetTextAsync(); 493text1 = await document1.GetTextAsync(); 494text2 = await document2.GetTextAsync(); 537var text1 = await document1.GetTextAsync(); 538var text2 = await document2.GetTextAsync(); 560text1 = await document1.GetTextAsync(); 561text2 = await document2.GetTextAsync(); 581text1 = await document1.GetTextAsync(); 582text2 = await document2.GetTextAsync(); 616var text1 = await document1.GetTextAsync(); 617var text2 = await document2.GetTextAsync(); 643text1 = await document1.GetTextAsync(); 644text2 = await document2.GetTextAsync(); 667text1 = await document1.GetTextAsync(); 668text2 = await document2.GetTextAsync(); 702var text1 = await document1.GetTextAsync(); 703var text2 = await document2.GetTextAsync(); 726text1 = await document1.GetTextAsync(); 727text2 = await document2.GetTextAsync(); 747text1 = await document1.GetTextAsync(); 748text2 = await document2.GetTextAsync(); 779var text1 = await document1.GetTextAsync(); 780var text2 = await document2.GetTextAsync(); 802text1 = await document1.GetTextAsync(); 803text2 = await document2.GetTextAsync(); 823text1 = await document1.GetTextAsync(); 824text2 = await document2.GetTextAsync(); 867var text1 = await document1.GetTextAsync(); 868var text2 = await document2.GetTextAsync(); 889text1 = await document1.GetTextAsync(); 890text2 = await document2.GetTextAsync(); 912text1 = await document1.GetTextAsync(); 913text2 = await document2.GetTextAsync(); 1711Assert.Equal(expectedAlgorithm, (await document.GetTextAsync(default)).ChecksumAlgorithm); 2514var sourceText = await document.GetTextAsync(); 3365var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString(); 3510var observedText2 = sol.GetDocument(did).GetTextAsync().Result; 3528var docText = doc.GetTextAsync().Result; 3550var docText = doc.GetTextAsync().Result; 3575var docText = doc.GetTextAsync().Result; 3723var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3754var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 4116var text = await doc.GetTextAsync().ConfigureAwait(false); 4201Assert.Equal(Encoding.UTF32, doc.GetTextAsync().Result.Encoding); 4208Assert.Equal(Encoding.UTF32, newDoc.GetTextAsync().Result.Encoding); 5655var newDocText = await newDoc.GetTextAsync(); 5656var sameText = await newDoc.GetTextAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (30)
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()); 916Assert.Equal("// Frozen 1", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId1).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString()); 917Assert.Equal("// Frozen 2", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId2).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString()); 1003var sourceText = await updatedDocument.GetTextAsync(); 1006sourceText = await solution.GetRequiredDocument(ordinaryDocument.Id).GetTextAsync(); 1031var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1036sourceText = await updatedDocument.GetTextAsync(); 1065var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1073sourceText = await updatedDocument.GetTextAsync(); 1100var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1154var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1159sourceText = await updatedDocument.GetTextAsync(); 1182var sourceText = await sourceGeneratedDocument.GetTextAsync(); 1186sourceText = await sourceGeneratedDocument.GetTextAsync(); 1191sourceText = await updatedDocument.GetTextAsync(); 1219var sourceText = await sourceGeneratedDocument1!.GetTextAsync(); 1228sourceText = await sourceGeneratedDocument1!.GetTextAsync(); 1233sourceText = await sourceGeneratedDocument2!.GetTextAsync(); 1240sourceText = await sourceGeneratedDocument1!.GetTextAsync(); 1245sourceText = await sourceGeneratedDocument2!.GetTextAsync(); 1276Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1313Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1344Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1379Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString()); 1485var contents = await helloWorldDoc.GetTextAsync(); 1522var contents = await helloWorldDoc.GetTextAsync();
WorkspaceTests\AdhocWorkspaceTests.cs (3)
76Assert.Equal(source, (await doc.GetTextAsync()).ToString()); 338currentText = await doc.GetTextAsync(); 366var actualText = await newDoc.GetTextAsync();
Microsoft.Gen.BuildMetadata.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.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.NET.Sdk.Razor.SourceGenerators.UnitTests (3)
RazorSourceGeneratorComponentTests.cs (2)
823var originalText = await original.GetTextAsync(); 889var originalText = await original.GetTextAsync();
RazorSourceGeneratorTestsBase.cs (1)
95var additionalText = new TestAdditionalText(document.Name, await document.GetTextAsync());
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchQueryExecutor.cs (3)
72var oldText = await newSolution.GetRequiredDocument(documentId).GetTextAsync(cancellationToken).ConfigureAwait(false); 86var updatedText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 124query ??= (await queryDocument!.GetTextAsync(cancellationToken).ConfigureAwait(false)).ToString();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\FileCodeFunctionTests.cs (2)
489var text = await (GetCurrentDocument()).GetTextAsync(); 502var text = await (GetCurrentDocument()).GetTextAsync();
Microsoft.VisualStudio.LanguageServices.Razor (5)
LanguageClient\Cohost\CohostUriPresentationEndpoint.cs (1)
66var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
81var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
96var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
84var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorSourceGeneratedDocumentExcerptService.cs (1)
45var razorSourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (64)
Cohost\CohostDataTipRangeEndpointTest.cs (1)
67var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostDocumentPullDiagnosticsTest.cs (1)
587var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostDocumentSpellCheckEndpointTest.cs (1)
92var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\CohostInlineCompletionEndpointTest.cs (1)
83var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostOnTypeFormattingEndpointTest.cs (1)
125var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostRangeFormattingEndpointTest.cs (1)
173var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostRoslynCodeActionTest.cs (3)
222var sourceText = await csharpDocument.GetTextAsync(DisposalToken); 266var generatedSourceText = await generatedDoc.GetTextAsync(DisposalToken); 280var razorText = await razorDocument.GetTextAsync(DisposalToken);
Cohost\CohostRoslynGoToDefTest.cs (1)
60var sourceText = await csharpDocument.GetTextAsync(DisposalToken);
Cohost\CohostRoslynRenameTest.cs (5)
265var sourceText = await document.GetTextAsync(DisposalToken); 293var csharpText = await csharpDocumentAfterRename.GetTextAsync(DisposalToken); 307var razorText = await razorDocumentAfterRename.GetTextAsync(DisposalToken); 328var csharpSourceText = await csharpDocument.GetTextAsync(DisposalToken); 332var razorSourceText = await razorDocument.GetTextAsync(DisposalToken);
Cohost\CohostSnippetCompletionTest.cs (1)
35var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\CohostTextPresentationEndpointTest.cs (1)
51var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\CohostUriPresentationEndpointTest.cs (1)
246var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\CohostValidateBreakableRangeEndpointTest.cs (1)
108var inputText = await document.GetTextAsync(DisposalToken);
Cohost\CohostWrapWithTagEndpointTest.cs (1)
192var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\Formatting\FormattingLogTest.cs (1)
71var sourceText = await document.GetTextAsync();
Cohost\Formatting\FormattingTestBase.cs (1)
48var inputText = await document.GetTextAsync(DisposalToken);
Cohost\HtmlDocumentSynchronizerTest.cs (1)
386return (TResult)(object)(await solution.GetAdditionalDocument(_documentId).AssumeNotNull().GetTextAsync(cancellationToken)).ToString();
Cohost\OrganizeUsingsCommandTest.cs (2)
630var sourceText = await document.GetTextAsync(DisposalToken); 647var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\RazorRefactorNotifyServiceTest.cs (1)
142var sourceText = await document.GetTextAsync(DisposalToken);
Cohost\RemoteDebugInfoServiceTest.cs (2)
463var inputText = await document.GetTextAsync(DisposalToken); 489var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
139var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
37var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\DocumentExcerptServiceTestBase.cs (1)
56(await secondary.GetTextAsync(cancellationToken)).ToString(secondarySpan));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\RazorDocumentExcerptServiceTest.cs (7)
45(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 123(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 175(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 283(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 387(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 461(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 570(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(),
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (7)
521var sourceText = await document.GetTextAsync(DisposalToken); 1299var sourceText = await document.GetTextAsync(DisposalToken); 1434var sourceText = await document.GetTextAsync(DisposalToken); 1497var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1504var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1511var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1519var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentHighlightEndpointTest.cs (1)
150var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (2)
229var position = (await componentDocument.GetTextAsync(DisposalToken)).GetPosition(component.Position); 254var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
374var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (2)
449var inputText = await document.GetTextAsync(DisposalToken); 1071var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (2)
104var inputText = await document.GetTextAsync(DisposalToken); 186var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostHoverEndpointTest.cs (2)
388var inputText = await document.GetTextAsync(DisposalToken); 405var text = await document.GetTextAsync();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
202var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostLinkedEditingRangeEndpointTest.cs (1)
162var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
554var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostRenameEndpointTest.cs (1)
1471var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSemanticTokensRangeEndpointTest.cs (1)
403var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSignatureHelpEndpointTest.cs (1)
93var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (2)
104var inputText = await document.GetTextAsync(DisposalToken); 150var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
695var inputText = await document.GetTextAsync(DisposalToken);
Microsoft.VisualStudioCode.RazorExtension (4)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
81var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
96var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
84var sourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorSourceGeneratedDocumentExcerptService.cs (1)
45var razorSourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (37)
Endpoints\CohostDocumentPullDiagnosticsTest.cs (1)
63var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
139var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
37var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\DocumentExcerptServiceTestBase.cs (1)
56(await secondary.GetTextAsync(cancellationToken)).ToString(secondarySpan));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\RazorDocumentExcerptServiceTest.cs (7)
45(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 123(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 175(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 283(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 387(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 461(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(), 570(await secondary.GetTextAsync()).GetSubText(secondarySpan).ToString(),
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (7)
521var sourceText = await document.GetTextAsync(DisposalToken); 1299var sourceText = await document.GetTextAsync(DisposalToken); 1434var sourceText = await document.GetTextAsync(DisposalToken); 1497var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1504var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1511var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false); 1519var text = await document.GetTextAsync(DisposalToken).ConfigureAwait(false);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentHighlightEndpointTest.cs (1)
150var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (2)
229var position = (await componentDocument.GetTextAsync(DisposalToken)).GetPosition(component.Position); 254var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
374var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (2)
449var inputText = await document.GetTextAsync(DisposalToken); 1071var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToImplementationEndpointTest.cs (2)
104var inputText = await document.GetTextAsync(DisposalToken); 186var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostHoverEndpointTest.cs (2)
388var inputText = await document.GetTextAsync(DisposalToken); 405var text = await document.GetTextAsync();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
202var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostLinkedEditingRangeEndpointTest.cs (1)
162var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
554var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostRenameEndpointTest.cs (1)
1471var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSemanticTokensRangeEndpointTest.cs (1)
403var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSignatureHelpEndpointTest.cs (1)
93var sourceText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (2)
104var inputText = await document.GetTextAsync(DisposalToken); 150var inputText = await document.GetTextAsync(DisposalToken);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
695var inputText = await document.GetTextAsync(DisposalToken);
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Refactoring\CodeRefactoringContextExtensions.cs (1)
44var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.Next.UnitTests (25)
Remote\SnapshotSerializationTests.cs (1)
535var text = await document.GetTextAsync().ConfigureAwait(false);
Services\ServiceHubServicesTests.cs (24)
105var oldText = await oldDocument.GetTextAsync(); 505var localText = await localDoc.GetTextAsync(); 506var remoteText = await localDoc.GetTextAsync(); 1385Assert.Equal("// callCount: 0", (await document.GetTextAsync()).ToString()); 1398Assert.Equal("// callCount: 1", (await document.GetTextAsync()).ToString()); 1403Assert.Equal("// callCount: 0", (await document.GetTextAsync()).ToString()); 1438Assert.Equal("// callCount: 0", (await document.GetTextAsync()).ToString()); 1483Assert.Equal("// callCount: " + expectedCallCount, (await document.GetTextAsync()).ToString()); 1565.GetTextAsync(); 1608Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1619Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1630Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1643Assert.Equal($"// callCount: 1", (await doc1.GetTextAsync()).ToString()); 1646Assert.Equal($"// secondCallCount: 0", (await doc2.GetTextAsync()).ToString()); 1687Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1698Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1711Assert.Equal($"// callCount: 0", (await doc1.GetTextAsync()).ToString()); 1714Assert.Equal($"// razorCallCount: 0", (await doc2.GetTextAsync()).ToString()); 1727Assert.Equal($"// callCount: 1", (await doc1.GetTextAsync()).ToString()); 1730Assert.Equal($"// razorCallCount: 1", (await doc2.GetTextAsync()).ToString()); 1771Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1790Assert.Equal($"// callCount: 0", (await doc.GetTextAsync()).ToString()); 1802Assert.Equal($"// callCount: 1", (await doc.GetTextAsync()).ToString()); 1931var text = await document.GetTextAsync();
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);