ppeszko / vscode-proselint

Proselint support for vscode
24 stars 6 forks source link

Error reported on wrong column #4

Open mjy9088 opened 2 years ago

mjy9088 commented 2 years ago

Installed extension version: v0.0.4

image

test file content (test.txt)

This is a test ... <- warning

This is a test ... <- warning

proselint test.txt output

test.txt:1:17: typography.symbols.ellipsis '...' is an approximation, use the ellipsis symbol '…'.
test.txt:3:17: typography.symbols.ellipsis '...' is an approximation, use the ellipsis symbol '…'.

proselint --json output (formatted)

{
    "data": {
        "errors": [
            {
                "check": "typography.symbols.ellipsis",
                "column": 17,
                "end": 19,
                "extent": 2,
                "line": 1,
                "message": "'...' is an approximation, use the ellipsis symbol '\u2026'.",
                "replacements": null,
                "severity": "warning",
                "start": 17
            },
            {
                "check": "typography.symbols.ellipsis",
                "column": 17,
                "end": 50,
                "extent": 2,
                "line": 3,
                "message": "'...' is an approximation, use the ellipsis symbol '\u2026'.",
                "replacements": null,
                "severity": "warning",
                "start": 48
            }
        ]
    },
    "status": "success"
}
TranquilMarmot commented 1 year ago

I noticed this as well. Every error is reported at the end of the line that it occurs on, which makes the extension pretty hard to use.