Extension uninstall hook #2861
traeok
started this conversation in
Squad Discussion
Replies: 1 comment
-
|
@traeok Could extenders use this hook as an oppurtunity to remove themselves from the zowe config/schema files? If so, that would be really bad imo, because we (my org) rely on the config files never having entries removed from them when things change (except manually we which avoid doing as much as possible), only things added or changed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Incorporating an uninstall hook in Zowe Explorer and its extenders would provide the following benefits:
Following up on our last stand-up discussion, I'm creating this thread to gather our thoughts on adding this hook and discuss how to make it straightforward for extenders to clean up.
One idea that I had in mind for the uninstall hook is to export a function from Zowe Explorer API, and then have extenders execute it from their uninstall hook:
{ "scripts": { "vscode:uninstall": "node -e \"await import(\"@zowe/zowe-explorer-api\").extenderCleanup()\"" } }Taking this a step forward, the
extenderCleanupfunction could support an optionalcallbackparameter to allow extenders to perform extra steps after the API is done with its cleanup steps.Beta Was this translation helpful? Give feedback.
All reactions