fix: register FBs with only VAR/TEMP as types + add SCLRescanWorkspaceTypes command

This commit is contained in:
2026-07-23 13:55:07 +02:00
parent ebdc96316a
commit d24e83a1a7
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ local function parse_scl_type_file(content)
fb_inouts = {}
current_fb_section = nil
elseif in_fb and trimmed:match("^END_FUNCTION_BLOCK") then
if fb_name and (#fb_inputs > 0 or #fb_outputs > 0 or #fb_inouts > 0) then
if fb_name then
types[fb_name] = {
name = fb_name,
kind = "function_block",