@@ -350,7 +350,8 @@ The MARKERS and PREFIX value will be attached to each candidate."
350
350
(setq fuz-queries
351
351
(plist-put fuz-queries start-point s))
352
352
s)))
353
- (label-len (length label)))
353
+ (label-len (length label))
354
+ (case-fold-search completion-ignore-case))
354
355
(when (string-match fuz-query label)
355
356
(put-text-property 0 label-len 'match-data (match-data ) label)
356
357
(plist-put cand
@@ -701,7 +702,8 @@ Others: CANDIDATES"
701
702
" Calculate fuzzy score for STR with query QUERY.
702
703
The return is nil or in range of (0, inf)."
703
704
(-when-let* ((md (cddr (or (get-text-property 0 'match-data str)
704
- (let ((re (lsp-completion--regex-fuz query)))
705
+ (let ((re (lsp-completion--regex-fuz query))
706
+ (case-fold-search completion-ignore-case))
705
707
(when (string-match re str)
706
708
(match-data ))))))
707
709
(start (pop md))
@@ -776,19 +778,9 @@ The return is nil or in range of (0, inf)."
776
778
" Disable LSP completion support."
777
779
(lsp-completion-mode -1 ))
778
780
779
- (defun lsp-completion-passthrough-try-completion (string table pred point )
780
- (let* ((completion-ignore-case t )
781
- (try (completion-basic-try-completion string table pred point))
782
- (newstr (car try))
783
- (newpoint (cdr try))
784
- (beforepoint (and try (substring newstr 0 newpoint))))
785
- (if (and beforepoint
786
- (string-prefix-p
787
- beforepoint
788
- (try-completion " " table pred)
789
- t ))
790
- try
791
- (cons string point))))
781
+ (defun lsp-completion-passthrough-try-completion (string _table _pred point )
782
+ " Passthrough try function, always return the passed STRING and POINT."
783
+ (cons string point))
792
784
793
785
(defun lsp-completion-passthrough-all-completions (_string table pred _point )
794
786
" Passthrough all completions from TABLE with PRED."
0 commit comments