Skip to content

Commit cc985d0

Browse files
authored
Support JetBrains Rider IDE as an editor (#7948)
Rider is JetBrains .NET IDE, which supports the React plugin identically to other JetBrains IDEs such as Idea and WebStorm.
1 parent 84d8b14 commit cc985d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/react-dev-utils/launchEditor.js

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ const COMMON_EDITORS_OSX = {
6060
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
6161
'/Applications/GoLand.app/Contents/MacOS/goland':
6262
'/Applications/GoLand.app/Contents/MacOS/goland',
63+
'/Applications/Rider.app/Contents/MacOS/rider':
64+
'/Applications/Rider.app/Contents/MacOS/rider',
6365
};
6466

6567
const COMMON_EDITORS_LINUX = {
@@ -78,6 +80,7 @@ const COMMON_EDITORS_LINUX = {
7880
vim: 'vim',
7981
'webstorm.sh': 'webstorm',
8082
'goland.sh': 'goland',
83+
'rider.sh': 'rider',
8184
};
8285

8386
const COMMON_EDITORS_WIN = [
@@ -102,6 +105,8 @@ const COMMON_EDITORS_WIN = [
102105
'webstorm64.exe',
103106
'goland.exe',
104107
'goland64.exe',
108+
'rider.exe',
109+
'rider64.exe',
105110
];
106111

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

0 commit comments

Comments
 (0)