graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Intellisense in gql templates with fragments not working #123

Closed brabeji closed 5 years ago

brabeji commented 5 years ago

Actual Behavior

The intellisense in gql tagged templates stops working when a fragment is inserted:

export const MyQueryDocument = gql`   
    ${AFragment}    
    query MyQuery {
        # no intellisense here
    }
`;

Expected Behavior

Intellisense works

Steps to Reproduce the Problem Or Description

Include fragment document in operation using js string literal template.

Specifications

Logs Of TS Server || GraphQL Language Service