diff --git a/src/vs/code/electron-main/app.ts b/src/vs/code/electron-main/app.ts index 9c487c3475c..841d59b486c 100644 --- a/src/vs/code/electron-main/app.ts +++ b/src/vs/code/electron-main/app.ts @@ -801,8 +801,11 @@ export class CodeApplication extends Disposable { const app = this; const environmentService = this.environmentMainService; const productService = this.productService; + const logService = this.logService; urlService.registerHandler({ async handleURL(uri: URI, options?: IOpenURLOptions): Promise { + logService.trace('app#handleURL: ', uri.toString(true), options); + if (uri.scheme === productService.urlProtocol && uri.path === 'workspace') { uri = uri.with({ authority: 'file', @@ -818,6 +821,7 @@ export class CodeApplication extends Disposable { // Check for URIs to open in window const windowOpenableFromProtocolLink = app.getWindowOpenableFromProtocolLink(uri); + logService.trace('app#handleURL: windowOpenableFromProtocolLink = ', windowOpenableFromProtocolLink); if (windowOpenableFromProtocolLink) { const [window] = windowsMainService.open({ context: OpenContext.API,