提交 d757e2eb 编写于 作者: H Heejae Chang 提交者: GitHub

Merge pull request #19466 from heejaechang/fixTS

fixed crash on TS due to missing designer attribute service on OOP
......@@ -90,6 +90,13 @@ public async Task AnalyzeProjectAsync(Project project, bool semanticsChanged, In
return;
}
var service = project.LanguageServices.GetService<IDesignerAttributeService>();
if (service == null)
{
// project doesn't support designer attribute service.
return;
}
// Try to compute this data in the remote process. If that fails, then compute
// the results in the local process.
var pathToResult = await TryAnalyzeProjectInRemoteProcessAsync(project, cancellationToken).ConfigureAwait(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册