@codemirror/lint
Advanced tools
Changelog
6.3.0 (2023-06-23)
A new previousDiagnostic
command can be used to move back through the active diagnostics.
Changelog
6.2.2 (2023-06-05)
Make sure lint gutter tooltips are properly closed when the content of their line changes.
Changelog
6.2.1 (2023-04-13)
The linter
function now eagerly includes all lint-related extensions, rather than appending them to the configuration as-needed, so that turning off linting by clearing the compartment that contains it works properly.
Changelog
6.2.0 (2023-02-27)
The new needsRefresh
option to linter
makes it possible to cause linting to be recalculated for non-document state changes.
Changelog
6.1.1 (2023-02-15)
Give lint action buttons a pointer cursor style.
Fix a bug that caused diagnostic action callbacks to be called twice when their button was clicked.
Changelog
6.1.0 (2022-11-15)
The new forEachDiagnostic
function can be used to iterate over the diagnostics in an editor state.
Changelog
0.20.3 (2022-05-25)
Diagnostic objects may now have a renderMessage
method to render their message to the DOM.
Changelog
0.20.2 (2022-05-02)
The package now exports the LintSource
function type.
The new markerFilter
and tooltipFilter
options to linter
and lintGutter
allow more control over which diagnostics are visible and which have tooltips.