Procházet zdrojové kódy

Allows confirm toggle on confirm step

Shortens confirm toggle tooltips
main
Eric Amodio před 5 roky
rodič
revize
c7774fbe5e
2 změnil soubory, kde provedl 5 přidání a 6 odebrání
  1. +3
    -3
      src/commands/gitCommands.ts
  2. +2
    -3
      src/commands/quickCommand.ts

+ 3
- 3
src/commands/gitCommands.ts Zobrazit soubor

@ -80,7 +80,7 @@ export class GitCommandsCommand extends Command {
dark: Container.context.asAbsolutePath('images/dark/icon-check.svg') as any,
light: Container.context.asAbsolutePath('images/light/icon-check.svg') as any
},
tooltip: 'Will ask for confirmation at the end (click to toggle)'
tooltip: 'Will confirm'
};
static readonly WillConfirmForced: QuickInputButton = {
@ -88,7 +88,7 @@ export class GitCommandsCommand extends Command {
dark: Container.context.asAbsolutePath('images/dark/icon-check.svg') as any,
light: Container.context.asAbsolutePath('images/light/icon-check.svg') as any
},
tooltip: 'Will ask for confirmation at the end (cannot be changed)'
tooltip: 'Will always confirm'
};
static readonly WillSkipConfirm: QuickInputButton = {
@ -96,7 +96,7 @@ export class GitCommandsCommand extends Command {
dark: Container.context.asAbsolutePath('images/dark/icon-no-check.svg') as any,
light: Container.context.asAbsolutePath('images/light/icon-no-check.svg') as any
},
tooltip: 'Will NOT ask for confirmation at the end (click to toggle)'
tooltip: 'Skips confirm'
};
};

+ 2
- 3
src/commands/quickCommand.ts Zobrazit soubor

@ -1,5 +1,5 @@
'use strict';
import { InputBox, QuickInputButton, QuickInputButtons, QuickPick, QuickPickItem } from 'vscode';
import { InputBox, QuickInputButton, QuickPick, QuickPickItem } from 'vscode';
import { Directive, DirectiveQuickPickItem } from '../quickpicks';
import { Container } from '../container';
@ -149,8 +149,7 @@ export abstract class QuickCommandBase implements QuickPickItem {
placeholder: placeholder || `Confirm ${this.title}`,
title: title,
items: [...confirmations, cancel || DirectiveQuickPickItem.create(Directive.Cancel)],
selectedItems: [confirmations[0]],
buttons: [QuickInputButtons.Back]
selectedItems: [confirmations[0]]
});
}

Načítá se…
Zrušit
Uložit