7 references to GetSyntaxVersionAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\CodeLens\CodeLensHandler.cs (1)
46var syntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeLens\CodeLensResolveHandler.cs (1)
43var currentSyntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Workspaces\LspWorkspaceManagerTests.cs (4)
65var firstDocumentInitialVersion = await firstDocument.GetSyntaxVersionAsync(CancellationToken.None); 66var secondDocumentInitialVersion = await secondDocument.GetSyntaxVersionAsync(CancellationToken.None); 82Assert.NotEqual(firstDocumentInitialVersion, await firstDocumentWithChange.GetSyntaxVersionAsync(CancellationToken.None)); 86Assert.Equal(secondDocumentInitialVersion, await secondDocumentUnchanged.GetSyntaxVersionAsync(CancellationToken.None));
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
100/// In almost all cases, you should call <see cref="GetSyntaxVersionAsync"/> to fetch the version, which will load the tree