File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -7835,6 +7835,25 @@ This avoids overloading the server with many files when starting Emacs."
7835
7835
(or (and (fboundp 'native-comp-available-p)
7836
7836
(native-comp-available-p))
7837
7837
:optional)))
7838
+
7839
+ (declare-function package-version-join "ext:package")
7840
+ (declare-function package-desc-version "ext:package")
7841
+ (declare-function package--alist "ext:package")
7842
+ (defun lsp-version ()
7843
+ "Return string describing current version of `lsp-mode'."
7844
+ (interactive)
7845
+ (unless (featurep 'package)
7846
+ (require 'package))
7847
+ (let ((ver (format "lsp-mode %s, Emacs %s, %s"
7848
+ (package-version-join
7849
+ (package-desc-version
7850
+ (car (alist-get 'lsp-mode (package--alist)))))
7851
+ emacs-version
7852
+ system-type)))
7853
+ (if (called-interactively-p 'interactive)
7854
+ (message "%s" ver)
7855
+ ver)))
7856
+
7838
7857
7839
7858
7840
7859
;; org-mode/virtual-buffer
You can’t perform that action at this time.
0 commit comments