Repository navigation
Conversation
Show whether a selected task comes from a package script or Vite configuration. Recheck the script key before opening it, and resolve the current package config with the workspace Vite+ loader on demand. Offer the editor action only when the host provides it.
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vite-task
@vitejs/devtools-vitest
commit: |
Handle UTF-8 BOMs and Vite+ workspaces without a root manifest. Resolve the current target both when showing an action and when opening it. Refresh availability after a failed click so stale targets disappear and editor failures remain retryable.
Read up to 16 manifests per batch so large workspaces can identify task sources under a low file descriptor limit.
Compare the command and source kind from the displayed graph with the indexed task before offering or opening its source. Keep the newest successful index when overlapping refreshes finish out of order.
A manifest save can remove a script after the CLI has included it in the graph. Compare the source before and after the graph read for known packages. Confirm inferred config tasks from newly discovered packages in one additional graph query.
Read member manifests before and after Vite+ returns the task graph. Only offer an editor action for a string command when both reads agree on its source. This catches same-name source changes and keeps generated commands available on the first load with a single Vite+ graph query.
Return the diagnostic and its recovery together when the task panel requests them. Give an unreadable manifest its own diagnosis. Check button availability separately so a later file change preserves the original editor error and its recovery.
|
Thanks for working on this! Being able to jump from a task to the script that defines it would save a manual lookup, especially in a monorepo. Could you open an issue in For example, a If the graph included |
Summary
The Commands tab shows what
packages/config#verifyruns. To editverify, you still have to find its declaration in the package.The config file can import the task definition. If the host cannot open an editor or the package has no unique target, the panel still shows the source label.
Evidence
packages/config/package.json:9, onverifybetweenpreverifyandpostverify.vite.config.tsto the editor without evaluating it. After a second standard config file appeared, the next click hid the button and kept the source label.Unknownand made no editor call. A task that generated a different command on every load opened its package’svite.config.mjson the first load.Merge Danger
Door: two-way
Reverting the change requires no migration.
Blast Radius: navigation
Vite Task reads package manifests in batches before and after one graph query. Complex workspace patterns can require scanning more directories. When a script changes during that query, its editor action stays hidden until a refresh can confirm its source.