Skip to content

Commit cd2adc5

Browse files
jjaguirre394Juan Aguirre
andauthored
[Predictor] Removing Survey (#19268)
Co-authored-by: Juan Aguirre <[email protected]>
1 parent 620c548 commit cd2adc5

File tree

3 files changed

+0
-160
lines changed

3 files changed

+0
-160
lines changed

tools/Az.Tools.Predictor/Az.Tools.Predictor/AzPredictor.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ private struct ParsedCommandLineHistory
7777

7878
private List<IDisposable> _externalDisposableObjects = new List<IDisposable>();
7979

80-
private ISurveyHelper _surveyHelper;
8180
private PowerShellRuntime _powerShellRuntime;
8281

8382
private bool _isInitialized;
@@ -88,7 +87,6 @@ private struct ParsedCommandLineHistory
8887
public AzPredictor()
8988
{
9089
_powerShellRuntime = new PowerShellRuntime();
91-
_surveyHelper = new AzPredictorSurveyHelper(_powerShellRuntime);
9290

9391
// To make import-module fast, we'll do all the initialization in a task.
9492
// 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()
134132
_predictionRequestCancellationSource = null;
135133
}
136134

137-
if (_surveyHelper is IDisposable disposableSurveyHelper)
138-
{
139-
disposableSurveyHelper.Dispose();
140-
_surveyHelper = null;
141-
}
142-
143135
if (_powerShellRuntime != null)
144136
{
145137
_powerShellRuntime.Dispose();
@@ -287,11 +279,6 @@ public void OnCommandLineExecuted(PredictionClient client, string commandLine, b
287279
parsedResult = GetAstAndMaskedCommandLine(commandLine);
288280
}
289281

290-
if (parsedResult.IsSupported && _surveyHelper?.ShouldPromptSurvey() == true)
291-
{
292-
_surveyHelper.PromptSurvey();
293-
}
294-
295282
_telemetryClient.OnHistory(new HistoryTelemetryData(client, parsedResult.MaskedCommandLine ?? AzPredictorConstants.CommandPlaceholder, success));
296283
_commandLineExecutedCompletion?.SetResult();
297284
});

tools/Az.Tools.Predictor/Az.Tools.Predictor/AzPredictorSurveyHelper.cs

Lines changed: 0 additions & 115 deletions
This file was deleted.

tools/Az.Tools.Predictor/Az.Tools.Predictor/ISurveyHelper.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)