Skip to content

Commit 8f4b0ea

Browse files
committed
address comment
1 parent 47b512c commit 8f4b0ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lsp-completion.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,9 @@ Return `nil' when fails to guess prefix."
336336
"Convert ITEMS into internal form."
337337
(-map (-lambda ((item &as &CompletionItem
338338
:label
339-
:filter-text?
340339
:_emacsStartPoint start-point
341340
:score?))
342-
`( :label ,(or filter-text? label)
341+
`( :label ,label
343342
:item ,item
344343
:start-point ,start-point
345344
:score ,score?))
@@ -612,7 +611,7 @@ of the PREFIX string."
612611
(or (lsp-completion--guess-prefix item)
613612
bounds-start)))
614613
it)
615-
;; remove items with no label or filterText
614+
;; remove items with no label and filterText
616615
(-remove
617616
(-lambda ((&CompletionItem :filter-text? :label))
618617
(and (lsp-falsy? filter-text?) (lsp-falsy? label)))

0 commit comments

Comments
 (0)