facebook / sapling

A Scalable, User-Friendly Source Control System.

Home Page:https://sapling-scm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VS Code blame annotations invert "(you)"

ammario opened this issue · comments

Related: #660

Screenshot 2023-08-28 at 10 08 19 AM

The VS Code extension's inline blame only shows (you) when I'm not the author of a commit. I skimmed the extension source and the bug isn't obvious to me.

Interesting, the code seems pretty simple here:

function areYouTheAuthor(author: string) {
  const you = getUsername();
  return author.includes(you);
}

You might want to check what it's detecting your username to be, perhaps it's some short string that happens to be in the other commit's author string? There is a slight mismatch between the sources of this info: "you" comes from os.userInfo().username, not Sapling, but the commit's author comes from Sapling / GitHub.

Oh! I figured it out. My OS username is coder (generic since the team uses a reproducible environment) and everyone else uses a @coder.com for their commits except me.