nicolaslopezj / atom-graphql-autocomplete

Autocomplete and lint from a GraphQL endpoint in atom.
MIT License
48 stars 7 forks source link

Support for template tags inside js files #10

Open pie6k opened 7 years ago

pie6k commented 7 years ago

Eg.

// file.js
import { gql } from 'react-apollo';
const myQuery = gql`
  query { *query here* }
`

Is it possible to have autocomplete support inside such tags?

vitexikora commented 6 years ago

Change your line endings to LF or fix \n -> [\r\n] inside .atom\packages\graphql-autocomplete\lib\graphql\getQueriesInFile.js