From 5b85d4bad1f6a7d4046bcec68947f3949ddd340b Mon Sep 17 00:00:00 2001 From: nikitalita <69168929+nikitalita@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:04:29 -0700 Subject: [PATCH] allow evaluating cvars on hover --- src/common/scripting/dap/ZScriptDebugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/scripting/dap/ZScriptDebugger.cpp b/src/common/scripting/dap/ZScriptDebugger.cpp index 51ddd22b36..2d8503ef21 100644 --- a/src/common/scripting/dap/ZScriptDebugger.cpp +++ b/src/common/scripting/dap/ZScriptDebugger.cpp @@ -669,7 +669,7 @@ dap::ResponseOrError ZScriptDebugger::Evaluate(const dap: RETURN_DAP_ERROR(StringFormat("Could not serialize variable %s", request.expression.c_str()).c_str()); } // cvars? - if (!found && context != "hover" && context != "variables" && !TryPath(StringFormat("%s.%s.%s", frameNodePath.c_str(), StackFrameStateNode::CVAR_SCOPE_NAME, request.expression.c_str()))){ + if (!found && context != "variables" && !TryPath(StringFormat("%s.%s.%s", frameNodePath.c_str(), StackFrameStateNode::CVAR_SCOPE_NAME, request.expression.c_str()))){ RETURN_DAP_ERROR(StringFormat("Could not serialize variable %s", request.expression.c_str()).c_str()); } }