mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Support PyCharm in launchEditor (#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
This commit is contained in:
2
packages/react-dev-utils/launchEditor.js
vendored
2
packages/react-dev-utils/launchEditor.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user