Skip to content

css-unused-selector: Add to message which selector is unused #5252

@dummdidumm

Description

@dummdidumm

Is your feature request related to a problem? Please describe.
The css-unused-selector warning message does not contain the name of the unused selector. Adding this would help in scenarios like svelte-check where people do not see the code but only get a list of warnings/errors.

Describe the solution you'd like
Enhancing the message like this: Unused CSS selector ".bla"

Describe alternatives you've considered
Infer the name from start / end, but this does not map back to original code in a good way (if people are using preprocessors like less/scss)

How important is this feature to you?
Nice to have, not super important but I think it's implemented quickly since you already have the start/end position.

Additional context
Related ticket in language-tools: sveltejs/language-tools#434

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions