Skip to content

Commit

Permalink
Progress reporting (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra authored Sep 13, 2020
1 parent 3815d24 commit 34eff96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/default/src/Ide/Plugin/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import GhcPlugins (defaultLogActionHPutStrDoc,
import HscTypes
import Ide.Plugin
import Ide.Types
import Language.Haskell.LSP.Core (LspFuncs (getVirtualFileFunc))
import Language.Haskell.LSP.Core
import Language.Haskell.LSP.Types
import Language.Haskell.LSP.VFS (virtualFileText)
import Outputable (ppr, showSDoc)
Expand Down Expand Up @@ -166,7 +166,7 @@ data EvalParams = EvalParams
deriving (Eq, Show, Generic, FromJSON, ToJSON)

runEvalCmd :: CommandFunction EvalParams
runEvalCmd lsp state EvalParams {..} = response' $ do
runEvalCmd lsp state EvalParams {..} = withIndefiniteProgress lsp "Eval" Cancellable $ response' $ do
let TextDocumentIdentifier {_uri} = module_
fp <- handleMaybe "uri" $ uriToFilePath' _uri
contents <- liftIO $ getVirtualFileFunc lsp $ toNormalizedUri _uri
Expand Down

0 comments on commit 34eff96

Please sign in to comment.