fix(oxlint,oxfmt): Check env.VITE_PLUS_VERSION for Vite+#20417
fix(oxlint,oxfmt): Check env.VITE_PLUS_VERSION for Vite+#20417
env.VITE_PLUS_VERSION for Vite+#20417Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
env.VITE_PLUS_VERSION for Vite+
8099731 to
b8fa6a8
Compare
camc314
left a comment
There was a problem hiding this comment.
Can you explain how this works with LSP?
I think users have to manually configure the env var? This will break support when users are using 1x VP workspace & 1x non-VP workspace, since env vars are singletons across the process. Futhermore, I think this increases the barrier to entry, in the same way that requireing a CLI flag to work out which config file would be.
This is false, since Vite+'s bin wrapper handle this.
This is yes, and no. But this may be a trade-off... Do we break Oxc users to support Vite+, or do we protect one and break the other? Personally, I think this approach is safer, as long as it works if the relationship between the workspace and the LSP is properly maintained. At least for now, this will only affect Vite+ users, whereas before, both Oxc and Vite+ users were having issues. But if we do oxc-project/oxc-vscode#145, this plan will work without worries. |
b8fa6a8 to
ba64c12
Compare
2ec8349 to
89ce30b
Compare
ba64c12 to
f75b58c
Compare
This only will "fix integration" with VS Code.
I added a notice in the issue, that the "root" problem could also affect non js/ts config. |
|
In the current situation,
Given this premise, I believe the only thing Oxapps can do is to make it possible to completely ignore In that case, enabling the Vite+ mode switch becomes a responsibility of the extension, and I believe that is a necessary cost for the feature of supporting Vite+. |

Fixes #20416
envvarsVite+ PR: voidzero-dev/vite-plus#946
(We don't need to worry about the release timing, since Vite+ locks our version.)