refactor(vscode): update Vue grammar scope name to "text.html.vue"#5856
Merged
johnsoncodehk merged 2 commits intomasterfrom Dec 12, 2025
Merged
refactor(vscode): update Vue grammar scope name to "text.html.vue"#5856johnsoncodehk merged 2 commits intomasterfrom
johnsoncodehk merged 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refactors Vue grammar scope names from "source.vue" to "text.html.vue" to better align with TextMate grammar conventions for HTML-based languages.
Key Changes:
- Updated the main Vue grammar scope name in
vue.tmLanguage.json - Updated scope name references in MDX and Markdown integration files
- Updated
package.jsongrammar configurations and embedded language mappings - Regenerated test snapshots to reflect the new scope names
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
extensions/vscode/syntaxes/vue.tmLanguage.json |
Updated main scopeName from "source.vue" to "text.html.vue" and internal scope references |
extensions/vscode/syntaxes/mdx-vue.json |
Updated include references from "source.vue" to "text.html.vue" |
extensions/vscode/syntaxes/markdown-vue.json |
Updated include references from "source.vue" to "text.html.vue" |
extensions/vscode/package.json |
Updated all scopeName and embeddedLanguages mappings from "source.vue" to "text.html.vue" |
extensions/vscode/tests/__snapshots__/grammar.spec.ts.snap |
Updated all test snapshot expectations to use "text.html.vue" instead of "source.vue" |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
johnsoncodehk
added a commit
that referenced
this pull request
Dec 18, 2025
johnsoncodehk
added a commit
that referenced
this pull request
Dec 18, 2025
johnsoncodehk
added a commit
that referenced
this pull request
Dec 18, 2025
johnsoncodehk
added a commit
that referenced
this pull request
Dec 18, 2025
johnsoncodehk
added a commit
that referenced
this pull request
Dec 18, 2025
jsmnbom
added a commit
to jsmnbom/graphiql
that referenced
this pull request
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change the Vue grammar scope from
source.vuetotext.html.vueto reflect its HTML superset nature and inherit relevant syntax support.