protected async override Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { if (await GetServiceAsync(typeof(IMenuCommandService)) is OleMenuCommandService commandService) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); AddTemplate.Initialize(this, commandService); AddVsHostFile.Initialize(this, commandService); AddCliHostFile.Initialize(this, commandService); } }
public static void Initialize(Package package, OleMenuCommandService commandService) { Instance = new AddVsHostFile(package, commandService); }