mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
do not show newFile / newFolder action for nonexistent roots
This commit is contained in:
@@ -65,7 +65,7 @@ class FilesViewerActionContributor extends ActionBarContributor {
|
||||
}
|
||||
|
||||
// Directory Actions
|
||||
if (stat.isDirectory) {
|
||||
if (stat.isDirectory && stat.exists) {
|
||||
|
||||
// New File
|
||||
actions.push(this.instantiationService.createInstance(NewFileAction, tree, <FileStat>stat));
|
||||
|
||||
Reference in New Issue
Block a user