[tern addon] Add hideDoc method