Constructor
new CodeMirrorWorker(lang)
#
Properties
lang :string
#
The language for which the worker is created.
Methods
lint(view) → {Promise}
#
Get lint diagnostics for the given document.
Parameters:
Name | Type | Description |
---|---|---|
view |
EditorView |
- Source:
Returns:
- Type
- Promise
Get lint diagnostics for the given document.
setConfig(config)
#
Set the configuration for the worker.
pos(view, line, column) → {number}static
#
Calculate the position in the document for a given line and column.
Parameters:
Name | Type | Description |
---|---|---|
view |
EditorView | |
line |
number | |
column |
number |
- Source:
Returns:
- Type
- number
Calculate the position in the document for a given line and column.