Right now there are limited possible results for the filtering on an action in the action system. You can return true or false (with some context), but we should consider expanding this to be an enum for more things (in the context menu, in the main menu, in the command palette, etc)