Theia API Documentation v1.73.0
    Preparing search index...

    Registers commands + menu items for the anchored "Filter" popup opened from the Extensions search bar. Both kinds of filter go through the search query:

    • Per-contribution-type toggles insert/remove the contribution's searchToken (e.g. @mcp). The popup behaves as an "include this type" filter: with nothing ticked no type token is present and every contribution is shown; ticking a type narrows the results to it. Multiple types compose (@mcp @skills).
    • Mode shortcuts insert/remove the existing @installed / @builtin / @recommended token, which the view container interprets to switch widgets. Modes are mutually exclusive: clicking one replaces any previously selected mode.

    Both kinds compose freely in the query (e.g. @installed @mcp shows only installed MCP servers), and clearing the query (Clear Search Results) automatically resets both.

    Implements

    Index

    Constructors

    Properties

    modeEntries: readonly ModeFilterEntry[] = ...

    Methods

    • Rebuilds the query, keeping the free-text remainder intact while swapping in the desired mode and type tokens. Tokens are emitted in a stable order (mode first, then types, then free text) so repeated toggles produce a tidy query.

      Parameters

      • update: { modeToken?: string; typeTokens?: ReadonlySet<string> }

      Returns void

    • Toggles whether the given type is included by the filter. Nothing ticked means "no filter" (all types shown); ticking a type adds its token so the results narrow to it, and ticking a second type widens the selection to both. Unticking the last type returns to "no filter".

      Parameters

      • token: string

      Returns void