Skip to content

Frequent restarting of VSCode to get HLS to rescan and 'unfreeze' #4147

Answered by jhrcek
levans asked this question in Q&A
Discussion options

You must be logged in to vote

This misbehavior is most likely caused by the lack of support for multiple home units (which is going to land soon hopefully, but will probably require switching to latest version of cabal).
HLS can start misbehaving if you work across multiple components of a cabal project (e.g. editing both library / executable / test suite etc).

In the meantime there are two commands in vscode can do what you describe.
You can find them in the command menu (after pressing ctrl+shift+P)

  • "Haskell: Restart Haskell LSP server" (this is more lightweight/faster option if it helps you fix the issue)
  • "Developer Restart Extension host" (somewhat more nuclear option, sometimes necessary if you do haskell extens…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@levans
Comment options

Answer selected by levans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants