Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/variable tokens eval #134

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pbrouillet
Copy link

To improve variable evaluations, this change adds support for curly brackets evaluation.
It can be used several times inside the URL, headers or body of a request since it is parsed through regex groups.
Also, an initial Hover over variables will display the variable content if it was already processed.

Some of the caching and variable extraction was moved from the request.ts into a new dedicated class. Since the Hover doesn't have context of the request nor the Notebook cell (only the code document of the cell being hovered), the variable parser is a singleton and so lives through executed requests and the session of the file.
This part can probably be improved.

…ion.

Added toast notifications upon failed request execution.
Added initial hover tooltip upon variables.
Updated the variable parsing and caching to support secrets evaluation.
Added support for \n and & delimiters for $ prefixed variables.
@pbrouillet
Copy link
Author

@tanhakabir Hello! Can you review this PR, please :)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants