Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
03604a46
Commit
03604a46
authored
7 years ago
by
Igor Fedyukin
Committed by
Dan Abramov
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Autodetect GoLand editor (#3980)
parent
ea760ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-dev-utils/launchEditor.js
+7
-0
packages/react-dev-utils/launchEditor.js
with
7 additions
and
0 deletions
+7
-0
packages/react-dev-utils/launchEditor.js
+
7
-
0
View file @
03604a46
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment