Skip to content

Commit

Permalink
Merge pull request #324 from DustinCampbell/add-github-api-key
Browse files Browse the repository at this point in the history
Add API token for accessing GitHub releases
  • Loading branch information
DustinCampbell committed May 16, 2016
2 parents f2d5d3d + 1a027db commit a9a356f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/omnisharpDownload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const Github = require('github-releases');
const OmnisharpRepo = 'OmniSharp/omnisharp-roslyn';
const OmnisharpVersion = 'v1.9-alpha14';
const DefaultInstallLocation = path.join(__dirname, '../.omnisharp');
const ApiToken = '18a6f5ecea711220d4f433d4fd41062d479fda1d';

tmp.setGracefulCleanup();

Expand Down Expand Up @@ -48,7 +49,7 @@ export function downloadOmnisharp(): Promise<boolean> {
return new Promise<boolean>((resolve, reject) => {
console.log(`[OmniSharp]: Installing to ${DefaultInstallLocation}`);

const repo = new Github({ repo: OmnisharpRepo, token: null });
const repo = new Github({ repo: OmnisharpRepo, token: ApiToken });
const assetName = getOmnisharpAssetName();

console.log(`[OmniSharp] Looking for ${OmnisharpVersion}, ${assetName}...`);
Expand Down

0 comments on commit a9a356f

Please sign in to comment.