use correct document so unsaved change can be handled
Merge branch 'master' of https://github.com/xlc/XLCXcodeAssist