Our prettier config's print-width setting is breaking some placeholders into multiple lines in our gql tagged template literals and causing errors in the VS Code plugin.
Intended outcome:
No error. Correctly parse the JS.
Actual outcome:
Syntax Error: Unexpected $ GraphQL: Syntax [73, 3]
How to reproduce the issue:
You need to have a placeholder that breaks onto a new line.
const query = gql`
{
hero {
...Hero_character
}
}
${Hero.fragments
.character}
`;
Versions
v1.6.9 of the VS Code extension
Our prettier config's print-width setting is breaking some placeholders into multiple lines in our
gqltagged template literals and causing errors in the VS Code plugin.Intended outcome:
No error. Correctly parse the JS.
Actual outcome:
Syntax Error: Unexpected $ GraphQL: Syntax [73, 3]How to reproduce the issue:
You need to have a placeholder that breaks onto a new line.
Versions
v1.6.9 of the VS Code extension