提交 7139ecdb 编写于 作者: B Benjamin Pasero

sandbox - do not double register electron service

上级 03ad770f
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
import { IElectronService } from 'vs/platform/electron/node/electron'; import { IElectronService } from 'vs/platform/electron/node/electron';
import { IMainProcessService } from 'vs/platform/ipc/common/mainProcessService'; 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'; import { createChannelSender } from 'vs/base/parts/ipc/common/ipc';
export class ElectronService { export class ElectronService {
...@@ -18,5 +17,3 @@ export class ElectronService { ...@@ -18,5 +17,3 @@ export class ElectronService {
return createChannelSender<IElectronService>(mainProcessService.getChannel('electron'), { context: mainProcessService.windowId }); return createChannelSender<IElectronService>(mainProcessService.getChannel('electron'), { context: mainProcessService.windowId });
} }
} }
registerSingleton(IElectronService, ElectronService, true);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册