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

    To keep the user's choices somewhere other than local storage, override load() and save() rather than rebinding LocalStorageService, which every other consumer of it shares.

    Implements

    Index
    loaded: Deferred<void> = ...
    onDidChange: Event<string> = ...

    Fires with the id of the widget whose hidden state the user changed.

    onDidChangeEmitter: Emitter<string> = ...
    onDidReset: Event<void> = ...

    Fires when the user's choices are discarded and every item falls back to its default.

    onDidResetEmitter: Emitter<void> = ...
    overrides: Record<string, boolean> = {}

    Explicit user choices only, so items the user never touched follow isHiddenByDefault.

    ready: Promise<void> = ...

    Resolves once the user's stored choices are loaded; until then every item has its default state.

    storageService: LocalStorageService

    Hidden items hold across workspaces, and @theia/workspace scopes the bound StorageService per workspace.

    STORAGE_KEY: "sidePanel.hiddenItems" = 'sidePanel.hiddenItems'
    • Whether an item the user has neither hidden nor shown starts hidden. Override this to give an application its own defaults.

      Defaults are not limited to leaving one item visible per side the way the user's choices are, so an application can start every item on a side hidden. Expanding a side panel without naming a view can still open a hidden item, through the last active index or the first tab, and its tab then shows while it is current, the same as opening it by command.

      Parameters

      • widgetId: string

      Returns boolean