Skip to content

Commit

Permalink
Merge pull request #190 from akshaymankar/remove-workspace-config-hack
Browse files Browse the repository at this point in the history
Don't push configuration to HLS manually
  • Loading branch information
michaelpj authored Oct 24, 2024
2 parents d229fdc + b6c58bf commit 6981f8d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lsp-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -724,12 +724,6 @@ arguments are non-nullable booleans."
:major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode haskell-cabal-mode haskell-ts-mode)
;; This is arbitrary.
:server-id 'lsp-haskell
;; HLS does not currently send 'workspace/configuration' on startup (https://github.com/haskell/haskell-language-server/issues/2762),
;; so we need to push the configuration to it manually on startup. We should be able to
;; get rid of this once the issue is fixed in HLS.
:initialized-fn (lambda (workspace)
(with-lsp-workspace workspace
(lsp--set-configuration (lsp-configuration-section "haskell"))))
:synchronize-sections '("haskell")
;; This is somewhat irrelevant, but it is listed in lsp-language-id-configuration, so
;; we should set something consistent here.
Expand Down

0 comments on commit 6981f8d

Please sign in to comment.