volarjs / volar.js

💙🌊
https://volarjs.dev/
MIT License
963 stars 47 forks source link

refactor(source-map): improve range mapping accuracy #204

Closed johnsoncodehk closed 2 months ago

johnsoncodehk commented 2 months ago

Add range mapping APIs (getSourceStartEnd, getGeneratedStartEnd), which will only try to map start, end positions from the same mapping item.

This is the range mapping behavior that was originally @volar/language-service, and is now moved into the @volar/source-map core so that it is also valid in the TS plugin.

johnsoncodehk commented 2 months ago

/ecosystem-ci run

volar-ecosystem-ci[bot] commented 2 months ago

📝 Ran ecosystem CI on 254f959: Open

suite result latest scheduled
astro :x: failure :x: failure
mdx :white_check_mark: success :white_check_mark: success
services :x: failure :white_check_mark: success
vue :x: failure :x: failure