We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d35aa75 commit 4aa15ecCopy full SHA for 4aa15ec
lsp-completion.el
@@ -688,10 +688,14 @@ 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
+ lsp-enable-snippet
697
+ (eql (lsp:completion-item-insert-text-format? item)
698
+ lsp/insert-text-format-snippet))
699
(lsp-completion--resolve candidate)
700
candidate))
701
((&plist 'lsp-completion-item item
0 commit comments