From 1d685069023ad245d9b5c9b63bdf62c4a336bdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Thu, 8 Feb 2024 18:31:34 +0100 Subject: [PATCH] fix: force vscode to detect web platform --- src/monaco.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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) })