mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #88714 from GabeDeBacker/user/gabrield/throwExceptionOnExtensionInstallFail
Allows extension install and uninstall command execution to throw exceptions back to caller
This commit is contained in:
commit
856a5ad8ad
|
@ -252,6 +252,7 @@ CommandsRegistry.registerCommand({
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
onUnexpectedError(e);
|
onUnexpectedError(e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -284,6 +285,7 @@ CommandsRegistry.registerCommand({
|
||||||
await extensionManagementService.uninstall(extensionToUninstall, true);
|
await extensionManagementService.uninstall(extensionToUninstall, true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
onUnexpectedError(e);
|
onUnexpectedError(e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue