public static void Initialize(CodeMaidPackage package) { Instance = new CommentFormatCommand(package); package.SettingsMonitor.Watch(s => s.Feature_CommentFormat, Instance.Switch); }
/// <summary> /// Initializes a singleton instance of this command. /// </summary> /// <param name="package">The hosting package.</param> /// <returns>A task.</returns> public static async Task InitializeAsync(CodeMaidPackage package) { Instance = new CommentFormatCommand(package); await package.SettingsMonitor.WatchAsync(s => s.Feature_CommentFormat, Instance.SwitchAsync); }