From b6b74da92c8f5f059c52155ff9af14f9daa1e7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Mon, 12 Feb 2024 08:42:28 +0100 Subject: [PATCH] fix: add warning log --- src/services.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services.ts b/src/services.ts index 852927d..8dbad13 100644 --- a/src/services.ts +++ b/src/services.ts @@ -76,6 +76,10 @@ export function registerServices (newServices: monaco.editor.IEditorOverrideServ } export async function initialize (): Promise { + if (typeof process !== 'undefined') { + console.warn('`process` detected. It may have negative impacts on VSCode behavior') + } + // wait a short time for the services to be registered await new Promise(resolve => setTimeout(resolve, 0))