[vscode] remove unnecessary binding

This commit is contained in:
2021-05-22 12:39:31 -06:00
parent a52d86f142
commit 9bee45b55a

View File

@@ -101,8 +101,7 @@
(defvar &mut :vscode.WebviewPanel shortcutPanel null)
(defun :Void showShortcutPanel [&opt :Map<String,ShortcutKey> prefixMap]
// Preserve the selected text and focused document before opening the webview:
(let [inputText (selectedText)
document .document activeTextEditor]
(let [inputText (selectedText)]
// When called without a prefixMap, if a shortcut panel is still open, close it and start over:
(unless prefixMap
(when shortcutPanel