File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/vs/workbench/contrib/surveys/browser Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ class CESContribution extends Disposable implements IWorkbenchContribution {
57
57
}
58
58
59
59
private async promptUser ( ) {
60
+ const isCandidate = await this . tasExperimentService ?. getTreatment < boolean > ( 'CESSurvey' ) ;
61
+ if ( ! isCandidate ) {
62
+ this . skipSurvey ( ) ;
63
+ return ;
64
+ }
65
+
60
66
const sendTelemetry = ( userReaction : 'accept' | 'remindLater' | 'neverShowAgain' | 'cancelled' ) => {
61
67
/* __GDPR__
62
68
"cesSurvey:popup" : {
@@ -113,12 +119,6 @@ class CESContribution extends Disposable implements IWorkbenchContribution {
113
119
}
114
120
115
121
private async schedulePrompt ( ) : Promise < void > {
116
- const isCandidate = await this . tasExperimentService ?. getTreatment < boolean > ( 'CESSurvey' ) ;
117
- if ( ! isCandidate ) {
118
- this . skipSurvey ( ) ;
119
- return ;
120
- }
121
-
122
122
let waitTimeToShowSurvey = 0 ;
123
123
const remindLaterDate = this . storageService . get ( REMIND_LATER_DATE_KEY , StorageScope . GLOBAL , '' ) ;
124
124
if ( remindLaterDate ) {
You can’t perform that action at this time.
0 commit comments