提交 f821fa4b 编写于 作者: I isidor

remove root only for multi root

上级 9aad2257
......@@ -98,10 +98,12 @@ class FilesViewerActionContributor extends ActionBarContributor {
}
// Rename File/Folder
if (stat.isRoot) {
if (stat.isRoot && this.contextService.getWorkspace2().roots.length > 1) {
actions.push(new Separator(null, 150));
actions.push(this.instantiationService.createInstance(RemoveRootFolderAction, stat.resource, RemoveRootFolderAction.ID, RemoveRootFolderAction.LABEL));
} else {
}
if (!stat.isRoot) {
actions.push(new Separator(null, 150));
actions.push(this.instantiationService.createInstance(TriggerRenameFileAction, tree, <FileStat>stat));
// Delete File/Folder
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册