提交 9a24ddf7 编写于 作者: P Petr Houška

Fix newly created but in AbstractRefactoringService breaking climbing on right Node edge.

上级 0ee9e25b
......@@ -200,7 +200,7 @@ protected async Task<SyntaxNode> TryGetSelectedNodeAsync(Document document, Text
while (true);
}
// if the location is inside tokenToRightOrIn -> no Token can be to Left (tokenToRightOrIn is also left from location, e.g: `tok[||]enITORightOrIn`)
// if the location is inside tokenToRightOrIn -> no Token can be to Left (tokenToRightOrIn is also left from location, e.g: `tok[||]enToRightOrIn`)
if (tokenToRightOrIn != default && tokenToRightOrIn.Span.Start != location)
{
return null;
......@@ -229,7 +229,7 @@ protected async Task<SyntaxNode> TryGetSelectedNodeAsync(Document document, Text
}
leftNode = leftNode.Parent;
if (leftNode != null || leftNode.Span.End != location)
if (leftNode == null || leftNode.Span.End != location)
{
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册