Skip to content

Commit 88dc055

Browse files
danrrkasperpeulen
authored andcommitted
Support PyCharm in launchEditor (facebook#2740)
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
1 parent 85da897 commit 88dc055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dev-utils/launchEditor.js

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
9191
case 'webstorm64':
9292
case 'phpstorm':
9393
case 'phpstorm64':
94+
case 'pycharm':
95+
case 'pycharm64':
9496
return addWorkspaceToArgumentsIfExists(
9597
['--line', lineNumber, fileName],
9698
workspace

0 commit comments

Comments
 (0)