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

fix query length from 1000 to ids.length

上级 93e65224
......@@ -36,7 +36,11 @@ export function getOutdatedExtensions(extensionsService: IExtensionManagementSer
return extensionsService.getInstalled().then(installed => {
const ids = installed.map(getExtensionId);
return galleryService.query({ ids, pageSize: 1000 }).then(result => {
if (installed.length === 0) {
return TPromise.as([]);
}
return galleryService.query({ ids, pageSize: ids.length }).then(result => {
const available = result.firstPage;
return available.filter(extension => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册