559 references to GetTextAsync
IdeCoreBenchmarks (1)
ClassificationBenchmarks.cs (1)
110var text = document.GetTextAsync().Result.ToString();
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
AbstractConflictMarkerCodeFixProvider.cs (3)
73var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 305var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 391var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
143var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ParsedDocument.cs (1)
36var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
25var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
SyntacticDocument.cs (1)
30var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (4)
AbstractCodeActionOrUserDiagnosticTest.cs (4)
697var root = await additionalDoc.GetTextAsync(); 699var expectedRoot = await expectedDocument.GetTextAsync(); 705var root = await analyzerConfigDoc.GetTextAsync(); 715var expectedRoot = await expectedDocument.GetTextAsync();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
AddInheritdocCodeFixProvider.cs (1)
125sourceText ??= await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ArrowExpressionClausePlacementCodeFixProvider.cs (1)
52var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConditionalExpressionPlacementCodeFixProvider.cs (1)
52var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConsecutiveBracePlacementCodeFixProvider.cs (1)
53var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConstructorInitializerPlacementCodeFixProvider.cs (1)
50var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (2)
65var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 88var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (45)
ChangeSignature\RemoveParametersTests.cs (4)
260Assert.Contains("void Ext(this C5 c, string s)", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 264Assert.Contains(@"c.Ext(""two"");", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 342Assert.Contains("void Ext(this C5 c, string s, int newIntegerParameter)", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString()); 346Assert.Contains(@"c.Ext(""two"", 123);", (await updatedDocument.GetTextAsync(CancellationToken.None)).ToString());
CodeActions\MoveType\MoveTypeTests.MoveScope.cs (1)
939var 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)
3281var text = await document.GetTextAsync();
Completion\CompletionServiceTests.cs (1)
140var text = await document.GetTextAsync();
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
232var test = await formatted.GetTextAsync();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (6)
64await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 92await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 128return await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 174await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, new TextSpan(0, sourceDocument.GetTextAsync().Result.Length)); 206var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 262var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
305var oldText = await oldDocument.GetTextAsync(); 310var newText = await newDocument.GetTextAsync();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
67var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 76var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 365var text = await editorconfig.GetTextAsync();
ExtractInterface\ExtractInterfaceTests.cs (5)
510var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 550var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 591var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 902var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 1059var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString();
Formatting\CodeCleanupTests.cs (2)
761var actual = await newDoc.GetTextAsync(); 845var actual = await newDoc.GetTextAsync();
Formatting\CodeCleanupTests.TestFixers.cs (2)
112solution = solution.WithDocumentText(document.Id, await document.GetTextAsync()); 168solution = solution.WithDocumentText(document.Id, await document.GetTextAsync());
Formatting\RazorLineFormattingOptionsTests.cs (1)
73var formattedText = await formattedDocument.GetTextAsync();
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
168var actual = await document.GetTextAsync();
Workspaces\WorkspaceTests_EditorFeatures.cs (11)
498var docZText = await docZ.GetTextAsync(); 549var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 609var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 670Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 677Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 1005Assert.Equal("some text", (await additionalDocument.GetTextAsync()).ToString()); 1029Assert.Equal("root = true", (await analyzerConfigDocument.GetTextAsync()).ToString()); 1359Assert.Equal(originalText, (await eventArgs[0].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1360Assert.Equal(originalText, (await eventArgs[1].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1362Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1363Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.CSharp.Features (20)
AddInheritdocCodeFixProvider.cs (1)
125sourceText ??= await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ArrowExpressionClausePlacementCodeFixProvider.cs (1)
52var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\BlockCommentBraceMatcher.cs (1)
28var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
372var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
80var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
81var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
109var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
76var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
141var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
147var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConditionalExpressionPlacementCodeFixProvider.cs (1)
52var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConsecutiveBracePlacementCodeFixProvider.cs (1)
53var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ConstructorInitializerPlacementCodeFixProvider.cs (1)
50var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (2)
65var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 88var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Debugging\LocationInfoGetter.cs (1)
60var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
55var text = await document.Document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpSnippetFunctionService.cs (1)
62var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
StringIndentation\CSharpStringIndentationService.cs (1)
33var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
82var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\AddAttributesTests.cs (1)
59var actualText = (await formatted.GetTextAsync()).ToString();
CodeGeneration\AddImportsTests.cs (3)
96var actualText = (await formatted.GetTextAsync()).ToString(); 105var actualText = (await formatted.GetTextAsync()).ToString(); 816var actualText = (await formatted.GetTextAsync()).ToString();
Microsoft.CodeAnalysis.EditorFeatures (21)
CodeActions\CodeActionEditHandlerService.cs (2)
145var text = await singleChangedDocument.GetTextAsync(cancellationToken).ConfigureAwait(true); 368var text = await openDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
174var text = await item.Document.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\ActiveStatementTrackingService.cs (1)
319var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (2)
55var originalText = await analyzerConfigDocument.GetTextAsync(token).ConfigureAwait(false); 84var originalText = await analyzerConfigDocument!.GetTextAsync(token).ConfigureAwait(false);
ExternalAccess\IntelliCode\IntentProcessor.cs (1)
71var currentText = await currentDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameService.cs (2)
101var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 146var sourceText = await documentSpan.Document.GetTextAsync(cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (6)
410var firstDocumentNewText = conflictResolution.NewSolution.GetDocument(firstDocumentReplacements.document.Id).GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken); 419var documentNewText = conflictResolution.NewSolution.GetDocument(document.Id).GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken); 557var oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 558var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 599var preMergeDocumentText = preMergeDocument.GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken); 608preMergeDocumentTextString = preMergeDocument.GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken).ToString();
IntelliSense\QuickInfo\IntellisenseQuickInfoBuilder.cs (1)
117var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
LanguageServer\EditorHoverCreationService.cs (1)
40var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Preview\AbstractPreviewFactoryService.cs (2)
755var oldText = oldDocument.GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken); 756var newText = newDocument.GetTextAsync(cancellationToken).WaitAndGetResult(cancellationToken);
TextDiffing\EditorTextDifferencingService.cs (2)
37var oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 38var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (8)
ChangeSignature\AbstractChangeSignatureTests.cs (2)
130var updatedCode = (await updatedInvocationDocument.GetTextAsync()).ToString(); 140Assert.True(false, CreateDiagnosticsString(diagnostics, updatedSignature, testState.InvocationDocument, totalParameters, (await testState.InvocationDocument.GetTextAsync()).ToString()));
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (4)
697var root = await additionalDoc.GetTextAsync(); 699var expectedRoot = await expectedDocument.GetTextAsync(); 705var root = await analyzerConfigDoc.GetTextAsync(); 715var expectedRoot = await expectedDocument.GetTextAsync();
CodeActions\AbstractCodeActionOrUserDiagnosticTest_TestAddDocument.cs (1)
120var actual = (await addedDocument.GetTextAsync()).ToString();
MoveType\AbstractMoveTypeTest.cs (1)
182var actualSourceTextAfterRefactoring = (await modifiedSourceDocument.GetTextAsync()).ToString();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (18)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (1)
35var text = (await document.GetTextAsync(cancellationToken)).ToString();
BracePairs\AbstractBracePairsTests.cs (1)
34var text = await document.GetTextAsync();
Completion\AbstractCompletionProviderTests.cs (3)
149var code = (await document.GetTextAsync()).ToString(); 507var text = await document.GetTextAsync(); 594var text = await document.GetTextAsync();
Diagnostics\TestDiagnosticAnalyzerDriver.cs (1)
61var text = await document.GetTextAsync().ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceTests.cs (3)
136var updatedCode = (await updatedOriginalDocument.GetTextAsync()).ToString(); 143var interfaceCode = (await interfaceDocument.GetTextAsync()).ToString(); 163var updatedCode = (await updatedDocument.GetTextAsync()).ToString();
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
42var actual = await formattedDocument.GetTextAsync();
LanguageServer\AbstractLanguageServerProtocolTests.cs (3)
329var documentText = await solution.GetRequiredDocument(document.Id).GetTextAsync(CancellationToken.None); 422var text = await document.GetTextAsync(CancellationToken.None); 611var sourceText = await TestWorkspace.CurrentSolution.GetDocuments(documentUri).First().GetTextAsync(CancellationToken.None).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
29var text = await document.GetTextAsync();
Rename\RenamerTests.cs (1)
101AssertEx.EqualOrDiff(endDocument.Text, (await updatedDocument.GetTextAsync()).ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (2)
357var code = (await document.GetTextAsync()).ToString(); 473var code = (await document.GetTextAsync()).ToString();
TaskList\AbstractTaskListTests.cs (1)
47var sourceText = await document.GetTextAsync();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (25)
CodeFixes\CodeFixServiceTests.cs (1)
880var text = await document.GetTextAsync(ct).ConfigureAwait(false);
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
254var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
706var text = await additionalDoc.GetTextAsync(); 899var text = await document.GetTextAsync(); 941text = await document.GetTextAsync();
Diagnostics\DiagnosticDataTests.cs (1)
131var text = await document.GetTextAsync();
Diagnostics\DiagnosticsSquiggleTaggerProviderTests.cs (1)
67var text = await document.GetTextAsync();
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
1368var text = await document.GetTextAsync(); 3645var sourceTextV1 = await document1.GetTextAsync(CancellationToken.None); 3784var text1 = await doc1.GetTextAsync(); 3785var text2 = await doc2.GetTextAsync(); 4708var document1 = await solution.GetDocument(documentId).GetTextAsync(); 4729var text = await document.GetTextAsync(); 4731Assert.Equal(source1, (await document.GetTextAsync(CancellationToken.None)).ToString());
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (6)
59var text = await workspace.CurrentSolution.GetDocument(documentId).GetTextAsync(); 62var linkedText = await workspace.CurrentSolution.GetDocument(linkedDocumentId).GetTextAsync(); 71Assert.Equal(expectedMergedText, (await workspace.CurrentSolution.GetDocument(documentId).GetTextAsync()).ToString()); 72Assert.Equal(expectedMergedText, (await workspace.CurrentSolution.GetDocument(linkedDocumentId).GetTextAsync()).ToString()); 86.WithDocumentText(document.Id, (await document.GetTextAsync()).Replace(13, 1, "D")) 87.WithDocumentText(linkedDocument.Id, (await linkedDocument.GetTextAsync()).Replace(0, 6, "private"));
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
60var text = await document.GetTextAsync();
Preview\PreviewWorkspaceTests.cs (2)
91Assert.Equal(previewWorkspace.CurrentSolution.Projects.First().Documents.First().GetTextAsync().Result.ToString(), text); 171var oldText = oldDocument.GetTextAsync().Result;
SolutionCrawler\WorkCoordinatorTests.cs (1)
1590await document.GetTextAsync();
TextEditor\TryGetDocumentTests.cs (1)
43var newSourceText = newDocument.GetTextAsync().Result;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
28var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Interactive\InteractiveDocumentNavigationService.cs (1)
57var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Peek\PeekableItemSource.cs (1)
139var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\Extensions.cs (1)
51var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (26)
Classification\ClassificationTests.vb (5)
44Dim text = Await document.GetTextAsync() 94Dim text = Await document.GetTextAsync() 155Dim text = Await document.GetTextAsync() 217Dim text = Await document.GetTextAsync() 327Dim text = Await wrongDocument.GetTextAsync(CancellationToken.None)
Classification\SyntacticChangeRangeComputerTests.vb (1)
28Dim startingText = Await startingDocument.GetTextAsync()
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
117Dim actual = (Await updatedDocument.GetTextAsync()).ToString().Trim()
Diagnostics\AdditionalFileDiagnosticsTests.vb (2)
60Dim actual = updatedDocument.GetTextAsync().Result.ToString().Trim() 120Dim text = Await appConfigDoc.GetTextAsync().ConfigureAwait(False)
Diagnostics\DiagnosticServiceTests.vb (5)
351Dim diagnostics1 = diagnosticService.GetDiagnosticsForSpanAsync(p1.Documents.Single(), New TextSpan(0, p1.Documents.Single().GetTextAsync().Result.Length)).Result 356Dim diagnostics2 = diagnosticService.GetDiagnosticsForSpanAsync(p2.Documents.Single(), New TextSpan(0, p2.Documents.Single().GetTextAsync().Result.Length)).Result 1213Dim text = Await document.GetTextAsync() 1333Dim text = Await document.GetTextAsync() 1381Dim text = Await document.GetTextAsync()
Diagnostics\UseAutoProperty\UseAutoPropertyTests.vb (1)
145Dim text = (Await doc.GetTextAsync()).ToString().Trim()
Expansion\AbstractExpansionTest.vb (1)
51Dim actualText = (Await document.GetTextAsync()).ToString()
FindReferences\FindReferencesTests.vb (1)
545Dim text1 = Await document1.GetTextAsync()
InlineHints\AbstractInlineHintsTests.vb (2)
68Dim value = Await document.GetTextAsync().ConfigureAwait(False) 70Dim expectedText = Await expectedDocument.GetTextAsync().ConfigureAwait(False)
NavigationBar\TestHelpers.vb (4)
38Dim snapshot = (Await document.GetTextAsync()).FindCorrespondingEditorTextSnapshot() 57Dim snapshot = (Await document.GetTextAsync()).FindCorrespondingEditorTextSnapshot() 90Dim snapshot = (Await document.GetTextAsync()).FindCorrespondingEditorTextSnapshot() 120Dim snapshot = (Await sourceDocument.GetTextAsync()).FindCorrespondingEditorTextSnapshot()
PasteTracking\PasteTrackingTestState.vb (1)
84Dim sourceText = Await document.GetTextAsync()
Simplification\AbstractSimplificationTests.vb (1)
129Dim actualText = (Await simplifiedDocument.GetTextAsync()).ToString()
Simplification\ParameterSimplificationTests.vb (1)
31Assert.Equal(expected, (Await simplifiedDocument.GetTextAsync()).ToString())
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
TaskList\FSharpTaskListService.cs (1)
42var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Completion\OmniSharpCompletionService.cs (1)
24var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (68)
AbstractConflictMarkerCodeFixProvider.cs (3)
73var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 305var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 391var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
143var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
179var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
AddImport\CodeActions\AddImportCodeAction.cs (1)
60var oldText = await OriginalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (2)
90var oldText = await OriginalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 91var newText = await updatedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractBraceMatcher.cs (1)
67var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\BraceMatchingService.cs (1)
33var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ClassifiedSpansAndHighlightSpanFactory.cs (1)
49var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
275var originalText = await editorConfigDocument.GetTextAsync(_cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
346var finalText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
106var currentText = await currentDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeLens\CodeLensReferencesService.cs (1)
125var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactoringHelpers.cs (1)
115var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AbstractRefactoringHelpersService.cs (2)
223var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 533var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (2)
136var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 165var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsRefactoringProvider.cs (1)
33var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
50var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProvider.cs (1)
58=> ShouldTriggerCompletion(document.Project.Services, await document.GetTextAsync(cancellationToken).ConfigureAwait(false), caretPosition, trigger, options, document.Project.Solution.Options);
Completion\CompletionService.cs (1)
373var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionService_GetCompletions.cs (1)
99var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
213var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
273var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
45var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 80var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (1)
59var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
98var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
253var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
168var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (2)
37var strippedText = await strippedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 124var originalText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
534oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 551var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 2846var oldSyntaxText = await oldSyntaxDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (2)
224var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 332var currentDocumentSourceText = await currentDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (4)
203var oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 204var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 325var oldSource = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 326var newSource = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\TraceLog.cs (1)
203var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
97var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\VSTypeScript\VSTypeScriptTaskListService.cs (1)
41var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
41var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
48var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
185var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
79var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
39var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
87var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 206var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
296var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
156var text = await temporaryDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
288var formattedText = await formattedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (1)
256var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (2)
40var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 155var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\RoslynLSPSnippetConverter.cs (1)
114var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetFunctionService.cs (1)
44var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (2)
129var sourceText = await annotatedReformattedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 210var originalText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractWrapper.cs (1)
47var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\BinaryExpression\AbstractBinaryExpressionWrapper.cs (1)
90var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
111var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (1)
84var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (34)
Extensions\Extensions.cs (1)
134var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Extensions\ProtocolConversions.cs (4)
140var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 266var oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 279var newText = await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); 366var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Features\CodeFixes\CodeFixService.cs (4)
109var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 191var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 211var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 301var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
161var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
360var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
98var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
59var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
39var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeActions\CodeActionHelpers.cs (2)
45var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 240var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeActions\CodeActionResolveHandler.cs (2)
184var oldText = await oldTextDoc.GetTextAsync(cancellationToken).ConfigureAwait(false); 197var newText = await newTextDoc.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeLens\CodeLensHandler.cs (1)
45var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionHandler.cs (1)
84var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionResolveHandler.cs (1)
142var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\FoldingRanges\FoldingRangesHandler.cs (1)
61var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
35var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Highlights\DocumentHighlightHandler.cs (1)
49var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Hover\ILspHoverResultCreationService.cs (1)
45var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
78var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\OnAutoInsert\OnAutoInsertHandler.cs (3)
108var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 139var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 214var documentText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\References\FindUsagesLSPContext.cs (1)
265var docText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
82var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
157var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Symbols\DocumentSymbolsHandler.cs (1)
51var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Workspaces\LspWorkspaceManager.cs (1)
331var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (49)
CodeActions\RunCodeActionsTests.cs (1)
57var textForB = await documentForB.GetTextAsync();
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
207var sourceText = await document.GetTextAsync();
Diagnostics\PullDiagnosticTests.cs (4)
1209var text = await document.GetTextAsync(); 1304var csproj2DocumentText = await csproj2Document.GetTextAsync(); 1379var csproj3DocumentText = await csproj3Document.GetTextAsync().ConfigureAwait(false); 1446var csproj2DocumentText = await csproj2Document.GetTextAsync();
DocumentChanges\DocumentChangesTests.cs (2)
239var documentTextFromWorkspace = (await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync()).ToString(); 327var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
Formatting\FormatDocumentOnTypeTests.cs (2)
47var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync(); 78var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
Formatting\FormatDocumentRangeTests.cs (2)
44var documentText = await testLspServer.GetCurrentSolution().GetDocuments(rangeToFormat.Uri).Single().GetTextAsync(); 72var documentText = await testLspServer.GetCurrentSolution().GetDocuments(rangeToFormat.Uri).Single().GetTextAsync();
Formatting\FormatDocumentTests.cs (3)
45var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync(); 73var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync(); 101var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync();
OnAutoInsert\OnAutoInsertTests.cs (2)
407var documentText = await document.GetTextAsync(); 421var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
SemanticTokens\AbstractSemanticTokensTests.cs (1)
54var text = await document.GetTextAsync().ConfigureAwait(false);
SpellCheck\SpellCheckTests.cs (16)
62var sourceText = await document.GetTextAsync(); 93var sourceText = await document.GetTextAsync(); 129var sourceText = await document.GetTextAsync(); 165var sourceText = await document.GetTextAsync(); 186sourceText = await document.GetTextAsync(); 212var sourceText = await document.GetTextAsync(); 226sourceText = await document.GetTextAsync(); 254var sourceText = await document.GetTextAsync(); 281var sourceText = await document.GetTextAsync(); 309var sourceText = await document.GetTextAsync(); 382var sourceText = await document.GetTextAsync(); 420var sourceText = await document.GetTextAsync(); 456var sourceText = await document.GetTextAsync(); 473sourceText = await document.GetTextAsync(); 509var sourceText = await document.GetTextAsync(); 605var sourceText = await document.GetTextAsync();
Workspaces\LspWorkspaceManagerTests.cs (15)
39Assert.Equal("LSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 45Assert.Equal("More textLSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 83Assert.Equal($"Some more text{markupOne}", (await firstDocumentWithChange.GetTextAsync(CancellationToken.None)).ToString()); 113Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 118Assert.Equal("Two is now three!", (await secondDocument.GetTextAsync()).ToString()); 141Assert.Equal(markup, (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 165Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString()); 214Assert.Equal("LSP text", (await miscDocument.GetTextAsync(CancellationToken.None)).ToString()); 220var miscText = await miscDocument.GetTextAsync(CancellationToken.None); 232var documentText = await document.GetTextAsync(CancellationToken.None); 353var changedFirstDocumentText = await changedFirstDocument.GetTextAsync(CancellationToken.None); 354var firstDocumentText = await firstDocument.GetTextAsync(CancellationToken.None); 449Assert.Equal("Original text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString()); 479Assert.Equal("Text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString()); 491Assert.Equal(openText, (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
Generator.cs (1)
418var text = await document.GetTextAsync(cancellationToken);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (1)
Utilities\TestLsifOutput.vb (1)
98Dim text = Await document.GetTextAsync()
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\AssetSynchronization\RemoteAssetSynchronizationService.cs (1)
108return await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
138var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
29var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (1)
59Dim text = Await destinationDocument.GetTextAsync(cancellationToken).ConfigureAwait(False)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
27Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (16)
ChangeSignature\ReorderParameters.MultiFile.vb (4)
63Assert.Equal(expectedCSharpCode, (Await csdoc.GetTextAsync()).ToString()) 64Assert.Equal(expectedVBCode, (Await vbdoc.GetTextAsync()).ToString()) 116Assert.Equal(expectedCSharpCode, (Await csdoc.GetTextAsync()).ToString()) 117Assert.Equal(expectedVBCode, (Await vbdoc.GetTextAsync()).ToString())
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.vb (4)
33Await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, New TextSpan(0, document.GetTextAsync().Result.Length)) 58Await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, New TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)) 88Return Await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, New TextSpan(0, document.GetTextAsync().Result.Length)) 121Await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, New TextSpan(0, sourceDocument.GetTextAsync().Result.Length))
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (2)
477Dim oldText = Await oldDocument.GetTextAsync() 480Dim newText = Await newDocument.GetTextAsync()
ExtractInterface\ExtractInterfaceTests.vb (2)
1195Assert.Equal(expectedDoc1Text, (Await result.UpdatedSolution.GetDocument(part1Id).GetTextAsync()).ToString()) 1196Assert.Equal(expectedDoc2Text, (Await result.UpdatedSolution.GetDocument(part2Id).GetTextAsync()).ToString())
Formatting\CodeCleanUpTests.vb (4)
549Dim actual = Await newDoc.GetTextAsync() 601Dim actual = Await newDoc.GetTextAsync() 660solution = solution.WithDocumentText(document.Id, Await document.GetTextAsync()) 705solution = solution.WithDocumentText(document.Id, Await document.GetTextAsync())
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
232Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.MoveToLineCodeAction.vb (1)
33Dim text = Await _document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
84Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\VisualBasicSuggestionModeCompletionProvider.vb (1)
34Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Debugging\LocationInfoGetter.vb (1)
42Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Snippets\VisualBasicSnippetFunctionService.vb (1)
49Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
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 (15)
CodeCleanup\CodeCleaner.cs (1)
54var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (1)
132var text = newDocument.SupportsSyntaxTree ? null : await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
74var oldText = await _oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
114var cleanedText = await cleanedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (1)
114var text = newDocument.SupportsSyntaxTree ? null : await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (1)
50var text = await textDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
94var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (2)
65mergedText = await _newSolution.GetDocument(linkedDocumentsWithChanges.Single()).GetTextAsync(cancellationToken).ConfigureAwait(false); 105var originalSourceText = await originalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
ParsedDocument.cs (1)
36var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Remote\RemoteUtilities.cs (1)
55var text = await oldSolution.GetDocument(docId).GetTextAsync(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
25var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
SyntacticDocument.cs (1)
30var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (2)
413text = await this.GetTextAsync(cancellationToken).ConfigureAwait(false); 414oldText = await oldDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (25)
VisualStudioMSBuildWorkspaceTests.cs (25)
946var getTextTask = doc.GetTextAsync(); 978var text = await doc.GetTextAsync(); 2011var text2 = await document2.GetTextAsync(); 2043var originalText = await document.GetTextAsync(); 2054var text2 = await document2.GetTextAsync(); 2062var text = await document.GetTextAsync(); 2077var originalText = await document.GetTextAsync(); 2090var text = await document.GetTextAsync(); 2104var text = await document.GetTextAsync(); 2113var text2 = await document2.GetTextAsync(); 2131var text = await document.GetTextAsync(); 2140var text2 = await document2.GetTextAsync(); 2166var text2 = await document2.GetTextAsync(); 2227var text = await doc.GetTextAsync(); 2257var text = await doc.GetTextAsync(); 2341var text = await doc.GetTextAsync(); 2759var text = await document.GetTextAsync(); 2778var text = await document.GetTextAsync(); 2797var text = await document.GetTextAsync(); 2850var doc2text = await doc2.GetTextAsync(); 2857var text = await document.GetTextAsync(); 2863var doc3text = await doc3.GetTextAsync(); 2873var noEncodingDocText = await noEncodingDoc.GetTextAsync(); 3181var text = await analyzerConfigDocument.GetTextAsync(); 3244var text = await document.GetTextAsync();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
63await AssertFormatAsync(workspace.Services.SolutionServices, expected, root, spans.AsImmutable(), formattingOptions, await document.GetTextAsync());
Microsoft.CodeAnalysis.Workspaces.UnitTests (70)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
43var 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 (43)
413var text1 = await document1.GetTextAsync(); 414var text2 = await document2.GetTextAsync(); 436text1 = await document1.GetTextAsync(); 437text2 = await document2.GetTextAsync(); 457text1 = await document1.GetTextAsync(); 458text2 = await document2.GetTextAsync(); 501var text1 = await document1.GetTextAsync(); 502var text2 = await document2.GetTextAsync(); 524text1 = await document1.GetTextAsync(); 525text2 = await document2.GetTextAsync(); 545text1 = await document1.GetTextAsync(); 546text2 = await document2.GetTextAsync(); 580var text1 = await document1.GetTextAsync(); 581var text2 = await document2.GetTextAsync(); 607text1 = await document1.GetTextAsync(); 608text2 = await document2.GetTextAsync(); 631text1 = await document1.GetTextAsync(); 632text2 = await document2.GetTextAsync(); 666var text1 = await document1.GetTextAsync(); 667var text2 = await document2.GetTextAsync(); 690text1 = await document1.GetTextAsync(); 691text2 = await document2.GetTextAsync(); 711text1 = await document1.GetTextAsync(); 712text2 = await document2.GetTextAsync(); 743var text1 = await document1.GetTextAsync(); 744var text2 = await document2.GetTextAsync(); 766text1 = await document1.GetTextAsync(); 767text2 = await document2.GetTextAsync(); 787text1 = await document1.GetTextAsync(); 788text2 = await document2.GetTextAsync(); 1147Assert.Equal(expectedAlgorithm, (await document.GetTextAsync(default)).ChecksumAlgorithm); 2521var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString(); 2676var observedText2 = sol.GetDocument(did).GetTextAsync().Result; 2694var docText = doc.GetTextAsync().Result; 2716var docText = doc.GetTextAsync().Result; 2741var docText = doc.GetTextAsync().Result; 2889var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 2920var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3277var text = await doc.GetTextAsync().ConfigureAwait(false); 3354Assert.Equal(Encoding.UTF32, doc.GetTextAsync().Result.Encoding); 3361Assert.Equal(Encoding.UTF32, newDoc.GetTextAsync().Result.Encoding); 4313var newDocText = await newDoc.GetTextAsync(); 4314var sameText = await newDoc.GetTextAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (4)
546var existingText = await project.Documents.Single().GetTextAsync(); 581Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 629Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 767.AddDocument(originalDocument1.Name, await originalDocument1.GetTextAsync().ConfigureAwait(false), filePath: originalDocument1.FilePath);
WorkspaceTests\AdhocWorkspaceTests.cs (3)
79Assert.Equal(source, (await doc.GetTextAsync()).ToString()); 362currentText = await doc.GetTextAsync(); 390var actualText = await newDoc.GetTextAsync();
Microsoft.VisualStudio.LanguageServices (21)
EditorConfigSettings\SettingsEditorControl.xaml.cs (1)
93var originalText = await analyzerConfigDocument.GetTextAsync(default).ConfigureAwait(false);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
362var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
132var sourceText = await documentSpan.Document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\AbstractEditorFactory.cs (1)
352var unformattedText = await addedDocument.GetTextAsync(cancellationToken).ConfigureAwait(true);
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
238var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Preview\FileChange.cs (1)
125var text = document.GetTextAsync().Result.ToString();
Preview\TopLevelChange.cs (2)
77var updatedDocumentTextOpt = updatedTextDocument?.GetTextAsync().Result; 151var oldText = oldDocument.GetTextAsync().Result.ToString();
Progression\GraphBuilder.cs (1)
747var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackFrameViewModel.cs (1)
122var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
296var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Venus\ContainedDocument.DocumentServiceProvider.cs (2)
90var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 139var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
72var container = document.GetTextAsync().WaitAndGetResult(CancellationToken.None).Container;
Workspace\SourceGeneratedFileManager.cs (1)
336generatedSource = await generatedDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\VisualStudioDocumentNavigationService.cs (6)
71var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 89var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 107var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 156var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 182var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 317var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
CodeModel\FileCodeFunctionTests.cs (2)
495var text = await (GetCurrentDocument()).GetTextAsync(); 508var text = await (GetCurrentDocument()).GetTextAsync();
DocumentOutline\DocumentOutlineTestsBase.cs (1)
126var documentText = await solution.GetRequiredDocument(document.Id).GetTextAsync(CancellationToken.None);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
312var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 499var sourceText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.UnitTests (28)
CodeModel\AbstractCodeElementTests`1.vb (2)
68Dim text = (Await state.GetDocumentAtCursor().GetTextAsync()).ToString() 80Dim text = (Await state.GetDocumentAtCursor().GetTextAsync()).ToString()
CodeModel\AbstractFileCodeModelTests.vb (2)
22Dim text = (Await state.GetDocumentAtCursor().GetTextAsync()).ToString() 35Dim text = (Await state.GetDocumentAtCursor().GetTextAsync()).ToString()
CodeModel\CSharp\CodeClassTests.vb (1)
3906Dim text = document.GetTextAsync(CancellationToken.None).Result
CodeModel\CSharp\FileCodeModelTests.vb (2)
1209Dim textBeforeOperation = Await workspace.CurrentSolution.GetDocument(docId).GetTextAsync() 1223Dim textAfterOperation = Await solution.GetDocument(docId).GetTextAsync()
CodeModel\VisualBasic\CodeClassTests.vb (1)
3165Dim text = document.GetTextAsync(CancellationToken.None).Result
CodeModel\VisualBasic\FileCodeModelTests.vb (1)
239Dim text = (Await state.GetDocumentAtCursor().GetTextAsync()).ToString()
Preview\PreviewChangesTests.vb (12)
41Dim text = document.GetTextAsync().Result 95Dim text = document.GetTextAsync().Result 138Dim text = document.GetTextAsync().Result 162Dim finalText = previewEngine.FinalSolution.GetDocument(documentId).GetTextAsync().Result.ToString() 163Assert.Equal(document.GetTextAsync().Result.ToString(), finalText) 192Dim text = document.GetTextAsync().Result 239Dim changedDocText = finalSolution.GetDocument(docId).GetTextAsync().Result.ToString() 240Assert.Equal(forkedDocument.GetTextAsync().Result.ToString(), changedDocText) 242Dim finalAddedDocText = finalSolution.GetDocument(addedDocumentId1).GetTextAsync().Result.ToString() 245Dim finalNotRemovedDocText = finalSolution.GetDocument(removedDocumentId2).GetTextAsync().Result.ToString() 279Dim text1 = document1.GetTextAsync().Result 282Dim text2 = document2.GetTextAsync().Result
Snippets\CSharpSnippetExpansionClientTests.vb (1)
415(Await updatedDocument.GetTextAsync()).ToString())
Snippets\VisualBasicSnippetExpansionClientTests.vb (1)
432(Await updatedDocument.GetTextAsync()).ToString())
Venus\DocumentService_IntegrationTests.vb (5)
84Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 151Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 188Assert.Equal(String.Empty, (Await newDocument.GetTextAsync()).ToString()) 276Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False) 314Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False)
Microsoft.VisualStudio.LanguageServices.Xaml (9)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
164var oldSource = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
65var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
97var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\FoldingRanges\FoldingRangesHandler.cs (1)
56var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
36var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
54var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
82var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
48var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\OnTypeRename\OnTypeRenameHandler.cs (1)
80var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.DiagnosticsWindow (1)
Panels\WorkspacePanel.xaml.cs (1)
91var snapshotText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\SnapshotSerializationTests.cs (1)
534var source = serializer.CreateChecksum(await document.GetTextAsync().ConfigureAwait(false), CancellationToken.None);
Services\ServiceHubServicesTests.cs (1)
81var oldText = await oldDocument.GetTextAsync();