Revert "Revert "Revert "Revert "don't filter on codeSnippet
but only on label
and filterText
, fixes #6320""""
This reverts commit 0c5f6e8867
.
This commit is contained in:
parent
1faad2d42c
commit
81a071df39
|
@ -106,11 +106,6 @@ export class CompletionModel {
|
|||
item.highlights = filter(word, suggestion.label);
|
||||
match = item.highlights !== null;
|
||||
|
||||
// no match on label -> check on codeSnippet
|
||||
if (!match && suggestion.codeSnippet !== suggestion.label) {
|
||||
match = !isFalsyOrEmpty((filter(word, suggestion.codeSnippet.replace(/{{.+?}}/g, '')))); // filters {{text}}-snippet syntax
|
||||
}
|
||||
|
||||
// no match on label nor codeSnippet -> check on filterText
|
||||
if(!match && typeof suggestion.filterText === 'string') {
|
||||
match = !isFalsyOrEmpty(filter(word, suggestion.filterText));
|
||||
|
|
Loading…
Reference in a new issue