move github credential provider to git

This commit is contained in:
João Moreno
2020-04-27 12:14:23 +02:00
parent 065bb1b5d6
commit bce93beff7
5 changed files with 32 additions and 316 deletions
+2
View File
@@ -22,6 +22,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { GitTimelineProvider } from './timelineProvider';
import { registerAPICommands } from './api/api1';
import { GitHubCredentialProvider } from './github';
const deactivateTasks: { (): Promise<any>; }[] = [];
@@ -37,6 +38,7 @@ async function createModel(context: ExtensionContext, outputChannel: OutputChann
const askpass = await Askpass.create(outputChannel);
disposables.push(askpass);
context.subscriptions.push(askpass.registerCredentialsProvider(new GitHubCredentialProvider()));
const git = new Git({ gitPath: info.path, version: info.version, env: askpass.getEnv() });
const model = new Model(git, askpass, context.globalState, outputChannel);