Skip to content

Add CSS Lint Rule name to lint markers.#116

Merged
aeschli merged 1 commit intomicrosoft:masterfrom
connorshea:add-css-lint-rule-to-hover
Aug 22, 2018
Merged

Add CSS Lint Rule name to lint markers.#116
aeschli merged 1 commit intomicrosoft:masterfrom
connorshea:add-css-lint-rule-to-hover

Conversation

@connorshea
Copy link
Copy Markdown
Contributor

Resolves microsoft/vscode#56925

Before:
screen shot 2018-08-21 at 2 16 06 pm
screen shot 2018-08-21 at 2 16 15 pm

After:
screen shot 2018-08-21 at 2 10 55 pm
screen shot 2018-08-21 at 2 11 09 pm

The rule name doesn't include the css.lint.* prefix, but that isn't included in the Rule object that marker.getRule() returns. That can be worked around using document.languageId but I'm fairly sure that'd break on some edge cases.

@aeschli aeschli merged commit d330721 into microsoft:master Aug 22, 2018
@aeschli
Copy link
Copy Markdown
Collaborator

aeschli commented Aug 22, 2018

Thanks @connorshea !

@aeschli aeschli added this to the August 2018 milestone Aug 22, 2018
@connorshea connorshea deleted the add-css-lint-rule-to-hover branch September 5, 2018 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make CSS linting error show rule name

2 participants