@react-devtools-plus/kit 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2422,8 +2422,10 @@ function isValidApiResponse(response) {
2422
2422
  }
2423
2423
  async function openInEditor(fileName, line, column) {
2424
2424
  const fileParam = encodeURIComponent(`${fileName}:${line}:${column}`);
2425
+ const editor = getConfiguredEditor();
2426
+ const editorParam = encodeURIComponent(editor);
2425
2427
  const basePath = getDevToolsBasePath();
2426
- const endpoints = [`/__open-in-editor?file=${fileParam}`, `${basePath}/api/open-in-editor?file=${fileParam}`];
2428
+ const endpoints = [`/__open-in-editor?file=${fileParam}&editor=${editorParam}`, `${basePath}/api/open-in-editor?file=${fileParam}&editor=${editorParam}`];
2427
2429
  for (const url of endpoints) try {
2428
2430
  if (isValidApiResponse(await fetch(url))) return;
2429
2431
  } catch (_unused2) {}
package/dist/index.js CHANGED
@@ -2398,8 +2398,10 @@ function isValidApiResponse(response) {
2398
2398
  }
2399
2399
  async function openInEditor(fileName, line, column) {
2400
2400
  const fileParam = encodeURIComponent(`${fileName}:${line}:${column}`);
2401
+ const editor = getConfiguredEditor();
2402
+ const editorParam = encodeURIComponent(editor);
2401
2403
  const basePath = getDevToolsBasePath();
2402
- const endpoints = [`/__open-in-editor?file=${fileParam}`, `${basePath}/api/open-in-editor?file=${fileParam}`];
2404
+ const endpoints = [`/__open-in-editor?file=${fileParam}&editor=${editorParam}`, `${basePath}/api/open-in-editor?file=${fileParam}&editor=${editorParam}`];
2403
2405
  for (const url of endpoints) try {
2404
2406
  if (isValidApiResponse(await fetch(url))) return;
2405
2407
  } catch (_unused2) {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-devtools-plus/kit",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.6.2",
5
5
  "author": "wzc520pyfm",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "mitt": "^3.0.1",
28
28
  "perfect-debounce": "^2.0.0",
29
29
  "superjson": "^2.2.2",
30
- "@react-devtools-plus/shared": "^0.6.0"
30
+ "@react-devtools-plus/shared": "^0.6.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^24.7.2",