(entry)
| 1253 | } |
| 1254 | |
| 1255 | function addCommand(entry) { |
| 1256 | const command = { |
| 1257 | ...entry, |
| 1258 | defaultDescription: entry.description || entry.name, |
| 1259 | defaultKey: entry.key ?? null, |
| 1260 | key: entry.key ?? null, |
| 1261 | }; |
| 1262 | commandMap.set(entry.name, command); |
| 1263 | } |
| 1264 | |
| 1265 | function resolveView(view) { |
| 1266 | return view || editorManager?.editor || null; |
no test coverage detected