1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +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

@ -173,4 +173,9 @@ void for_each_open_file(Function<void(ProjectFile const&)> func)
s_hack_studio_widget->for_each_open_file(move(func));
}
bool semantic_syntax_highlighting_is_enabled()
{
return s_hack_studio_widget->semantic_syntax_highlighting_is_enabled();
}
}