git: cleanup ipc handles on deactivate

related to #7758
This commit is contained in:
Joao Moreno
2018-05-03 09:12:05 +02:00
parent 11073cedd3
commit ee582714b6
2 changed files with 9 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ async function init(context: ExtensionContext, outputChannel: OutputChannel, dis
const pathHint = workspace.getConfiguration('git').get<string>('path');
const info = await findGit(pathHint, path => outputChannel.appendLine(localize('looking', "Looking for git in: {0}", path)));
const askpass = new Askpass();
disposables.push(askpass);
const env = await askpass.getEnv();
const git = new Git({ gitPath: info.path, version: info.version, env });
const model = new Model(git, context.globalState, outputChannel);