mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
"ide-warp" requests __tsd/open-source, which only @tanstack/devtools-vite
serves. Anything else that injects data-tsd-source -- an SWC plugin under
Next.js, for instance -- drives the overlay fine but has no endpoint to answer
the click, and fetch(...).catch(() => {}) hides the 404, so the click looks
like it did nothing.
openSourceUrl takes the clicked element's data-tsd-source value and returns
the URL to request. The whole URL rather than just its base, because another
host generally wants another parameter shape: Next's own editor endpoint takes
the position split into file, line1 and column1.
A function rather than a string: settings are persisted to local storage and
take priority over config on the next load, so a string would keep serving
whatever the app was configured with the first time it ran. JSON.stringify
drops functions, which keeps the key out of storage the way customTrigger
already is.
|
History
|
|
|---|---|---|
| .. | ||
| framework | ||
| plugins | ||
| reference | ||
| superpowers/specs | ||
| architecture.md | ||
| bidirectional-communication.md | ||
| building-custom-plugins.md | ||
| config.json | ||
| configuration.md | ||
| devtools-utils.md | ||
| event-system.md | ||
| installation.md | ||
| overview.md | ||
| plugin-configuration.md | ||
| plugin-lifecycle.md | ||
| plugin-workspace.md | ||
| production.md | ||
| quick-start.md | ||
| source-inspector.md | ||
| third-party-plugins.md | ||
| vite-plugin.md | ||