File tree Expand file tree Collapse file tree
src/vs/platform/url/electron-main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { IURLService } from 'vs/platform/url/common/url';
1010import product from 'vs/platform/node/product' ;
1111import { app } from 'electron' ;
1212import URI from 'vs/base/common/uri' ;
13+ import { ILogService } from '../../log/common/log' ;
1314
1415export class URLService implements IURLService {
1516
@@ -18,7 +19,10 @@ export class URLService implements IURLService {
1819 private openUrlEmitter : Emitter < string > = new Emitter < string > ( ) ;
1920 onOpenURL : Event < URI > ;
2021
21- constructor ( initial : string | string [ ] = [ ] ) {
22+ constructor (
23+ @ILogService private logService : ILogService ,
24+ initial : string | string [ ] = [ ]
25+ ) {
2226 const globalBuffer = ( global . getOpenUrls ( ) || [ ] ) as string [ ] ;
2327 const initialBuffer = [
2428 ...( typeof initial === 'string' ? [ initial ] : initial ) ,
@@ -51,6 +55,7 @@ export class URLService implements IURLService {
5155 }
5256
5357 open ( url : string ) : void {
58+ this . logService . trace ( 'urlService#open' , url ) ;
5459 this . openUrlEmitter . fire ( url ) ;
5560 }
5661}
You can’t perform that action at this time.
0 commit comments