Commit c34455f
committed
fix(analyzer): do not report embedded arguments as VariableNotFound in template keywords
When a test case uses [Template] or Test Template with a keyword that has
embedded arguments (e.g. "The result of ${calculation} should be ${expected}"),
the embedded argument placeholders were incorrectly analyzed as unresolved
variables, producing false VariableNotFound diagnostics.
Skip variable analysis for embedded argument tokens when the keyword call
originates from a template declaration.
Fixes #5421 parent dad536e commit c34455f
File tree
1 file changed
+4
-1
lines changed- packages/robot/src/robotcode/robot/diagnostics
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| |||
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
779 | | - | |
| 780 | + | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
| |||
1099 | 1100 | | |
1100 | 1101 | | |
1101 | 1102 | | |
| 1103 | + | |
1102 | 1104 | | |
1103 | 1105 | | |
1104 | 1106 | | |
| |||
1116 | 1118 | | |
1117 | 1119 | | |
1118 | 1120 | | |
| 1121 | + | |
1119 | 1122 | | |
1120 | 1123 | | |
1121 | 1124 | | |
| |||
0 commit comments