From c49667d1c967d8af850f70f0ac7f19301a361a5b Mon Sep 17 00:00:00 2001 From: Pepe Iborra Date: Sun, 10 Jan 2021 10:27:40 +0000 Subject: [PATCH] module outline is not a good fit for useWithStaleFast Changing branches should not break document outlines --- ghcide/src/Development/IDE/LSP/Outline.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghcide/src/Development/IDE/LSP/Outline.hs b/ghcide/src/Development/IDE/LSP/Outline.hs index 579e4e18e3..6e8e38596f 100644 --- a/ghcide/src/Development/IDE/LSP/Outline.hs +++ b/ghcide/src/Development/IDE/LSP/Outline.hs @@ -40,7 +40,7 @@ moduleOutline moduleOutline _lsp ideState DocumentSymbolParams { _textDocument = TextDocumentIdentifier uri } = case uriToFilePath uri of Just (toNormalizedFilePath' -> fp) -> do - mb_decls <- fmap fst <$> runIdeAction "Outline" (shakeExtras ideState) (useWithStaleFast GetParsedModule fp) + mb_decls <- fmap fst <$> runAction "Outline" ideState (useWithStale GetParsedModule fp) pure $ Right $ case mb_decls of Nothing -> DSDocumentSymbols (List []) Just ParsedModule { pm_parsed_source = L _ltop HsModule { hsmodName, hsmodDecls, hsmodImports } }