Skip to content

Commit

Permalink
Enable whitespace rendering on selection in Monaco (go-gitea#24444) (g…
Browse files Browse the repository at this point in the history
…o-gitea#24485)

Backport go-gitea#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.

<img width="128" alt="Screenshot 2023-04-30 at 19 09 41"
src="https://user-images.githubusercontent.com/115237/235366707-d598268d-03cc-4839-a195-c460bddae99b.png">

Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
2 people authored and Loïc Dachary committed May 3, 2023
1 parent 7ceca5f commit feeadb9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion web_src/js/features/codeeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const baseOptions = {
overviewRulerLanes: 0,
renderLineHighlight: 'all',
renderLineHighlightOnlyWhenFocus: true,
renderWhitespace: 'none',
rulers: false,
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
scrollBeyondLastLine: false,
Expand Down

0 comments on commit feeadb9

Please sign in to comment.