Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getFileExists :: NormalizedFilePath -> Action Bool
- getFileContents :: NormalizedFilePath -> Action (FileVersion, Maybe StringBuffer)
- setBufferModified :: IdeState -> NormalizedFilePath -> Maybe Text -> IO ()
- setSomethingModified :: IdeState -> IO ()
- fileStoreRules :: VFSHandle -> Rules ()
- data VFSHandle
- makeVFSHandle :: IO VFSHandle
- makeLSPVFSHandle :: LspFuncs c -> VFSHandle
Documentation
setBufferModified :: IdeState -> NormalizedFilePath -> Maybe Text -> IO () Source #
setSomethingModified :: IdeState -> IO () Source #
Note that some buffer somewhere has been modified, but don't say what. Only valid if the virtual file system was initialised by LSP, as that independently tracks which files are modified.
fileStoreRules :: VFSHandle -> Rules () Source #
haskell-lsp manages the VFS internally and automatically so we cannot use
the builtin VFS without spawning up an LSP server. To be able to test things
like setBufferModified
we abstract over the VFS implementation.
Instances
IsIdeGlobal VFSHandle Source # | |
Defined in Development.IDE.Core.FileStore |
makeLSPVFSHandle :: LspFuncs c -> VFSHandle Source #