提交 b1998cf4 编写于 作者: B Benjamin Pasero

QuickOpen: Cannot read property toLowerCase of null (fixes #1296)

上级 68c03cb8
......@@ -170,8 +170,8 @@ export class QuickOpenEntry {
let resourceB = elementB.getResource();
if (resourceA && resourceB) {
nameA = elementA.getResource().fsPath;
nameB = elementB.getResource().fsPath;
nameA = resourceA.fsPath;
nameB = resourceB.fsPath;
}
}
......
......@@ -266,7 +266,7 @@ export class OpenAnythingHandler extends QuickOpenHandler {
}
// Check if this entry is a match for the search value
let targetToMatch = searchInPath ? labels.getPathLabel(entry.getResource(), this.contextService) : entry.getLabel();
let targetToMatch = searchInPath && entry.getResource() ? labels.getPathLabel(entry.getResource(), this.contextService) : entry.getLabel();
if (!filters.matchesFuzzy(searchValue, targetToMatch, this.fuzzyMatchingEnabled)) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册