From c020bd59e3bf45698c0eeb73bd9a34ed620553c0 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 2 May 2023 16:58:11 -0400 Subject: [PATCH] Enable whitespace rendering on selection in Monaco (#24444) (#24485) Backport #24444 by @silverwind Remove the [renderWhitespace](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IEditorOptions.html#renderWhitespace) override, so the default value of `selection` takes over and makes whitespace visible on selection. Screenshot 2023-04-30 at 19 09 41 Co-authored-by: silverwind --- web_src/js/features/codeeditor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js index 23a26ba2b0d8..c6d55908f3a2 100644 --- a/web_src/js/features/codeeditor.js +++ b/web_src/js/features/codeeditor.js @@ -13,7 +13,6 @@ const baseOptions = { overviewRulerLanes: 0, renderLineHighlight: 'all', renderLineHighlightOnlyWhenFocus: true, - renderWhitespace: 'none', rulers: false, scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6}, scrollBeyondLastLine: false,