Skip to content

Commit 1df17ad

Browse files
Copilotsumneko
andauthored
Fix "Add to Watch" from hover window using "hover" instead of variable name (#334)
* Initial plan * Fix hover window "Add to Watch" parameter order bug Fixed the bug where adding a variable to watch from hover window would incorrectly use "hover" as the variable name instead of the actual expression name. The issue was in run_hover() passing parameters in wrong order to variables.createRef(). Changed: variables.createRef(res, "hover") To: variables.createRef(res, expression, "hover") This now matches the correct implementation used in run_watch(). Co-authored-by: sumneko <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: sumneko <[email protected]>
1 parent 37492db commit 1df17ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/script/backend/worker/evaluate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local function run_hover(frameId, expression)
3939
if not ok then
4040
return false, res
4141
end
42-
local var = variables.createRef(res, "hover")
42+
local var = variables.createRef(res, expression, "hover")
4343
var.result = var.value
4444
var.value = nil
4545
return true, var

0 commit comments

Comments
 (0)