Is your extension literally scanning the files for some regex of " if (live_call()) { return live_result; }"
Close enough - it looks for the pattern outside of comments/strings but it is not aware of macros.
Supporting macro expansion for live detection means that:
- The server needs to actually parse tokens in every single code snippet in the project, which can add up on large projects.
- The server needs to store code snippets in memory so that it can parse them again after entirety of codebase had been scanned and macros have been established (as you can put macros absolutely anywhere).
I intend to support this later (alongside with rewriting macro support in runtime to be more GML-like instead of "pure" macros - I write a lot of strange GML parsers these days), but for workaround I could probably add a CLI option for the server to add extra regular expression(s) for live code detection?