Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
feat: add support for VSCodium (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeischner authored and kbshl committed Apr 22, 2019
1 parent 5953c70 commit a00a5de
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ then
VSCODE_APP_EDITION="Visual Studio Code - Insiders"
fi

if [ $vscodeEdition == 'codium' ]
then
VSCODE_APP_EDITION="VSCodium"
fi

open -a "${VSCODE_APP_EDITION}" "$1"
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

You need

* [Node.js 8+](https://nodejs.org)
* [Alfred 3](https://www.alfredapp.com) with the paid [Powerpack](https://www.alfredapp.com/powerpack/) upgrade
* [Visual Studio Code Project Manager](https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager) - Only if you like to have a project manager for VS Code.
* [Visual Studio Code Command Line](https://code.visualstudio.com/docs/setup/mac)
- [Node.js 8+](https://nodejs.org)
- [Alfred 3](https://www.alfredapp.com) with the paid [Powerpack](https://www.alfredapp.com/powerpack/) upgrade
- [Visual Studio Code Project Manager](https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager) - Only if you like to have a project manager for VS Code.
- [Visual Studio Code Command Line](https://code.visualstudio.com/docs/setup/mac)

## Installation

Expand All @@ -29,6 +29,10 @@ npm install --global alfred-vscode

Remember to set the `vscodeEdition` variable to `code-insiders` in the Workflow Configuration!

**Note for VSCodium users:**

Remember to set the `vscodeEdition` variable to `codium` in the Workflow Configuration!

It defaults to `code`.

## Usage
Expand All @@ -53,4 +57,4 @@ Hold <kbd>Shift</kbd> when pressing <kbd>Enter</kbd> to open that folder or file

## Special Thanks

Big Thanks goes to [Cloudstek](https://github.com/Cloudstek) for his [Alfred Atom Workflow](https://github.com/Cloudstek/alfred-atom) which I used as a base for this project.
Big Thanks goes to [Cloudstek](https://github.com/Cloudstek) for his [Alfred Atom Workflow](https://github.com/Cloudstek/alfred-atom) which I used as a base for this project.
8 changes: 8 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ function getChannelPath(appdata = '', vscodeEdition = 'code') {
))) {
return 'Code - Insiders';
}

if (vscodeEdition === 'codium' && fs.existsSync(''.concat(
appdata,
'/VSCodium',
))) {
return 'VSCodium'
}

return 'Code';
}

Expand Down

0 comments on commit a00a5de

Please sign in to comment.