mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
git: isolate ipc env
This commit is contained in:
@@ -34,15 +34,16 @@ export async function deactivate(): Promise<any> {
|
||||
async function createModel(context: ExtensionContext, outputChannel: OutputChannel, telemetryReporter: TelemetryReporter, disposables: Disposable[]): Promise<Model> {
|
||||
const pathHint = workspace.getConfiguration('git').get<string>('path');
|
||||
const info = await findGit(pathHint, path => outputChannel.appendLine(localize('looking', "Looking for git in: {0}", path)));
|
||||
let env: any = undefined;
|
||||
let env: any = {};
|
||||
|
||||
try {
|
||||
const ipc = await createIPCServer();
|
||||
disposables.push(ipc);
|
||||
env = { ...env, ...ipc.getEnv() };
|
||||
|
||||
const askpass = new Askpass(ipc);
|
||||
disposables.push(askpass);
|
||||
env = askpass.getEnv();
|
||||
env = { ...env, ...askpass.getEnv() };
|
||||
} catch {
|
||||
env = Askpass.getDisabledEnv();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user