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

fix(language-core): generate each interpolation into separate virtual code #4165

Merged
merged 1 commit into from Mar 27, 2024

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Mar 27, 2024

close #3973, close #4078

After Volar 2.1, there has been a change in the handling of indentation for embedded code. It now only calculates the initial indentation of the entire virtual document instead of the each interpolation segment. Therefore, each interpolation segment now needs to be generated into a separate virtual document so that Volar can handle the initial indentation of each segment independently.

@johnsoncodehk johnsoncodehk merged commit d6f2519 into master Mar 27, 2024
12 checks passed
@johnsoncodehk johnsoncodehk deleted the inline-ts-format branch March 27, 2024 15:35
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.

Formatting of :class={} definitions Since 2.x incorrect indent format on nested template tag
1 participant