Skip to content

Support //lang=graphql #4

Description

@Rekkonnect

Unofficially there is a feature in VS syntax highlighting that supports //lang=xyz comments and highlights the string in the following line accordingly, like variables or string literals.

Some working examples for C#-test:

        // lang=C#-test
        var cstest = "var x = y;";

        Method(
            "value",
            // lang=C#-test
            "var x = y;",
            "value"
        );

        // lang=C#-test
        Method(
            "var x = y;",
            "var x = y;",
            "var x = y;"
        );

This can be picked up from the extension in a similar fashion and highlight GraphQL strings without relying on the target string receiver being properly annotated, which supports some edge cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions