Skip to content

Publish same-file diagnostics under the client's URI - #312

Merged
mattn merged 1 commit into
masterfrom
fix-diag-uri-mismatch
Jul 8, 2026
Merged

Publish same-file diagnostics under the client's URI#312
mattn merged 1 commit into
masterfrom
fix-diag-uri-mismatch

Conversation

@mattn

@mattn mattn commented Jul 8, 2026

Copy link
Copy Markdown
Owner

When a linter reports the file being linted, efm rebuilt the URI with toURI, whose percent-encoding can differ from the client's (e.g. VSCode sends c%3A for the drive colon). Clients match diagnostics by exact URI, so such diagnostics were silently dropped. Compare decoded paths (case-insensitive on Windows) and reuse the client's URI when the diagnostic is for the linted file. Likely fixes #294. Adds a test.

@mattn
mattn merged commit fcd0e67 into master Jul 8, 2026
6 checks passed
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.

Problem with special characters in file name

1 participant