AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

env from http-client.private.env.json overwritten with values from template-http-client.private.env.json #245

Closed bohni closed 6 months ago

bohni commented 6 months ago

Hi,

we are using a Maven archetype to generate similar projects.

The archetype creates the file temlate-http-client.private.env.json that contains the keys of the secrets with fake values and is committed to the VCS

{
    "DEV": {
        "secret": "todo"
    }
}

The developer copies the file to http-client.private.env.json and enters the real secrets. This file is ignored by VCS.

When running a request the value from http-client.private.env.json is ignored and the one from the template is used.

image

AnWeber commented 6 months ago

I wasn't quite sure exactly what Intellij's logic was here. For this reason, I have accepted all env.json files. But according to the documentation only http-client.env.json and http-client.private.env.json seem to be allowed. I restrict it.