const canvasRef = useRef<HTMLCanvasElement>(null);这里我们声明了一个名为canvasRef的ref,并告诉Type...
monacoInstance) { // useMonaco returns a monaco instance but initialisation is done asynchronously // dont execute the logic until the instance is initialised return; } try { monacoInstance.languages.typescript.javascriptDefaults.setDiagnosticsOptions( { noSemanticValidation: true, noSyntaxValidation: ...