question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open File in Editor Support

See original GitHub issue

In the React Native simulator, you can tap a stack frame and your editor will open to that file.

To do this, they POST to ‘/open-stack-frame’ passing along {file, lineNumber}.

What happens next is kinda involved.

Supporting every single editor doesn’t mentally scale, but maybe just offering a callback/plugin to haul where one could define their editor?

Would you guys be open to a PR supporting a dumbed down version of this to start?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
skellockcommented, Apr 19, 2017

Gonna leave this here. I know nothing about it… looks promising. as does everything when you don’t install it.

Will tackle it this weekend. If someone beats me to it, that’s 100% ok with me! 😃

1reaction
satya164commented, Apr 19, 2017

AFAIK React Native Packager reads EDITOR and REACT_EDITOR, so we should probably do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open files in the editor | PyCharm Documentation
Choose File | Open on the main menu and select the desired file in the dialog box that opens. Drag the required file...
Read more >
How to: Open Editors for Open Documents - Visual Studio ...
To open a project-specific editor for an open file · Call the IsDocumentOpen method. · If the document is open, the project must...
Read more >
yyx990803/launch-editor: Open file in editor from Node.js.
Open file with line numbers in editor from Node.js. The main functionality is extracted from react-dev-utils with slight modifications so that it can...
Read more >
open-in-editor
NPM package to open a file in editor. Supported editors: Sublime Text · Atom Editor · Visual Studio Code · WebStorm · PhpStorm ......
Read more >
Editing/Opening Files
You can make the command open the file in any external editor in preferences. From submenu File(s) > Edit (alternative) you can open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found