提交 3f932a7b 编写于 作者: R Rob Lourens 提交者: Joao Moreno

For #43813 - add null check for error

上级 a36812ab
......@@ -463,7 +463,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
const retryUntil = Date.now() + ExtensionManagementService.RENAME_RETRY_TIME;
return retry(
() => pfs.rename(extractPath, path.join(this.extensionsPath, id)),
err => platform === Platform.Windows && Date.now() < retryUntil && err.code === 'EPERM');
err => platform === Platform.Windows && err && err.code === 'EPERM' && Date.now() < retryUntil);
}
private rollback(extensions: IGalleryExtension[]): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册