File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/pkg/utils/monaco-editor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { globalCache , systemConfig , messageQueue } from "@App/pages/store/global" ;
2- import { SystemConfigChange } from "@App/pkg/config/config" ;
2+ import { SystemConfigChange , type SystemConfigKey } from "@App/pkg/config/config" ;
33import type { TKeyValue } from "@Packages/message/message_queue" ;
44import EventEmitter from "eventemitter3" ;
55import { languages } from "monaco-editor" ;
@@ -477,8 +477,9 @@ export default function registerEditor() {
477477 updateLang ( res ) ;
478478 } ) ;
479479
480- messageQueue . subscribe < TKeyValue > ( SystemConfigChange , ( { key, value } ) => {
480+ messageQueue . subscribe < TKeyValue < SystemConfigKey > > ( SystemConfigChange , ( { key, value } ) => {
481481 if ( key === "language" ) {
482+ // @ts -ignore
482483 updateLang ( value ) ;
483484 }
484485 } ) ;
You can’t perform that action at this time.
0 commit comments