google / google/vim-codefmt

Add maktaba logging for whenever codefmt modifies buffer

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Vim Script
Stelle
1.1k
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It would be useful to log an info message whenever codefmt triggers and modifies the buffer, especially for cases where it triggers automatically on save.

It should be possible to verify whether the buffer was actually changed by checking `b:changedtick` before and after running the formatter so we can avoid logging a message if the formatter had no effect.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.