提交 039cdb49 编写于 作者: H Heejae Chang

fixed crash on TS due to missing designer attribute service on OOP

上级 2ea8ebbc
......@@ -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.
先完成此消息的编辑!
想要评论请 注册