Skip to content

Commit 7f55b47

Browse files
committed
add lua.reloadFFIMeta
1 parent 86fa56a commit 7f55b47

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

client/src/languageserver.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ function registerCustomCommands(context: ExtensionContext) {
7676
arguments: [output.toString()],
7777
});
7878
}));
79+
80+
context.subscriptions.push(Commands.registerCommand('lua.reloadFFIMeta', async () => {
81+
defaultClient.client.sendRequest(ExecuteCommandRequest.type, {
82+
command: 'lua.reloadFFIMeta',
83+
})
84+
}))
7985
}
8086

8187
/** Creates a new {@link LuaClient} and starts it. */

package/package.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ return {
4646
command = "lua.exportDocument",
4747
title = "%command.exportDocument%",
4848
},
49+
{
50+
command = "lua.reloadFFIMeta",
51+
title = "%command.reloadFFIMeta%",
52+
},
4953
},
5054
menus = {
5155
["editor/context"] = {
@@ -59,6 +63,11 @@ return {
5963
command = "lua.addon_manager.open",
6064
group = "z_commands",
6165
},
66+
{
67+
when = "resourceLangId == lua",
68+
command = "lua.reloadFFIMeta",
69+
group = "z_commands"
70+
},
6271
}
6372
},
6473
configuration = {

0 commit comments

Comments
 (0)