For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /debug-utilities/classes/DiagnosticsTab.md.

Class: DiagnosticsTab experimental

Beta

Represents a tab that is displayed in the live diagnostics panel of the debugger. It can contain various data including 'DiagnosticsViews' which are used to display live stats data in the form of graphs or tables.

Properties

tabName

readonly tabName: string

Beta

Remarks

The name of the tab. This determines the name shown in the live diagnostics section of the Minecraft VS Code debugger extension list.


views

readonly views: DiagnosticsView[]

Beta

Remarks

The list of views currently associated and displayed in this tab.

Methods

addView()

addView(view): void

Beta

Parameters

view

DiagnosticsView

The existing view to add to this tab.

Returns

void

Remarks

Registers an existing diagnostics view under the given tab for display in the live diagnostics.


containsView()

containsView(view): boolean

Beta

Parameters

view

DiagnosticsView

Returns

boolean

Remarks

Returns whether the given view is currently registered and used by this tab.


removeView()

removeView(view): void

Beta

Parameters

view

DiagnosticsView

The DiagnosticsView instance to remove.

Returns

void

Remarks

Removes a diagnostics view from this tab. It will no longer be rendered.