7 references to GetSyntaxVersionAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\CodeLens\CodeLensHandler.cs (1)
46
var syntaxVersion = await document.
GetSyntaxVersionAsync
(cancellationToken).ConfigureAwait(false);
Handler\CodeLens\CodeLensResolveHandler.cs (1)
43
var currentSyntaxVersion = await document.
GetSyntaxVersionAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Workspaces\LspWorkspaceManagerTests.cs (4)
65
var firstDocumentInitialVersion = await firstDocument.
GetSyntaxVersionAsync
(CancellationToken.None);
66
var secondDocumentInitialVersion = await secondDocument.
GetSyntaxVersionAsync
(CancellationToken.None);
82
Assert.NotEqual(firstDocumentInitialVersion, await firstDocumentWithChange.
GetSyntaxVersionAsync
(CancellationToken.None));
86
Assert.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