Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 2d67fa2

Browse files
authored
Merge pull request #1021 from bubba/reactorPidCache-documentation
Document reactorPidCache
2 parents ed358f0 + 343a2c4 commit 2d67fa2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ import Language.Haskell.LSP.VFS ( VirtualFile(..) )
134134
-- LSP Commands
135135
-- ---------------------------------------------------------------------
136136

137+
-- | A monad that provides access to the current process ID.
138+
-- Used when generating LSP command IDs
137139
class Monad m => HasPidCache m where
138140
getPidCache :: m Int
139141

src/Haskell/Ide/Engine/LSP/Reactor.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import qualified Language.Haskell.LSP.Types as J
3131
data REnv = REnv
3232
{ scheduler :: Scheduler.Scheduler R
3333
, lspFuncs :: Core.LspFuncs Config
34-
, reactorPidCache :: Int -- TODO:AZ: do we need this? what is it for?
34+
-- | The process ID of HIE. See 'HasPidCache'
35+
, reactorPidCache :: Int
3536
, diagnosticSources :: Map.Map DiagnosticTrigger [(PluginId,DiagnosticProviderFunc)]
3637
, hoverProviders :: [HoverProvider]
3738
, symbolProviders :: [SymbolProvider]

0 commit comments

Comments
 (0)