redhat-developer / redhat-developer/vscode-yaml
Language Textmate Scope Splits Off First Character
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Working to make additionally Grammars for a yaml extension and we are having an issue where the first character of a string defined as string.unquoted.plain.out is split out into its own group of the same type.
Using the Inspect Editor Tokens and Scope developer tool we see the following


This make any type of match logic we try to inject into the source.yaml nearly impossible.
Has anyone else noticed this or have a way to fix it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the YAML extension with VS Code's Inspect Editor Tokens and Scope tool, then examine the relevant source.yaml grammar rules. Confirm whether the first character is assigned to a separate string.unquoted.plain.out scope and identify the grammar behavior involved. Done means the scope is not split and match or injection logic can target the full string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode, yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100