thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Open Env (Active) should update when modified #1595

Open ericm301 opened 2 weeks ago

ericm301 commented 2 weeks ago

Please describe feature/problem details and the solution you'd like.

I am using an API that has me refresh an access token every 20 minutes. I do this reqularly as I'm sending requests. The GetNewToken request modifies the env to set the token to the new value, then the rest of the collection can use the token.

But, if I have the active environment open in a tab, this tab never updates to reflect the change. There's no indication that the tab is stale, and no way to refresh the tab without closing the env tab and opening it again.

My solution

Add a RELOAD button, so I don't have to close and open the tab. There could also be a checkbox, similar to [o] refresh after request, that would enable the tab to do this automatically. A really cool implementation would be to highlight the individual variables on the tab that have changes, and have a button to0 refresh them, same as the hide and delete buttons.

Describe alternatives you've considered I've just been closing and opening the Env tab.

Are you using the free version/paid version/trial: Free

rangav commented 2 weeks ago

Thanks @ericm301 for the feedback, Will review it.