Skip to content

Commit

Permalink
fix: Ensure ht
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Apr 3, 2024
1 parent cf9d03c commit 69aca64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sideline-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ Execute CALLBACK to display candidates in sideline."
(or (not kind?)
(s-match sideline-lsp-actions-kind-regex kind?)))
actions)))
(ht-clear sideline-lsp--ht-code-actions)
(if sideline-lsp--ht-code-actions
(ht-clear sideline-lsp--ht-code-actions)
(setq sideline-lsp--ht-code-actions (ht-create)))
(dolist (action actions)
(-let*
((title (->> (lsp:code-action-title action)
Expand Down

0 comments on commit 69aca64

Please sign in to comment.