Skip to content

Commit 526ed45

Browse files
committed
feat: Add a method to preload a language
1 parent f603f7b commit 526ed45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { monaco, updateKeybindings, updateUserConfiguration } from '@codingame/monaco-editor-wrapper'
1+
import { loadLanguage, monaco, updateKeybindings, updateUserConfiguration } from '@codingame/monaco-editor-wrapper'
22
import { useThemeData, useUserConfiguration } from './hooks'
33
import MonacoEditor, { MonacoEditorProps } from './MonacoEditor'
44

@@ -8,7 +8,8 @@ export {
88
useThemeData,
99
useUserConfiguration,
1010
updateKeybindings,
11-
updateUserConfiguration
11+
updateUserConfiguration,
12+
loadLanguage
1213
}
1314
export type {
1415
MonacoEditorProps

0 commit comments

Comments
 (0)