mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(use-problem): add monacoLanguageClient state management
This commit is contained in:
parent
0e5e683ef3
commit
becb48f4d7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user