提交 4ba141a4 编写于 作者: C Cyrus Najmabadi

Add docs

上级 ec9f862e
......@@ -114,12 +114,19 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename
host As TestHost) As ConflictResolution
Dim renameOptions = RenameOptionSet.From(solution, optionSet)
If host = TestHost.OutOfProcess_SplitCall Then
' This tests that each portion of rename can properly marshal to/from the OOP process. It validates
' features that need to call each part independently and operate on the intermediary values.
Dim locations = Renamer.FindRenameLocationsAsync(
solution, symbol, renameOptions, CancellationToken.None).GetAwaiter().GetResult()
Return locations.ResolveConflictsAsync(renameTo, nonConflictSymbols:=Nothing, cancellationToken:=CancellationToken.None).GetAwaiter().GetResult()
Else
' This tests that rename properly works when the entire call is remoted to OOP and the final result is
' marshaled back.
Return Renamer.RenameSymbolAsync(
solution, symbol, renameTo, renameOptions,
nonConflictSymbols:=Nothing, CancellationToken.None).GetAwaiter().GetResult()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册