Skip to content

Commit

Permalink
added code-insiders to the editor list (facebook#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrynx authored and Pavel Zhytko committed Jul 10, 2018
1 parent 91be628 commit 4c9022e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-dev-utils/launchEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const COMMON_EDITORS_LINUX = {
atom: 'atom',
Brackets: 'brackets',
code: 'code',
'code-insiders': 'code-insiders',
emacs: 'emacs',
'idea.sh': 'idea',
'phpstorm.sh': 'phpstorm',
Expand All @@ -77,6 +78,7 @@ const COMMON_EDITORS_LINUX = {
const COMMON_EDITORS_WIN = [
'Brackets.exe',
'Code.exe',
'Code - Insiders.exe',
'atom.exe',
'sublime_text.exe',
'notepad++.exe',
Expand Down Expand Up @@ -127,6 +129,8 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
return ['--line', lineNumber, fileName];
case 'code':
case 'Code':
case 'code-insiders':
case 'Code - Insiders':
return addWorkspaceToArgumentsIfExists(
['-g', fileName + ':' + lineNumber],
workspace
Expand Down

0 comments on commit 4c9022e

Please sign in to comment.