浏览代码

Reduces confirmation threshold & updates msgs

main
Eric Amodio 3 年前
父节点
当前提交
1156c6dc8e
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. +9
    -9
      src/commands/gitCommands.actions.ts

+ 9
- 9
src/commands/gitCommands.actions.ts 查看文件

@ -229,9 +229,9 @@ export namespace GitActions {
refs = refsOrOptions as { repoPath: string; ref1: string; ref2: string };
}
if (files.length > 20) {
if (files.length > 10) {
const result = await window.showWarningMessage(
`Are your sure you want to open all ${files.length} changes?`,
`Are your sure you want to open the changes for all ${files.length} files?`,
{ title: 'Yes' },
{ title: 'No', isCloseAffordance: true },
);
@ -265,9 +265,9 @@ export namespace GitActions {
files = commitOrFiles;
}
if (files.length > 20) {
if (files.length > 10) {
const result = await window.showWarningMessage(
`Are your sure you want to open all ${files.length} changes?`,
`Are your sure you want to open the changes for all ${files.length} files?`,
{ title: 'Yes' },
{ title: 'No', isCloseAffordance: true },
);
@ -308,9 +308,9 @@ export namespace GitActions {
ref = refOrOptions as { repoPath: string; ref: string };
}
if (files.length > 20) {
if (files.length > 10) {
const result = await window.showWarningMessage(
`Are your sure you want to open all ${files.length} changes?`,
`Are your sure you want to open the changes for all ${files.length} files?`,
{ title: 'Yes' },
{ title: 'No', isCloseAffordance: true },
);
@ -578,7 +578,7 @@ export namespace GitActions {
files = commitOrFiles;
}
if (files.length > 20) {
if (files.length > 10) {
const result = await window.showWarningMessage(
`Are your sure you want to open all ${files.length} files?`,
{ title: 'Yes' },
@ -618,9 +618,9 @@ export namespace GitActions {
files = commitOrFiles;
}
if (files.length > 20) {
if (files.length > 10) {
const result = await window.showWarningMessage(
`Are your sure you want to open all ${files.length} revisions?`,
`Are your sure you want to open all ${files.length} file revisions?`,
{ title: 'Yes' },
{ title: 'No', isCloseAffordance: true },
);

正在加载...
取消
保存