Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type VFS = Map Uri VirtualFile
- data VirtualFile = VirtualFile {}
- openVFS :: VFS -> DidOpenTextDocumentNotification -> IO VFS
- changeFromClientVFS :: VFS -> DidChangeTextDocumentNotification -> IO VFS
- changeFromServerVFS :: VFS -> ApplyWorkspaceEditRequest -> IO VFS
- closeVFS :: VFS -> DidCloseTextDocumentNotification -> IO VFS
- applyChanges :: YiString -> [TextDocumentContentChangeEvent] -> YiString
- applyChange :: YiString -> TextDocumentContentChangeEvent -> YiString
- deleteChars :: YiString -> Position -> Int -> YiString
- addChars :: YiString -> Position -> Text -> YiString
- changeChars :: YiString -> Position -> Int -> Text -> YiString
- yiSplitAt :: Int -> Int -> YiString -> (YiString, YiString)
Documentation
data VirtualFile Source #
Instances
Show VirtualFile Source # | |
Defined in Language.Haskell.LSP.VFS showsPrec :: Int -> VirtualFile -> ShowS # show :: VirtualFile -> String # showList :: [VirtualFile] -> ShowS # |
changeFromServerVFS :: VFS -> ApplyWorkspaceEditRequest -> IO VFS Source #
for tests
applyChanges :: YiString -> [TextDocumentContentChangeEvent] -> YiString Source #
Apply the list of changes. Changes should be applied in the order that they are received from the client.