File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -688,10 +688,15 @@ Others: CANDIDATES"
688
688
'lsp-completion-item )
689
689
candidate
690
690
(cl-find candidate (funcall candidates) :test #'equal )))
691
+ (item (plist-get (text-properties-at 0 candidate) 'lsp-completion-item ))
691
692
(candidate
692
693
; ; see #3498 typescript-language-server does not provide the
693
694
; ; proper insertText without resolving.
694
- (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 )))
695
700
(lsp-completion--resolve candidate)
696
701
candidate))
697
702
((&plist 'lsp-completion-item item
You can’t perform that action at this time.
0 commit comments