未验证 提交 53124782 编写于 作者: M msftbot[bot] 提交者: GitHub

Merge pull request #42001 from sharwell/required-model

Use GetRequiredSemanticModelAsync where appropriate
......@@ -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.
先完成此消息的编辑!
想要评论请 注册