提交 904bd6e5 编写于 作者: J Johannes Rieken

only show errors and warnings in explorer, #44141

上级 cc11eb00
...@@ -21,7 +21,7 @@ export interface IMarkerService { ...@@ -21,7 +21,7 @@ export interface IMarkerService {
remove(owner: string, resources: URI[]): void; remove(owner: string, resources: URI[]): void;
read(filter?: { owner?: string; resource?: URI; take?: number; }): IMarker[]; read(filter?: { owner?: string; resource?: URI; severities?: number, take?: number; }): IMarker[];
onMarkerChanged: Event<URI[]>; onMarkerChanged: Event<URI[]>;
} }
......
...@@ -30,7 +30,10 @@ class MarkersDecorationsProvider implements IDecorationsProvider { ...@@ -30,7 +30,10 @@ class MarkersDecorationsProvider implements IDecorationsProvider {
} }
provideDecorations(resource: URI): IDecorationData { provideDecorations(resource: URI): IDecorationData {
let markers = this._markerService.read({ resource }); let markers = this._markerService.read({
resource,
severities: MarkerSeverity.Error | MarkerSeverity.Warning
});
let first: IMarker; let first: IMarker;
for (const marker of markers) { for (const marker of markers) {
if (!first || marker.severity > first.severity) { if (!first || marker.severity > first.severity) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册