vscode-restclient
vscode-restclient copied to clipboard
Support large binary responses
- REST Client Version: 0.25.0
- VSCode Version: 1.68.1
- OS Version: Windows 10, version 21H2, build 19044.1706
Steps to Reproduce:
- Download a large binary file
- VS Code displays the following error notification:
Cannot create a string longer than 0x1fffffe8 characters
The "Save Response Body" action saves the previous response. As far as I can tell, the binary file is lost.
Further comments/ideas/my 2 cents:
Note that the previous response stays in the response pane, which is confusing. IMO the response pane should at least be cleared while a request is running. Anyway, the extension should not attempt to display binary data as text.
Ideally, the response pane could be updated live while the response is being downloaded. As an example, the JetBrains client displays a progress bar:
Then it shows a clickable link:
Also, syntax such as >> outut.bin
or >>! outut.bin
(which some other clients use) could be supported.
Thanks for this extension BTW! 🙂