Skip to content

Commit 4fdbc6c

Browse files
committed
disable "copy" for roots
fixes microsoft#29714
1 parent dda321e commit 4fdbc6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/workbench/parts/files/browser/fileActions.contribution.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ class FilesViewerActionContributor extends ActionBarContributor {
104104
}
105105

106106
// Copy File/Folder
107-
actions.push(this.instantiationService.createInstance(CopyFileAction, tree, <FileStat>stat));
107+
if (!stat.isRoot) {
108+
actions.push(this.instantiationService.createInstance(CopyFileAction, tree, <FileStat>stat));
109+
}
108110

109111
// Paste File/Folder
110112
if (stat.isDirectory) {

0 commit comments

Comments
 (0)