go on doing,go on to do

问题描述:

go on doing,go on to do
after a short breakfast,they went on ______ (write) compositoins.
"writing" or "to write"
难道前面的rest和后面的写作文是同一件事吗?再说rest之前,我们也不知道他们做什么呀?

to do sth
是继续去做另外一件事
doing sth
是继续做刚才做的事情
根据题意
应该是writing