Skip to content

Commit 03604a4

Browse files
ifedyukingaearon
authored andcommitted
Autodetect GoLand editor (facebook#3980)
1 parent ea760ff commit 03604a4

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
@@ -57,6 +57,8 @@ const COMMON_EDITORS_OSX = {
5757
'/Applications/WebStorm.app/Contents/MacOS/webstorm':
5858
'/Applications/WebStorm.app/Contents/MacOS/webstorm',
5959
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
60+
'/Applications/GoLand.app/Contents/MacOS/goland':
61+
'/Applications/GoLand.app/Contents/MacOS/goland',
6062
};
6163

6264
const COMMON_EDITORS_LINUX = {
@@ -72,6 +74,7 @@ const COMMON_EDITORS_LINUX = {
7274
sublime_text: 'sublime_text',
7375
vim: 'vim',
7476
'webstorm.sh': 'webstorm',
77+
'goland.sh': 'goland',
7578
};
7679

7780
const COMMON_EDITORS_WIN = [
@@ -93,6 +96,8 @@ const COMMON_EDITORS_WIN = [
9396
'rubymine64.exe',
9497
'webstorm.exe',
9598
'webstorm64.exe',
99+
'goland.exe',
100+
'goland64.exe',
96101
];
97102

98103
function addWorkspaceToArgumentsIfExists(args, workspace) {
@@ -155,6 +160,8 @@ function getArgumentsForLineNumber(
155160
case 'rubymine64':
156161
case 'webstorm':
157162
case 'webstorm64':
163+
case 'goland':
164+
case 'goland64':
158165
return addWorkspaceToArgumentsIfExists(
159166
['--line', lineNumber, fileName],
160167
workspace

0 commit comments

Comments
 (0)