You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pepeiborra [wrote an tutorial](https://github.com/pepeiborra/hls-tutorial) on writing a plugin in HLS.
587
+
588
+
#### Test your hacked HLS in your editor
589
+
If you want to test HLS while hacking on it, follow the steps below.
590
+
591
+
To do once:
592
+
- Open some codebase on which you want to test your hacked HLS in your favorite editor
593
+
- Configure this editor to use your custom HLS executable
594
+
- With Cabal: `<path to HLS project>/haskell-language-server/dist-newstyle/build/<os>/<ghc version>/haskell-language-server-<HLS version>/x/haskell-language-server/build/haskell-language-server/haskell-language-server`
595
+
- This value can be found by running `cabal exec which haskell-language-server`
596
+
- With Stack: `<path to HLS project>/haskell-language-server/.stack-work/dist/<os>/Cabal-<Cabal version>/build/haskell-language-server/haskell-language-server`
597
+
- This value can be found by running `$(stack path --dist-dir)/build/haskell-language-server/haskell-language-server`
598
+
599
+
To do every time you changed code and want to test it:
600
+
- Build HLS
601
+
- With Cabal: `cabal build exe:haskell-language-server`
602
+
- With Stack: `stack build haskell-language-server:exe:haskell-language-server`
603
+
- Restart HLS
604
+
- With VS Code: `Haskell: Restart Haskell LSP Server`
0 commit comments