mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user