redhat-developer / redhat-developer/vscode-yaml

The extension breaks yaml syntax highlighting

Open
#993 2 comments 2 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

Describe the bug

I have a .yml file open. While the extension is disabled, the syntax highlighitng works fine.
Once I enable this extension, the whole file turns white (no highlighting).

If I try to execute "Inspect editor tokens", the message "no TM grammar registered" appears.

Expected Behavior

Syntax should still be highlighted.

Current Behavior

It is not

Steps to Reproduce

  1. disable extension
  2. open yaml file
  3. enable extension

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Arch linux with vscode 1.84.2 and 1.14.0 extension

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

Reproduce the problem in VS Code on Linux by opening a .yml file, disabling and then enabling the extension, and running “Inspect editor tokens.” Investigate the extension's YAML grammar registration; done means YAML syntax highlighting remains available and token inspection no longer reports that no TM grammar is registered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode, yaml
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.