A section in an empty custom view, see: https://code.visualstudio.com/api/extension-guides/tree-view#welcome-content

The welcome section contains two types of elements: text entries and buttons that can be bound to commands. The text sections can be accessed via [[getTextSections]], the buttons on the other hand via [[getButtons]]. This however looses the information of the order of the buttons and lines with respect to each other. This can be remedied by using [[getContents]], which returns both in the order that they are found (at the expense, that you now must use typechecks to find out what you got).

Hierarchy (view full)

Constructors

Properties

button$: ChainablePromiseElement<Element>
button$$: ChainablePromiseArray<Element[]>
buttonOrText$: ChainablePromiseElement<Element>
buttonOrText$$: ChainablePromiseArray<Element[]>
text$: ChainablePromiseElement<Element>
text$$: ChainablePromiseArray<Element[]>

Accessors

  • get elem(): ChainablePromiseElement<Element>
  • Base element of given page object

    Returns ChainablePromiseElement<Element>

  • get parent(): ChainablePromiseElement<Element>
  • Parent element of given page object

    Returns ChainablePromiseElement<Element>

Methods

  • Finds all text entries in the welcome content and returns each line as an element in an array.

    Returns Promise<string[]>

Generated using TypeDoc