Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit b68c39e

Browse files
Mikhail Osherwmonk
Mikhail Osher
authored andcommitted
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 02f88ba). Tested on `Win10`+`PhpStorm2016` and `macOS 10.12`+`PhpStorm2017`.
1 parent 015ca60 commit b68c39e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dev-utils/launchEditor.js

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
7474
);
7575
case 'webstorm':
7676
case 'webstorm64':
77+
case 'phpstorm':
78+
case 'phpstorm64':
7779
return addWorkspaceToArgumentsIfExists(
7880
['--line', lineNumber, fileName],
7981
workspace

0 commit comments

Comments
 (0)