Skip to content

Commit ecf30b7

Browse files
fflewddurhyangah
authored andcommitted
src/goLanguageServer: migrate opt-out survey to Qualtrics
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]>
1 parent 4cb78f6 commit ecf30b7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/goLanguageServer.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,21 +330,19 @@ async function promptForGoplsOptOutSurvey(cfg: GoplsOptOutConfig, msg: string):
330330
}
331331
let goplsVersion = await getLocalGoplsVersion(latestConfig);
332332
if (!goplsVersion) {
333-
goplsVersion = 'no gopls version found';
333+
goplsVersion = 'na';
334334
}
335-
goplsVersion = `gopls/${goplsVersion}`;
336335
const goV = await getGoVersion();
337-
let goVersion = 'no go version found';
336+
let goVersion = 'na';
338337
if (goV) {
339-
goVersion = `go${goV.format(true)}`;
338+
goVersion = goV.format(true);
340339
}
341-
const version = [goplsVersion, goVersion, process.platform].join(';');
342340
switch (s.title) {
343341
case 'Yes':
344342
cfg.prompt = false;
345343
await vscode.env.openExternal(
346344
vscode.Uri.parse(
347-
`https://docs.google.com/forms/d/e/1FAIpQLScITGOe2VdQnaXigSIiD19VxN_2KLwjMszZOMZp9TgYvTOw5g/viewform?entry.1049591455=${version}&gxids=7826`
345+
`https://google.qualtrics.com/jfe/form/SV_doId0RNgV3pHovc?gopls=${goplsVersion}&go=${goVersion}&os=${process.platform}`
348346
)
349347
);
350348
break;

0 commit comments

Comments
 (0)