TabGroups

interface TabGroups(source)

Represents the main editor area which consists of multiple groups which contain tabs.

Online Documentation

Properties

Link copied to clipboard
abstract external val activeTabGroup: TabGroup

The currently active group.

Link copied to clipboard
abstract external val all: ReadonlyArray<TabGroup>

All the groups within the group container.

Link copied to clipboard

An event which fires when tab groups have changed.

Link copied to clipboard
abstract external val onDidChangeTabs: Event<TabChangeEvent>

An event which fires when tabs have changed.

Functions

Link copied to clipboard
abstract external fun close(tabGroup: ReadonlyArray<TabGroup>, preserveFocus: Boolean = definedExternally): PromiseLike<JsBoolean>

Closes the tab group. This makes the tab group object invalid and the tab group should no longer be used for further actions.

abstract external fun close(tab: ReadonlyArray<Tab>, preserveFocus: Boolean = definedExternally): PromiseLike<JsBoolean>

Closes the tab. This makes the tab object invalid and the tab should no longer be used for further actions. Note: In the case of a dirty tab, a confirmation dialog will be shown which may be cancelled. If cancelled the tab is still valid