Skip to content

Comments

Fix CSS linter highlight range in CodeMirror v6#3919

Open
VaibhavNarayann wants to merge 1 commit intoprocessing:develop-codemirror-v6from
VaibhavNarayann:fix-css-linter-highlight
Open

Fix CSS linter highlight range in CodeMirror v6#3919
VaibhavNarayann wants to merge 1 commit intoprocessing:develop-codemirror-v6from
VaibhavNarayann:fix-css-linter-highlight

Conversation

@VaibhavNarayann
Copy link

Fixes #3871

Summary

This PR fixes incorrect highlight ranges produced by the CSS linter in the CodeMirror v6 branch.

The diagnostic range calculation was causing highlights to appear misaligned or incorrect.

Changes

  • Corrected highlight range calculation logic
  • Ensured diagnostic positions align correctly with the document
  • No server-side changes

Verification

  • Manually verified in develop-codemirror-v6 branch
  • CSS lint errors now highlight the correct range
  • No regressions observed in JavaScript or HTML linting

Checklist

I have verified that this pull request:

  • No linting errors (npm run lint)
  • Changes are on a dedicated feature branch
  • PR references the related issue

@welcome
Copy link

welcome bot commented Feb 20, 2026

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant