AnWeber / httpbook

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://httpyac.github.io/
MIT License
61 stars 4 forks source link

Issue with Global Defined Variables in httpbook #135

Open kscarr73 opened 1 week ago

kscarr73 commented 1 week ago

I have an http file that I am using in httpbook.

I am trying to use the testing variable in a POST call.

/*
# Testing

Validate some calls
*/
@testing = this
###

GET {{defaultUrl}}/records/
###

POST {{defaultUrl}}/records

{
    "testing": "{{testing}}"
}

If I run in the Text Editor, the call works without problem. If I run the cell in httpbook, it claims the testing variable doesn't exist.

kscarr73 commented 1 week ago

On further testing:

I did test with Run All and it works as it should. It seems to only be an issue when running an individual cell.

I have Use Code Lens in Notebook turned on. If I turn it off, the variable is processed correctly in httpbook.