Skip to content

Commit

Permalink
Support JetBrains Rider IDE as an editor (#7948)
Browse files Browse the repository at this point in the history
Rider is JetBrains .NET IDE, which supports the React plugin identically to other JetBrains IDEs such as Idea and WebStorm.
  • Loading branch information
djpowell authored Jan 31, 2020
1 parent 84d8b14 commit cc985d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-dev-utils/launchEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const COMMON_EDITORS_OSX = {
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
'/Applications/GoLand.app/Contents/MacOS/goland':
'/Applications/GoLand.app/Contents/MacOS/goland',
'/Applications/Rider.app/Contents/MacOS/rider':
'/Applications/Rider.app/Contents/MacOS/rider',
};

const COMMON_EDITORS_LINUX = {
Expand All @@ -78,6 +80,7 @@ const COMMON_EDITORS_LINUX = {
vim: 'vim',
'webstorm.sh': 'webstorm',
'goland.sh': 'goland',
'rider.sh': 'rider',
};

const COMMON_EDITORS_WIN = [
Expand All @@ -102,6 +105,8 @@ const COMMON_EDITORS_WIN = [
'webstorm64.exe',
'goland.exe',
'goland64.exe',
'rider.exe',
'rider64.exe',
];

// Transpiled version of: /^([A-Za-z]:[/\\])?[\p{L}0-9/.\-_\\]+$/u
Expand Down Expand Up @@ -174,6 +179,8 @@ function getArgumentsForLineNumber(
case 'webstorm64':
case 'goland':
case 'goland64':
case 'rider':
case 'rider64':
return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName],
workspace
Expand Down

0 comments on commit cc985d0

Please sign in to comment.