소스 검색

Fixes notification progress reporting

main
Eric Amodio 6 년 전
부모
커밋
107c955ec4
1개의 변경된 파일6개의 추가작업 그리고 12개의 파일을 삭제
  1. +6
    -12
      src/git/gitService.ts

+ 6
- 12
src/git/gitService.ts 파일 보기

@ -502,13 +502,11 @@ export class GitService implements Disposable {
cancellable: true
},
async (progress, token) => {
const total = repositories.length + 1;
let i = 0;
const total = repositories.length;
for (const repo of repositories) {
i++;
progress.report({
message: `${repo.formattedName}...`,
increment: (i / total) * 100
increment: 100 / total
});
if (token.isCancellationRequested) break;
@ -532,13 +530,11 @@ export class GitService implements Disposable {
cancellable: true
},
async (progress, token) => {
const total = repositories.length + 1;
let i = 0;
const total = repositories.length;
for (const repo of repositories) {
i++;
progress.report({
message: `${repo.formattedName}...`,
increment: (i / total) * 100
increment: 100 / total
});
if (token.isCancellationRequested) break;
@ -562,13 +558,11 @@ export class GitService implements Disposable {
cancellable: true
},
async (progress, token) => {
const total = repositories.length + 1;
let i = 0;
const total = repositories.length;
for (const repo of repositories) {
i++;
progress.report({
message: `${repo.formattedName}...`,
increment: (i / total) * 100
increment: 100 / total
});
if (token.isCancellationRequested) break;

불러오는 중...
취소
저장