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

feat(vscode): support for disabling typescript plugin #4226

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Apr 7, 2024

Changes

When Hybrid Mode is explicitly or automatically disabled, @vue/typescript-plugin will no longer be effective by default to avoid potential crashes of tsserver.

A new option "vue.server.hybridMode": "typeScriptPluginOnly" is introduced, to address which allows users to still enable @vue/typescript-plugin when Hybrid Mode is disabled.

For explanations of all states, please refer to:

"enum": [
"auto",
"typeScriptPluginOnly",
true,
false
],
"enumDescriptions": [
"Automatically detect and enable TypeScript Plugin/Hybrid Mode in a safe environment.",
"Only enable Vue TypeScript Plugin but disable Hybrid Mode.",
"Enable TypeScript Plugin/Hybrid Mode.",
"Disable TypeScript Plugin/Hybrid Mode."
],

@johnsoncodehk johnsoncodehk marked this pull request as ready for review April 7, 2024 10:07
@johnsoncodehk johnsoncodehk merged commit e9fa3a2 into master Apr 7, 2024
6 checks passed
@johnsoncodehk johnsoncodehk deleted the allow-disabling-typescript-plugin branch April 7, 2024 10:12
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