Skip to content

Commit

Permalink
set useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Jan 25, 2022
1 parent 9497c51 commit ca31b1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ async function run(platform: string, architecture: string) {
const extInfo = getExtensionInfo();
console.log(extInfo);

const userAgent = `Terraform-VSCode/${extInfo.extensionVersion}`;
// userAgent = `Terraform-VSCode/${extensionVersion} VSCode/${vscodeVersion}`;
const ciBuild = process.env.CI;
const runnerLocation = ciBuild ? `CLI-Downloader GitHub-Actions` : `CLI-Downloader`;
const userAgent = `Terraform-VSCode/${extInfo.extensionVersion} ${runnerLocation}/(${platform}; ${architecture})`;

const release = await releases.getRelease('terraform-ls', extInfo.languageServerVersion, userAgent);

const os = getPlatform(platform);
Expand Down

0 comments on commit ca31b1d

Please sign in to comment.