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:
Dan Ristea
2017-07-07 11:34:56 +01:00
committed by Dan Abramov
parent 8442cf313b
commit 804ac00095

View File

@@ -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