-
Notifications
You must be signed in to change notification settings - Fork 134
Please consider adding [StringSyntax("GraphQL")] attributes #630
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
Comments
Hi, good proposal, hadn't noticed the existence of the StringSyntaxAttribute yet. Requires a multiframework build though, as its only available from .NET 7 onwards and the library is currently built for .NET Standard 2.0... |
That's a good point, my PR doesn't properly deal with that at the moment. I've got a stub implementation of the attribute to enable it to build for .NET Standard 2.0 (or e.g. net6) but there's probably a bit of additional work to do with the build |
Have added multiframework |
added in v6.0.4 |
.NET allows you to use the StringSyntaxAttribute to mark up properties that are being used to hold text that an IDE should consider an "injected language".
E.g.
GraphQLRequest.Query
could be marked as a GraphQL fragment, and tools such as this VSCode plugin and other IDEs (e.g. JetBrains Rider) would be able to syntax highlight queries automatically.The text was updated successfully, but these errors were encountered: