Add support for dart in vscode-dart
See original GitHub issueWe 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
}
""");
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JakeDawkins I’ve got it working in the PR but need some guidance on how to properly build and test the extension. I’ve currently patched the changes in directly to see that it all works. Who would be someone good to talk to about this?
Thanks!
@venkatd I also see this bug: Dart is not syntax highlighting. Do you have solution?
When VSCode starts up, I see that it works. But after a minute, the highlighting turns off.