Vscode-restclient: [Feature Request] Add collapsible functionality for json and xml response

Created on 22 Jan 2018  路  9Comments  路  Source: Huachao/vscode-restclient

  • VSCode Version: Version 1.19.2 (1.19.2)
  • OS Version: macOS Sierra 10.12.6
  • REST Client Version: 0.16.2

I saw feature request for folding requests, but it would also be nice to fold the json response.

enhancement

Most helpful comment

@hardija @ffes @Naramsim @StephD @3amSoftware @suramma I have implemented the indent based response folding (also work for JSON and XML since my extension will pretty the JSON and xml response body). And I will publish this feature in next release.

image

All 9 comments

Folding multiple requests separated with three hashes in the .http source file would be great as well.

@ffes I thought it was already supported in the extension, can you have a try?

It works a bit, but there is some room for improvement...

Look at the screenshot below and notice that the last block only can be collapsed at the JSON block and not at the POST.

vscode-rest-extension-folding

And notice that in the screenshot below only at the JSON block a [-] is shown and not at the GET or POSTline

example

@ffes this currently is a known issue in my extension, that append a new line of ### at the end of the file.

This thread is about the response. Please start another thread to discuss the request. Thank you

@3amSoftware nice suggestion, I have created #163 to follow request body folding

@hardija @ffes @Naramsim @StephD @3amSoftware @suramma I have implemented the indent based response folding (also work for JSON and XML since my extension will pretty the JSON and xml response body). And I will publish this feature in next release.

image

Can't wait to try it! Thanks for the efforts!

@hardija @ffes @Naramsim @StephD @3amSoftware @suramma you can upgrade to 0.18.0 to try this. Thanks!

Was this page helpful?
0 / 5 - 0 ratings