VS Code blame annotations invert "(you)"
ammario opened this issue · comments
Related: #660
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.