-
Notifications
You must be signed in to change notification settings - Fork 73
TitleBar
github-actions[bot] edited this page May 16, 2024
·
4 revisions
Page object for the title bar. Works only if the selected title bar type is 'custom'. Native title bar is not supported.
import { TitleBar } from 'vscode-extension-tester';
...
const titleBar = new TitleBar();
// 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();
const title = await titleBar.getTitle();
const controls = titleBar.getWindowControls();