Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities and state for the files of interest - those which are currently
open in the editor. The rule is IsFileOfInterest
Synopsis
- ofInterestRules :: Recorder (WithPriority Log) -> Rules ()
- getFilesOfInterest :: IdeState -> IO (HashMap NormalizedFilePath FileOfInterestStatus)
- getFilesOfInterestUntracked :: Action (HashMap NormalizedFilePath FileOfInterestStatus)
- addFileOfInterest :: IdeState -> NormalizedFilePath -> FileOfInterestStatus -> IO ()
- deleteFileOfInterest :: IdeState -> NormalizedFilePath -> IO ()
- setFilesOfInterest :: IdeState -> HashMap NormalizedFilePath FileOfInterestStatus -> IO ()
- kick :: Action ()
- data FileOfInterestStatus
- newtype OfInterestVar = OfInterestVar (Var (HashMap NormalizedFilePath FileOfInterestStatus))
- scheduleGarbageCollection :: IdeState -> IO ()
- data Log = LogShake Log
Documentation
ofInterestRules :: Recorder (WithPriority Log) -> Rules () Source #
The rule that initialises the files of interest state.
addFileOfInterest :: IdeState -> NormalizedFilePath -> FileOfInterestStatus -> IO () Source #
deleteFileOfInterest :: IdeState -> NormalizedFilePath -> IO () Source #
setFilesOfInterest :: IdeState -> HashMap NormalizedFilePath FileOfInterestStatus -> IO () Source #
Set the files-of-interest - not usually necessary or advisable. The LSP client will keep this information up to date.
data FileOfInterestStatus Source #
Instances
newtype OfInterestVar Source #
Instances
scheduleGarbageCollection :: IdeState -> IO () Source #