Skip to content
Snippets Groups Projects
Unverified Commit 37a22136 authored by 最萌小汐's avatar 最萌小汐 Committed by GitHub
Browse files

Merge pull request #122 from fesily/add-lua.reloadFFIMeta

add lua.reloadFFIMeta
parents 86fa56a4 7f55b479
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,12 @@ function registerCustomCommands(context: ExtensionContext) {
arguments: [output.toString()],
});
}));
context.subscriptions.push(Commands.registerCommand('lua.reloadFFIMeta', async () => {
defaultClient.client.sendRequest(ExecuteCommandRequest.type, {
command: 'lua.reloadFFIMeta',
})
}))
}
/** Creates a new {@link LuaClient} and starts it. */
......
......@@ -46,6 +46,10 @@ return {
command = "lua.exportDocument",
title = "%command.exportDocument%",
},
{
command = "lua.reloadFFIMeta",
title = "%command.reloadFFIMeta%",
},
},
menus = {
["editor/context"] = {
......@@ -59,6 +63,11 @@ return {
command = "lua.addon_manager.open",
group = "z_commands",
},
{
when = "resourceLangId == lua",
command = "lua.reloadFFIMeta",
group = "z_commands"
},
}
},
configuration = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment