graphql / graphql/graphiql

Feature: Support graphql tagged heredoc string literals in non-js files

Open
#2,346 6 comments 1 reaction 0 assignees View on GitHub
enhancement lsp-server
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

Thanks for making this awesome plugin. Works great for our js codebase

However our graphql api is written using graphql-ruby and so all of our graphql specs are Ruby files. In these files we define heredoc string literals like this:

```ruby
# spec/whatever_spec.rb

<<~GRAPHQL
query Whatever {
whatever {
id
}
}
GRAPHQL
```

Would it be possible to support Ruby files with this plugin?

If so, is it something a new contributor would be able to tackle? I wouldn't mind taking a stab at implementing it if someone gives me a few pointers where to start.

Thanks again!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.