Closed domeniczz closed 1 year ago
I do not find the feature useful. No environment is a valid environment for me (my default with local settings). Another point is that I want to minimize resource usage. I would have provided different alternatives that also achieve your desired behavior.
httpyac.environmentSelectedOnStart
.env
instead of Intellij Config Files .httpyac.js
which automatically sets your default environment, if it is not setmodule.exports = {
configureHooks: function (api) {
api.hooks.parseEnd.addHook('set_env', function (context) {
if (!context.httpFile.activeEnvironment || context.httpFile.activeEnvironment.length === 0) {
context.httpFile.activeEnvironment = ['dev']
}
});
}
}
there could be a feature that set the env to default if there's only one env config.
for example in the config
http-client.env.json
below, there is only one env defined, so the plugin can be smart enough to setdev
as default env