Skip to content

Commit

Permalink
src/goLanguageServer: migrate opt-out survey to Qualtrics
Browse files Browse the repository at this point in the history
This moves our opt-out survey to Qualtrics, which improves our
multi-select question. It also cleans up some formatting for
platform and version information.

Change-Id: Ib9cb469014346ea323ab949bff2f9ba46469acc3
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/322389
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: Rebecca Stambler <[email protected]>
Trust: Hyang-Ah Hana Kim <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: kokoro <[email protected]>
  • Loading branch information
fflewddur authored and hyangah committed May 25, 2021
1 parent 4cb78f6 commit ecf30b7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/goLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,21 +330,19 @@ async function promptForGoplsOptOutSurvey(cfg: GoplsOptOutConfig, msg: string):
}
let goplsVersion = await getLocalGoplsVersion(latestConfig);
if (!goplsVersion) {
goplsVersion = 'no gopls version found';
goplsVersion = 'na';
}
goplsVersion = `gopls/${goplsVersion}`;
const goV = await getGoVersion();
let goVersion = 'no go version found';
let goVersion = 'na';
if (goV) {
goVersion = `go${goV.format(true)}`;
goVersion = goV.format(true);
}
const version = [goplsVersion, goVersion, process.platform].join(';');
switch (s.title) {
case 'Yes':
cfg.prompt = false;
await vscode.env.openExternal(
vscode.Uri.parse(
`https://docs.google.com/forms/d/e/1FAIpQLScITGOe2VdQnaXigSIiD19VxN_2KLwjMszZOMZp9TgYvTOw5g/viewform?entry.1049591455=${version}&gxids=7826`
`https://google.qualtrics.com/jfe/form/SV_doId0RNgV3pHovc?gopls=${goplsVersion}&go=${goVersion}&os=${process.platform}`
)
);
break;
Expand Down

0 comments on commit ecf30b7

Please sign in to comment.