question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for dart in vscode-dart

See original GitHub issue

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
                }
                """);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
venkatdcommented, Jul 10, 2019

@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!

0reactions
comerccommented, Apr 10, 2022

@venkatd I also see this bug: Dart is not syntax highlighting. Do you have solution?

  • Apollo GraphQL v1.19.9
  • apollo/2.33.10 darwin-x64 node-v16.14.0
  • Flutter (Channel stable, 2.10.3, on macOS 12.2)
  • VS Code (version 1.66.1)

When VSCode starts up, I see that it works. But after a minute, the highlighting turns off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found