mirror of
https://github.com/status-im/react-native.git
synced 2025-02-13 18:06:37 +00:00
Add Atom Beta to launchEditor
Summary:
Support [the pre-release of Atom](https://github.com/atom/atom/releases/tag/v1.16.0-beta0) for launchEditor in RN packager.
Open the pre-release of Atom and use the following code: (use the built-in [openFileInEditor](292cc82d0e/Libraries/Core/Devtools/openFileInEditor.js
) module)
```js
import openFileInEditor from 'openFileInEditor'
openFileInEditor(file, lineNumber)
```
Closes https://github.com/facebook/react-native/pull/13255
Differential Revision: D4819130
Pulled By: ericvicenti
fbshipit-source-id: eb542295ee9489dad0fe9084e51c4141d33f1fbf
This commit is contained in:
parent
b4da59e9c2
commit
d38644eee5
@ -30,6 +30,8 @@ function isTerminalEditor(editor) {
|
||||
// of the app every time
|
||||
var COMMON_EDITORS = {
|
||||
'/Applications/Atom.app/Contents/MacOS/Atom': 'atom',
|
||||
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta':
|
||||
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
|
||||
'/Applications/Sublime Text.app/Contents/MacOS/Sublime Text':
|
||||
'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
|
||||
'/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2':
|
||||
|
Loading…
x
Reference in New Issue
Block a user