diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index c1d2e63e53..cc34ce0f09 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -67,6 +67,7 @@ library , optparse-applicative , optparse-simple , process + , shake , unordered-containers ghc-options: -Wall -Wredundant-constraints -Wno-name-shadowing diff --git a/src/Ide/Main.hs b/src/Ide/Main.hs index 4eda145c40..652ff517c0 100644 --- a/src/Ide/Main.hs +++ b/src/Ide/Main.hs @@ -54,6 +54,7 @@ import System.FilePath import System.IO import qualified System.Log.Logger as L import System.Time.Extra +import Development.Shake (action) -- --------------------------------------------------------------------- -- ghcide partialhandlers @@ -136,7 +137,7 @@ runLspMode lspArgs@LspArguments{..} idePlugins = do -- , optCheckProject = checkProject config } debouncer <- newAsyncDebouncer - initialise caps (mainRule >> pluginRules plugins) + initialise caps (mainRule >> pluginRules plugins >> action kick) getLspId event wProg wIndefProg hlsLogger debouncer options vfs else do -- GHC produces messages with UTF8 in them, so make sure the terminal doesn't error