usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
588 stars 32 forks source link

feat: add 'replace' config option #175

Closed ssalbdivad closed 1 year ago

ssalbdivad commented 1 year ago

This adds a config option to flexibly allow regex-based transformations of diagnostic messages. E.g. the following config:

{
    "errorLens.replace": [
        {
            "matcher": "foo (.*)",
            "message": "just $1"
        }
    ]
}

Would transform a diagnostic message "foo bar" to "just bar".

usernamehw commented 1 year ago

LGTM. Thanks.