Skip to content

Commit ff38392

Browse files
authored
GA the cmdlet recommendation feature (#25407)
1 parent 3c2defa commit ff38392

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Accounts/Accounts/Utilities/CommandNotFoundHelper.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public static class CommandNotFoundHelper
4040
private static readonly Regex AzOrAzureRMRegex = new Regex(@"^\w+-az\w+$", RegexOptions.IgnoreCase);
4141
private static readonly Regex AzureRMRegex = new Regex(@"^\w+-azurerm\w+$", RegexOptions.IgnoreCase);
4242
private static readonly Lazy<AllCommandInfo> LazyAllCommandInfo = new Lazy<AllCommandInfo>(LoadAllCommandInfo);
43-
private static bool HaveAskedForFeedback = false;
4443

4544
/// <summary>
4645
/// Mappings from command names to their module names.
@@ -135,7 +134,6 @@ private static void OnCommandNotFound(object sender, CommandLookupEventArgs args
135134
// We are not interested in such cases.
136135
if (args.CommandOrigin == CommandOrigin.Runspace && IsAzOrAzureRMCmdlet(args.CommandName))
137136
{
138-
bool isHelpful = true;
139137
if (IsAzureRMCommand(args.CommandName))
140138
{
141139
WriteWarning(string.Format(Resources.CommandNotFoundAzureRM, args.CommandName, Resources.AzureRMToAzMigrationGuideLink));
@@ -152,15 +150,6 @@ private static void OnCommandNotFound(object sender, CommandLookupEventArgs args
152150
{
153151
WriteWarning(FormatFuzzyStringMessage(args.CommandName, suggestions));
154152
}
155-
else
156-
{
157-
isHelpful = false;
158-
}
159-
if (isHelpful && !HaveAskedForFeedback)
160-
{
161-
HaveAskedForFeedback = true;
162-
WriteWarning("The intelligent recommendation feature is in preview. Help us improve it by sharing your experience: https://go.microsoft.com/fwlink/?linkid=2202436");
163-
}
164153
}
165154
args.StopSearch = false;
166155
}

0 commit comments

Comments
 (0)