提交 a3324574 编写于 作者: J Johannes Rieken

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

This reverts commit 0973ecc7.
上级 9700ae1a
......@@ -124,11 +124,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.
先完成此消息的编辑!
想要评论请 注册