Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 18, 2024

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
6 checks passed
@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