Skip to content

Commit

Permalink
Add WebStorm >2017 launchEditor Support (facebook#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirmar authored and romaindso committed Jul 10, 2017
1 parent b72cced commit 9f467ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-dev-utils/launchEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
['-g', fileName + ':' + lineNumber],
workspace
);
case 'webstorm':
case 'webstorm64':
return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName],
workspace
);
}

// For all others, drop the lineNumber until we have
Expand Down

0 comments on commit 9f467ca

Please sign in to comment.