From b462757eb61c4d969224e975af00fd3827e3b789 Mon Sep 17 00:00:00 2001 From: Xhulio Hasani Date: Wed, 3 Jul 2019 03:12:32 -0400 Subject: [PATCH] HEAD label appears on tab (#76329) --- extensions/git/src/commands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 85ec8ce866a..1b5ea0447cf 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -738,6 +738,8 @@ export class CommandCenter { } const HEAD = await this.getLeftResource(resource); + const basename = path.basename(resource.resourceUri.fsPath); + const title = `${basename} (HEAD)`; if (!HEAD) { window.showWarningMessage(localize('HEAD not available', "HEAD version of '{0}' is not available.", path.basename(resource.resourceUri.fsPath))); @@ -748,7 +750,7 @@ export class CommandCenter { preview }; - return await commands.executeCommand('vscode.open', HEAD, opts); + return await commands.executeCommand('vscode.open', HEAD, opts, title); } @command('git.openChange')