Getting Started
Prerequisites
Before you begin, ensure you have:- Node.js 18+
- VS Code (for development)
- Git
Setup
Development Workflow
Branch Naming
Create a branch frommain using these prefixes:
| Prefix | Purpose | Example |
|---|---|---|
feature/ | New features | feature/oauth-support |
fix/ | Bug fixes | fix/response-scroll-issue |
docs/ | Documentation | docs/update-readme |
refactor/ | Code refactoring | refactor/extract-commands |
chore/ | Maintenance | chore/update-dependencies |
Making Changes
Before Submitting
Make sure to complete this checklist before submitting your pull request:
- Run
npm run check(must pass with no errors) - Test the feature manually
- Update documentation if needed
Commit Messages
Use conventional commit messages:Examples
Pull Request Process
Code Style
TypeScript Guidelines
TypeScript Guidelines
- Strict mode enabled
- Avoid
any— use proper types orunknown - Shared types in
src/shared/
Lit Components
Lit Components
- Prefix with
lc- - Extend
LcBaseElement - Use
@customElementdecorator
Naming Conventions
Naming Conventions
| Type | Convention | Example |
|---|---|---|
| Files | camelCase | collectionService.ts |
| Classes | PascalCase | CollectionService |
| Functions/variables | camelCase | getCollection() |
| Commands | liteclient.verbNoun | liteclient.sendRequest |
General Guidelines
General Guidelines
- No comments unless complex logic requires explanation
- Follow existing patterns in neighboring code
- Prefer VS Code native UI over custom dialogs
Testing
Manual Testing
PressF5 in VS Code to launch the Extension Development Host where you can test your changes in a live environment.
Automated Testing
Questions?
- Open an issue for bugs or feature requests
- Check existing issues before creating new ones
- See AGENTS.md for AI coding conventions