(descriptor)
| 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); |
nothing calls this directly
no test coverage detected