mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Ignore bad canvas addon versions
This commit is contained in:
@@ -31,7 +31,17 @@ function getLatestModuleVersion(moduleName) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
const versions = JSON.parse(stdout);
|
||||
let versions = JSON.parse(stdout);
|
||||
// HACK: Some bad versions were published as v5 which cannot be unpublished, ignore these
|
||||
if (moduleName === 'xterm-addon-canvas') {
|
||||
versions = versions.filter(e => ![
|
||||
'0.12.0',
|
||||
'5.0.0-beta.1',
|
||||
'5.0.0-beta.2',
|
||||
'5.0.0-beta.3',
|
||||
'5.0.0-beta.4',
|
||||
].includes(e));
|
||||
}
|
||||
resolve(versions[versions.length - 1]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user