ProblemsView

Lookup
Section titled “Lookup”import { BottomBarPanel, ProblemsView } from 'vscode-extension-tester';...const problemsView = await new BottomBarPanel().openProblemsView();Set a Filter
Section titled “Set a Filter”Fill in a string into the filter box.
await problemsView.setFilter("**/filter/glob*");Clear the Filter
Section titled “Clear the Filter”Clear the filter box.
await problemsView.clearFilter();Get the Count Badge
Section titled “Get the Count Badge”Get a handle for the badge showing the number of problems.
const badge = await problemsView.getCountBadge();const count = await badge.getText();Collapse All Markers
Section titled “Collapse All Markers”await problemsView.collapseAll();Get Handles to All Markers
Section titled “Get Handles to All Markers”import { MarkerType } from 'vscode-extension-tester';...// get all markers regardless of typeconst markers = await problemsView.getAllVisibleMarkers(MarkerType.Any);// get all error markersconst errors = await problemsView.getAllVisibleMarkers(MarkerType.Error);// get all warning markersconst errors = await problemsView.getAllVisibleMarkers(MarkerType.Warning);// get all file markersconst errors = await problemsView.getAllVisibleMarkers(MarkerType.File);Note: getAllMarkers(type) is a deprecated alias of getAllVisibleMarkers(type), use the latter.
Marker
Section titled “Marker”Markers represent items displayed in the problems view. Each row corresponds to one Marker item.
Retrieval
Section titled “Retrieval”const markers = await problemsView.getAllVisibleMarkers(MarkerType.Any);const marker = markers[0];Actions
Section titled “Actions”// get the marker typeconst type = await marker.getType();// get the text of the marker rowconst text = await marker.getText();// get the label of the markerconst text = await marker.getLabel();// expand the marker if availableawait marker.toggleExpand(true);// collapseawait marker.toggleExpand(false);