提交 67ac10ad 编写于 作者: A Andre Weinand

#84283 use log service

上级 1a644f62
...@@ -18,6 +18,7 @@ import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/ ...@@ -18,6 +18,7 @@ import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/
import { IWorkspaceProvider, IWorkspace } from 'vs/workbench/services/host/browser/browserHostService'; import { IWorkspaceProvider, IWorkspace } from 'vs/workbench/services/host/browser/browserHostService';
import { IProcessEnvironment } from 'vs/base/common/platform'; import { IProcessEnvironment } from 'vs/base/common/platform';
import { hasWorkspaceFileExtension } from 'vs/platform/workspaces/common/workspaces'; import { hasWorkspaceFileExtension } from 'vs/platform/workspaces/common/workspaces';
import { ILogService } from 'vs/platform/log/common/log';
class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient implements IExtensionHostDebugService { class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient implements IExtensionHostDebugService {
...@@ -25,7 +26,8 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i ...@@ -25,7 +26,8 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
constructor( constructor(
@IRemoteAgentService remoteAgentService: IRemoteAgentService, @IRemoteAgentService remoteAgentService: IRemoteAgentService,
@IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService @IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService,
@ILogService logService: ILogService
) { ) {
const connection = remoteAgentService.getConnection(); const connection = remoteAgentService.getConnection();
let channel: IChannel; let channel: IChannel;
...@@ -34,7 +36,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i ...@@ -34,7 +36,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
} else { } else {
channel = { call: async () => undefined, listen: () => Event.None } as any; channel = { call: async () => undefined, listen: () => Event.None } as any;
// TODO@weinand TODO@isidorn fallback? // TODO@weinand TODO@isidorn fallback?
console.warn('Extension Host Debugging not available due to missing connection.'); logService.warn('Extension Host Debugging not available due to missing connection.');
} }
super(channel); super(channel);
...@@ -43,7 +45,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i ...@@ -43,7 +45,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
this.workspaceProvider = environmentService.options.workspaceProvider; this.workspaceProvider = environmentService.options.workspaceProvider;
} else { } else {
this.workspaceProvider = { open: async () => undefined, workspace: undefined }; this.workspaceProvider = { open: async () => undefined, workspace: undefined };
console.warn('Extension Host Debugging not available due to missing workspace provider.'); logService.warn('Extension Host Debugging not available due to missing workspace provider.');
} }
// Reload window on reload request // Reload window on reload request
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册