AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

Syntax highlighting in request output breaks after a truncated request #295

Closed alekdavisintel closed 1 month ago

alekdavisintel commented 1 month ago

If the response from an HTTP request is longer than the configured max, it will be trunctcated in the httpac - Request window with the ... (xxx characters more) message. This messes syntax highlighting of the rest of the request output:

image

I suspect this is caused because the returned JSON is not properly closed which may be tricky to handle, so I suspect there may be no easy fix, but wanted to mention it just in case. Maybe there is an option to not do syntax highlighting for truncated entries? Or maybe there are other workarounds? For now, I just increased the max length to 4K, which still may not work in some cases. Not sure if there is a better way.

AnWeber commented 1 month ago

fixed with next release

image
alekdavisintel commented 1 month ago

You rock!!!