File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,13 @@ These are assembled from the customizable variables `lsp-haskell-server-path'
484
484
and `lsp-haskell-server-args' and `lsp-haskell-server-wrapper-function' ."
485
485
(funcall lsp-haskell-server-wrapper-function (append (list lsp-haskell-server-path " --lsp" ) lsp-haskell-server-args) ))
486
486
487
+ (defun lsp-haskell--action-filter (command )
488
+ " lsp-mode transforms JSON false values in code action
489
+ arguments to JSON null values when sending the requests back to
490
+ the server. We need to explicitly tell it which code action
491
+ arguments are non-nullable booleans."
492
+ (lsp-fix-code-action-booleans command '(:restrictToOriginatingFile :withSig )))
493
+
487
494
; ; This mapping is set for 'haskell-mode -> haskell' in the lsp-mode repo itself. If we move
488
495
; ; it there, then delete it from here.
489
496
; ; It also isn't *too* important: it only sets the language ID, see
@@ -511,6 +518,7 @@ and `lsp-haskell-server-args' and `lsp-haskell-server-wrapper-function'."
511
518
; ; we should set something consistent here.
512
519
:language-id " haskell"
513
520
:completion-in-comments? lsp-haskell-completion-in-comments
521
+ :action-filter #'lsp-haskell--action-filter
514
522
))
515
523
516
524
; ; ---------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments