mirror of
https://github.com/Microsoft/vscode
synced 2024-09-12 21:24:38 +00:00
Git - Fix regression with Commit action button icon (#156417)
Fix regression with Commit action button icon
This commit is contained in:
parent
e210bbfea4
commit
d01945923c
|
@ -111,10 +111,6 @@ export class ActionButtonCommand {
|
|||
}
|
||||
|
||||
// Commit
|
||||
let commandArg = '';
|
||||
let title = localize('scm button commit title', "{0} Commit", '$(check)');
|
||||
let tooltip = this.state.isCommitInProgress ? localize('scm button committing tooltip', "Committing Changes...") : localize('scm button commit tooltip', "Commit Changes");
|
||||
|
||||
const config = workspace.getConfiguration('git', Uri.file(this.repository.root));
|
||||
const postCommitCommand = config.get<string>('postCommitCommand');
|
||||
|
||||
|
@ -127,6 +123,10 @@ export class ActionButtonCommand {
|
|||
// Icon
|
||||
const icon = alwaysPrompt ? '$(lock)' : alwaysCommitToNewBranch ? '$(git-branch)' : undefined;
|
||||
|
||||
let commandArg = '';
|
||||
let title = localize('scm button commit title', "{0} Commit", icon ?? '$(check)');
|
||||
let tooltip = this.state.isCommitInProgress ? localize('scm button committing tooltip', "Committing Changes...") : localize('scm button commit tooltip', "Commit Changes");
|
||||
|
||||
// Title, tooltip
|
||||
switch (postCommitCommand) {
|
||||
case 'push': {
|
||||
|
|
Loading…
Reference in a new issue