Browse GitHub Issues and private notes from the homelab issue-capture service, and capture new ones straight from the editor.
Features
- Tree view (activity-bar icon → Issue Capture):
Repos → GitHub Issues | Private Notes. - Capture Current File as Issue/Note — from the editor context menu; includes the current selection as a fenced code block and a relative-path source line.
- New Private Note — quick note stored only in the service's SQLite (never pushed to GitHub).
- Open in GitHub / Open Private Note — click any item.
- Auto-refresh on an interval (
issueCapture.refreshIntervalSeconds, default 300s).
Setup
- Mint a token on the service (CT116):
Copy the printedcd issue-capture && npm run token create "my-laptop"ic_…token — it is shown only once. - Point the extension at the service — set
issueCapture.serviceUrl(defaulthttp://192.168.86.116:8090; use yourgo.captureURL off-LAN). - Store the token — run Issue Capture: Set API Token and paste it.
It is kept in
vscode.SecretStorage, never in settings.
Build / install locally
cd issue-capture/vscode-extension
npm install
npm run compile # tsc -> dist/
# then press F5 in VS Code to launch an Extension Development Host, or:
npx @vscode/vsce package # produces a .vsix you can Install from VSIX…
Auth model
The extension sends its token as Authorization: Bearer <token>. The service
validates the SHA-256 hash against its api_tokens table. The portal widget's
shared X-Capture-Secret also works as a master credential. Private-notes and
issue endpoints require auth; the repo list is readable without it on the LAN.