From cf317f91f02e599561de72437ce6199925f19971 Mon Sep 17 00:00:00 2001 From: Davvex87 <102032123+Davvex87@users.noreply.github.com> Date: Fri, 27 Mar 2026 16:11:29 +0000 Subject: [PATCH] Prevent IDE extensions like vshaxe from making an output and respect -D no-compilation flag --- src/reflaxe/ReflectCompiler.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/reflaxe/ReflectCompiler.hx b/src/reflaxe/ReflectCompiler.hx index 0e580a0..99ef6ad 100644 --- a/src/reflaxe/ReflectCompiler.hx +++ b/src/reflaxe/ReflectCompiler.hx @@ -55,7 +55,11 @@ class ReflectCompiler { #elseif eval static var called = false; if(!called) { - if(#if eval !Context.defined("display") #else true #end) { + if(#if eval + !Context.defined("display") && + !Context.defined("no-compilation") && + !Compiler.getConfiguration().args.contains("--no-output") + #else true #end) { Context.onAfterTyping(onAfterTyping); Context.onAfterGenerate(onAfterGenerate); checkServerCache();