File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/workbench/contrib/surveys/browser Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { IOpenerService } from '../../../../platform/opener/common/opener.js';
1616import { URI } from '../../../../base/common/uri.js' ;
1717import { platform } from '../../../../base/common/process.js' ;
1818import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js' ;
19+ import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js' ;
1920
2021const PROBABILITY = 0.15 ;
2122const SESSION_COUNT_KEY = 'nps/sessionCount' ;
@@ -31,9 +32,10 @@ class NPSContribution implements IWorkbenchContribution {
3132 @ITelemetryService telemetryService : ITelemetryService ,
3233 @IOpenerService openerService : IOpenerService ,
3334 @IProductService productService : IProductService ,
34- @IConfigurationService configurationService : IConfigurationService
35+ @IConfigurationService configurationService : IConfigurationService ,
36+ @IWorkbenchEnvironmentService environmentService : IWorkbenchEnvironmentService
3537 ) {
36- if ( ! productService . npsSurveyUrl || ! configurationService . getValue < boolean > ( 'telemetry.feedback.enabled' ) ) {
38+ if ( ! productService . npsSurveyUrl || ! configurationService . getValue < boolean > ( 'telemetry.feedback.enabled' ) || environmentService . isSessionsWindow ) {
3739 return ;
3840 }
3941
You can’t perform that action at this time.
0 commit comments