A shell script to check the latest version of a vscode extension.
You can use this script to download the latest vsix
file.
- bash
- getopts
- curl
-
Clone this repository to your favorite directory:
git clone https://github.com/hmasdev/vscode-ext-version.git
The following steps assume that you have cloned this repository into the current folder.
-
Move to the directory created at the previous step:
cd vscode-ext-version
The usage of this script is as follows:
vscev - VSCode Extension Version Checker
Usage: vscev [option] [extensionID]
Options:
-d Download the extension
-h Show help
./vscev.sh ${publisher}.${extensionName}
For example, suppose that you want to know the latest version of Github.copilot
, run
./vscev.sh Github.copilot
./vscev.sh -d ${publisher}.${extensionName}
For example, suppose that you want to download the latest vsix
of Github.copilot
, run
./vscev.sh -d Github.copilot
Note that the latest vsix
is downloaded into the working directory.
-
Clone this repository to your favorite directory:
git clone https://github.com/hmasdev/vscode-ext-version.git
The following steps assume that you have cloned this repository into the current folder.
-
Move to the directory created at the previous step:
cd vscode-ext-version
-
Install
bats
, which is a test framework forbash
, if you have not installed it yet:git clone https://github.com/bats-core/bats-core.git ./bats-core/install.sh ./bats export PATH=./bats/bin/:$PATH
You can run
bats -v
to see ifbats
has been successfully installed.See https://bats-core.readthedocs.io/en/stable/installation.html for detailed information.
- Update
vscev.sh
; - test
vscev.sh
withbats test_vscev.bats
; - commit the change, push it and created a pull-request.