提交 40cf8c18 编写于 作者: M Manish Jayaswal

Merge pull request #4820 from ManishJayaswal/fix4803

fixes #4803
......@@ -135,19 +135,20 @@ private static ImmutableArray<IInteractiveWindowCommand> GetApplicableCommands(I
for (int i = 0; i < interactiveCommands.Length; i++)
{
foreach (var name in interactiveCommands[i].Names)
interactiveCommandMap.Add(name, i);
{
interactiveCommandMap.Add(name, i);
}
}
// swap core commands with specialized command if both exist
// Command can have multiple names. We need to compare every name to find match.
int value;
foreach (var command in specializedInteractiveCommands)
{
foreach (var name in command.Names)
{
if ( interactiveCommandMap.ContainsKey(name))
if (interactiveCommandMap.TryGetValue(name, out value))
{
int value;
interactiveCommandMap.TryGetValue(name, out value);
interactiveCommands[value] = command;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册