You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the extension parses TS/JS files for gql tag with a regex and decorates the code with Execute <Operation> actions. This also happens when we don't have a graphql config file which means that the actions cannot execute.
Expected Behavior
CodeLens should not decorate the code when it cannot execute and in other cases where we already know that it would fail.
Steps to Reproduce the Problem Or Description
Create a project with TS and create a gql tag with a GraphQL query in it.
You should see "Execute Query" CodeLens which is bound to fail because extension is not aware of any underlying endpoints because of lack of graphql config file.
Specifications
GraphQL for VSCode Extension Version: 0.1.5
Logs Of TS Server || GraphQL Language Service
NA
The text was updated successfully, but these errors were encountered:
I would like to disable the code lens feature at all as it only irritates me with the jumping line positions 😠 Why it doesn't have any config flag in VSCode settings?
@MichalLytek i have added a flag for disabling this now! going to add the automatic hiding as well. would be nice to make this a right click menu option and/or keyboard shortcut as well, for the sake of convenience
to add, it will still show the codelens (unless the "vscode-graphql.showExecCodeLens": false, is set) even if you don't have endpoints configured.
To make it hide the codelens if endpoints aren't configured, I will have to rearchitect the extension quite a bit to achieve this. However, this would be a very advantageous overhaul, and I would like to do that sooner than later, because then we can have earlier detections and better UX around missing graphql config
Actual Behavior
Currently, the extension parses TS/JS files for
gql
tag with aregex
and decorates the code withExecute <Operation>
actions. This also happens when we don't have a graphql config file which means that the actions cannot execute.Expected Behavior
CodeLens should not decorate the code when it cannot execute and in other cases where we already know that it would fail.
Steps to Reproduce the Problem Or Description
gql
tag with a GraphQL query in it.Specifications
Logs Of TS Server || GraphQL Language Service
NA
The text was updated successfully, but these errors were encountered: