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

Code Formatting and Assist #73

Closed st11x closed 1 year ago

st11x commented 1 year ago

Hi,

Is it possible to apply formatting to the Httpbook? I have a lot of JSON in the book and I have to copy them out to reformat, then paste them back. It would be great if it is available directly.

Also, is it possible to enable code assist in the script blocks?

Thanks Matt

AnWeber commented 1 year ago

httpbook has the same limitation as vscode-httpyac. The extension is just an add-on to the other extension that implements the VSCode Notebook Api. This was originally only available in VSCode Insider and I wanted to play with it. For the reason as noted in the discussion, I would start with implementing the LSP first. After that, I would trace the features as in vetur, and then these points would be possible. But to have time for this is really my problem.