| Copyright | Alan Zimmerman 2016-2021 |
|---|---|
| License | MIT |
| Safe Haskell | None |
| Language | Haskell2010 |
Unison.LSP.VFS.CompletionPrefix
Description
This code was removed from the lsp package in version 2.4.0.0. It’s vendored here until it’s replaced with a Unison- specific version.
Synopsis
- data PosPrefixInfo = PosPrefixInfo {
- fullLine :: !Text
- prefixModule :: !Text
- prefixText :: !Text
- cursorPos :: !Position
- getCompletionPrefix :: Monad m => Position -> VirtualFile -> m (Maybe PosPrefixInfo)
Documentation
data PosPrefixInfo Source #
Describes the line at the current cursor position
Constructors
| PosPrefixInfo | |
Fields
| |
Instances
| Show PosPrefixInfo Source # | |
Defined in Unison.LSP.VFS.CompletionPrefix Methods showsPrec :: Int -> PosPrefixInfo -> ShowS # show :: PosPrefixInfo -> String # showList :: [PosPrefixInfo] -> ShowS # | |
| Eq PosPrefixInfo Source # | |
Defined in Unison.LSP.VFS.CompletionPrefix Methods (==) :: PosPrefixInfo -> PosPrefixInfo -> Bool # (/=) :: PosPrefixInfo -> PosPrefixInfo -> Bool # | |
getCompletionPrefix :: Monad m => Position -> VirtualFile -> m (Maybe PosPrefixInfo) Source #