提交 511fdcaa 编写于 作者: I isidor

explorer: no op when 0 roots dragged

fixes #46061
上级 ae9f4c8f
......@@ -971,6 +971,10 @@ export class FileDragAndDrop extends SimpleFileResourceDragAndDrop {
}
private doHandleRootDrop(roots: FileStat[], target: FileStat | Model): TPromise<void> {
if (roots.length === 0) {
return TPromise.as(undefined);
}
const folders = this.contextService.getWorkspace().folders;
let targetIndex: number;
const workspaceCreationData: IWorkspaceFolderCreationData[] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册