Revert "KissConfig refactor quickPickItem"
This reverts commit fc695e88da
.
This commit is contained in:
@@ -73,18 +73,17 @@
|
|||||||
(awaitLet [kissStr (inputBox)]
|
(awaitLet [kissStr (inputBox)]
|
||||||
(infoMessage (Std.string (evalString kissStr)))))
|
(infoMessage (Std.string (evalString kissStr)))))
|
||||||
|
|
||||||
(defun quickPickItem [label]
|
|
||||||
(object
|
|
||||||
label label
|
|
||||||
description null
|
|
||||||
detail null
|
|
||||||
picked null
|
|
||||||
alwaysShow null))
|
|
||||||
|
|
||||||
(defun :Void runCommand [&opt command]
|
(defun :Void runCommand [&opt command]
|
||||||
(if command
|
(if command
|
||||||
{(set lastCommand command) ((dictGet commands command) (selectedText))}
|
{(set lastCommand command) ((dictGet commands command) (selectedText))}
|
||||||
(let [commandList (map (commands.keys) quickPickItem)]
|
(let [commandList
|
||||||
|
(for description (commands.keys)
|
||||||
|
(object
|
||||||
|
label description
|
||||||
|
description null
|
||||||
|
detail null
|
||||||
|
picked null
|
||||||
|
alwaysShow null))]
|
||||||
(awaitLet [chosenCommand (quickPick commandList)]
|
(awaitLet [chosenCommand (quickPick commandList)]
|
||||||
(when chosenCommand
|
(when chosenCommand
|
||||||
(set lastCommand chosenCommand.label)
|
(set lastCommand chosenCommand.label)
|
||||||
|
Reference in New Issue
Block a user