show debug panel only when enabled in settings, improvements for FindDeclaration (currently no key defined)