mblode / mblode/vscode-twig-language
Statement Tags do not close
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 45
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
When typing, I expect that {% should automatically create the closing %} tag like {{ creates }}. This is not the case. Instead, I end up with {%} and no closing %.
I see in https://github.com/mblode/vscode-twig-language/blob/master/src/syntaxes/twig.tmLanguage#L757 that it should happen, but it doesn't.
I've tried to check other extensions for similar behavior that may be causing issues, but I can't find anything.
Contributor guide
No contributing guide indexed for this repository
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 at src/syntaxes/twig.tmLanguage around line 757 and inspect the statement-tag snippet alongside the working {{ snippet. Reproduce the behavior in VS Code, then verify that typing {% produces the intended closing %} tag without the incorrect {%} result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 76/100