Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data CachedCompletions
- cacheDataProducer :: Uri -> [ModuleName] -> Module -> GlobalRdrEnv -> GlobalRdrEnv -> [LImportDecl GhcPs] -> CachedCompletions
- localCompletionsForParsedModule :: Uri -> ParsedModule -> CachedCompletions
- getCompletions :: IdePlugins a -> IdeOptions -> CachedCompletions -> Maybe (ParsedModule, PositionMapping) -> Maybe (HieAstResult, PositionMapping) -> (Bindings, PositionMapping) -> PosPrefixInfo -> ClientCapabilities -> CompletionsConfig -> ModuleNameEnv (HashSet IdentInfo) -> Uri -> [Scored CompletionItem]
- fromIdentInfo :: Uri -> IdentInfo -> Maybe Text -> CompItem
- getCompletionPrefix :: Position -> VirtualFile -> PosPrefixInfo
Documentation
data CachedCompletions Source #
End result of the completions
Instances
Monoid CachedCompletions Source # | |
Semigroup CachedCompletions Source # | |
Defined in Development.IDE.Plugin.Completions.Types (<>) :: CachedCompletions -> CachedCompletions -> CachedCompletions # sconcat :: NonEmpty CachedCompletions -> CachedCompletions # stimes :: Integral b => b -> CachedCompletions -> CachedCompletions # | |
Show CachedCompletions Source # | |
Defined in Development.IDE.Plugin.Completions.Types showsPrec :: Int -> CachedCompletions -> ShowS # show :: CachedCompletions -> String # showList :: [CachedCompletions] -> ShowS # | |
NFData CachedCompletions Source # | |
Defined in Development.IDE.Plugin.Completions.Types rnf :: CachedCompletions -> () # |
cacheDataProducer :: Uri -> [ModuleName] -> Module -> GlobalRdrEnv -> GlobalRdrEnv -> [LImportDecl GhcPs] -> CachedCompletions Source #
localCompletionsForParsedModule :: Uri -> ParsedModule -> CachedCompletions Source #
Produces completions from the top level declarations of a module.
getCompletions :: IdePlugins a -> IdeOptions -> CachedCompletions -> Maybe (ParsedModule, PositionMapping) -> Maybe (HieAstResult, PositionMapping) -> (Bindings, PositionMapping) -> PosPrefixInfo -> ClientCapabilities -> CompletionsConfig -> ModuleNameEnv (HashSet IdentInfo) -> Uri -> [Scored CompletionItem] Source #
Returns the cached completions for the given module and position.
getCompletionPrefix :: Position -> VirtualFile -> PosPrefixInfo Source #
From the given cursor position, gets the prefix module or record for autocompletion