Ver código fonte

Adds closeOnFocusOut setting for Git Commands

main
Eric Amodio 5 anos atrás
pai
commit
8177cd0fe0
3 arquivos alterados com 13 adições e 4 exclusões
  1. +8
    -2
      package.json
  2. +4
    -2
      src/commands/gitCommands.ts
  3. +1
    -0
      src/config.ts

+ 8
- 2
package.json Ver arquivo

@ -481,6 +481,12 @@
"markdownDescription": "Specifies the style of the gravatar default (fallback) images",
"scope": "window"
},
"gitlens.gitCommands.closeOnFocusOut": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to dismiss the Git Commands menu when focus is lost (if not, press `ESC` to dismiss)",
"scope": "window"
},
"gitlens.gitCommands.skipConfirmations": {
"type": "array",
"default": [
@ -526,7 +532,7 @@
"minItems": 0,
"maxItems": 14,
"uniqueItems": true,
"markdownDescription": "Specifies which Git commands should have their confirmations skipped when executed from a GitLens view",
"markdownDescription": "Specifies which (and when) Git commands will skip the confirmation step, using the format: `git-command-name:(menu|command)`",
"scope": "window"
},
"gitlens.heatmap.ageThreshold": {
@ -1789,7 +1795,7 @@
"gitlens.advanced.quickPick.closeOnFocusOut": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to close QuickPick menus when focus is lost",
"markdownDescription": "Specifies whether to dismiss quick pick menus when focus is lost (if not, press `ESC` to dismiss)",
"scope": "window"
},
"gitlens.advanced.repositorySearchDepth": {

+ 4
- 2
src/commands/gitCommands.ts Ver arquivo

@ -157,7 +157,7 @@ export class GitCommandsCommand extends Command {
private async showInputStep(step: QuickInputStep, commandsStep: PickCommandStep) {
const input = window.createInputBox();
input.ignoreFocusOut = true;
input.ignoreFocusOut = !configuration.getclass="p"><boolean>(configuration.name('gitCommands')('closeOnFocusOut').value);
const disposables: Disposable[] = [];
@ -226,7 +226,9 @@ export class GitCommandsCommand extends Command {
private async showPickStep(step: QuickPickStep, commandsStep: PickCommandStep) {
const quickpick = window.createQuickPick();
quickpick.ignoreFocusOut = true;
quickpick.ignoreFocusOut = !configuration.get<boolean>(
configuration.name('gitCommands')('closeOnFocusOut').value
);
const disposables: Disposable[] = [];

+ 1
- 0
src/config.ts Ver arquivo

@ -33,6 +33,7 @@ export interface Config {
defaultDateStyle: DateStyle;
defaultGravatarsStyle: GravatarDefaultStyle;
gitCommands: {
closeOnFocusOut: boolean;
skipConfirmations: string[];
};
heatmap: {

Carregando…
Cancelar
Salvar