rstudio / shinyuieditor

A GUI for laying out a Shiny application that generates clean and human-readable UI code
https://rstudio.github.io/shinyuieditor/
MIT License
209 stars 29 forks source link

Handle auto-formatting of app scripts elegantly #172

Closed nstrayer closed 9 months ago

nstrayer commented 1 year ago

Right now if the user has format-on-save set for vscode then an infinite loop can occur because our formatting doesn't always match the given formatter's style and thus it looks like the user has updated the app from the file itself.

The way to get around this is probably to reparse the app and check if the AST changed.

nstrayer commented 9 months ago

Done in alpha release