Skip to content

Commit

Permalink
fix monaco line terminator issue promp - silenced by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Dec 31, 2021
1 parent 2fe5311 commit 7a780e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/components/code-editor/monaco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export function MonacoEditor(props: MonacoEditorProps) {
loading={<MonacoEmptyMock />}
defaultValue={props.defaultValue ?? "// no content"}
theme="vs-dark"
options={{ ...props.options }}
options={{
...props.options,
// overrided default options
unusualLineTerminators: "off",
}}
/>
);
}
Expand Down

1 comment on commit 7a780e8

@vercel
Copy link

@vercel vercel bot commented on 7a780e8 Dec 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.