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

restore

上级 86c2910a
......@@ -167,7 +167,7 @@ End Module
AssertSmartIndent(
code,
indentationLine:=1,
expectedIndentation:=0)
expectedIndentation:=8)
End Sub
<WpfFact>
......
......@@ -39,6 +39,12 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Indentation
Return New IndentationResult(trivia.SpanStart, 0)
End If
' if the comment is the only thing on a line, then preserve its indentation for the next line.
Dim line = indenter.Text.Lines.GetLineFromPosition(trivia.SpanStart)
If line.GetFirstNonWhitespacePosition() = trivia.SpanStart Then
Return New IndentationResult(trivia.SpanStart, 0)
End If
' Line ends in comment
' Two cases a line ending comment or _ comment
If tokenOpt.HasValue Then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册