(value: string, path: string, language?: string)
| 8 | import { debounce } from "throttle-debounce"; |
| 9 | |
| 10 | function createModel(value: string, path: string, language?: string) { |
| 11 | const uri = monaco.Uri.parse(`wave://editor/${encodeURIComponent(path)}`); |
| 12 | return monaco.editor.createModel(value, language, uri); |
| 13 | } |
| 14 | |
| 15 | type CodeEditorProps = { |
| 16 | text: string; |