Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No syntax type found in the Atom search #12

Open
c10b10 opened this issue Apr 28, 2017 · 4 comments
Open

No syntax type found in the Atom search #12

c10b10 opened this issue Apr 28, 2017 · 4 comments

Comments

@c10b10
Copy link

c10b10 commented Apr 28, 2017

Is there a way to specify for what file types I want this syntax to be active?

@rmosolgo
Copy link
Owner

I think it's built into the grammar here:

https://github.com/rmosolgo/language-graphql/blob/master/grammars/graphql.json#L6-L9

Does that help?

@gandm
Copy link

gandm commented May 2, 2017

@c10b10 You could try this https://discuss.atom.io/t/how-do-i-make-atom-recognize-a-file-with-extension-x-as-language-y/26539 using source.graphql as the scope.

@nicerr
Copy link

nicerr commented Oct 4, 2017

@gandm can't get this (what is described in the link) to work:

customFileTypes:
  "source.graphql": [
    ".graphcool"
  ]

The only way I managed was to was to add the extension I want (graphcool) to~/.atom/packages/language-graphql/grammars/graphql.json to fileTypes like this:

"fileTypes": [
   "graphqls",
   "graphql",
   "gql",
   "graphcool"
 ],

@nicerr
Copy link

nicerr commented Oct 4, 2017

Sorry... took the dot out and it works:

    customFileTypes:
      "source.graphql": [
        "graphcool"
      ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants