apollographql / apollographql/apollo-tooling

VSCode helper pegged at 100%

Open
#1,109 3 comments 9 reactions 0 assignees View on GitHub
:spiral_notepad: component - vscode
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

When typing graphql queries the "Code Helper" process immediately jumps to 100% and stays there for a very long time. From the looks of things every keypress in a graphql fragment is triggering an update of some sort as I get errors under various parts of the gql query that bounce around for a few minutes after I'm done typing it. Maybe debounce the keypresses?

![gql-plugin](https://user-images.githubusercontent.com/320562/54241654-e95b1600-44de-11e9-9064-319a6c307b14.gif)

**Versions**

v1.5.2 of the plugin, 1.31.1 of vscode

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Reproduce the issue by typing GraphQL queries in VSCode with the reported plugin and VSCode versions, then trace the updates associated with each keypress. Done means the Code Helper no longer remains at 100% CPU and diagnostics settle promptly after typing.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.