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

envdirname doesn't work #215

Closed maxisam closed 10 months ago

maxisam commented 10 months ago

I have tested it with the following config, it doesn't work. It works if I use the default path "env"

module.exports = {
  log: {
    responseBodyLength: 0,
    prettyPrint: true,
  },
  envDirName: ".env",
  clientCertificates: {},
  configureHooks: function (api) {
    api.hooks.responseLogging.addHook(
      "removeSensitiveData",
      function (response) {
        if (response.request) {
          delete response.request.headers["authorization"];
        }
      }
    );
  },
};

Thanks for the awesome library!

AnWeber commented 10 months ago

Maybe it gets overriden by vscode settings. Did you also try using it with httpyac CLI? Will look onto it.

AnWeber commented 10 months ago

The value was overwritten by the VSCode setting because "" was defined there and not undefined as expected. I have corrected this and we will release with the next version. Until then you can use the VSCode setting as a workaround.