Johannes Rieken
2021-11-11 18:12:04 +01:00
parent cfebd1d0be
commit bf523f8b21
2 changed files with 11 additions and 10 deletions

View File

@@ -37,9 +37,14 @@ export class MainThreadDiagnostics implements MainThreadDiagnosticsShape {
private _forwardMarkers(resources: readonly URI[]): void {
const data: [UriComponents, IMarkerData[]][] = [];
for (const resource of resources) {
const markerData = this._markerService.read({ resource }).filter(marker => !this._activeOwners.has(marker.owner));
if (markerData.length > 0) {
data.push([resource, markerData]);
const allMarkerData = this._markerService.read({ resource });
if (allMarkerData.length === 0) {
data.push([resource, []]);
} else {
const forgeinMarkerData = allMarkerData.filter(marker => !this._activeOwners.has(marker.owner));
if (forgeinMarkerData.length > 0) {
data.push([resource, forgeinMarkerData]);
}
}
}
if (data.length > 0) {