|
|
@ -1,7 +1,7 @@ |
|
|
|
import { Container } from '../../container'; |
|
|
|
import { GitCommandOptions } from '../../git/commandOptions'; |
|
|
|
import { GitProvider } from '../../git/gitProvider'; |
|
|
|
import { GitHubGitProvider } from '../../premium/github/githubGitProvider'; |
|
|
|
// import { GitHubGitProvider } from '../../premium/github/githubGitProvider';
|
|
|
|
import { Git } from './git/git'; |
|
|
|
import { LocalGitProvider } from './git/localGitProvider'; |
|
|
|
import { VslsGit, VslsGitProvider } from './git/vslsGitProvider'; |
|
|
@ -18,7 +18,7 @@ export function git(_options: GitCommandOptions, ..._args: any[]): Promise |
|
|
|
return ensureGit().git(_options, ..._args); |
|
|
|
} |
|
|
|
|
|
|
|
export function getSupportedGitProviders(container: Container): GitProvider[] { |
|
|
|
export async function getSupportedGitProviders(container: Container): Promise<GitProvider[]> { |
|
|
|
const git = ensureGit(); |
|
|
|
|
|
|
|
const providers: GitProvider[] = [ |
|
|
@ -27,6 +27,9 @@ export function getSupportedGitProviders(container: Container): GitProvider[] { |
|
|
|
]; |
|
|
|
|
|
|
|
if (container.config.experimental.virtualRepositories.enabled) { |
|
|
|
const GitHubGitProvider = ( |
|
|
|
await import(/* webpackChunkName: "github" */ '../../premium/github/githubGitProvider') |
|
|
|
).GitHubGitProvider; |
|
|
|
providers.push(new GitHubGitProvider(container)); |
|
|
|
} |
|
|
|
|
|
|
|