webfansplz / vite-plugin-vue-inspector

jump to editor source code while click the element of browser automatically.
MIT License
683 stars 70 forks source link

fix: allow arbitrary string for launchEditor type #96

Closed Smef closed 3 months ago

Smef commented 3 months ago

Currently, the launchEditor only allows a specific set of strings for known IDEs. However, the LAUNCH_EDITOR env can actually be an arbitrary string. This is used when the editor is in a non-default location, or another tool/editor/script should be launched.

This PR allows a string as a type, which should be valid.

This type change is blocking downstream fixes for Vue Devtools Next - https://github.com/vuejs/devtools-next/pull/401