Store some kind of option set in the state #1

Closed
opened 2018-08-28 14:19:42 +02:00 by marijnh · 1 comment
marijnh commented 2018-08-28 14:19:42 +02:00 (Migrated from github.com)

This is where things like tab size and line separators would go, which need a single value that can be a source of truth for various pieces of code. I assume updating options would be a kind of transaction.

This is where things like tab size and line separators would go, which need a single value that can be a source of truth for various pieces of code. I assume updating options would be a kind of transaction.
marijnh commented 2018-09-19 08:28:45 +02:00 (Migrated from github.com)

I've decided to only store two pre-defined options, tabSize and lineSeparator in the state, and do extension via state slots and accessors.

I've decided to only store two pre-defined options, `tabSize` and `lineSeparator` in the state, and do extension via state slots and accessors.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/dev#1
No description provided.