MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / addCommand

Function addCommand

src/lib/editorManager.js:975–979  ·  view source on GitHub ↗
(descriptor)

Source from the content-addressed store, hash-verified

973
974 editor.commands = {
975 addCommand(descriptor) {
976 const command = registerExternalCommand(descriptor);
977 refreshCommandKeymap(editor);
978 return command;
979 },
980 removeCommand(name) {
981 if (!name) return;
982 removeExternalCommand(name);

Callers

nothing calls this directly

Calls 2

registerExternalCommandFunction · 0.90
refreshCommandKeymapFunction · 0.90

Tested by

no test coverage detected