Trying to open a TreeSitter grammar.json file freezes all JSON language features without error
https://github.com/RedCMD/Lag-Syntax-Highlighter/blob/main/_test/grammar.json
Steps to Reproduce:
- Create new file
- Assign JSON
- Copy-paste code snippet
- notice once the schema loads, all JSON language features stop working
Hover, format, intellisense, diagnostics etc
{
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
"name": "laggy-schema",
"rules": {
"json": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "REPEAT",
"content": {
"type": "BLANK"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Does this issue occur when all extensions are disabled?: Yes
Trying to open a TreeSitter
grammar.jsonfile freezes all JSON language features without errorhttps://github.com/RedCMD/Lag-Syntax-Highlighter/blob/main/_test/grammar.json
Steps to Reproduce:
Hover, format, intellisense, diagnostics etc
{ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json", "name": "laggy-schema", "rules": { "json": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "REPEAT", "content": { "type": "BLANK" } } } } } } } } } } } } } } } } } } }Does this issue occur when all extensions are disabled?: Yes