MCPcopy Index your code
hub / github.com/VSpaceCode/VSpaceCode / createCommandText

Function createCommandText

scripts/keybindings.js:21–29  ·  view source on GitHub ↗
(binding)

Source from the content-addressed store, hash-verified

19}
20
21function createCommandText(binding) {
22 if (binding.command) {
23 return `\`${binding.command}\``;
24 } else if (binding.commands) {
25 return binding.commands.map((c) => `\`${c}\``).join("<br />");
26 } else {
27 return "N/A";
28 }
29}
30
31function wrapCode(text) {
32 if (text && text.length > 0) {

Callers 1

keybindings.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected