@@ -38,6 +38,22 @@ const COMMON_EDITORS_OSX = {
38
38
'/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2' :
39
39
'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' ,
40
40
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron' : 'code' ,
41
+ '/Applications/AppCode.app/Contents/MacOS/appcode' :
42
+ '/Applications/AppCode.app/Contents/MacOS/appcode' ,
43
+ '/Applications/CLion.app/Contents/MacOS/clion' :
44
+ '/Applications/CLion.app/Contents/MacOS/clion' ,
45
+ '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea' :
46
+ '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea' ,
47
+ '/Applications/PhpStorm.app/Contents/MacOS/phpstorm' :
48
+ '/Applications/PhpStorm.app/Contents/MacOS/phpstorm' ,
49
+ '/Applications/PyCharm.app/Contents/MacOS/pycharm' :
50
+ '/Applications/PyCharm.app/Contents/MacOS/pycharm' ,
51
+ '/Applications/PyCharm CE.app/Contents/MacOS/pycharm' :
52
+ '/Applications/PyCharm CE.app/Contents/MacOS/pycharm' ,
53
+ '/Applications/RubyMine.app/Contents/MacOS/rubymine' :
54
+ '/Applications/RubyMine.app/Contents/MacOS/rubymine' ,
55
+ '/Applications/WebStorm.app/Contents/MacOS/webstorm' :
56
+ '/Applications/WebStorm.app/Contents/MacOS/webstorm' ,
41
57
} ;
42
58
43
59
const COMMON_EDITORS_WIN = [
@@ -46,6 +62,18 @@ const COMMON_EDITORS_WIN = [
46
62
'atom.exe' ,
47
63
'sublime_text.exe' ,
48
64
'notepad++.exe' ,
65
+ 'clion.exe' ,
66
+ 'clion64.exe' ,
67
+ 'idea.exe' ,
68
+ 'idea64.exe' ,
69
+ 'phpstorm.exe' ,
70
+ 'phpstorm64.exe' ,
71
+ 'pycharm.exe' ,
72
+ 'pycharm64.exe' ,
73
+ 'rubymine.exe' ,
74
+ 'rubymine64.exe' ,
75
+ 'webstorm.exe' ,
76
+ 'webstorm64.exe' ,
49
77
] ;
50
78
51
79
function addWorkspaceToArgumentsIfExists ( args , workspace ) {
@@ -58,22 +86,19 @@ function addWorkspaceToArgumentsIfExists(args, workspace) {
58
86
function getArgumentsForLineNumber ( editor , fileName , lineNumber , workspace ) {
59
87
const editorBasename = path . basename ( editor ) . replace ( / \. ( e x e | c m d | b a t ) $ / i, '' ) ;
60
88
switch ( editorBasename ) {
61
- case 'vim' :
62
- case 'mvim' :
63
- return [ fileName , '+' + lineNumber ] ;
64
89
case 'atom' :
65
90
case 'Atom' :
66
91
case 'Atom Beta' :
67
92
case 'subl' :
68
93
case 'sublime' :
69
94
case 'sublime_text' :
70
95
case 'wstorm' :
71
- case 'appcode' :
72
96
case 'charm' :
73
- case 'idea' :
74
97
return [ fileName + ':' + lineNumber ] ;
75
98
case 'notepad++' :
76
99
return [ '-n' + lineNumber , fileName ] ;
100
+ case 'vim' :
101
+ case 'mvim' :
77
102
case 'joe' :
78
103
case 'emacs' :
79
104
case 'emacsclient' :
@@ -88,10 +113,19 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, workspace) {
88
113
[ '-g' , fileName + ':' + lineNumber ] ,
89
114
workspace
90
115
) ;
91
- case 'webstorm' :
92
- case 'webstorm64' :
116
+ case 'appcode' :
117
+ case 'clion' :
118
+ case 'clion64' :
119
+ case 'idea' :
120
+ case 'idea64' :
93
121
case 'phpstorm' :
94
122
case 'phpstorm64' :
123
+ case 'pycharm' :
124
+ case 'pycharm64' :
125
+ case 'rubymine' :
126
+ case 'rubymine64' :
127
+ case 'webstorm' :
128
+ case 'webstorm64' :
95
129
return addWorkspaceToArgumentsIfExists (
96
130
[ '--line' , lineNumber , fileName ] ,
97
131
workspace
0 commit comments