5 references to ChangeDocumentAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Diagnostics\PullDiagnosticTests.cs (2)
702
await testLspServer.TestWorkspace.
ChangeDocumentAsync
(document.Id, workspaceText.WithChanges(textChange));
2269
await testLspServer.TestWorkspace.
ChangeDocumentAsync
(documentId, text);
Workspaces\LspWorkspaceManagerTests.cs (2)
85
await testLspServer.TestWorkspace.
ChangeDocumentAsync
(firstDocument.Id, SourceText.From($"Some more text{markupOne}", System.Text.Encoding.UTF8, SourceHashAlgorithms.Default));
119
await testLspServer.TestWorkspace.
ChangeDocumentAsync
(secondDocument.Id, SourceText.From("Two is now three!", System.Text.Encoding.UTF8, SourceHashAlgorithms.Default));
Workspaces\SourceGeneratedDocumentTests.cs (1)
171
await testLspServer.TestWorkspace.
ChangeDocumentAsync
(testLspServer.TestWorkspace.Documents.Single(d => !d.IsSourceGenerated).Id, SourceText.From("new text"));