Skip to content

Commit

Permalink
Add VSCodium (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
tandibar authored Apr 27, 2022
1 parent b244c15 commit 7eb89f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export function getEditorInfo(files, options = {}) {
const editor = options.editor ? getEditor(options.editor) : defaultEditor();
const editorArguments = [];

if (editor.id === 'vscode') {
if (['vscode', 'vscodium'].includes(editor.id)) {
editorArguments.push('--goto');
}

for (const file of files) {
const parsed = parseLineColumnPath(file);

if (['sublime', 'atom', 'vscode'].includes(editor.id)) {
if (['sublime', 'atom', 'vscode', 'vscodium'].includes(editor.id)) {
editorArguments.push(stringifyLineColumnPath(parsed));
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"nano"
],
"dependencies": {
"env-editor": "^1.0.0",
"env-editor": "^1.1.0",
"execa": "^5.1.1",
"line-column-path": "^3.0.0",
"open": "^8.4.0"
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Supports any editor, but only the following editors will open at a specific line
- Sublime Text
- Atom
- Visual Studio Code
- VSCodium
- WebStorm*
- TextMate
- Vim
Expand Down

0 comments on commit 7eb89f4

Please sign in to comment.