Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.LSP.VFS
Contents
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 :: Rope -> [TextDocumentContentChangeEvent] -> Rope
- applyChange :: Rope -> TextDocumentContentChangeEvent -> Rope
- changeChars :: Rope -> Int -> Int -> Text -> Rope
Documentation
data VirtualFile Source #
Constructors
VirtualFile | |
Instances
Show VirtualFile Source # | |
Defined in Language.Haskell.LSP.VFS Methods showsPrec :: Int -> VirtualFile -> ShowS # show :: VirtualFile -> String # showList :: [VirtualFile] -> ShowS # |
changeFromServerVFS :: VFS -> ApplyWorkspaceEditRequest -> IO VFS Source #
for tests
applyChanges :: Rope -> [TextDocumentContentChangeEvent] -> Rope Source #
Apply the list of changes. Changes should be applied in the order that they are received from the client.
applyChange :: Rope -> TextDocumentContentChangeEvent -> Rope Source #