void EnsureWidget() { if (widget != null) { return; } widget = new GridOptionPreviewControl(null, (o, s) => new StyleViewModel(o, s)); }
private static ImmutableArray <(string feature, ImmutableArray <IOption> options)> GetEditorConfigOptions() { var builder = ArrayBuilder <(string, ImmutableArray <IOption>)> .GetInstance(); builder.AddRange(GridOptionPreviewControl.GetLanguageAgnosticEditorConfigOptions()); builder.Add((CSharpVSResources.CSharp_Coding_Conventions, CSharpCodeStyleOptions.AllOptions.As <IOption>())); builder.Add((CSharpVSResources.CSharp_Formatting_Rules, CSharpFormattingOptions2.AllOptions.As <IOption>())); return(builder.ToImmutableAndFree()); }