()
| 488 | } |
| 489 | |
| 490 | function countTermBlocks(): number { |
| 491 | const allBCMs = getAllBlockComponentModels(); |
| 492 | let count = 0; |
| 493 | const gsGetBound = globalStore.get.bind(globalStore); |
| 494 | for (const bcm of allBCMs) { |
| 495 | const viewModel = bcm.viewModel; |
| 496 | if (viewModel.viewType == "term" && viewModel.isBasicTerm?.(gsGetBound)) { |
| 497 | count++; |
| 498 | } |
| 499 | } |
| 500 | return count; |
| 501 | } |
| 502 | |
| 503 | function registerGlobalKeys() { |
| 504 | globalKeyMap.set("Cmd:]", () => { |
no test coverage detected