Closed bohni closed 9 months ago
When defining variables in VS Code User Settings "Generate Code" does not work and instead shows a popup with message ReferenceError: userVariable is not defined at Object.userJS
ReferenceError: userVariable is not defined at Object.userJS
User Settings or Workspace Settings (.vscode/settings.json )
.vscode/settings.json
{ "httpyac.environmentVariables": { "$shared" : { "codeVariable": "codeVariable" } } }
.httpyac.config.js
module.exports = { "environments": { "$shared": { "sharedVariable": "sharedVariable", "baseUrl": "http://httpbin.org/anything" } } }
error.http
### Without VS Code User Settings GET {{baseUrl}}?param={{sharedVariable}} ### With VS Code User Settings GET {{baseUrl}}?param={{codeVariable}}
fixed with v6.6.6
Thanks for those quick fixes! And for that great tool!
You are Welcome.
When defining variables in VS Code User Settings "Generate Code" does not work and instead shows a popup with message
ReferenceError: userVariable is not defined at Object.userJS
User Settings or Workspace Settings (
.vscode/settings.json
).httpyac.config.js
error.http