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

fixes #12125

上级 a1ad1c73
......@@ -538,7 +538,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
return;
}
let extension = this.installed.filter(e => (e.local.metadata && e.local.metadata.id) === gallery.id)[0];
let extension = this.installed.filter(e => (e.local && e.local.metadata && e.local.metadata.id) === gallery.id)[0];
if (!extension) {
extension = new Extension(this.galleryService, this.stateProvider, null, gallery);
......@@ -581,7 +581,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
extension.needsReload = true;
const galleryId = local.metadata && local.metadata.id;
const installed = this.installed.filter(e => (e.local.metadata && e.local.metadata.id) === galleryId)[0];
const installed = this.installed.filter(e => (e.local && e.local.metadata && e.local.metadata.id) === galleryId)[0];
if (galleryId && installed) {
installing.operation = Operation.Updating;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册