Skip to content

Fix: JS grammar detects gql tags in comments#4087

Open
trevor-scheer wants to merge 4 commits intographql:mainfrom
trevor-scheer:ignore-tag-in-comment
Open

Fix: JS grammar detects gql tags in comments#4087
trevor-scheer wants to merge 4 commits intographql:mainfrom
trevor-scheer:ignore-tag-in-comment

Conversation

@trevor-scheer
Copy link
Copy Markdown
Contributor

@trevor-scheer trevor-scheer commented Jul 30, 2025

Just a repro for now. gql tags inside of comments are detected by the grammar and should probably be ignored. Anyone motivated to fix this: please feel free to push to this branch (if you're able) or pick my repro commit to another PR and close this one out.

Had issues running yarn vitest and yarn workspace vscode-graphql-syntax test so I added vitest as a dev dependency (and matched the version the repo uses). Perhaps I'm missing the "right" way to run these tests.

Also: not obvious to me why git is detecting the entire file changes, but hiding whitespace while reviewing reveals the actual diff in the snapshot correctly.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 30, 2025

🦋 Changeset detected

Latest commit: 331a2d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vscode-graphql-syntax Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jul 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@dimaMachina dimaMachina self-requested a review April 21, 2026 12:48
"devDependencies": {
"@vscode/vsce": "^2.22.1-2",
"ovsx": "^0.3.0",
"vitest": "^2.1.9",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"vitest": "^2.1.9",

we already have vitest declared in root package.json?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't remember why I added this. I mentioned in the description I had some difficulty running vitest for this package but not sure what the issue was.

@trevor-scheer trevor-scheer force-pushed the ignore-tag-in-comment branch from 35b9cfa to f2ef8a8 Compare April 21, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants