From 2f908dd5efeca6eee148e5ea83eb6acceb692a8e Mon Sep 17 00:00:00 2001 From: Olasunkanmi Fafowora Date: Wed, 13 Mar 2024 12:47:39 +0100 Subject: [PATCH 1/2] Added a small warning for the visual highlighting issue for selected text --- node_modules/monaco-editor-core/monaco.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node_modules/monaco-editor-core/monaco.d.ts b/node_modules/monaco-editor-core/monaco.d.ts index 001b8a6de2..fb686cb434 100644 --- a/node_modules/monaco-editor-core/monaco.d.ts +++ b/node_modules/monaco-editor-core/monaco.d.ts @@ -1130,6 +1130,9 @@ declare namespace monaco.editor { /** * Define a new theme or update an existing theme. + * Setting the background to #00000000 (transparent) produces an error + * with copying/pasting of code on the editor. Kindly opt for other color + * codes apart from #00000000. */ export function defineTheme(themeName: string, themeData: IStandaloneThemeData): void; From b1adbe0949dbddcea2bf1400b7531a06c608efd6 Mon Sep 17 00:00:00 2001 From: Olasunkanmi Fafowora Date: Wed, 13 Mar 2024 12:49:25 +0100 Subject: [PATCH 2/2] Added small warning to monaco editor as well and not just monaco editor core --- node_modules/monaco-editor/monaco.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node_modules/monaco-editor/monaco.d.ts b/node_modules/monaco-editor/monaco.d.ts index af9c307afb..d7bccba37f 100644 --- a/node_modules/monaco-editor/monaco.d.ts +++ b/node_modules/monaco-editor/monaco.d.ts @@ -1135,6 +1135,9 @@ declare namespace monaco.editor { /** * Define a new theme or update an existing theme. + * Setting the background to #00000000 (transparent) produces an error + * with copying/pasting of code on the editor. Kindly opt for other color + * codes apart from #00000000. */ export function defineTheme(themeName: string, themeData: IStandaloneThemeData): void;