Thanks for wanting to contribute to Todo+2. Contributions, issues and feedback are very welcome!
This document explains how to set up the project locally, install prerequisites, run the extension in the debugger while you work, and submit changes.
- Node.js (LTS recommended) and npm
- (Optional)
vsceif you want to package/publish the extension locally:
npm install -g vsceFrom the repository root run:
npm installThis will install runtime and dev dependencies listed in package.json.
This project uses webpack to compile the TypeScript source into out/ (the compiled extension). Build commands from package.json:
# One-time build (development mode)
npm run compile
# Build and watch for changes while you edit
npm run compile:watch
# Publish
npm run publishNote: the compile:watch command is handy while debugging; it keeps out/ updated automatically.
- Open the project folder in VS Code.
- Make sure the project is compiled at least once (
npm run compile) or runnpm run compile:watchin a terminal. - Open
extension.js. - Press F5 (or Run > Start Debugging). VS Code will open a new Extension Development Host window with the extension loaded.
Tips:
- Put breakpoints in the TypeScript files under
src/. WithsourceMap: trueandout/present VS Code should hit breakpoints correctly. - If breakpoints are skipped, stop the debug session, run a full compile (
npm run compile), and start debugging again.
If you want to generate a .vsix to install locally or publish manually:
# create a VSIX package
vsce package
# install the VSIX into your locally installed VS Code
code --install-extension .\vscode-todo-plus-two-<version>.vsixReplace <version> with the actual package filename produced by vsce package.
- Fork the repository on GitHub.
- Create a descriptive branch for your change:
# from your local clone
git checkout -b feat/awesome-improvement- Make your changes, run
npm run compileornpm run compile:watch. - Commit changes with clear messages and push your branch to your fork.
- Open a Pull Request against
vycdev/vscode-todo-plus-twoand describe the change.
Guidelines:
- Follow the existing code style and keep changes small and focused.
- Update
readme.mdandchangelog.mdwhen adding or changing user-visible features. - If your change requires new dependencies, explain why in the PR.
Please open issues in the repository: https://github.com/vycdev/vscode-todo-plus-two/issues
When reporting a bug, include:
- VS Code version
- Extension version (package.json
version) - Steps to reproduce
- Expected vs actual behavior
- Any relevant logs from the Extension Development Host console
This project is MIT licensed (see the license file).