Skip to content

Support "Update Links on file Move" in Visual Studio Code to support assistance when moving/renaming MDX files #519

@ceisele-r

Description

@ceisele-r

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.

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