I think you should trigger a compile on editor content change or save events, not loop inside startCompilingPeriodically forever.
Of course, the editor change events would have to be "de-bounced" - i. e. do not trigger a compile on each key press, but only after some defined timespan after the last compile.
I think you should trigger a compile on editor content change or save events, not loop inside startCompilingPeriodically forever.
Of course, the editor change events would have to be "de-bounced" - i. e. do not trigger a compile on each key press, but only after some defined timespan after the last compile.
I could implement that.