Skip to content

Commit ef5ca7b

Browse files
committed
src/goSurvey: include os & go version info in the user survey
Change-Id: I8d09f96e7b406bd162f4f0b780c39f7bf674f238 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/402434 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Todd Kulesza <[email protected]>
1 parent 33d46b5 commit ef5ca7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/goSurvey.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
promptForDeveloperSurvey
1919
} from './goDeveloperSurvey';
2020
import { getGoConfig } from './config';
21+
import { getGoVersion } from './util';
2122

2223
// GoplsSurveyConfig is the set of global properties used to determine if
2324
// we should prompt a user to take the gopls survey.
@@ -163,7 +164,9 @@ Could you help us improve this extension by filling out a 1-2 minute survey abou
163164
cfg.prompt = true;
164165
const goplsEnabled = latestConfig.enabled;
165166
const usersGoplsVersion = await getLocalGoplsVersion(latestConfig);
166-
const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}`;
167+
const goV = await getGoVersion();
168+
const goVersion = goV ? (goV.isDevel ? 'devel' : goV.format(true)) : 'na';
169+
const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}&go=${goVersion}&os=${process.platform}`;
167170
await vscode.env.openExternal(vscode.Uri.parse(surveyURL));
168171
}
169172
break;

0 commit comments

Comments
 (0)