Skip to content

Commit b225842

Browse files
leonardodinoiansu
authored andcommitted
Add vscodium to the editor list (#7028)
1 parent cb2c720 commit b225842

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-dev-utils/launchEditor.js

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const COMMON_EDITORS_OSX = {
4040
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',
4141
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron':
4242
'code-insiders',
43+
'/Applications/VSCodium.app/Contents/MacOS/Electron': 'vscodium',
4344
'/Applications/AppCode.app/Contents/MacOS/appcode':
4445
'/Applications/AppCode.app/Contents/MacOS/appcode',
4546
'/Applications/CLion.app/Contents/MacOS/clion':
@@ -66,6 +67,7 @@ const COMMON_EDITORS_LINUX = {
6667
Brackets: 'brackets',
6768
code: 'code',
6869
'code-insiders': 'code-insiders',
70+
vscodium: 'vscodium',
6971
emacs: 'emacs',
7072
gvim: 'gvim',
7173
'idea.sh': 'idea',
@@ -82,6 +84,7 @@ const COMMON_EDITORS_WIN = [
8284
'Brackets.exe',
8385
'Code.exe',
8486
'Code - Insiders.exe',
87+
'VSCodium.exe',
8588
'atom.exe',
8689
'sublime_text.exe',
8790
'notepad++.exe',
@@ -150,6 +153,8 @@ function getArgumentsForLineNumber(
150153
case 'Code':
151154
case 'code-insiders':
152155
case 'Code - Insiders':
156+
case 'vscodium':
157+
case 'VSCodium':
153158
return addWorkspaceToArgumentsIfExists(
154159
['-g', fileName + ':' + lineNumber + ':' + colNumber],
155160
workspace

0 commit comments

Comments
 (0)