提交 aa4a2b64 编写于 作者: C Cyrus Najmabadi

Use SyntaxFacts.

上级 42f069ac
......@@ -82,7 +82,7 @@ private Span GetReplacementSpan(SnapshotPoint caretPosition)
var snapshot = caretPosition.Snapshot;
var start = caretPosition.Position;
var end = caretPosition;
while (end < snapshot.Length && char.IsWhiteSpace(end.GetChar()) && !SyntaxFacts.IsNewLine(end.GetChar()))
while (end < snapshot.Length && SyntaxFacts.IsWhitespace(end.GetChar()) && !SyntaxFacts.IsNewLine(end.GetChar()))
end = end + 1;
return Span.FromBounds(start, end);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册