Skip to content

Commit

Permalink
Fix #63710
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Nov 29, 2018
1 parent 462dc7f commit 807efa6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as paths from 'vs/base/common/paths';
import { URI } from 'vs/base/common/uri';
import { Range, IRange } from 'vs/editor/common/core/range';
import { IMarker, MarkerSeverity, IRelatedInformation } from 'vs/platform/markers/common/markers';
import { groupBy, flatten, isFalsyOrEmpty } from 'vs/base/common/arrays';
import { isFalsyOrEmpty } from 'vs/base/common/arrays';
import { values } from 'vs/base/common/map';
import { memoize } from 'vs/base/common/decorators';
import { Emitter, Event } from 'vs/base/common/event';
Expand Down Expand Up @@ -147,9 +147,7 @@ export class MarkersModel {
let relatedInformation: RelatedInformation[] | undefined = undefined;

if (rawMarker.relatedInformation) {
const groupedByResource = groupBy(rawMarker.relatedInformation, compareMarkersByUri);
groupedByResource.sort((a, b) => compareUris(a[0].resource, b[0].resource));
relatedInformation = flatten(groupedByResource).map(r => new RelatedInformation(resource, rawMarker, r));
relatedInformation = rawMarker.relatedInformation.map(r => new RelatedInformation(resource, rawMarker, r));
}

return new Marker(rawMarker, relatedInformation);
Expand Down

0 comments on commit 807efa6

Please sign in to comment.