()
| 452 | } |
| 453 | |
| 454 | function makeRainbowBracketExtension() { |
| 455 | const enabled = appSettings?.value?.rainbowBrackets ?? true; |
| 456 | if (!enabled) return []; |
| 457 | |
| 458 | const themeId = appSettings?.value?.editorTheme || "one_dark"; |
| 459 | return rainbowBrackets({ |
| 460 | colors: getRainbowBracketColors(getThemeConfig(themeId)), |
| 461 | }); |
| 462 | } |
| 463 | |
| 464 | function makeWhitespaceTheme() { |
| 465 | return EditorView.theme({ |
no test coverage detected