예제 #1
0
        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);
        }
예제 #2
0
        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);
        }