/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IWorkspacesService } from 'vs/platform/workspaces/common/workspaces'; import { IMainProcessService } from 'vs/platform/ipc/common/mainProcessService'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { createChannelSender } from 'vs/base/parts/ipc/common/ipc'; export class NativeWorkspacesService { _serviceBrand: undefined; constructor( @IMainProcessService mainProcessService: IMainProcessService ) { return createChannelSender(mainProcessService.getChannel('workspaces'), { context: mainProcessService.windowId }); } } registerSingleton(IWorkspacesService, NativeWorkspacesService, true);