From 659d787cc8a329d01ff920c7e1a4659dc66b7daa Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 27 Jul 2022 18:24:08 +0200 Subject: 2022-07-27 17:53:00 --- scripts/context/lua/mtx-vscode.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-vscode.lua b/scripts/context/lua/mtx-vscode.lua index 474ce97d4..eb1acf53d 100644 --- a/scripts/context/lua/mtx-vscode.lua +++ b/scripts/context/lua/mtx-vscode.lua @@ -3256,15 +3256,19 @@ function scripts.vscode.ls(forcedinterface) elseif tg == "assignments" then local a = { } for e in xml.collected(e,"/parameter") do - local c = { e.at.name, "=" } + -- local c = { e.at.name, "=" } + local c = { } for e in xml.collected(e,"/constant") do c[#c+1] = e.at.type end - if #c > 0 then - a[#a+1] = { - name = concat(c, " ") - } - end + -- if #c > 0 then + -- a[#a+1] = { + -- name = concat(c, " ") -- maybe "|" + -- } + -- end + a[#a+1] = { + name = e.at.name .. "=" .. concat(c, " ") -- maybe "|" + } end p[#p+1] = { type = tg, @@ -3461,7 +3465,7 @@ end if environment.arguments.generate then scripts.vscode.generate() -elseif environment.vscodels then +elseif environment.arguments.lsfile then scripts.vscode.ls() elseif environment.arguments.start then scripts.vscode.start() @@ -3471,6 +3475,6 @@ else application.help() end -scripts.vscode.ls() +-- scripts.vscode.ls() -- scripts.vscode.generate([[t:/vscode/data/context/extensions]]) -- cgit v1.2.3