protected override AbstractOptionPageControl CreateOptionPage(IServiceProvider serviceProvider, OptionStore optionStore) { if (_globalOptions == null) { var componentModel = (IComponentModel)serviceProvider.GetService(typeof(SComponentModel)); _globalOptions = componentModel.GetService <IGlobalOptionService>(); _threadingContext = componentModel.GetService <IThreadingContext>(); var workspace = componentModel.GetService <VisualStudioWorkspace>(); _workspaceServices = workspace.Services; } return(new InternalOptionsControl(FunctionIdOptions.GetOptions(), optionStore)); }
protected override AbstractOptionPageControl CreateOptionPage(IServiceProvider serviceProvider, OptionStore optionStore) { return(new InternalOptionsControl(FunctionIdOptions.GetOptions(), optionStore)); }