@@ -10,10 +10,11 @@ import vscode = require('vscode');
10
10
import { getGoConfig } from './config' ;
11
11
import { lastUserAction } from './language/goLanguageServer' ;
12
12
import { daysBetween , flushSurveyConfig , getStateConfig , minutesBetween , timeMinute } from './goSurvey' ;
13
+ import { getGoVersion } from './util' ;
13
14
14
15
// Start and end dates of the survey.
15
- export const startDate = new Date ( '2021-10-27 ' ) ;
16
- export const endDate = new Date ( '2021-11-16 ' ) ;
16
+ export const startDate = new Date ( 'May 31 2022 00:00:00 GMT ' ) ;
17
+ export const endDate = new Date ( 'June 21 2022 00:00:00 GMT ' ) ;
17
18
18
19
// DeveloperSurveyConfig is the set of global properties used to determine if
19
20
// we should prompt a user to take the gopls survey.
@@ -86,7 +87,7 @@ export function shouldPromptForSurvey(now: Date, cfg: DeveloperSurveyConfig): De
86
87
// is done by generating a random number in the range [0, 1) and checking
87
88
// if it is < probability.
88
89
if ( cfg . prompt === undefined ) {
89
- const probability = 0.2 ;
90
+ const probability = 0.1 ;
90
91
cfg . datePromptComputed = now ;
91
92
cfg . prompt = Math . random ( ) < probability ;
92
93
}
@@ -140,7 +141,10 @@ by participating in this 10-minute survey before ${endDate.toDateString()}?`,
140
141
{
141
142
cfg . lastDateAccepted = now ;
142
143
cfg . prompt = true ;
143
- const surveyURL = 'https://google.qualtrics.com/jfe/form/SV_0BwHwKSaeE9Cx2S?s=p' ;
144
+ const goV = await getGoVersion ( ) ;
145
+ const goVersion = goV ? goV . format ( true ) : 'na' ;
146
+ const useGopls = getGoConfig ( ) ?. get ( 'useLanguageServer' ) === true ? 'true' : 'false' ;
147
+ const surveyURL = `https://google.qualtrics.com/jfe/form/SV_7O3x4IZKiUn0QCO?s=p&go=${ goVersion } &gopls=${ useGopls } ` ;
144
148
await vscode . env . openExternal ( vscode . Uri . parse ( surveyURL ) ) ;
145
149
}
146
150
break ;
0 commit comments