Commit 03604a46 authored by Igor Fedyukin's avatar Igor Fedyukin Committed by Dan Abramov
Browse files

Autodetect GoLand editor (#3980)

parent ea760ff8
Showing with 7 additions and 0 deletions
+7 -0
...@@ -57,6 +57,8 @@ const COMMON_EDITORS_OSX = { ...@@ -57,6 +57,8 @@ const COMMON_EDITORS_OSX = {
'/Applications/WebStorm.app/Contents/MacOS/webstorm': '/Applications/WebStorm.app/Contents/MacOS/webstorm':
'/Applications/WebStorm.app/Contents/MacOS/webstorm', '/Applications/WebStorm.app/Contents/MacOS/webstorm',
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim', '/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
'/Applications/GoLand.app/Contents/MacOS/goland':
'/Applications/GoLand.app/Contents/MacOS/goland',
}; };
const COMMON_EDITORS_LINUX = { const COMMON_EDITORS_LINUX = {
...@@ -72,6 +74,7 @@ const COMMON_EDITORS_LINUX = { ...@@ -72,6 +74,7 @@ const COMMON_EDITORS_LINUX = {
sublime_text: 'sublime_text', sublime_text: 'sublime_text',
vim: 'vim', vim: 'vim',
'webstorm.sh': 'webstorm', 'webstorm.sh': 'webstorm',
'goland.sh': 'goland',
}; };
const COMMON_EDITORS_WIN = [ const COMMON_EDITORS_WIN = [
...@@ -93,6 +96,8 @@ const COMMON_EDITORS_WIN = [ ...@@ -93,6 +96,8 @@ const COMMON_EDITORS_WIN = [
'rubymine64.exe', 'rubymine64.exe',
'webstorm.exe', 'webstorm.exe',
'webstorm64.exe', 'webstorm64.exe',
'goland.exe',
'goland64.exe',
]; ];
function addWorkspaceToArgumentsIfExists(args, workspace) { function addWorkspaceToArgumentsIfExists(args, workspace) {
...@@ -155,6 +160,8 @@ function getArgumentsForLineNumber( ...@@ -155,6 +160,8 @@ function getArgumentsForLineNumber(
case 'rubymine64': case 'rubymine64':
case 'webstorm': case 'webstorm':
case 'webstorm64': case 'webstorm64':
case 'goland':
case 'goland64':
return addWorkspaceToArgumentsIfExists( return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName], ['--line', lineNumber, fileName],
workspace workspace
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment