mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
explorer: do not show error for roots since we already use an explorer decoration to notify user
fixes #44809
This commit is contained in:
parent
5685bcd524
commit
366ed0d530
|
@ -108,7 +108,10 @@ export class FileDataSource implements IDataSource {
|
|||
|
||||
return stat.children;
|
||||
}, (e: any) => {
|
||||
this.notificationService.error(e);
|
||||
// Do not show error for roots since we already use an explorer decoration to notify user
|
||||
if (!(stat instanceof FileStat && stat.isRoot)) {
|
||||
this.notificationService.error(e);
|
||||
}
|
||||
|
||||
return []; // we could not resolve any children because of an error
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue