Skip to content

Commit 0487b4a

Browse files
committed
basic support luarocks
1 parent 7b6cbbf commit 0487b4a

File tree

4 files changed

+942
-0
lines changed

4 files changed

+942
-0
lines changed

package.json

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,52 @@
4141
{
4242
"command": "emmy.stopServer",
4343
"title": "EmmyLua: Stop EmmyLua Language Server"
44+
},
45+
{
46+
"command": "emmylua.luarocks.searchPackages",
47+
"title": "Search Packages",
48+
"category": "LuaRocks",
49+
"icon": "$(search)"
50+
},
51+
{
52+
"command": "emmylua.luarocks.installPackage",
53+
"title": "Install Package",
54+
"category": "LuaRocks",
55+
"icon": "$(cloud-download)"
56+
},
57+
{
58+
"command": "emmylua.luarocks.uninstallPackage",
59+
"title": "Uninstall Package",
60+
"category": "LuaRocks",
61+
"icon": "$(trash)"
62+
},
63+
{
64+
"command": "emmylua.luarocks.showPackageInfo",
65+
"title": "Show Package Info",
66+
"category": "LuaRocks",
67+
"icon": "$(info)"
68+
},
69+
{
70+
"command": "emmylua.luarocks.refreshPackages",
71+
"title": "Refresh",
72+
"category": "LuaRocks",
73+
"icon": "$(refresh)"
74+
},
75+
{
76+
"command": "emmylua.luarocks.showPackages",
77+
"title": "Show LuaRocks Packages",
78+
"category": "LuaRocks"
79+
},
80+
{
81+
"command": "emmylua.luarocks.clearSearch",
82+
"title": "Clear Search",
83+
"category": "LuaRocks",
84+
"icon": "$(clear-all)"
85+
},
86+
{
87+
"command": "emmylua.luarocks.checkInstallation",
88+
"title": "Check LuaRocks Installation",
89+
"category": "LuaRocks"
4490
}
4591
],
4692
"languages": [
@@ -261,6 +307,75 @@
261307
]
262308
}
263309
],
310+
"views": {
311+
"explorer": [
312+
{
313+
"id": "emmylua.luarocks",
314+
"name": "LuaRocks",
315+
"when": "resourceExtname == .lua",
316+
"icon": "$(package)"
317+
}
318+
]
319+
},
320+
"viewsContainers": {
321+
"activitybar": [
322+
{
323+
"id": "emmylua-luarocks",
324+
"title": "LuaRocks",
325+
"icon": "$(package)"
326+
}
327+
]
328+
},
329+
"menus": {
330+
"view/title": [
331+
{
332+
"command": "emmylua.luarocks.refreshPackages",
333+
"when": "view == emmylua.luarocks",
334+
"group": "navigation@1"
335+
},
336+
{
337+
"command": "emmylua.luarocks.searchPackages",
338+
"when": "view == emmylua.luarocks",
339+
"group": "navigation@2"
340+
},
341+
{
342+
"command": "emmylua.luarocks.clearSearch",
343+
"when": "view == emmylua.luarocks",
344+
"group": "navigation@3"
345+
}
346+
],
347+
"view/item/context": [
348+
{
349+
"command": "emmylua.luarocks.showPackageInfo",
350+
"when": "view == emmylua.luarocks && (viewItem == installedPackage || viewItem == availablePackage)",
351+
"group": "1@1"
352+
},
353+
{
354+
"command": "emmylua.luarocks.installPackage",
355+
"when": "view == emmylua.luarocks && viewItem == availablePackage",
356+
"group": "inline@1"
357+
},
358+
{
359+
"command": "emmylua.luarocks.uninstallPackage",
360+
"when": "view == emmylua.luarocks && viewItem == installedPackage",
361+
"group": "inline@1"
362+
}
363+
],
364+
"commandPalette": [
365+
{
366+
"command": "emmylua.luarocks.installPackage",
367+
"when": "resourceExtname == .lua"
368+
},
369+
{
370+
"command": "emmylua.luarocks.searchPackages",
371+
"when": "resourceExtname == .lua"
372+
},
373+
{
374+
"command": "emmylua.luarocks.checkInstallation",
375+
"when": "resourceExtname == .lua"
376+
}
377+
]
378+
},
264379
"configuration": [
265380
{
266381
"title": "Code Action",

0 commit comments

Comments
 (0)