提交 4ea427f2 编写于 作者: J Jason Malinowski

Switch a call to LanguageServices.GetService to GetRequiredService

If we're going to require it, let's at least crash with a useful
exception instead of a null ref.
上级 d3a4c9ec
......@@ -502,7 +502,7 @@ private async Task<Compilation> GetOrBuildDeclarationCompilationAsync(SolutionSt
private Compilation CreateEmptyCompilation()
{
var compilationFactory = this.ProjectState.LanguageServices.GetService<ICompilationFactoryService>();
var compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<ICompilationFactoryService>();
if (this.ProjectState.IsSubmission)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册