From becb48f4d753ce9800fb5f662dfccc0655b01ce9 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 23 Mar 2025 16:59:22 +0800 Subject: [PATCH] feat(use-problem): add monacoLanguageClient state management --- src/hooks/use-problem.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/use-problem.ts b/src/hooks/use-problem.ts index 58f961c..52d4c39 100644 --- a/src/hooks/use-problem.ts +++ b/src/hooks/use-problem.ts @@ -39,10 +39,12 @@ export const useProblem = () => { const { hydrated, editor, + monacoLanguageClient, globalLang, currentLang, currentValue, setEditor, + setMonacoLanguageClient, setGlobalLang, setCurrentLang, setCurrentValue, @@ -109,7 +111,9 @@ export const useProblem = () => { return { hydrated, editor, + monacoLanguageClient, setEditor, + setMonacoLanguageClient, globalLang, currentLang, currentValue,