Skip to content

Commit

Permalink
Remove the per-interface pcase forms
Browse files Browse the repository at this point in the history
The consensus in #4430 is that we're ok with making this breaking change and
communicating it in the CHANGELOG. I've replaced all uses in lsp-mode itself.
  • Loading branch information
chrisbouchard committed Sep 24, 2024
1 parent b263c34 commit 849cff0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lsp-protocol.el
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ Allowed params: %s" interface (reverse (-map #'cl-first params)))
output-bindings)
(setf current-list (cddr current-list))))))
output-bindings))))
;; These per-interface `pcase' forms are deprecated. Prefer
;; the new (lsp-interface INTERFACE ...) form defined below.
;; (See emacs-lsp/lsp-mode#4430.)
;;
;; TODO: Remove this `pcase-defmacro' in the next major
;; version.
`(pcase-defmacro ,interface (&rest property-bindings)
`(lsp-interface ,',interface ,@property-bindings))
(-mapcat (-lambda ((label . name))
(list
`(defun ,(intern (format "lsp:%s-%s"
Expand Down

0 comments on commit 849cff0

Please sign in to comment.