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",
|
"title": "Kiss: Run a Kiss keyboard shortcut command",
|
||||||
"command": "kiss.runKeyboardShortcut"
|
"command": "kiss.runKeyboardShortcut"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "Kiss: Update Kiss-VSCode from the currently installed Haxelib package",
|
||||||
|
"command": "kiss.updateKissVscode"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "Kiss: Reload Kiss config",
|
"title": "Kiss: Reload Kiss config",
|
||||||
"command": "kiss.reloadConfig"
|
"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 userHome [] (or (Sys.getEnv "MSYSHOME") (Sys.getEnv "HOME") (Sys.getEnv "UserProfile")))
|
||||||
(function userConfigDir []
|
(function userConfigDir []
|
||||||
@@ -127,6 +128,12 @@
|
|||||||
(.runLastCommand (the KissConfig config))
|
(.runLastCommand (the KissConfig config))
|
||||||
(Vscode.window.showErrorMessage "Can't run commands! No config is loaded.")))))
|
(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
|
(context.subscriptions.push
|
||||||
(Vscode.commands.registerCommand
|
(Vscode.commands.registerCommand
|
||||||
"kiss.runKeyboardShortcut"
|
"kiss.runKeyboardShortcut"
|
||||||
|
|||||||
Reference in New Issue
Block a user