Navigation Menu

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: wrong check for whether jsx option is set #1595

Merged
merged 2 commits into from Jul 19, 2022
Merged

fix: wrong check for whether jsx option is set #1595

merged 2 commits into from Jul 19, 2022

Conversation

rchl
Copy link
Collaborator

@rchl rchl commented Jul 18, 2022

The old logic (compilerOptions.jsx ?? ts.JsxEmit.Preserve) !== ts.JsxEmit.Preserve didn't seem right in case the compilerOptions.jsx was not set as then it assumed that the default value is preserve and thus that the resolved value is also preserve. That would result in no diagnostic from https://github.com/johnsoncodehk/volar/blob/a77cc83c9f6ac0ff4fdab9989fa9eceadc844a86/packages/vue-language-service/src/plugins/vue.ts#L152-L165 being created.

Maybe this had to do with a change in 4e6f6f7 where the real, evaluated options were checked? Not sure.

@johnsoncodehk johnsoncodehk merged commit 834a866 into vuejs:master Jul 19, 2022
@rchl rchl deleted the fix/jsx-check branch July 19, 2022 19:50
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.

None yet

2 participants