woldner / VisualLinter

Visual Studio Linter using ESLint.
MIT License
25 stars 3 forks source link

Color code errors and warnings in IDE #10

Closed jpreese closed 7 years ago

jpreese commented 7 years ago

Installed product versions

Description

When linting, the color used in the IDE is always green. Regardless if the linting issue is an error or a warning. The Output window does show this distinction.

Steps to recreate

  1. Add a linting rule as a warning and a linting rule as an error
  2. Violate these rules within code

Current behavior

The IDE will display both linting issues as a green line.

Expected behavior

The error should be a red line, where as the warning should be another.

woldner commented 7 years ago

Thank you for your report @jpreese!

This has already been addressed for the error list (as you mention) in pull request #2 (courtesy of @philwsac). I've gone ahead and added the same distinction in the buffer depending on rule severity. You can view the changes in this commit: 99340c79acdeb643ec746c4b9d0a81f9d74e96da