Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(code): reintroduce tab size of 4
Elian Doran9867cd83c4a4
diff --git a/packages/codemirror/src/index.ts b/packages/codemirror/src/index.tsindex 0a3b8989dd..3555fd30cc 100644--- a/packages/codemirror/src/index.ts+++ b/packages/codemirror/src/index.ts@@ -1,6 +1,6 @@import { defaultKeymap, indentWithTab } from "@codemirror/commands";-import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig, type KeyBinding } from "@codemirror/view";-import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting } from "@codemirror/language";+import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view";+import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit } from "@codemirror/language";import { Compartment } from "@codemirror/state";import byMimeType from "./syntax_highlighting.js";@@ -25,7 +25,8 @@ export default class CodeMirror extends EditorView {]),languageCompartment.of([]),syntaxHighlighting(defaultHighlightStyle),- lineNumbers()+ lineNumbers(),+ indentUnit.of(" ".repeat(4))];if (Array.isArray(config.extensions)) {