Vault.rename(file, path) is not updating existing links

Steps to reproduce

const view = this.app.workspace.getActiveViewOfType(MarkdownView);
const newPath = "hoge.md";
this.app.vault.rename(view.file, newPath);

Expected result

Renames file and updates all links, same behavior as just renaming manually

Actual result

Renames the file, but existing links aren’t updated to point to the new file

Environment

  • Operating system: macOS 11.2
  • Obsidian version: v0.10.12

Post API related questions to in the API sections of the forum or on discord in the plugin channel

But this isn’t a question, this is a bug report.

We don’t keep API related questions/problems here.
I don’t even recall vault.rename being part of the API.