提交 03d49f8a 编写于 作者: B Brett Forsgren

add comment explaining usage of CancellationToken.None

上级 588d601a
......@@ -28,6 +28,8 @@ public DeclaredSymbolNavigableItem(Document document, DeclaredSymbolInfo declare
Document = document;
_declaredSymbolInfo = declaredSymbolInfo;
// Cancellation isn't supported when computing the various properties that depend on the symbol, hence
// CancellationToken.None.
_lazySymbol = new Lazy<ISymbol>(() => declaredSymbolInfo.GetSymbolAsync(document, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
_lazyDisplayName = new Lazy<string>(() =>
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册