enforce standalone 'expression' child for watch expressions in cfg tree, adjust eval / ui to work on that child, instead of assuming the first child of a watch expression node is the expression string itself - this will let us tag watch expressions with other info, like project / lock status etc.

This commit is contained in:
Ryan Fleury committed 2026-07-27 16:02:10 -07:00
1 parent 0b4c20b165
commit ec520227c5
6 files changed
+26 -21

No files matched your search

+2 -1
View File
@@ -94,6 +94,7 @@ RD_VocabTable:
{watch_pin _ "Watch Pin" _ Pin }
{debug_info _ "Debug Info" "Debug Info" Module }
{watch watches "Watch" "Watches" Binoculars }
{watch_expression _ "Watch Expression" _ Binoculars }
{view _ "View" _ Binoculars }
{breakpoint _ "Breakpoint" _ CircleFilled }
{condition _ "Condition" _ Null }
@@ -560,7 +561,7 @@ RD_VocabTable:
'label': code_string,
@description("The root expression which is evaluated to produce the watch window.")
'expression': expr_string,
@no_expand 'watches': set,
@no_expand 'watch_expressions': set,
}
```
}