vscode-proselint icon indicating copy to clipboard operation
vscode-proselint copied to clipboard

Error reported on wrong column

Open mjy9088 opened this issue 3 years ago • 1 comments

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"
}

mjy9088 avatar Feb 09 '22 12:02 mjy9088

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.

TranquilMarmot avatar Nov 12 '22 19:11 TranquilMarmot