Initial checklist
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.
Initial checklist
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
.mdxfiles.Current solutions
Enabling the setting and configuring
.mdxfiles to be treated as markdown viain the workspace settings makes Visual Studio Code treat
.mdxfiles as markdown files which then causes the "Update Links On File Move" to also be applied to.mdxfiles.However, the downside is that
.mdxfiles 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
.mdxfiles.This should probably be possible as it already seems to work for
.mdxfiles if the association is changed to markdown.