feat(use-problem): add monacoLanguageClient state management

This commit is contained in:
cfngc4594 2025-03-23 16:59:22 +08:00
parent 0e5e683ef3
commit becb48f4d7

View File

@ -39,10 +39,12 @@ export const useProblem = () => {
const { const {
hydrated, hydrated,
editor, editor,
monacoLanguageClient,
globalLang, globalLang,
currentLang, currentLang,
currentValue, currentValue,
setEditor, setEditor,
setMonacoLanguageClient,
setGlobalLang, setGlobalLang,
setCurrentLang, setCurrentLang,
setCurrentValue, setCurrentValue,
@ -109,7 +111,9 @@ export const useProblem = () => {
return { return {
hydrated, hydrated,
editor, editor,
monacoLanguageClient,
setEditor, setEditor,
setMonacoLanguageClient,
globalLang, globalLang,
currentLang, currentLang,
currentValue, currentValue,