move window logging to main

This commit is contained in:
Sandeep Somavarapu
2021-02-05 17:50:59 +01:00
parent 70d355c42f
commit e60bc310b8
9 changed files with 163 additions and 148 deletions

View File

@@ -21,7 +21,7 @@ import { LaunchMainService, ILaunchMainService } from 'vs/platform/launch/electr
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
import { ILogService } from 'vs/platform/log/common/log';
import { ILoggerService, ILogService } from 'vs/platform/log/common/log';
import { IStateService } from 'vs/platform/state/node/state';
import { IEnvironmentMainService } from 'vs/platform/environment/electron-main/environmentMainService';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
@@ -660,7 +660,7 @@ export class CodeApplication extends Disposable {
electronIpcServer.registerChannel('storage', storageChannel);
sharedProcessClient.then(client => client.registerChannel('storage', storageChannel));
const loggerChannel = new LoggerChannel(accessor.get(ILogService));
const loggerChannel = new LoggerChannel(accessor.get(ILogService), accessor.get(ILoggerService));
electronIpcServer.registerChannel('logger', loggerChannel);
sharedProcessClient.then(client => client.registerChannel('logger', loggerChannel));