mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix #14307
This commit is contained in:
parent
44b92df5b2
commit
83a661532b
|
@ -234,8 +234,8 @@ class Extension implements IExtension {
|
|||
if (gallery) {
|
||||
return gallery.properties.dependencies;
|
||||
}
|
||||
if (local) {
|
||||
return local.manifest.extensionDependencies && local.manifest.extensionDependencies;
|
||||
if (local && local.manifest.extensionDependencies) {
|
||||
return local.manifest.extensionDependencies;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ class Extension implements IExtension {
|
|||
|
||||
class ExtensionDependencies implements IExtensionDependencies {
|
||||
|
||||
constructor(private _extension: IExtension, private _identifier: string, private _map: Map<string, Extension>, private _dependent: IExtensionDependencies = null) { }
|
||||
constructor(private _extension: IExtension, private _identifier: string, private _map: Map<string, IExtension>, private _dependent: IExtensionDependencies = null) { }
|
||||
|
||||
get hasDependencies(): boolean {
|
||||
return this._extension ? this._extension.dependencies.length > 0 : false;
|
||||
|
@ -384,8 +384,9 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
|
|||
|
||||
return this.galleryService.getAllDependencies((<Extension>extension).gallery)
|
||||
.then(galleryExtensions => galleryExtensions.map(galleryExtension => this.fromGallery(galleryExtension)))
|
||||
.then(extensions => [...this.local, ...extensions])
|
||||
.then(extensions => {
|
||||
const map = new Map<string, Extension>();
|
||||
const map = new Map<string, IExtension>();
|
||||
for (const extension of extensions) {
|
||||
map.set(`${extension.publisher}.${extension.name}`, extension);
|
||||
}
|
||||
|
|
|
@ -233,6 +233,7 @@
|
|||
padding: 2px 4px;
|
||||
font-weight: bold;
|
||||
font-size: 11px;
|
||||
color: #CCC;
|
||||
}
|
||||
|
||||
.extension-editor .subcontent .monaco-tree-row .unknown-dependency > .message {
|
||||
|
|
Loading…
Reference in a new issue