summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-07-27 18:24:08 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-07-27 18:24:08 +0200
commit659d787cc8a329d01ff920c7e1a4659dc66b7daa (patch)
treefd9345067a336be4c9a84dbb4a855b4d6fc87b0f /scripts
parent352517495e32813d30d0080f2a0c8dd1afea794a (diff)
downloadcontext-659d787cc8a329d01ff920c7e1a4659dc66b7daa.tar.gz
2022-07-27 17:53:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-vscode.lua20
1 files changed, 12 insertions, 8 deletions
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]])