Skip to content

mdx.validate.validateFileLinks does not show diagnostics #465

@karlhorky

Description

@karlhorky

Initial checklist

Affected packages and versions

MDX VS Code Extension v1.8.9

Link to runnable example

No response

Steps to reproduce

  1. Open app/message.mdx in the reproduction repo (code below)
  2. Observe that none of the 4 "incorrect path" permutations for the non-existent file mdx2.png report any diagnostics (both images and links, relative paths starting with ./ and "bare" paths without any ./)
## Links

[link relative](./mdx.png) and [link bare](mdx.png)

[link relative - incorrect path](./mdx2.png) and [link bare - incorrect path](mdx2.png)

## Images

![image relative](./mdx.png) and ![image bare](mdx.png)

![image relative - incorrect path](./mdx2.png) and ![image bare - incorrect path](mdx2.png)

Screenshot 2024-08-08 at 15 08 54

Expected behavior

Diagnostics and problems should be reported for non-existent files when mdx.validate.validateFileLinks is set to hint, warning or error

Actual behavior

Diagnostics and problems are not reported for non-existent files when mdx.validate.validateFileLinks is set to hint, warning or error

Runtime

No response

Package manager

No response

OS

macOS

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions