Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[Ide] Defer templating service until actually queried. (#3494)
Browse files Browse the repository at this point in the history
Fixes #3492
  • Loading branch information
Therzok committed Dec 12, 2017
1 parent 9b425b1 commit 7202644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs
Expand Up @@ -607,14 +607,14 @@ static void UpdateInstrumentationIcon ()

public class IdeServices
{
readonly TemplatingService templatingService = new TemplatingService ();
readonly Lazy<TemplatingService> templatingService = new Lazy<TemplatingService> (() => new TemplatingService ());

public ProjectService ProjectService {
get { return MonoDevelop.Projects.Services.ProjectService; }
}

public TemplatingService TemplatingService {
get { return templatingService; }
get { return templatingService.Value; }
}
}
}

0 comments on commit 7202644

Please sign in to comment.