Skip to content

fix(vscode-language-syntax): Add "text.html.vue" as inline injection target#4144

Merged
trevor-scheer merged 3 commits intographql:mainfrom
jsmnbom:fix-vue-scope
Apr 23, 2026
Merged

fix(vscode-language-syntax): Add "text.html.vue" as inline injection target#4144
trevor-scheer merged 3 commits intographql:mainfrom
jsmnbom:fix-vue-scope

Conversation

@jsmnbom
Copy link
Copy Markdown
Contributor

@jsmnbom jsmnbom commented Dec 30, 2025

vuejs/language-tools#5856 changed the vue grammar scope from "source.vue" to "text.html.vue". This change simply adds the new scope to the list of inline injection targets. Old scope is still supported for backwards compatibility, tho I am unsure if this is necessary.

vuejs/language-tools#5856 changed the vue grammar scope from "source.vue" to "text.html.vue".
This change simply adds the new scope to the list of inline injection targets.
Old scope is still supported for backwards compatibility, tho I am unsure if this is necessary.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 30, 2025

🦋 Changeset detected

Latest commit: 3c448f1

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 Dec 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: jsmnbom / name: Jasmin Bom (8c92c0d)
  • ✅ login: trevor-scheer / name: Trevor Scheer (186088f, 3c448f1)

@Shinigami92
Copy link
Copy Markdown

@dimaMachina could you please have a look into this? For some weeks now all my gql code snippets inside .vue files are not highlighted anymore. Would be awesome if we could get functionality back.

@louis-lau
Copy link
Copy Markdown

Yeah, this is driving me a little crazy. Please merge this

@louis-lau
Copy link
Copy Markdown

For reference, if it wasn't clear from what everyone has said so far:

This extension no longer works with vue, without this change. Newcomers will not be trying to downgrade their vue extension. They will assume this extension simply doesn't work with vue at all.

@outluch
Copy link
Copy Markdown

outluch commented Mar 30, 2026

Anyone has idea how to return graphql syntax highlighting back to vue files?

@louis-lau
Copy link
Copy Markdown

You can downgrade the vue extension to 3.0.8 until this is merged

@outluch
Copy link
Copy Markdown

outluch commented Mar 30, 2026

3.1.8 works. I tried them all. And after 3.2.0 no one extension works :(

@louis-lau
Copy link
Copy Markdown

Correct, that's what this PR fixes, when it gets merged.

@trevor-scheer
Copy link
Copy Markdown
Contributor

@jsmnbom can you add a changeset please? Run yarn/npx changeset and follow the prompts. If I don't hear from you in ~2 weeks I'll add myself. Currently waiting on maintainer permissions but once I have that sorted I'll get this merged. Thanks for fixing!

@trevor-scheer trevor-scheer enabled auto-merge (squash) April 23, 2026 19:04
@trevor-scheer trevor-scheer merged commit f7e2a56 into graphql:main Apr 23, 2026
12 checks passed
@acao acao mentioned this pull request Apr 23, 2026
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.

5 participants