Skip to content

TitleBar

github-actions[bot] edited this page May 16, 2024 · 4 revisions

titleBar

Page object for the title bar. Works only if the selected title bar type is 'custom'. Native title bar is not supported.

Lookup

import { TitleBar } from 'vscode-extension-tester';
...
const titleBar = new TitleBar();

Item Retrieval

// find if an item with title exists
const exists = await titleBar.hasItem("File");
// get a handle for an item
const item = await titleBar.getItem("File");
// get all displayed items
const items = await titleBar.getItems();

Get Displayed Title

const title = await titleBar.getTitle();

Get Window Controls Handle

const controls = titleBar.getWindowControls();