it looked like you are relying on autocomplete's algorithm by cunningly renaming it
what does this mean?
Anyway, your example works for me *if there is only one `Foo` in the workspace*. I'm not very sure why I might pick up the wrong `Foo` if there are more even though I pass `editor->document->tm_file`, but well.