HEAD label appears on tab (#76329)

This commit is contained in:
Xhulio Hasani 2019-07-03 03:12:32 -04:00 committed by João Moreno
parent 8e47e98e08
commit b462757eb6

View file

@ -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<void>('vscode.open', HEAD, opts);
return await commands.executeCommand<void>('vscode.open', HEAD, opts, title);
}
@command('git.openChange')