@@ -18,14 +18,16 @@ import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/
1818import { IWorkspaceProvider , IWorkspace } from 'vs/workbench/services/host/browser/browserHostService' ;
1919import { IProcessEnvironment } from 'vs/base/common/platform' ;
2020import { hasWorkspaceFileExtension } from 'vs/platform/workspaces/common/workspaces' ;
21+ import { ILogService } from 'vs/platform/log/common/log' ;
2122
2223class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient implements IExtensionHostDebugService {
2324
2425 private workspaceProvider : IWorkspaceProvider ;
2526
2627 constructor (
2728 @IRemoteAgentService remoteAgentService : IRemoteAgentService ,
28- @IWorkbenchEnvironmentService environmentService : IWorkbenchEnvironmentService
29+ @IWorkbenchEnvironmentService environmentService : IWorkbenchEnvironmentService ,
30+ @ILogService logService : ILogService
2931 ) {
3032 const connection = remoteAgentService . getConnection ( ) ;
3133 let channel : IChannel ;
@@ -34,7 +36,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
3436 } else {
3537 channel = { call : async ( ) => undefined , listen : ( ) => Event . None } as any ;
3638 // TODO@weinand TODO@isidorn fallback?
37- console . warn ( 'Extension Host Debugging not available due to missing connection.' ) ;
39+ logService . warn ( 'Extension Host Debugging not available due to missing connection.' ) ;
3840 }
3941
4042 super ( channel ) ;
@@ -43,7 +45,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient i
4345 this . workspaceProvider = environmentService . options . workspaceProvider ;
4446 } else {
4547 this . workspaceProvider = { open : async ( ) => undefined , workspace : undefined } ;
46- console . warn ( 'Extension Host Debugging not available due to missing workspace provider.' ) ;
48+ logService . warn ( 'Extension Host Debugging not available due to missing workspace provider.' ) ;
4749 }
4850
4951 // Reload window on reload request
0 commit comments