Skip to content

Commit

Permalink
Merge pull request #116 from connorshea/add-css-lint-rule-to-hover
Browse files Browse the repository at this point in the history
Add CSS Lint Rule name to lint markers.
  • Loading branch information
aeschli authored Aug 22, 2018
2 parents 903559d + 60bde83 commit d330721
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 d330721

Please sign in to comment.