kiss-vscode create empty commands/shortcuts id necessary
This commit is contained in:
@@ -192,9 +192,9 @@
|
|||||||
extensionName
|
extensionName
|
||||||
packageJson.name
|
packageJson.name
|
||||||
keybindings
|
keybindings
|
||||||
packageJson.contributes.keybindings
|
(or packageJson.contributes.keybindings [])
|
||||||
commands
|
commands
|
||||||
packageJson.contributes.commands
|
(or packageJson.contributes.commands [])
|
||||||
id
|
id
|
||||||
"${extensionName}.${id}"
|
"${extensionName}.${id}"
|
||||||
&mut keyBindingIndex null
|
&mut keyBindingIndex null
|
||||||
@@ -226,6 +226,8 @@
|
|||||||
// A binding element is in the JSON that needs to be removed:
|
// A binding element is in the JSON that needs to be removed:
|
||||||
(keyBindingIndex
|
(keyBindingIndex
|
||||||
(keybindings.splice keyBindingIndex 1)))
|
(keybindings.splice keyBindingIndex 1)))
|
||||||
|
(set packageJson.contributes.commands commands)
|
||||||
|
(set packageJson.contributes.keybindings keybindings)
|
||||||
(File.saveContent "package.json" (Json.stringify packageJson null "\t"))
|
(File.saveContent "package.json" (Json.stringify packageJson null "\t"))
|
||||||
`{
|
`{
|
||||||
(function ,functionName ,argList
|
(function ,functionName ,argList
|
||||||
|
|||||||
Reference in New Issue
Block a user