From 8f35e1e3c2ffc08b17cf76f8cf1d4944c20af440 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 5 Oct 2015 19:21:05 +0200 Subject: Save current program in trace with each 'open' action So we can resynchronize if something goes wrong. --- js/codeq/python.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/codeq/python.js') diff --git a/js/codeq/python.js b/js/codeq/python.js index 236d947..c3a76b9 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -264,7 +264,11 @@ }); codeq.comms.loadProblem(problemDef.id).done(); - activityHandler.queueTrace({'typ': 'open', 'time': Date.now()}); + activityHandler.queueTrace({ + 'typ': 'open', + 'time': Date.now(), + 'content': editor.getDoc().getValue() + }); return { destroy: function () { -- cgit v1.2.1