We are working on improving graphql support for dart. vscode-apollo is the best plugin to provide syntax highlighting in vscode and we wouldn't want to create a separate plugin just to allow syntax highlighting in dart.
This would just be a matter of adding a new template syntax to vscode-apollo. We can use this as a reference implementation: https://github.com/apollographql/apollo-tooling/blob/master/packages/vscode-apollo/syntaxes/graphql.py.json
If the Apollo team is OK with this, I or someone on my team can submit a pull request with the additional syntax.
The syntax we would support will look like this:
var query = gql("""
query GetCard(\$id:CardId!) {
card(id:\$id) {
id
name
completed
}
""");
We are working on improving graphql support for dart. vscode-apollo is the best plugin to provide syntax highlighting in vscode and we wouldn't want to create a separate plugin just to allow syntax highlighting in dart.
This would just be a matter of adding a new template syntax to vscode-apollo. We can use this as a reference implementation: https://github.com/apollographql/apollo-tooling/blob/master/packages/vscode-apollo/syntaxes/graphql.py.json
If the Apollo team is OK with this, I or someone on my team can submit a pull request with the additional syntax.
The syntax we would support will look like this: