mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
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:
committed by
Dan Abramov
parent
839c7bf652
commit
58ef08f798
2
packages/react-dev-utils/launchEditor.js
vendored
2
packages/react-dev-utils/launchEditor.js
vendored
@@ -74,6 +74,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
|
||||
);
|
||||
case 'webstorm':
|
||||
case 'webstorm64':
|
||||
case 'phpstorm':
|
||||
case 'phpstorm64':
|
||||
return addWorkspaceToArgumentsIfExists(
|
||||
['--line', lineNumber, fileName],
|
||||
workspace
|
||||
|
||||
Reference in New Issue
Block a user