提交 44cf2274 编写于 作者: C Cyrus Najmabadi

NRT

上级 4f4d5cb7
......@@ -83,7 +83,7 @@ private async Task HandleNonSelectionAsync(CodeRefactoringContext context)
return;
}
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
// Only supported on classes/structs.
var containingType = semanticModel.GetDeclaredSymbol(typeDeclaration) as INamedTypeSymbol;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册