fix: one of line setup error with json linting
This commit is contained in:
@@ -98,8 +98,8 @@ const hoppLinterExt = (hoppLinter: LinterDefinition): Extension => {
|
|||||||
|
|
||||||
return linterResult.map((result) => {
|
return linterResult.map((result) => {
|
||||||
const startPos =
|
const startPos =
|
||||||
view.state.doc.line(result.from.line + 1).from + result.from.ch
|
view.state.doc.line(result.from.line).from + result.from.ch - 1
|
||||||
const endPos = view.state.doc.line(result.to.line + 1).from + result.to.ch
|
const endPos = view.state.doc.line(result.to.line).from + result.to.ch - 1
|
||||||
|
|
||||||
return {
|
return {
|
||||||
from: startPos,
|
from: startPos,
|
||||||
|
|||||||
Reference in New Issue
Block a user