-
Notifications
You must be signed in to change notification settings - Fork 77
ProblemsView
Jan Richter edited this page Apr 24, 2019
·
3 revisions
import { BottomBarPanel, ProblemsView } from 'vscode-extension-tester';
...
const problemsView = await new BottomBarPanel().openProblemsView();
Fill in a string into the filter box.
await problemsView.setFilter('**/filter/glob*');
await problemsView.collapseAll();
import { MarkerType } from 'vscode-extension-tester';
...
// get all markers regardless of type
const markers = await problemsView.getAllMarkers(MarkerType.Any);
// get all error markers
const errors = await problemsView.getAllMarkers(MarkerType.Error);
// get all warning markers
const errors = await problemsView.getAllMarkers(MarkerType.Warning);
// get all file markers
const errors = await problemsView.getAllMarkers(MarkerType.File);
Markers represent items displayed in the problems view.
const markers = await problemsView.getAllMarkers(MarkerType.Any);
const marker = markers[0];
// get the marker type
const type = await marker.getType();
// get the text of the marker
const text = await marker.getText();
// expand the marker if available
await marker.toggleExpand(true);
// collapse
await marker.toggleExpand(false);