Fix #104828
This commit is contained in:
parent
860ed7b6cf
commit
0d669335de
|
@ -333,7 +333,7 @@ export class MarkersView extends ViewPane implements IMarkerFilterController {
|
|||
|
||||
private setTreeSelection(): void {
|
||||
if (this.tree && this.tree.getSelection().length === 0) {
|
||||
const firstMarker = this.markersWorkbenchService.markersModel.resourceMarkers[0].markers[0];
|
||||
const firstMarker = this.markersWorkbenchService.markersModel.resourceMarkers[0]?.markers[0];
|
||||
if (firstMarker) {
|
||||
this.tree.setFocus([firstMarker]);
|
||||
this.tree.setSelection([firstMarker]);
|
||||
|
|
Loading…
Reference in a new issue