forked from SonjayaJetBrain/Super-Brocoli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor-configuration-extra.ts
31 lines (27 loc) · 1.06 KB
/
editor-configuration-extra.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { EditorConfiguration } from 'codemirror'
/**
* Adds type declarations for properties that should be in `EditorConfiguration`
* but aren't.
*/
export interface IEditorConfigurationExtra extends EditorConfiguration {
/** The scrollbar style for the text area. */
readonly scrollbarStyle: 'native' | 'simple'
/**
* This is used by the mark-selection addon and is unused if that
* addon hasn't been loaded
*/
readonly styleSelectedText?: boolean
/**
* A regular expression used to determine which characters should
* be replaced by a special placeholder.
*/
readonly specialChars?: RegExp
/**
* Explicitly set the line separator for the editor. By default (value null),
* the document will be split on CRLFs as well as lone CRs and LFs, and a
* single LF will be used as line separator in all output (such as getValue).
* When a specific string is given, lines will only be split on that string,
* and output will, by default, use that same separator.
*/
readonly lineSeparator?: string
}