提交 6850609d 编写于 作者: J Johannes Rieken

adopt IExtensionService#getExtension

上级 52b05162
......@@ -83,8 +83,7 @@ export class ExtensionUrlHandler implements IExtensionUrlHandler, IURLHandler {
const extensionId = uri.authority;
const wasHandlerAvailable = this.extensionHandlers.has(extensionId);
return this.extensionService.getExtensions().then(extensions => {
const extension = extensions.filter(e => e.id === extensionId)[0];
return this.extensionService.getExtension(extensionId).then(extension => {
if (!extension) {
return this.handleUnhandledURL(uri, { id: extensionId }).then(() => false);
......@@ -269,4 +268,4 @@ export class ExtensionUrlHandler implements IExtensionUrlHandler, IURLHandler {
this.extensionHandlers.clear();
this.uriBuffer.clear();
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册