diff --git a/src/monaco.ts b/src/monaco.ts index 8641d1e..b58c67b 100644 --- a/src/monaco.ts +++ b/src/monaco.ts @@ -7,6 +7,12 @@ import './worker' import setupExtensions from './editor' import { EditorOpenHandler } from './tools/EditorOpenHandlerRegistry' +// see https://github.com/microsoft/monaco-editor/issues/4378 +// eslint-disable-next-line @typescript-eslint/no-explicit-any +(global).vscode = { + process: false +} + errorHandler.setUnexpectedErrorHandler(error => { console.warn('Unexpected error', error) })