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

Autodetect GoLand editor (#3980)

parent ea760ff8
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 7 additions and 0 deletions
+7 -0
......@@ -57,6 +57,8 @@ const COMMON_EDITORS_OSX = {
'/Applications/WebStorm.app/Contents/MacOS/webstorm':
'/Applications/WebStorm.app/Contents/MacOS/webstorm',
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
'/Applications/GoLand.app/Contents/MacOS/goland':
'/Applications/GoLand.app/Contents/MacOS/goland',
};
const COMMON_EDITORS_LINUX = {
......@@ -72,6 +74,7 @@ const COMMON_EDITORS_LINUX = {
sublime_text: 'sublime_text',
vim: 'vim',
'webstorm.sh': 'webstorm',
'goland.sh': 'goland',
};
const COMMON_EDITORS_WIN = [
......@@ -93,6 +96,8 @@ const COMMON_EDITORS_WIN = [
'rubymine64.exe',
'webstorm.exe',
'webstorm64.exe',
'goland.exe',
'goland64.exe',
];
function addWorkspaceToArgumentsIfExists(args, workspace) {
......@@ -155,6 +160,8 @@ function getArgumentsForLineNumber(
case 'rubymine64':
case 'webstorm':
case 'webstorm64':
case 'goland':
case 'goland64':
return addWorkspaceToArgumentsIfExists(
['--line', lineNumber, fileName],
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