Skip to main content

offered_on

Function offered_on 

Source
pub fn offered_on(node: &CommandNode, surface: Surface) -> bool
Expand description

Whether a projection on this surface should offer the command at all.

A completion asks this before it offers a candidate, so an unavailable command is not suggested prominently — and the reason it carries is what a shell that can show one displays.