Skip to content

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

Merged
johnsoncodehk merged 3 commits intomasterfrom
angular-template-mapping
Jun 18, 2024
Merged

refactor(source-map): improve range mapping accuracy#204
johnsoncodehk merged 3 commits intomasterfrom
angular-template-mapping

Conversation

@johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Jun 18, 2024

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
Copy link
Member Author

/ecosystem-ci run

@volar-ecosystem-ci
Copy link

📝 Ran ecosystem CI on 254f959: Open

suite result latest scheduled
astro failure failure
mdx success success
services failure success
vue failure failure

@johnsoncodehk johnsoncodehk merged commit 6000ef5 into master Jun 18, 2024
@johnsoncodehk johnsoncodehk deleted the angular-template-mapping branch June 18, 2024 20:23
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