Hello I am wondering what is the best method for showing and hide one single option in the context menu.
I see there is a shouldDisplay(event) https://atom.io/docs/api/latest/ContextMenuManager#instance-add
(Optional) A Function that is called to determine whether to display this item on a given context menu deployment.
I am unsure how to approach this problem. Any examples of how to use the shouldDisplay(event)???