We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 991f4bf commit 5f183f6Copy full SHA for 5f183f6
ghcide/src/Development/IDE/LSP/Outline.hs
@@ -39,7 +39,9 @@ moduleOutline
39
moduleOutline ideState DocumentSymbolParams{ _textDocument = TextDocumentIdentifier uri }
40
= liftIO $ case uriToFilePath uri of
41
Just (toNormalizedFilePath' -> fp) -> do
42
- mb_decls <- fmap fst <$> runAction "Outline" ideState (useWithStale GetParsedModule fp)
+ mb_decls <- case getSourceFileOrigin fp of
43
+ FromDependency -> pure Nothing
44
+ FromProject -> fmap fst <$> runAction "Outline" ideState (useWithStale GetParsedModule fp)
45
pure $ Right $ case mb_decls of
46
Nothing -> InL []
47
Just ParsedModule { pm_parsed_source = L _ltop HsModule { hsmodName, hsmodDecls, hsmodImports } }
0 commit comments