detect global and propose autocompletion in current module