提交 0d7c1e42 编写于 作者: R Rob Lourens

Fix inconsistent setting search results with exact match

Always ignore remote results when an exact match is found. Also get rid of cached new extension results on each search
Fix #78455
上级 7460d86c
......@@ -536,12 +536,18 @@ export class SearchResultModel extends SettingsTreeModel {
setResult(order: SearchResultIdx, result: ISearchResult | null): void {
this.cachedUniqueSearchResults = null;
this.newExtensionSearchResults = null;
this.rawSearchResults = this.rawSearchResults || [];
if (!result) {
delete this.rawSearchResults[order];
return;
}
if (result.exactMatch) {
this.rawSearchResults = [];
}
this.rawSearchResults[order] = result;
this.updateChildren();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册