提交 fe27b591 编写于 作者: I isidor

fixes #51651

上级 e993d117
......@@ -52,7 +52,7 @@ export function getMultiSelectedResources(resource: URI | object, listService: I
const mainUriStr = URI.isUri(resource) ? resource.toString() : focus instanceof ExplorerItem ? focus.resource.toString() : undefined;
// If the resource is passed it has to be a part of the returned context.
// We only respect the selection if it contains the focused element.
if (selection.some(s => s.toString() === mainUriStr)) {
if (selection.some(s => URI.isUri(s) && s.toString() === mainUriStr)) {
return selection;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册