redhat-developer / redhat-developer/vscode-yaml
The extension breaks yaml syntax highlighting
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
- disable extension
- open yaml file
- enable extension
Environment
- Windows
- Mac
- Linux
- other (please specify)
Arch linux with vscode 1.84.2 and 1.14.0 extension
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
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