refactor(source-code-editor): update editor settings by adjusting line number display, disabling folding, and modifying whitespace rendering options

This commit is contained in:
Anish Sarkar 2026-04-28 01:26:33 +05:30
parent b85b7cbae0
commit 8c06709295

View file

@ -114,10 +114,10 @@ export function SourceCodeEditor({
automaticLayout: true, automaticLayout: true,
minimap: { enabled: false }, minimap: { enabled: false },
lineNumbers: "on", lineNumbers: "on",
lineNumbersMinChars: 3, lineNumbersMinChars: 4,
lineDecorationsWidth: 12, lineDecorationsWidth: 20,
glyphMargin: false, glyphMargin: false,
folding: true, folding: false,
overviewRulerLanes: 0, overviewRulerLanes: 0,
hideCursorInOverviewRuler: true, hideCursorInOverviewRuler: true,
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
@ -142,7 +142,12 @@ export function SourceCodeEditor({
fontSize, fontSize,
fontFamily: fontFamily:
"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace", "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace",
renderWhitespace: "selection", renderWhitespace: "none",
renderValidationDecorations: "off",
colorDecorators: false,
codeLens: false,
hover: { enabled: false },
stickyScroll: { enabled: false },
unicodeHighlight: { unicodeHighlight: {
ambiguousCharacters: false, ambiguousCharacters: false,
invisibleCharacters: false, invisibleCharacters: false,