9 references to GetSyntaxVersionAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\CodeLens\CodeLensHandler.cs (1)
90var syntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeLens\CodeLensResolveHandler.cs (1)
39var currentDocumentSyntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Handler\InlayHint\InlayHintHandler.cs (1)
54var syntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Handler\InlayHint\InlayHintResolveHandler.cs (1)
49var currentSyntaxVersion = await document.GetSyntaxVersionAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Workspaces\LspWorkspaceManagerTests.cs (4)
63var firstDocumentInitialVersion = await firstDocument.GetSyntaxVersionAsync(CancellationToken.None); 64var secondDocumentInitialVersion = await secondDocument.GetSyntaxVersionAsync(CancellationToken.None); 93Assert.NotEqual(firstDocumentInitialVersion, await firstDocumentWithChange.GetSyntaxVersionAsync(CancellationToken.None)); 97Assert.Equal(secondDocumentInitialVersion, await secondDocumentUnchanged.GetSyntaxVersionAsync(CancellationToken.None));
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
104/// In almost all cases, you should call <see cref="GetSyntaxVersionAsync"/> to fetch the version, which will load the tree