Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 3
0
 private void OnFormatFile(FormatCommandEventArgs e)
 {
     FormatEvent?.Invoke(this, e);
 }