diff --git a/webapp/static/clients/codemirror/script.js b/webapp/static/clients/codemirror/script.js index c5e1bd3..ccdc52d 100644 --- a/webapp/static/clients/codemirror/script.js +++ b/webapp/static/clients/codemirror/script.js @@ -47,6 +47,7 @@ $("lint").onclick = async e => { $("sync").onclick = e => { client.sync(); console.log("XXXsync"); }; $("format").onclick = e => { + client.sync(); console.log("FMT", lsp.formatDocument(view)); }; @@ -64,8 +65,8 @@ $("load").onchange = e => { insert: t } }) - //client.sync(); - //console.log("SYNC"); + client.sync(); + console.log("SYNC"); }); $("load").value = ""; };