handle reveal user data resources on renderer
This commit is contained in:
parent
d61af16df2
commit
e717f7e51c
|
@ -342,8 +342,6 @@ export class WindowsService extends Disposable implements IWindowsService, IURLH
|
||||||
|
|
||||||
if (resource.scheme === Schemas.file) {
|
if (resource.scheme === Schemas.file) {
|
||||||
shell.showItemInFolder(resource.fsPath);
|
shell.showItemInFolder(resource.fsPath);
|
||||||
} else if (resource.scheme === Schemas.userData) {
|
|
||||||
shell.showItemInFolder(resource.with({ scheme: Schemas.file }).fsPath);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,7 @@ CommandsRegistry.registerCommand({
|
||||||
|
|
||||||
function revealResourcesInOS(resources: URI[], windowsService: IWindowsService, notificationService: INotificationService, workspaceContextService: IWorkspaceContextService): void {
|
function revealResourcesInOS(resources: URI[], windowsService: IWindowsService, notificationService: INotificationService, workspaceContextService: IWorkspaceContextService): void {
|
||||||
if (resources.length) {
|
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) {
|
} else if (workspaceContextService.getWorkspace().folders.length) {
|
||||||
windowsService.showItemInFolder(workspaceContextService.getWorkspace().folders[0].uri);
|
windowsService.showItemInFolder(workspaceContextService.getWorkspace().folders[0].uri);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue