Type Alias FeatureState

FeatureState:
    | {
        id: string;
        kind: "document";
        matches: boolean;
        registrations: boolean;
    }
    | { id: string; kind: "workspace"; registrations: boolean }
    | { id: string; kind: "window"; registrations: boolean }
    | { kind: "static" }

Type declaration

  • { id: string; kind: "document"; matches: boolean; registrations: boolean }
    • id: string

      The features's id. This is usually the method names used during registration.

    • kind: "document"
    • matches: boolean

      A registration matches an open document.

    • registrations: boolean

      Has active registrations.

  • { id: string; kind: "workspace"; registrations: boolean }
    • id: string

      The features's id. This is usually the method names used during registration.

    • kind: "workspace"
    • registrations: boolean

      Has active registrations.

  • { id: string; kind: "window"; registrations: boolean }
    • id: string

      The features's id. This is usually the method names used during registration.

    • kind: "window"
    • registrations: boolean

      Has active registrations.

  • { kind: "static" }