From e842d9d74e8dd6bf3adc0438e3161179e220e010 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Thu, 24 Jul 2025 17:16:38 +0200 Subject: [PATCH] update completion list --- server/src/common/completion_list.json | 108 +++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/server/src/common/completion_list.json b/server/src/common/completion_list.json index 159a3d3..44b6666 100644 --- a/server/src/common/completion_list.json +++ b/server/src/common/completion_list.json @@ -12,6 +12,10 @@ "label": "lappend", "kind": "keyword" }, + { + "label": "append", + "kind": "keyword" + }, { "label": "string", "kind": "function" @@ -40,9 +44,33 @@ "label": "set", "kind": "keyword" }, + { + "label": "unset", + "kind": "keyword" + }, { "label": "namespace", "kind": "keyword" + }, + { + "label": "info", + "kind": "keyword" + }, + { + "label": "global", + "kind": "keyword" + }, + { + "label": "incr", + "kind": "keyword" + }, + { + "label": "string", + "kind": "keyword" + }, + { + "label": "expr", + "kind": "keyword" } ], "MOM_procs": [ @@ -696,6 +724,86 @@ "MOM_force_block \"Once\" \"linear_move\"" ] }, + { + "label": "MOM_has_definition_element", + "kind": "function", + "description": "Interrogates whether the specified element or element and optional sub-element are defined in a definition file.", + "format": "MOM_has_definition_element []", + "parameters": [ + { + "name": "FORMAT|ADDRESS|BLOCK", + "desc": "Name of the definition element." + }, + { + "name": "element", + "desc": "Name of the definition element." + }, + { + "name": "sub-element", + "desc": "Optional. Name of the definition sub-element." + } + ], + "returns": [ + "1 - Element is defined.", + "0 - Does not exist." + ], + "example": [ + "# Example 1", + "MOM_has_definition_element BLOCK \"linear_move\" \"X\"" + ] + }, + { + "label": "MOM_incremental", + "kind": "function", + "description": "The next time that a block template that contains a reference to any of the input address names is evaluated, the deference (increment) from the previous value is output.", + "format": "MOM_incremental ", + "parameters": [ + { + "name": "On|Off", + "desc": "`On` - For each address specified, always output incremantal values. `Off` - For each address specified, always output absolute values." + }, + { + "name": "address_1 ... address_n", + "desc": "Name of output address(es)." + } + ], + "returns": [ + "1 - On.", + "0 - Off." + ], + "example": [ + "# Example 1", + "MOM_incremental ON X Y Z" + ] + }, + { + "label": "MOM_limit_output_angle", + "kind": "function", + "description": "Activates or deactivates the rotary axis output limits in a Post Configurator postprocessor. The command is called in the TCL procedure LIB_SPF_limit_output_angle. This command will set the following MOM variables:`mom_enable_4th_axis_output_limit` `mom_enable_5th_axis_output_limit` `mom_4th_axis_output_limit_max` `mom_4th_axis_output_limit_min` `mom_5th_axis_output_limit_max` `mom_5th_axis_output_limit_min`", + "format": "MOM_limit_output_angle [<4|5>] []", + "parameters": [ + { + "name": "ON|OFF", + "desc": "urns rotary axis output limit ON or OFF." + }, + { + "name": "4|5", + "desc": "Rotary axis." + }, + { + "name": "value1 value2", + "desc": "`value1` - Maximum output angle. `value2` - Minumum output angle." + } + ], + "example": [ + "# Example 1", + "MOM_limit_output_angle OFF", + "# Example 2", + "MOM_limit_output_angle OFF 4", + "# Example 3", + "MOM_limit_output_angle ON 5 360.0 0.0" + ] + }, { "label": "MOM_source", "kind": "function",