Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ import Language.Haskell.LSP.VFS ( VirtualFile(..) )
-- LSP Commands
-- ---------------------------------------------------------------------

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

Expand Down
3 changes: 2 additions & 1 deletion src/Haskell/Ide/Engine/LSP/Reactor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import qualified Language.Haskell.LSP.Types as J
data REnv = REnv
{ scheduler :: Scheduler.Scheduler R
, lspFuncs :: Core.LspFuncs Config
, reactorPidCache :: Int -- TODO:AZ: do we need this? what is it for?
-- | The process ID of HIE. See 'HasPidCache'
, reactorPidCache :: Int
, diagnosticSources :: Map.Map DiagnosticTrigger [(PluginId,DiagnosticProviderFunc)]
, hoverProviders :: [HoverProvider]
, symbolProviders :: [SymbolProvider]
Expand Down