Skip to content

Indent-size setting not wired to the editor (CodeMirror indentUnit) #825

@MrCoder

Description

@MrCoder

Surfaced by the e2e gap suite (SET-4, test.fixme in e2e/tests/settings.spec.js).

Bug: the Settings → indent-size Select renders but settings.indentSize is not connected to the editor. AppRoot.tsx (~1268) threads only theme/fontSize/fontFamily/keymap into <CodeEditor>; nothing sets CM6's indentUnit facet from settings.indentSize. DSL blocks indent a fixed 2 spaces via delimitedIndent (zenumlLanguage.ts) regardless of the setting.

Fix: thread indentSize into the editor and set the indentUnit facet. Then flip SET-4 test.fixmetest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions