Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow validation of extensionless links to non-markdown syntax files #189

Open
twhittock-disguise opened this issue Jul 6, 2024 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality

Comments

@twhittock-disguise
Copy link

When working with "markdown.preferredMdPathExtensionStyle": "removeExtension" set, and a mix of MDX and MD files, it is not possible to validate and autocomplete links to MDX files from MD files using this language service.

The root cause, at least for validation, seems to be

export function tryAppendMarkdownFileExtension(config: LsConfiguration, linkUri: URI): URI | undefined {

This function requires all extensionless links in MD files to be handled by the language service. However, MDX files can't be handled by this service.

Perhaps a new setting ("markdown.knownMdExtensions": ["md", "mdx"]) could be added to allow link validation to find the file?

@mjbvz mjbvz added the feature-request Request for new features or functionality label Jul 8, 2024
@mjbvz
Copy link
Contributor

mjbvz commented Oct 29, 2024

Does markdownFileExtensions handle this?

It's not configurable via vscode directly at the moment

@mjbvz mjbvz self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants