CodeLens should not work if underlying endpoint is missing
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
## Actual Behavior
Currently, the extension parses TS/JS files for `gql` tag with a `regex` and decorates the code with `Execute ` 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
1. Create a project with TS and create a `gql` tag with a GraphQL query in it.
1. 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
Contributor guide
Assessment
This issue has not been assessed yet.