Skip to content

Commit

Permalink
fix: Byte-compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Apr 6, 2024
1 parent f760681 commit a16bbec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions lsp-treemacs-generic.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
(defvar-local lsp-treemacs--right-click-actions nil)
(defvar-local lsp-treemacs-generic-filter nil)

(declare-function lsp-treemacs--set-mode-line-format "lsp-treemacs.el")

(defmacro lsp-treemacs-wcb-unless-killed (buffer &rest body)
"`with-current-buffer' unless buffer killed."
(declare (indent 1) (debug t))
Expand Down
17 changes: 10 additions & 7 deletions lsp-treemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,22 @@ Fallback to list all workspaces if no project root is found."
:group 'lsp-treemacs)

(defcustom lsp-treemacs-error-list-expand-depth nil
"Automatic expansion depth for `lsp-treemacs-error-list'"
"Automatic expansion depth for `lsp-treemacs-error-list'."
:type 'number
:group 'lsp-treemacs)

(defcustom lsp-treemacs-call-hierarchy-expand-depth nil
"Automatic expansion depth for `lsp-treemacs-call-hierarchy'"
"Automatic expansion depth for `lsp-treemacs-call-hierarchy'."
:type 'number
:group 'lsp-treemacs)

(defcustom lsp-treemacs-type-hierarchy-expand-depth nil
"Automatic expansion depth for `lsp-treemacs-type-hierarchy'"
"Automatic expansion depth for `lsp-treemacs-type-hierarchy'."
:type 'number
:group 'lsp-treemacs)

(defcustom lsp-treemacs-java-deps-list-expand-depth nil
"Automatic expansion depth for `lsp-treemacs-java-deps-list'"
"Automatic expansion depth for `lsp-treemacs-java-deps-list'."
:type 'number
:group 'lsp-treemacs)

Expand Down Expand Up @@ -586,7 +586,8 @@ will be rendered an empty line between them."

;;;###autoload
(define-minor-mode lsp-treemacs-sync-mode
"Global minor mode for synchronizing lsp-mode workspace folders and treemacs projects."
"Global minor mode for synchronizing lsp-mode workspace folders and
treemacs projects."
:init-value nil
:group 'lsp-treemacs
:global t
Expand Down Expand Up @@ -751,7 +752,8 @@ depending on if a custom mode line is detected."
;;;###autoload
(defun lsp-treemacs-references (arg)
"Show the references for the symbol at point.
With a prefix argument, select the new window and expand the tree of references automatically."
With a prefix argument, select the new window and expand the tree of
references automatically."
(interactive "P")
(lsp-treemacs--do-search
"textDocument/references"
Expand All @@ -762,7 +764,8 @@ With a prefix argument, select the new window and expand the tree of references
;;;###autoload
(defun lsp-treemacs-implementations (arg)
"Show the implementations for the symbol at point.
With a prefix argument, select the new window expand the tree of implementations automatically."
With a prefix argument, select the new window expand the tree of
implementations automatically."
(interactive "P")
(lsp-treemacs--do-search "textDocument/implementation"
(lsp--text-document-position-params)
Expand Down

0 comments on commit a16bbec

Please sign in to comment.