Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: one of line setup error with json linting
Andrew Bastin0022efe8442b
diff --git a/packages/hoppscotch-app/helpers/editor/codemirror.ts b/packages/hoppscotch-app/helpers/editor/codemirror.tsindex b2a1e1744..f2b9526e9 100644--- a/packages/hoppscotch-app/helpers/editor/codemirror.ts+++ b/packages/hoppscotch-app/helpers/editor/codemirror.ts@@ -98,8 +98,8 @@ const hoppLinterExt = (hoppLinter: LinterDefinition): Extension => {return linterResult.map((result) => {const startPos =- view.state.doc.line(result.from.line + 1).from + result.from.ch- const endPos = view.state.doc.line(result.to.line + 1).from + result.to.ch+ view.state.doc.line(result.from.line).from + result.from.ch - 1+ const endPos = view.state.doc.line(result.to.line).from + result.to.ch - 1return {from: startPos,