vscode-haskell
vscode-haskell copied to clipboard
Whenever I add dependency to cabal, I have to restart VS Code
Whenever I add dependency to cabal, I have to restart VS Code so that the plugin can see it and doesn't display missing imports and other errors. cabal build or killall -9 haskell-language-server-9.10.1 don't help, only restarting does.
Hi, thank you for your bug report! This is a known issue, but I can't seem to find the proper issue in the Haskell Language Server repo. I will link it once I find it.
While we are somewhat actively working on fixing this issue, the quickest workaround is the Haskell: Restart Haskell LSP server command, which you can invoke by pressing Ctrl + Shift + P, and then entering Restart Haskell LSP server.