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

Don't make blocking calls to GetRoot

上级 634742ec
......@@ -161,8 +161,8 @@ End Class</text>
Dim sdocument = Await SemanticDocument.CreateAsync(document, CancellationToken.None)
Dim tree = Await document.GetSyntaxTreeAsync()
Dim iterator = tree.GetRoot().DescendantNodesAndSelf()
Dim root = Await document.GetSyntaxRootAsync()
Dim iterator = root.DescendantNodesAndSelf()
Dim options = document.Project.Solution.Workspace.Options _
.WithChangedOption(ExtractMethodOptions.AllowMovingDeclaration, document.Project.Language, True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册