handle reveal user data resources on renderer

This commit is contained in:
Sandeep Somavarapu 2019-07-04 01:04:07 +02:00
parent d61af16df2
commit e717f7e51c
2 changed files with 1 additions and 3 deletions

View file

@ -342,8 +342,6 @@ export class WindowsService extends Disposable implements IWindowsService, IURLH
if (resource.scheme === Schemas.file) {
shell.showItemInFolder(resource.fsPath);
} else if (resource.scheme === Schemas.userData) {
shell.showItemInFolder(resource.with({ scheme: Schemas.file }).fsPath);
}
}

View file

@ -400,7 +400,7 @@ CommandsRegistry.registerCommand({
function revealResourcesInOS(resources: URI[], windowsService: IWindowsService, notificationService: INotificationService, workspaceContextService: IWorkspaceContextService): void {
if (resources.length) {
sequence(resources.map(r => () => windowsService.showItemInFolder(r)));
sequence(resources.map(r => () => windowsService.showItemInFolder(r.scheme === Schemas.userData ? r.with({ scheme: Schemas.file }) : r)));
} else if (workspaceContextService.getWorkspace().folders.length) {
windowsService.showItemInFolder(workspaceContextService.getWorkspace().folders[0].uri);
} else {