Skip to content

Commit

Permalink
Add CSS Lint Rule name to lint markers.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Aug 21, 2018
1 parent 903559d commit 60bde83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/cssValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export class CSSValidation {
return <Diagnostic>{
code: marker.getRule().id,
source: document.languageId,
message: marker.getMessage(),
message: `${marker.getMessage()} (${marker.getRule().id})`,
severity: marker.getLevel() === nodes.Level.Warning ? DiagnosticSeverity.Warning : DiagnosticSeverity.Error,
range: range
};
}

return entries.filter(entry => entry.getLevel() !== nodes.Level.Ignore).map(toDiagnostic);
}
}
}

0 comments on commit 60bde83

Please sign in to comment.