Skip to content

Commit

Permalink
Support PyCharm in launchEditor (facebook#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 morgs32 committed Sep 1, 2017
1 parent b0f3052 commit bf7c6fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dev-utils/launchEditor.js
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 bf7c6fa

Please sign in to comment.