Open evilpose opened 4 days ago
You can probably replace the Log/Logger service override with you custom impl. The default one logs to the console
I've answered too fast! It's an UnexpectedError
, the code allows to override the handler but the libs don't expose it, fixing that
with https://github.com/CodinGame/monaco-vscode-api/pull/513, you'll be able to do
import { setUnexpectedErrorHandler } from 'vscode/monaco'
setUnexpectedErrorHandler((e) => {
// whatever you want
})
I want to be able to proactively capture this error, so that it is not displayed in the console, but in the form of a UI on the page. I couldn't find a similar hook, can you help me check this problem?