提交 9ce57e70 编写于 作者: J Johannes Rieken

don't filter on `codeSnippet` but only on `label` and `filterText`, fixes #6320

上级 71dcb806
......@@ -121,11 +121,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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册