mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 15:55:15 +01:00
fixes #2237
This commit is contained in:
@@ -283,6 +283,10 @@ class DataSource implements IDataSource<IExtensionEntry> {
|
||||
getId(entry: IExtensionEntry): string {
|
||||
const extension = entry.extension;
|
||||
|
||||
if (!extension) {
|
||||
throw new Error(`Not an extension entry. Found ${ Object.keys(entry).slice(5) },... instead.`);
|
||||
}
|
||||
|
||||
if (extension.galleryInformation) {
|
||||
return `${ extension.galleryInformation.id }-${ extension.version }`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user