mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
c8875b29c1
- Refactored handlers to use consistent early return pattern for better readability
- Added blocking behavior for unquoted contexts (sound(, scale(, bank()) to guide users toward correct syntax instead of showing irrelevant fallback completions
- Fixed soundHandler to show all sounds when fragment is empty (e.g., sound(""))
- Simplified bankHandler by removing complex quote handling logic in favor of consistent blocking pattern
- Made scale handler regex patterns consistent (removed leading dots)
- All handlers now follow same structure: block unquoted contexts, provide completions for quoted contexts
@strudel/codemirror
This package contains helpers and extensions to use codemirror6. See vite-vanilla-repl-cm6 as an example of using it.