ghcide-0.4.0: The core of an IDE

Development.IDE.Core.FileStore

Synopsis

# Documentation

Returns the modification time and the contents. For VFS paths, the modification time is the current time.

get the contents of a virtual file

Arguments

 :: IdeState -> Bool Was the file saved? -> NormalizedFilePath -> IO ()

Note that some buffer for a specific file has been modified but not with what changes.

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.

data VFSHandle 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
 Source # Instance detailsDefined in Development.IDE.Core.FileStore