Skip to content

Commit 3f0aaa4

Browse files
committed
logs: platform/url
related to microsoft#41680
1 parent d0c5ed5 commit 3f0aaa4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/vs/platform/url/electron-main/urlService.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { IURLService } from 'vs/platform/url/common/url';
1010
import product from 'vs/platform/node/product';
1111
import { app } from 'electron';
1212
import URI from 'vs/base/common/uri';
13+
import { ILogService } from '../../log/common/log';
1314

1415
export 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
}

0 commit comments

Comments
 (0)