From 7a780e8a19950d0b0653aafa278823927520ccfc Mon Sep 17 00:00:00 2001 From: softmarshmallow Date: Fri, 31 Dec 2021 19:16:44 +0900 Subject: [PATCH] fix monaco line terminator issue promp - silenced by default. --- editor/components/code-editor/monaco.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/components/code-editor/monaco.tsx b/editor/components/code-editor/monaco.tsx index 92538629..7030a3bf 100644 --- a/editor/components/code-editor/monaco.tsx +++ b/editor/components/code-editor/monaco.tsx @@ -30,7 +30,11 @@ export function MonacoEditor(props: MonacoEditorProps) { loading={} defaultValue={props.defaultValue ?? "// no content"} theme="vs-dark" - options={{ ...props.options }} + options={{ + ...props.options, + // overrided default options + unusualLineTerminators: "off", + }} /> ); }