private static async Task RunCodeActionsAndAssertActionsInCacheAsync( Workspace workspace, CodeActionsCache cache, LSP.Location caretLocation, Document document) { await RunGetCodeActionsAsync(workspace.CurrentSolution, caretLocation); var cacheResults = await cache.GetActionSetsAsync(document, caretLocation.Range, CancellationToken.None); Assert.NotNull(cacheResults); }
private static async Task RunCodeActionsAndAssertActionsInCacheAsync( TestLspServer testLspServer, CodeActionsCache cache, LSP.Location caretLocation, Document document) { await RunGetCodeActionsAsync(testLspServer, caretLocation); var cacheResults = await cache.GetActionSetsAsync(document, caretLocation.Range, CancellationToken.None); Assert.NotNull(cacheResults); }