linter
Create a linter extension with a suspend source.
The source is invoked in a coroutine scope tied to the linter's lifecycle once the document has been idle for LintConfig.delay, and cancelled when the document changes or the editor is destroyed. All linters in an editor run together, and their diagnostics are shown as one list.
Parameters
source
Suspend function that produces diagnostics.
config
Linter configuration.
Create a linter extension.
The source runs once the document has been idle for LintConfig.delay. All linters in an editor run together, and their diagnostics are shown as one list.
Parameters
source
Function that produces diagnostics for the current view.
config
Linter configuration.