in src/dal/cvsproviderproxy.ts [58:79]
private async detectProvidersInDirectory(rootPath: Uri): Promise<CvsSupportProvider[]> {
const providers: CvsSupportProvider[] = [];
const tfvcProvider: CvsSupportProvider = await this.tfvcProviderActivator.tryActivateInPath(rootPath);
if (tfvcProvider) {
providers.push(tfvcProvider);
Logger.logInfo(`Tfvc provider was activated for ${rootPath.fsPath}`);
} else {
Logger.logWarning(`Could not activate tfvc provider for ${rootPath.fsPath}`);
}
if (!this.isGitSupported) {
return providers;
}
const gitProvider: CvsSupportProvider = await this.gitProviderActivator.tryActivateInPath(rootPath);
if (gitProvider) {
providers.push(gitProvider);
Logger.logInfo(`Git provider was activated for ${rootPath.fsPath}`);
} else {
Logger.logWarning(`Could not activate git provider for ${rootPath.fsPath}`);
}
return providers;
}