Skip to content

Commit c9e64c3

Browse files
committed
Tweak CES survey assignment
1 parent 4506091 commit c9e64c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vs/workbench/contrib/surveys/browser/ces.contribution.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ class CESContribution extends Disposable implements IWorkbenchContribution {
5757
}
5858

5959
private async promptUser() {
60+
const isCandidate = await this.tasExperimentService?.getTreatment<boolean>('CESSurvey');
61+
if (!isCandidate) {
62+
this.skipSurvey();
63+
return;
64+
}
65+
6066
const sendTelemetry = (userReaction: 'accept' | 'remindLater' | 'neverShowAgain' | 'cancelled') => {
6167
/* __GDPR__
6268
"cesSurvey:popup" : {
@@ -113,12 +119,6 @@ class CESContribution extends Disposable implements IWorkbenchContribution {
113119
}
114120

115121
private async schedulePrompt(): Promise<void> {
116-
const isCandidate = await this.tasExperimentService?.getTreatment<boolean>('CESSurvey');
117-
if (!isCandidate) {
118-
this.skipSurvey();
119-
return;
120-
}
121-
122122
let waitTimeToShowSurvey = 0;
123123
const remindLaterDate = this.storageService.get(REMIND_LATER_DATE_KEY, StorageScope.GLOBAL, '');
124124
if (remindLaterDate) {

0 commit comments

Comments
 (0)