-
-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Problem
When moving files in Visual Studio Code, there is the option "Markdown > Update Links On File Move" (markdown.updateLinksOnFileMove.enabled) as well as "Markdown > Update Links On File Move: Enable For Directories" (markdown.updateLinksOnFileMove.enabled).
When enabled, it assists when moving/renaming .md files in Visual Studio Code as it updates links/references automatically according to the changed location - either for the referenced file or for the moved file referencing others.
This does not work for .mdx files.
Current solutions
Enabling the setting and configuring .mdx files to be treated as markdown via
"files.associations": {
"*.mdx": "markdown"
},in the workspace settings makes Visual Studio Code treat .mdx files as markdown files which then causes the "Update Links On File Move" to also be applied to .mdx files.
However, the downside is that .mdx files then no longer have the assistance/syntax highlighting etc. from the VS Code MDX extension.
Proposed solutions
It would be great if the MDX extension would have similar options or just "remap" that VS Code core functionality so that this functionality is also applied to .mdx files.
This should probably be possible as it already seems to work for .mdx files if the association is changed to markdown.