提交 dd6dc96d 编写于 作者: J Joao Moreno

clean more async

related to #53442
上级 42cd3f9d
......@@ -434,7 +434,7 @@ export class CodeApplication {
const environmentService = accessor.get(IEnvironmentService);
urlService.registerHandler({
async handleURL(uri: URI): TPromise<boolean> {
handleURL(uri: URI): TPromise<boolean> {
if (windowsMainService.getWindowCount() === 0) {
const cli = { ...environmentService.args, goto: true };
const [window] = windowsMainService.open({ context: OpenContext.API, cli, forceEmpty: true });
......@@ -442,7 +442,7 @@ export class CodeApplication {
return window.ready().then(() => urlService.open(uri));
}
return false;
return TPromise.as(false);
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册