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
57 stars 4 forks source link

feature request: make response JSON payload foldable #95

Closed james-yin closed 10 months ago

james-yin commented 10 months ago

This is a new feature or enhancement request.

Make the output response JSON payload foldable (collapsible) just like how we can currently fold the request JSON body.

AnWeber commented 10 months ago

The Output uses a VSCode internal Feature. Does this not provide a JSON View which is foldable? Could you please add a.screenshot? Maybe it uses just plain Text View.

james-yin commented 10 months ago

Here's a screenshot showing folding widget in the request but not in the response. Thanks for looking into this:

image

AnWeber commented 10 months ago

I didn't know that at all. I actually only use vscode-httpyac myself (without notebook extension) and that's why I didn't fall over it. You can solve your problem by installing my Monaco Editor extension. It will use the same editor as VSCode internally to display the JSON. However, I thought so far that this has no more use. Maybe I should update it again.

But you should also make a bug in the repo of VSCode, since the folding support should already be part of the base. It should be extension markdown-language-features in VSCode Repo

james-yin commented 10 months ago

Installing Monaco Editor extension did not fix the issue. In fact, that extension stopped all the Markdown rendering. After uninstalling the Monaco, my single cells split to different cells. I had to fix them cell by cell.

AnWeber commented 10 months ago

@james-yin Sorry, but I did not quite understand the error. The Monaco Editor is actually only a renderer and has no file access, but runs in a browser sandbox without file access. Then I would suggest you go the way of a ticket directly in VSCode. I just use the built-in display here which it does not support.