Also, I think ``scUnit`` should be a ``def`` because the editor's document could be swapped and hence the compilation unit to reconcile could be a different one. I'm not sure if this scenario is possible here, but the ``setDocument`` seems like an indication that this can happen (and I've learned this the hard way https://github.com/scala-ide/scala-ide/pull/309#discussion_r3048592)