We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d35aa75 commit 8edae4bCopy full SHA for 8edae4b
lsp-completion.el
@@ -688,10 +688,15 @@ Others: CANDIDATES"
688
'lsp-completion-item)
689
candidate
690
(cl-find candidate (funcall candidates) :test #'equal)))
691
+ (item (plist-get (text-properties-at 0 candidate) 'lsp-completion-item))
692
(candidate
693
;; see #3498 typescript-language-server does not provide the
694
;; proper insertText without resolving.
- (if (lsp-completion--find-workspace 'ts-ls)
695
+ (if (and (lsp-completion--find-workspace 'ts-ls)
696
+ (or (and lsp-enable-snippet
697
+ (eql (lsp:completion-item-insert-text-format? item)
698
+ lsp/insert-text-format-snippet))
699
+ (eq (plist-get (lsp:completion-item-data? item) :hasAction) t)))
700
(lsp-completion--resolve candidate)
701
candidate))
702
((&plist 'lsp-completion-item item
0 commit comments