Skip to content

Commit

Permalink
Fix #66325
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jan 25, 2019
1 parent e5f18fe commit 2cddb77
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,12 @@ export class MarkersPanel extends Panel implements IMarkerFilterController {

private onDidChangeModel(resources: URI[]) {
for (const resource of resources) {
this.markersViewState.remove(resource);
const resourceMarkers = this.markersWorkbenchService.markersModel.getResourceMarkers(resource);
if (resourceMarkers) {
for (const marker of resourceMarkers.markers) {
this.markersViewState.add(marker);
}
} else {
this.markersViewState.remove(resource);
}
}
this.currentResourceGotAddedToMarkersData = this.currentResourceGotAddedToMarkersData || this.isCurrentResourceGotAddedToMarkersData(resources);
Expand Down

0 comments on commit 2cddb77

Please sign in to comment.