@@ -77,7 +77,6 @@ private struct ParsedCommandLineHistory
77
77
78
78
private List < IDisposable > _externalDisposableObjects = new List < IDisposable > ( ) ;
79
79
80
- private ISurveyHelper _surveyHelper ;
81
80
private PowerShellRuntime _powerShellRuntime ;
82
81
83
82
private bool _isInitialized ;
@@ -88,7 +87,6 @@ private struct ParsedCommandLineHistory
88
87
public AzPredictor ( )
89
88
{
90
89
_powerShellRuntime = new PowerShellRuntime ( ) ;
91
- _surveyHelper = new AzPredictorSurveyHelper ( _powerShellRuntime ) ;
92
90
93
91
// To make import-module fast, we'll do all the initialization in a task.
94
92
// Slow initialization may make opening a PowerShell window slow if "Import-Module" is added to the user's profile.
@@ -134,12 +132,6 @@ public void Dispose()
134
132
_predictionRequestCancellationSource = null ;
135
133
}
136
134
137
- if ( _surveyHelper is IDisposable disposableSurveyHelper )
138
- {
139
- disposableSurveyHelper . Dispose ( ) ;
140
- _surveyHelper = null ;
141
- }
142
-
143
135
if ( _powerShellRuntime != null )
144
136
{
145
137
_powerShellRuntime . Dispose ( ) ;
@@ -287,11 +279,6 @@ public void OnCommandLineExecuted(PredictionClient client, string commandLine, b
287
279
parsedResult = GetAstAndMaskedCommandLine ( commandLine ) ;
288
280
}
289
281
290
- if ( parsedResult . IsSupported && _surveyHelper ? . ShouldPromptSurvey ( ) == true )
291
- {
292
- _surveyHelper . PromptSurvey ( ) ;
293
- }
294
-
295
282
_telemetryClient . OnHistory ( new HistoryTelemetryData ( client , parsedResult . MaskedCommandLine ?? AzPredictorConstants . CommandPlaceholder , success ) ) ;
296
283
_commandLineExecutedCompletion ? . SetResult ( ) ;
297
284
} ) ;
0 commit comments