Skip to content

Commit 42c11af

Browse files
committed
Add a nicer message for comments on force pushed commits
Fixes #635
1 parent 90104b2 commit 42c11af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/view/gitContentProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ export class GitContentFileSystemProvider extends RepositoryFileSystemProvider {
9696
// Only show the error if we know it's not an outdated commit
9797
if (!this.getOutdatedChangeModelForFile(uri)) {
9898
vscode.window.showErrorMessage(
99-
`We couldn't find commit ${commit} locally. You may want to sync the branch with remote. Sometimes commits can disappear after a force-push`,
99+
vscode.l10n.t('We couldn\'t find commit {0} locally. You may want to sync the branch with remote. Sometimes commits can disappear after a force-push.', commit),
100100
);
101+
} else {
102+
vscode.window.showInformationMessage(vscode.l10n.t('We couldn\'t find commit {0}. Sometimes commits can disappear after a force-push.', commit));
101103
}
102104
}
103105
}

0 commit comments

Comments
 (0)