1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

HackStudio: Only query token information if semantic highlighting is on

This commit is contained in:
Itamar 2022-02-12 11:20:25 +02:00 committed by Andreas Kling
parent a456759d7a
commit 8bb4d46676
5 changed files with 18 additions and 1 deletions

View file

@ -733,6 +733,8 @@ void Editor::set_debug_mode(bool enabled)
void Editor::on_token_info_timer_tick()
{
if (!semantic_syntax_highlighting_is_enabled())
return;
if (!m_language_client || !m_language_client->is_active_client())
return;