use logExtensionHostCommunication from env service

This commit is contained in:
Benjamin Pasero 2016-08-17 14:10:31 +02:00
parent 16c67219d7
commit 1d81fbfbdf
6 changed files with 4 additions and 5 deletions

View file

@ -384,7 +384,6 @@ export class VSCodeWindow {
// in plugin development mode. These options are all development related.
if (this.isPluginDevelopmentHost && cli) {
configuration.verbose = cli.verbose;
configuration.logExtensionHostCommunication = cli.logExtensionHostCommunication;
configuration.debugBrkFileWatcherPort = cli.debugBrkFileWatcherPort;
configuration.debugPluginHost = cli.debugPluginHost;
configuration.debugBrkPluginHost = cli.debugBrkPluginHost;

View file

@ -901,7 +901,6 @@ export class WindowsManager implements IWindowsService {
if (!configuration.extensionDevelopmentPath && currentWindowConfig && !!currentWindowConfig.extensionDevelopmentPath) {
configuration.extensionDevelopmentPath = currentWindowConfig.extensionDevelopmentPath;
configuration.verbose = currentWindowConfig.verbose;
configuration.logExtensionHostCommunication = currentWindowConfig.logExtensionHostCommunication;
configuration.debugBrkFileWatcherPort = currentWindowConfig.debugBrkFileWatcherPort;
configuration.debugBrkPluginHost = currentWindowConfig.debugBrkPluginHost;
configuration.debugPluginHost = currentWindowConfig.debugPluginHost;

View file

@ -26,6 +26,8 @@ export interface IEnvironmentService {
debugExtensionHostPort: number;
debugBrkExtensionHost: boolean;
logExtensionHostCommunication: boolean;
isBuilt: boolean;
verbose: boolean;
performance: boolean;

View file

@ -56,6 +56,7 @@ export class EnvironmentService implements IEnvironmentService {
get isBuilt(): boolean { return !process.env['VSCODE_DEV']; }
get verbose(): boolean { return this.args.verbose; }
get performance(): boolean { return this.args.performance; }
get logExtensionHostCommunication(): boolean { return this.args.logExtensionHostCommunication; }
private _debugBrkFileWatcherPort: number;
get debugBrkFileWatcherPort(): number { return this._debugBrkFileWatcherPort; }

View file

@ -91,8 +91,6 @@ export interface IEnvironment {
disableExtensions: boolean;
logExtensionHostCommunication: boolean;
userExtensionsHome: string;
extensionDevelopmentPath: string;
extensionTestsPath: string;

View file

@ -55,7 +55,7 @@ export class MainThreadService extends AbstractThreadService implements IThreadS
this.extensionHostProcessManager = new ExtensionHostProcessManager(contextService, messageService, windowService, lifecycleService, environmentService);
let logCommunication = logExtensionHostCommunication || contextService.getConfiguration().env.logExtensionHostCommunication;
let logCommunication = logExtensionHostCommunication || environmentService.logExtensionHostCommunication;
// Message: Window --> Extension Host
this.remoteCom = create((msg) => {