提交 9994c01b 编写于 作者: S Sam Harwell

Use GetRequiredSemanticModelAsync where appropriate

上级 9c0370c3
......@@ -65,7 +65,7 @@ public override Task RegisterCodeFixesAsync(CodeFixContext context)
{
var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
var semanticFacts = document.GetRequiredLanguageService<ISemanticFactsService>();
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var generator = editor.Generator;
var root = editor.OriginalRoot;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册