Allow updating Kiss-VScode as a VSCode command
This commit is contained in:
@@ -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"
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user