Kong / Kong/insomnia

[Bug] – Ability to comment-out lines in GraphQL query lost from 6.6.2

Open
#1,694 5 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

  • Insomnia Version: 7.0.0
  • Operating System: MacOS

Details

Hi, recent adopter of Insomnia here. I've used Postman in the past and have been doing a lot of GraphQL recently and came across Insomnia and it's been fabulous for that.

Given I need to create and test GraphQL queries, I use Insomnia's query editor.

When I want to comment-out a line, I invoke the shortcut, CMD-/ (much like VS Code and other IDE editors).

Then the line should be prepended with the hashmark, #. In version 7.0.0 this does not appear to work.

I was surprised and pleased this was possible in 6.6.2 (being new I can't speak for earlier versions) so I endeavoured to look for its setting in preferences but could not find one. I've rolled back my installation to 6.6.2 just to have this ability back.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the GraphQL query editor and its CMD-/ shortcut handling, then compare the behavior with version 6.6.2. Done means CMD-/ prepends # to the selected line in version 7.0.0 and a regression test covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.