Skip to content

Commit 8bf3530

Browse files
committed
Update Tree doesn't exist error message
1 parent f977610 commit 8bf3530

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/TreeSitter.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export function getTrees(source: vscode.TextDocument | vscode.Uri): trees {
2828
return docTrees;
2929
}
3030
}
31-
vscode.window.showInformationMessage(JSON.stringify("TextMate: TS Tree does not exist!"));
32-
vscode.window.showInformationMessage(JSON.stringify(source));
33-
vscode.window.showInformationMessage(JSON.stringify(trees));
31+
vscode.window.showInformationMessage(`TextMate: TreeSitter Tree does not exist!\nFile:\n${JSON.stringify(source)}\nTrees:\n${JSON.stringify(trees)}`);
3432
}
3533

3634
export function getRegexNode(source: vscode.TextDocument | vscode.Uri | trees | trees["regexTrees"], node: Parser.SyntaxNode | number): Parser.SyntaxNode {

0 commit comments

Comments
 (0)