Skip to content

Commit 5433723

Browse files
authored
module outline is not a good fit for useWithStaleFast (#1189)
Changing branches should not break document outlines
1 parent 6f3b732 commit 5433723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/LSP/Outline.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ moduleOutline
4040
moduleOutline _lsp ideState DocumentSymbolParams { _textDocument = TextDocumentIdentifier uri }
4141
= case uriToFilePath uri of
4242
Just (toNormalizedFilePath' -> fp) -> do
43-
mb_decls <- fmap fst <$> runIdeAction "Outline" (shakeExtras ideState) (useWithStaleFast GetParsedModule fp)
43+
mb_decls <- fmap fst <$> runAction "Outline" ideState (useWithStale GetParsedModule fp)
4444
pure $ Right $ case mb_decls of
4545
Nothing -> DSDocumentSymbols (List [])
4646
Just ParsedModule { pm_parsed_source = L _ltop HsModule { hsmodName, hsmodDecls, hsmodImports } }

0 commit comments

Comments
 (0)