Skip to content

Commit

Permalink
Merge pull request #129 from Spinarooni/master
Browse files Browse the repository at this point in the history
Fallback to system defined proxy. Issue #126
  • Loading branch information
shanalikhan authored Nov 3, 2016
2 parents 4234f19 + d5a5215 commit 7bfa9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/githubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import * as envir from './environmentPath';
import * as fileManager from './fileManager';
import * as vscode from 'vscode';

var proxyURL: string = vscode.workspace.getConfiguration("http")["proxy"] || process.env["http_proxy"];
var GitHubApi = require("github");

var github = new GitHubApi({
proxy: vscode.workspace.getConfiguration("http")["proxy"],
proxy: proxyURL,
version: "3.0.0",
});

Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as fs from 'fs';
var adm_zip = require('adm-zip');
var temp = require('temp').track();
var HttpsProxyAgent = require("https-proxy-agent");
var proxy = vscode.workspace.getConfiguration("http")["proxy"];
var proxy = vscode.workspace.getConfiguration("http")["proxy"] || process.env["http_proxy"];
var agent = null;
if(proxy!=""){
agent = new HttpsProxyAgent(proxy);
Expand Down

0 comments on commit 7bfa9e2

Please sign in to comment.