feat: support automatic workspace detection in Dev (#2985)

Adds support for [Automatic Workspace
Detection](https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md).

- Avoids 404's or middleware logging when this feature is active (e.g.
Chrome/Edge with DevTools open)
- Generates the same UUID based on root folder path (without writing
anything to disk)
- The middleware is lazy and does nothing until the path is opened for
`com.chrome.devtools.json`
This commit is contained in:
Christian Svensson
2025-05-21 11:09:43 +02:00
committed by GitHub
parent bc8cdb9c7b
commit db142115ec
5 changed files with 358 additions and 30 deletions
+1
View File
@@ -45,6 +45,7 @@
"@std/cli": "jsr:@std/cli@^1.0.17",
"@std/collections": "jsr:@std/collections@^1.0.11",
"@std/http": "jsr:@std/http@^1.0.15",
"@std/uuid": "jsr:@std/uuid@^1.0.7",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.29",
"preact": "npm:preact@^10.26.6",
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",