mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
🖊 Include branch name in commit button popup (#167827)
* 🖊 Include branch name in commit button popup Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🖊 Include branch name in "Publish" button popup Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
@@ -174,9 +174,12 @@ export class CommitCommandsCenter {
|
||||
const icon = alwaysPrompt ? '$(lock)' : alwaysCommitToNewBranch ? '$(git-branch)' : undefined;
|
||||
|
||||
// Tooltip (default)
|
||||
let tooltip = !alwaysCommitToNewBranch ?
|
||||
l10n.t('Commit Changes') :
|
||||
l10n.t('Commit Changes to New Branch');
|
||||
const branch = this.repository.HEAD?.name;
|
||||
let tooltip = alwaysCommitToNewBranch ?
|
||||
l10n.t('Commit Changes to New Branch') :
|
||||
branch ?
|
||||
l10n.t('Commit Changes on \'{0}\'', branch) :
|
||||
l10n.t('Commit Changes');
|
||||
|
||||
// Tooltip (in progress)
|
||||
if (this.repository.operations.isRunning(OperationKind.Commit)) {
|
||||
|
||||
Reference in New Issue
Block a user