getsentry / spotlight

Your Universal Debug Toolbar
https://spotlightjs.com
Other
377 stars 11 forks source link

Add click to open in editor functionality #459

Closed BYK closed 4 months ago

BYK commented 4 months ago

We should make each error line / context line clickable somewhere which then opens it in the default editor.

BYK commented 4 months ago

Here's how React Dev Tools does it: https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/launchEditor.js

Here's a sample usage: https://github.com/gregberge/error-overlay-webpack-plugin/blob/main/src/entries/basic.mjs

Looks like this will have to be on Sidecar side.

BYK commented 4 months ago

Even better, we have this: https://github.com/yyx990803/launch-editor