@codemirror/lint
Advanced tools
Comparing version 0.19.1 to 0.19.2
@@ -0,1 +1,7 @@ | ||
## 0.19.2 (2021-09-29) | ||
### Bug fixes | ||
Fix a bug where reconfiguring the lint source didn't restart linting. | ||
## 0.19.1 (2021-09-17) | ||
@@ -2,0 +8,0 @@ |
@@ -206,8 +206,8 @@ import { Decoration, EditorView, ViewPlugin, logException, WidgetType } from '@codemirror/view'; | ||
update(update) { | ||
if (update.docChanged) { | ||
let { delay } = update.state.facet(lintSource); | ||
this.lintTime = Date.now() + delay; | ||
let source = update.state.facet(lintSource); | ||
if (update.docChanged || source != update.startState.facet(lintSource)) { | ||
this.lintTime = Date.now() + source.delay; | ||
if (!this.set) { | ||
this.set = true; | ||
this.timeout = setTimeout(this.run, delay); | ||
this.timeout = setTimeout(this.run, source.delay); | ||
} | ||
@@ -214,0 +214,0 @@ } |
{ | ||
"name": "@codemirror/lint", | ||
"version": "0.19.1", | ||
"version": "0.19.2", | ||
"description": "Linting support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51556