add logging for url handling (#142685)
parent
5d37c8c6d9
commit
60b8611fb1
|
@ -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<boolean> {
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue