Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid invalid face reference errors #3611

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lsp-diagnostics.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ g. `error', `warning') and list of LSP TAGS."
flycheck-level
(mapconcat #'symbol-name tags "-"))))
(or (intern-soft name)
(let* ((face (--doto (intern (format "lsp-%s-face" name))
(let* ((face (--doto (intern (format "%s-face" name))
(copy-face (-> flycheck-level
(get 'flycheck-overlay-category)
(get 'face))
Expand All @@ -114,7 +114,7 @@ g. `error', `warning') and list of LSP TAGS."
(apply #'set-face-attribute it nil
(cl-rest (assoc tag lsp-diagnostics-attributes))))
tags)))
(category (--doto (intern (format "lsp-%s-category" name))
(category (--doto (intern (format "%s-category" name))
(setf (get it 'face) face
(get it 'priority) 100)))
(new-level (intern name))
Expand Down