Skip to content

Commit 1a027db

Browse files
Add API token for accessing GitHub releases
1 parent f2d5d3d commit 1a027db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/omnisharpDownload.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const Github = require('github-releases');
1616
const OmnisharpRepo = 'OmniSharp/omnisharp-roslyn';
1717
const OmnisharpVersion = 'v1.9-alpha14';
1818
const DefaultInstallLocation = path.join(__dirname, '../.omnisharp');
19+
const ApiToken = '18a6f5ecea711220d4f433d4fd41062d479fda1d';
1920

2021
tmp.setGracefulCleanup();
2122

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

51-
const repo = new Github({ repo: OmnisharpRepo, token: null });
52+
const repo = new Github({ repo: OmnisharpRepo, token: ApiToken });
5253
const assetName = getOmnisharpAssetName();
5354

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

0 commit comments

Comments
 (0)