fix: opened files are not highlighted with tree sitter

This happens because the tree-sitter nodes and trees are inaccessible when the files are opened
This commit is contained in:
Akash Yadav
2023-10-15 18:38:43 +05:30
parent d5910c6fc0
commit f2cfd865e8
5 changed files with 74 additions and 71 deletions
@@ -74,7 +74,6 @@ abstract class TreeSitterLanguage(context: Context, lang: TSLanguage, type: Stri
langScheme.styles.forEach { tsTheme.putStyleRule(it.key, it.value.makeStyle()) }
analyzer.langScheme = languageScheme
analyzer.rerun()
}
}