Support PhpStorm in launchEditor (#2622)

https://www.jetbrains.com/help/webstorm/opening-files-from-command-line.html
https://www.jetbrains.com/help/phpstorm/opening-files-from-command-line.html

Both editors have the same signature `<editor> <projectPath> --line <number> <filePath>` to open file from the command line.
It seems to work even if `<projectPath>` is omitted (commit 02f88ba157).

Tested on `Win10`+`PhpStorm2016` and `macOS 10.12`+`PhpStorm2017`.
This commit is contained in:
Mikhail Osher
2017-06-26 18:19:21 +03:00
committed by Dan Abramov
parent 839c7bf652
commit 58ef08f798

View File

@@ -74,6 +74,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
);
case 'webstorm':
case 'webstorm64':
case 'phpstorm':
case 'phpstorm64':
return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName],
workspace