-
Notifications
You must be signed in to change notification settings - Fork 78
SideBarView
Jan Richter edited this page Apr 24, 2019
·
3 revisions
import { ActivityBar, SideBarView } from 'vscode-extension-tester';
// to look up the currently open view (if any is open)
const view = new SideBarView();
// to open a specific view and look it up
const control = await new ActivityBar().getViewControl('Explorer');
const view1 = await control.openView();
// to get the title part
const titlePart = await view.getTitlePart();
// to get the content part
const content = await view.getContent();