Skip to content

Support //lang=graphql #4

@Rekkonnect

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions