Notification

Lookup
Section titled “Lookup”To get notifications outside the notifications center, one should use a Workbench object:
import { Workbench } from 'vscode-extension-tester';...const notifications = await new Workbench().getNotifications();const notification = notifications[0];Get Some Info
Section titled “Get Some Info”// get the messageconst message = await notification.getMessage();// get the type (error/warning/info)const type = await notification.getType();// get the source as string, if shownconst source = await notification.getSource();// find if there is an active progress barconst hasProgress = await notification.hasProgress();Take Action
Section titled “Take Action”// dismiss the notificationawait notification.dismiss();// expand the notification if it is collapsedawait notification.expand();// get available actions (buttons)const actions = await notification.getActions();// get an action's title (text)const title = await actions[0].getTitle();// take action (i.e. click a button with title)await notification.takeAction("Install All");