Skip to content

feat: support Vite+ detection and per-tool sources - #583

Draft
fengmk2 wants to merge 5 commits into
oxc-project:mainfrom
fengmk2:feat/vite-plus-detection
Draft

feat: support Vite+ detection and per-tool sources#583
fengmk2 wants to merge 5 commits into
oxc-project:mainfrom
fengmk2:feat/vite-plus-detection

Conversation

@fengmk2

@fengmk2 fengmk2 commented Sep 13, 2026

Copy link
Copy Markdown

The plugin detects direct vite-plus dependencies and starts language servers with vp lint --lsp and vp fmt --lsp.

Users can select Vite+ or standalone binaries separately for Oxlint and Oxfmt. Manual language server paths keep priority. Detection stops at monorepo boundaries and prefers local installations. Each Vite+ server uses the package that declares vite-plus as its working directory. It disables nested configuration lookups.

The plugin limits the number of package scopes that run at the same time. Selecting or saving a file restores a stopped scope. A save can use a separate LSP session with the current document text. Background saves keep selected editor scopes running within the server limit. Standalone servers use nested workspace roots when their binaries are installed in a parent package.

The plugin shows install or upgrade hints when a Vite+ server is unavailable. Installation changes restart the servers.

This implements the Vite+ detection RFC and follows the VS Code implementation.

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