Skip to main content

get_current_cst_token

Function get_current_cst_token 

Source
pub fn get_current_cst_token(
    query: Query<'_, '_, (Entity, &CstTokens, &PositionComponent, &RopeC, &Source)>,
    commands: Commands<'_, '_>,
)
Expand description

Resolve the token at the request’s cursor (see token_at_cursor) into a TokenComponent. In whitespace, the token is empty and sits at the cursor, so completion text is inserted there and filters accept anything.