From 4b856a7c795ee056eda7b2244d83b347b0f971f9 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 6f623dcf8..bc1bd4d6e 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