Hi! I started implementing https://github.com/flying-sheep/hatch-code
Hatch’s env model is:
- there are a few pre-defined ones and you can define more
- you can create, destroy, and sync any defined env for a project, but none that aren’t pre-defined or defined in Hatch’s config
How should we map this to the extension API?
create only makes sense for defined envs. So show a picker dialog for defined envs?
remove ditto
set & get doesn’t really make sense for Hatch. Would be best if these were optional to implement and this extension didn’t have to track the active env
refresh … I don‘t know what it’s for. Is this supposed to re-fetch the list of defined envs or created envs?
getEnvironments ditto. I think for Hatch it would make more sense if it returned the list of defined envs and we could respond to onTryingToSetEnvironment event or so to create it
clearCache I also don’t know what this is for
I think in general it would be nice to have some examples when these are called. Like what UI action leads to clearCache being called?
cc @karthiknadig
Hi! I started implementing https://github.com/flying-sheep/hatch-code
Hatch’s env model is:
How should we map this to the extension API?
createonly makes sense for defined envs. So show a picker dialog for defined envs?removedittoset&getdoesn’t really make sense for Hatch. Would be best if these were optional to implement and this extension didn’t have to track the active envrefresh… I don‘t know what it’s for. Is this supposed to re-fetch the list of defined envs or created envs?getEnvironmentsditto. I think for Hatch it would make more sense if it returned the list of defined envs and we could respond toonTryingToSetEnvironmentevent or so to create itclearCacheI also don’t know what this is forI think in general it would be nice to have some examples when these are called. Like what UI action leads to
clearCachebeing called?cc @karthiknadig