File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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. */
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments