Skip to content

Commit

Permalink
Merge pull request #19466 from heejaechang/fixTS
Browse files Browse the repository at this point in the history
fixed crash on TS due to missing designer attribute service on OOP
  • Loading branch information
heejaechang authored May 12, 2017
2 parents 89d6bba + 039cdb4 commit d757e2e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d757e2e

Please sign in to comment.