halfbrained / cuda_lsp

LSP Client plugin for CudaText
6 stars 4 forks source link

Add option: format document on save #77

Closed halfbrained closed 3 years ago

halfbrained commented 3 years ago

@Alexey-T Is it ok to use app_idle(True) in a loop in on_save_pre() for a second, while I wait for server to send formatting info?

This approach works splendidly, but I'm not entirely clear on app_idle inner workings

Alexey-T commented 3 years ago

App_idle calls Lazarus processing of OS messages. so keyb/clicks input is possible. if it works, OK.

halfbrained commented 3 years ago

Added, and a few more things

Alexey-T commented 3 years ago

Is this stable version, to publish it?

halfbrained commented 3 years ago

yes