File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
promptForDeveloperSurvey
19
19
} from './goDeveloperSurvey' ;
20
20
import { getGoConfig } from './config' ;
21
+ import { getGoVersion } from './util' ;
21
22
22
23
// GoplsSurveyConfig is the set of global properties used to determine if
23
24
// 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
163
164
cfg . prompt = true ;
164
165
const goplsEnabled = latestConfig . enabled ;
165
166
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 } ` ;
167
170
await vscode . env . openExternal ( vscode . Uri . parse ( surveyURL ) ) ;
168
171
}
169
172
break ;
You can’t perform that action at this time.
0 commit comments