-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue-742: Clicks not being intercepted in SideBarView and BottomBarP…
…annel (#1001) Signed-off-by: Dominik Jelinek <[email protected]>
- Loading branch information
Showing
5 changed files
with
65 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,64 @@ | ||
![problems](https://user-images.githubusercontent.com/4181232/56641152-fe49ce00-6674-11e9-9a5d-096a61c0b835.png) | ||
|
||
#### Lookup | ||
|
||
```typescript | ||
import { BottomBarPanel, ProblemsView } from 'vscode-extension-tester'; | ||
... | ||
const problemsView = await new BottomBarPanel().openProblemsView(); | ||
``` | ||
|
||
#### Set Filter | ||
#### Set a Filter | ||
|
||
Fill in a string into the filter box. | ||
|
||
```typescript | ||
await problemsView.setFilter('**/filter/glob*'); | ||
``` | ||
|
||
#### Collapse All Markers | ||
|
||
```typescript | ||
await problemsView.collapseAll(); | ||
``` | ||
|
||
#### Get Handles to All Markers | ||
|
||
```typescript | ||
import { MarkerType } from 'vscode-extension-tester'; | ||
... | ||
// get all markers regardless of type | ||
const markers = await problemsView.getAllMarkers(MarkerType.Any); | ||
const markers = await problemsView.getAllVisibleMarkers(MarkerType.Any); | ||
// get all error markers | ||
const errors = await problemsView.getAllMarkers(MarkerType.Error); | ||
const errors = await problemsView.getAllVisibleMarkers(MarkerType.Error); | ||
// get all warning markers | ||
const errors = await problemsView.getAllMarkers(MarkerType.Warning); | ||
const errors = await problemsView.getAllVisibleMarkers(MarkerType.Warning); | ||
// get all file markers | ||
const errors = await problemsView.getAllMarkers(MarkerType.File); | ||
const errors = await problemsView.getAllVisibleMarkers(MarkerType.File); | ||
``` | ||
|
||
### Marker | ||
Markers represent items displayed in the problems view. | ||
|
||
Markers represent items displayed in the problems view. Each row corresponds to one Marker item. | ||
|
||
#### Retrieval | ||
``` typescript | ||
const markers = await problemsView.getAllMarkers(MarkerType.Any); | ||
|
||
```typescript | ||
const markers = await problemsView.getAllVisibleMarkers(MarkerType.Any); | ||
const marker = markers[0]; | ||
``` | ||
|
||
#### Actions | ||
``` typescript | ||
|
||
```typescript | ||
// get the marker type | ||
const type = await marker.getType(); | ||
// get the text of the marker | ||
// get the text of the marker row | ||
const text = await marker.getText(); | ||
// get the label of the marker | ||
const text = await marker.getLabel(); | ||
// expand the marker if available | ||
await marker.toggleExpand(true); | ||
// collapse | ||
await marker.toggleExpand(false); | ||
``` | ||
``` |