redhat-developer / redhat-developer/vscode-yaml

Language Textmate Scope Splits Off First Character

Open
#789 2 comments 0 reactions 0 assignees View on GitHub

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

image

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.