Skip to content

Commit

Permalink
fix: don't unnecessarily sending nil rangeLimit (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq authored Apr 18, 2020
1 parent e8e52fd commit 347551b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3014,8 +3014,10 @@ disappearing, unset all the variables related to it."
(hover . ((contentFormat . ["markdown" "plaintext"])))
(foldingRange . ,(when lsp-enable-folding
`((dynamicRegistration . t)
(rangeLimit . ,lsp-folding-range-limit)
(lineFoldingOnly . ,(or lsp-folding-line-folding-only :json-false)))))
,@(when lsp-folding-range-limit
`((rangeLimit . ,lsp-folding-range-limit)))
,@(when lsp-folding-line-folding-only
`((lineFoldingOnly . t))))))
(callHierarchy . ((dynamicRegistration . :json-false)))
(publishDiagnostics . ((relatedInformation . t)
(tagSupport . ((valueSet . [1 2])))
Expand Down

0 comments on commit 347551b

Please sign in to comment.