From bf7c6fa6012978d1ef7612306cc8c9faf921a8a3 Mon Sep 17 00:00:00 2001 From: Dan Ristea Date: Fri, 7 Jul 2017 11:34:56 +0100 Subject: [PATCH] Support PyCharm in launchEditor (#2740) PyCharm has the same signature as WebStorm and PhpStorm ` --line ` 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 --- packages/react-dev-utils/launchEditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-dev-utils/launchEditor.js b/packages/react-dev-utils/launchEditor.js index 6f623dcf81b..bc1bd4d6e9d 100644 --- a/packages/react-dev-utils/launchEditor.js +++ b/packages/react-dev-utils/launchEditor.js @@ -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