diff --git a/packages/git/src/browser/git-quick-open-service.ts b/packages/git/src/browser/git-quick-open-service.ts index fb35cd7d721db..df67d401f017c 100644 --- a/packages/git/src/browser/git-quick-open-service.ts +++ b/packages/git/src/browser/git-quick-open-service.ts @@ -97,7 +97,8 @@ export class GitQuickOpenService { }); } - private async buildDefaultProjectPath(folderPath: string, gitURI: string): Promise { + private buildDefaultProjectPath = this.doBuildDefaultProjectPath.bind(this); + private async doBuildDefaultProjectPath(folderPath: string, gitURI: string): Promise { if (!(await this.fileSystem.exists(folderPath))) { // user specifies its own project path, doesn't want us to guess it return folderPath; @@ -590,7 +591,8 @@ export class GitQuickOpenService { return this.progressService.withProgress('', 'scm', fn); } - protected wrapWithProgress(fn: (...args: In[]) => Promise): (...args: In[]) => Promise { + protected readonly wrapWithProgress = (fn: (...args: In[]) => Promise) => this.doWrapWithProgress(fn); + protected doWrapWithProgress(fn: (...args: In[]) => Promise): (...args: In[]) => Promise { return (...args: In[]) => this.withProgress(() => fn(...args)); }