launchiamenterprise / keyrunner

KeyRunner: A secure, codeless VS Code extension for API testing & Designing. Features include data encryption at rest, sensitive data masking, and the innovative Playground for chaining API requests without coding
https://keyrunner.app
MIT License
14 stars 1 forks source link

Feat Req.: would be nice if keyrunner env vars injected in request body would be highlighted in a different colour than regular strings #72

Open frank-duq opened 1 month ago

frank-duq commented 1 month ago

Is your feature request related to a problem? Please describe. It would be nice to see injected keyrunner environment variables into request body be highlighted in a different colour then the current colour used for regular strings, to be able to better locate them.

Describe the solution you'd like There's already a nice mouse-over effect in place, which will show its actual value which is perfect, so imo we're just missing the colour highlight to make this feature complete.

Ideally / even better, if there could be 2 different colour-highlighting, one that confirms that the variable was found (e.g. defined with an actual value etc, meaning that you can expect the mouse-over to display such associated value), and another red-ish colour which tells us that the variable was NOT found / is probably missing, in which case there could be a mouse-over effect that confirms that the variable does not exist, and even much better if, like postman, the mouse-over dialog in such case suggest you through a link to actually create it (asks you under which scope, if eventually multiple variable scopes will exist..), and then it would send the user to the section where to provide a value for such new variable, with the variable name copy/pasted already for you, since you already had that variable {{missingVarName}} in your body, it was just not defined [yet].

And also even much much better if, everything mentioned above actually applies to ANY location where variables are supported, meaning, not only request body, but request url path, authorization, etc etc.

Describe alternatives you've considered n.a.

Additional context Screenshot 2024-10-15 at 1 00 25 PM

launchiamenterprise commented 1 month ago

We will definitely look into adding this feature once we address the current bugs.