Extend tree view to add class on active file


Hey all

I’m developing a package to diff via Meld.

Along the tabs are context menus, ‘Diff with Open Tab’ and ‘Diff with Active File’. Now with the tabs I can use the selector .tab-bar .tab:not(.active) so that Diff with Active File is not displayed when you have right clicked the active file/tab.

Now having a look in the dev console at the elements I see no similar css class in the tree view, is this correct? All I see is .selected

So should this class be added by Atom? Or maybe I can extend my plugin to add a css class myself?

Or is there another way to block the menu from opening in coffee? The logic to tell if right clicked file is active is easy then.