mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
ts by default
This commit is contained in:
parent
3e5ead2547
commit
00fc9964e5
1 changed files with 1 additions and 1 deletions
|
|
@ -708,7 +708,7 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars
|
|||
onCreateInstance={useCallback((editor: CodeEditorWidget) => {
|
||||
const model = modelOfEditorId[id] ?? modelService.createModel(
|
||||
initValueRef.current, {
|
||||
languageId: languageRef.current ? languageRef.current : '',
|
||||
languageId: languageRef.current ? languageRef.current : 'typescript',
|
||||
onDidChange: (e) => { return { dispose: () => { } } } // no idea why they'd require this
|
||||
})
|
||||
modelRef.current = model
|
||||
|
|
|
|||
Loading…
Reference in a new issue