Skip to content

Commit

Permalink
Rust-Analyzer fix resolve failure on for_ref value being null (#4664)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfireBird authored Dec 30, 2024
1 parent 363b539 commit 8e03634
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ See #2675"
(let ((data (lsp:completion-item-data? item)))
(when (lsp-member? data :import_for_trait_assoc_item)
(unless (lsp-get data :import_for_trait_assoc_item)
(lsp-put data :import_for_trait_assoc_item :json-false)))))
(lsp-put data :import_for_trait_assoc_item :json-false)))
(when (lsp-member? data :for_ref)
(unless (lsp-get data :for_ref)
(lsp-put data :for_ref :json-false)))))

(defun lsp-completion--resolve (item)
"Resolve completion ITEM.
Expand Down

0 comments on commit 8e03634

Please sign in to comment.