ghcide-2.7.0.0: The core of an IDE
Safe HaskellSafe-Inferred
LanguageGHC2021

Development.IDE.Plugin.Completions.Logic

Synopsis

Documentation

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