public void OnAfterFormatCommand(object sender, FormatCommandEventArgs e) { if (e.FormatConfigFound == false) { DisplayCannotFormatMessage(e.Clear, $"\n--- ERROR ---\nFormat config file not found.\nCreate the config file and place it in the solution folder or select one of the predefined format styles from Clang Power Tools settings -> Format -> Style."); } else if (e.Clear) { ClearOutputWindowEvent.Invoke(this, new ClearEventArgs()); } }
public void OnAfterFormatCommand(object sender, FormatCommandEventArgs e) { currentCommand = CommandIds.kClangFormat; if (e.CanFormat) { DisplayFinishedMessage(true); } else { DisplayCannotFormatMessage(true); } }
private void OnFormatFile(FormatCommandEventArgs e) { FormatEvent?.Invoke(this, e); }