File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ export function shouldPromptForSurvey(now: Date, cfg: SurveyConfig): SurveyConfi
108
108
// the user.
109
109
// Probability is set based on the # of responses received, and will be
110
110
// decreased if we begin receiving > 200 responses/month.
111
- const probability = 0.03 ;
111
+ // Doubled the probability for survey v2 experiment.
112
+ // TODO(hyangah): switch back to 0.03.
113
+ const probability = 0.03 * 2 ;
112
114
cfg . promptThisMonth = Math . random ( ) < probability ;
113
115
if ( cfg . promptThisMonth ) {
114
116
// end is the last day of the month, day is the random day of the
@@ -149,11 +151,11 @@ Could you help us improve this extension by filling out a 1-2 minute survey abou
149
151
cfg . prompt = true ;
150
152
const goplsEnabled = latestConfig . enabled ;
151
153
const usersGoplsVersion = await getLocalGoplsVersion ( latestConfig ) ;
152
- await vscode . env . openExternal (
153
- vscode . Uri . parse (
154
- `https://google.qualtrics.com/jfe/form/SV_ekAdHVcVcvKUojX?usingGopls=${ goplsEnabled } &gopls=${ usersGoplsVersion } &extid=${ extensionId } `
155
- )
156
- ) ;
154
+ const surveyURL =
155
+ Math . random ( ) < 0.5
156
+ ? `https://google.qualtrics.com/jfe/form/SV_ekAdHVcVcvKUojX?usingGopls=${ goplsEnabled } &gopls=${ usersGoplsVersion } &extid=${ extensionId } ` // v1
157
+ : `https://google.qualtrics.com/jfe/form/SV_8kbsnNINPIQ2QGq?usingGopls= ${ goplsEnabled } &gopls= ${ usersGoplsVersion } &extid= ${ extensionId } ` ; // v2
158
+ await vscode . env . openExternal ( vscode . Uri . parse ( surveyURL ) ) ;
157
159
}
158
160
break ;
159
161
case 'Not now' :
You can’t perform that action at this time.
0 commit comments