You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan Richter edited this page Apr 23, 2019
·
3 revisions
Look up the ActionsControl by title
Import and find the control through activity bar
import{ActivityBar,ActionsControl}from'vscode-extension-tester';
...
// get actions control for 'Manage'constcontrol: ActionsControl=newActivityBar().getGlobalAction('Manage');
Open action menu
Click the action control to open its context menu
constmenu=awaitcontrol.openActionMenu();
Get title
Get the control's title
consttitle=control.getTitle();
Open context menu
Left click on the control to open the context menu (in this case has the same effect as openActionMenu)