From d64ad4df28f57485eb0599f969595fcbbd636b1c Mon Sep 17 00:00:00 2001 From: purocean Date: Sun, 19 Dec 2021 15:49:59 +0800 Subject: [PATCH] upd: update editor unicodeHighlight options --- src/renderer/services/editor.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/services/editor.ts b/src/renderer/services/editor.ts index 8739bb7d..fea55bcd 100644 --- a/src/renderer/services/editor.ts +++ b/src/renderer/services/editor.ts @@ -13,15 +13,13 @@ let editor: Monaco.editor.IStandaloneCodeEditor /** * Default options. */ -export const defaultOptions: {[key: string]: any} = { +export const defaultOptions: Monaco.editor.IStandaloneEditorConstructionOptions = { value: '', theme: getColorScheme() === 'dark' ? 'vs-dark' : 'vs', fontSize: 16, wordWrap: store.state.wordWrap, links: !isElectron, // wordWrapColumn: 40, - // Set this to false to not auto word wrap minified files - wordWrapMinified: true, mouseWheelZoom: true, // try "same", "indent" or "none" wrappingIndent: 'same', @@ -33,7 +31,9 @@ export const defaultOptions: {[key: string]: any} = { }, readOnly: FLAG_READONLY, acceptSuggestionOnEnter: 'smart', - renderControlCharacters: false, + unicodeHighlight: { + ambiguousCharacters: false, + } } /**