Skip to content

Commit

Permalink
Support PyCharm in launchEditor (#2740)
Browse files Browse the repository at this point in the history
PyCharm has the same signature as WebStorm and PhpStorm `<editor> <projectPath> --line <number> <filePath>` so it can reuse the logic from those.

https://www.jetbrains.com/help/pycharm/opening-files-from-command-line.html

Tested with PyCharm Pro 2017.1.4 on MacOS 10.12
  • Loading branch information
danrr authored and swengorschewski committed Oct 12, 2017
1 parent 4c2597f commit 8c29927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dev-utils/launchEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
case 'webstorm64':
case 'phpstorm':
case 'phpstorm64':
case 'pycharm':
case 'pycharm64':
return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName],
workspace
Expand Down

0 comments on commit 8c29927

Please sign in to comment.