Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected doOpenNode(node: TreeNode): void {
if (FileNode.is(node)) {
open(this.openerService, node.uri);
} else {
super.doOpenNode(node);
}
}
previewNode(node: TreeNode): void {
if (FileNode.is(node)) {
open(this.openerService, node.uri, { mode: 'reveal', preview: true });
}
}