A minimal template for creating VSCode extensions using RSLib framework.
- 🚀 Modern TypeScript setup
- ⚡️ RSLib for efficient development
- 📦 Built-in build and watch scripts
- 🧪 Jest testing configuration
- 🎨 Biome for code formatting
- Node.js (v22 or higher)
- VSCode
- Yarn
-
Clone this template:
git clone https://github.com/XavierLeTohic/rslib-vscode-extension.git cd rslib-vscode-extension
-
Install dependencies:
yarn install
-
Start development:
yarn dev
-
Press F5 in VSCode to launch the extension in debug mode
npm run build
: Build the extensionnpm run dev
: Build and watch for changesnpm run test
: Run Jest testsnpm run vscode:prepublish
: Prepare extension for publishing
├── src/
│ └── extension.ts # Main extension code
├── images/
│ └── logo.png # Extension icon
├── dist/ # Compiled output
└── package.json # Extension manifest
-
Modify
src/extension.ts
to add your extension logic -
Update
package.json
contributes section to add:- Commands
- Configuration
- Views
- Other VSCode extension points
-
Test your changes:
- Write tests in
__tests__
directory - Run
npm run test
to execute tests
- Write tests in
-
Update the following in
package.json
:publisher
displayName
description
repository
version
-
Package and publish:
vsce package vsce publish