Closed banacorn closed 3 years ago
https://github.com/Xapphire13/tree-sitter-syntax-visualizer/blob/d72e5d70ac75167e9ac42220d6751ea7cf9d2ee2/lib/tree-sitter-panel.tsx#L65-L68
Currently the visualizer can't visualize anything. Because the property document have been replaced by tree.
document
tree
this.setState({ tsDocument: editor.languageMode.tree, selectedNode: null });
Sorry that this should've been a PR, but I'm kinda in a rush. I'll see if I have the time to fix that.
https://github.com/Xapphire13/tree-sitter-syntax-visualizer/blob/d72e5d70ac75167e9ac42220d6751ea7cf9d2ee2/lib/tree-sitter-panel.tsx#L65-L68
Currently the visualizer can't visualize anything. Because the property
document
have been replaced bytree
.Sorry that this should've been a PR, but I'm kinda in a rush. I'll see if I have the time to fix that.