Skip to content

Commit fefb005

Browse files
robhoganFacebook Github Bot 2
authored andcommitted
Open to correct line on Webstorm, IntelliJ and AppCode
Summary: A tiny PR to add support for launching IDEA editors with the cursor at the correct line. The argument syntax is the same as sublime. The base names `wstorm`, `idea` and `appcode` are the default names when CLI launchers are created through 'Tools'->'Create Command-Line launcher' in the respective editor's gui. Tested through a fork of RN on Webstorm, IntelliJ and AppCode for OSX and by manual invocation from CLI on IntelliJ for windows. Closes facebook/react-native#9042 Differential Revision: D3627680 fbshipit-source-id: dfb0db92f9ca8b464471c3dc9e92196d87d2e244
1 parent 25d5702 commit fefb005

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/util/launchEditor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
5252
return addWorkspaceToArgumentsIfExists([fileName + ':' + lineNumber], workspace);
5353
case 'subl':
5454
case 'sublime':
55+
case 'wstorm':
56+
case 'appcode':
57+
case 'idea':
5558
return [fileName + ':' + lineNumber];
5659
case 'joe':
5760
case 'emacs':

0 commit comments

Comments
 (0)