Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.32k stars 1.93k forks source link

Bug or Enhancement GQL formatting of comments and commenting is not consistent #5186

Open thomasbeauvais opened 1 year ago

thomasbeauvais commented 1 year ago

This is a minor annoyance more than anything. Thanks for your consideration!

Often times I find that the formatting commenting of GQL queries and then formatting via the Prettify GraphQL are at odds.

The comment # is placed at the beginning of the line. When Prettify is run, the comments are pushed to line start and tabbed in.

If the comments were placed at the beginning of the line start including tabs or the formatted handling this better.

It's really hard to keep everything formatted.

What I would expect is that commenting out something, formatting, then uncommenting would result in no change. Right now, I have to hit the format again and it's hard to really see what I am selecting.

Screen Shot 2022-09-15 at 9 38 44 AM

filfreire commented 1 year ago

Slightly linked with #4800