Переглянути джерело

Allows confirm toggle on confirm step

Shortens confirm toggle tooltips
main
Eric Amodio 5 роки тому
джерело
коміт
c7774fbe5e
2 змінених файлів з 5 додано та 6 видалено
  1. +3
    -3
      src/commands/gitCommands.ts
  2. +2
    -3
      src/commands/quickCommand.ts

+ 3
- 3
src/commands/gitCommands.ts Переглянути файл

@ -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 Переглянути файл

@ -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]]
});
}

Завантаження…
Відмінити
Зберегти