diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AliasManager.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AliasManager.cs index 2d5fd66145e7..2e6c323b8935 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AliasManager.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AliasManager.cs @@ -86,16 +86,6 @@ public void UpdateAlias(string commandId, CommandAlias? newAlias) return; } - // If we already have _this exact alias_, do nothing - if (newAlias != null && - _aliases.TryGetValue(newAlias.SearchPrefix, out var existingAlias)) - { - if (existingAlias.CommandId == commandId) - { - return; - } - } - // Look for the old alias, and remove it List toRemove = []; foreach (var kv in _aliases)