mathiassoeholm / markdown-link-updater

20 stars 9 forks source link

Doesn't detect change from git mv #23

Closed s6mike closed 2 years ago

s6mike commented 2 years ago

Hi,

This is a great extension, but unfortunately the first thing I tried it with didn't work:

git mv docs/CONTRIBUTING.md CONTRIBUTING.md

This moves the file but lets git know about it and stages the change. In this case, the link to it in my README didn't update.

If I instead drag and drop it in the VSCode UI, your extension works as expected.

Not that big a deal but thought I'd let you know in case it's easy to fix :)

mathiassoeholm commented 2 years ago

There's unfortunately nothing I can do about it. The plugin works by reacting to events triggered by VS Code. VS Code will not get an event if you make changes outside the editor.

There might be a way to monitor changes outside of VS Code, that I don't know about. But it's definitely outside the scope of this plugin.

Thanks for taking the time to report it nonetheless :-)