Allow updating Kiss-VScode as a VSCode command

This commit is contained in:
2021-11-27 13:41:40 -07:00
parent deb677ec60
commit d56eb75999
2 changed files with 12 additions and 1 deletions

View File

@@ -54,6 +54,10 @@
"title": "Kiss: Run a Kiss keyboard shortcut command",
"command": "kiss.runKeyboardShortcut"
},
{
"title": "Kiss: Update Kiss-VSCode from the currently installed Haxelib package",
"command": "kiss.updateKissVscode"
},
{
"title": "Kiss: Reload Kiss config",
"command": "kiss.reloadConfig"

View File

@@ -1,4 +1,5 @@
(load "Util.kiss")
// This also loads Util.kiss:
(load "commands/ExtensionTools.kiss")
(function userHome [] (or (Sys.getEnv "MSYSHOME") (Sys.getEnv "HOME") (Sys.getEnv "UserProfile")))
(function userConfigDir []
@@ -127,6 +128,12 @@
(.runLastCommand (the KissConfig config))
(Vscode.window.showErrorMessage "Can't run commands! No config is loaded.")))))
(context.subscriptions.push
(Vscode.commands.registerCommand
"kiss.updateKissVscode"
(lambda :Void []
(updateKissVscode))))
(context.subscriptions.push
(Vscode.commands.registerCommand
"kiss.runKeyboardShortcut"