-
Notifications
You must be signed in to change notification settings - Fork 73
ActionsControl
github-actions[bot] edited this page Apr 23, 2024
·
3 revisions
Import and find the control through activity bar
import { ActivityBar, ActionsControl } from 'vscode-extension-tester';
...
// get actions control for 'Manage'
const control: ActionsControl = new ActivityBar().getGlobalAction('Manage');
Click the action control to open its context menu
const menu = await control.openActionMenu();
Get the control's title
const title = control.getTitle();
Left click on the control to open the context menu (in this case has the same effect as openActionMenu)
const menu = await control.openContextMenu();