mirror of
https://github.com/yoshiko-pg/difit.git
synced 2026-09-19 05:03:24 +08:00
273ac96261
* feat(vscode): add one-click difit extension launcher * chore(lint): include vscode extension in oxlint scope * fix(vscode): show status bar button on startup * chore(scripts): add root vscode package command * feat(vscode): add editor toolbar icon button * feat(vscode): choose difit args by git working tree * fix(vscode): avoid stdin mode when no local changes * chore(lint): switch oxlint scripts back to dot target * ci: run vscode packaging only when related files change * chore(vscode): update extension icon asset * add difit link * chore(skills): add vscode-release workflow skill * fix(vscode): continue launch when version probe exits non-zero * fix(vscode): retry startup via login shell on exit 127 * fix(vscode): use interactive login shell for fallback launch * fix(vscode): inject extension host node path into spawned env * pnpm-lock * docs(vscode): rewrite extension readme for current behavior * update VSCode README * chore(hooks): include vscode package changes in pre-commit globs * Potential fix for code scanning alert no. 15: Workflow does not contain permissions * fix pnpm version
difit VS Code Extension
Open difit with one click and render it in a VS Code tab using Simple Browser.
- Project: https://github.com/yoshiko-pg/difit
Requirements
- VS Code
^1.98.0 difitCLI installed on your machine (or install from the extension prompt)
What It Does
- Adds
difit: Open Reviewanddifit: Stop Reviewcommands. - Shows an editor title button (top-right icon) for quick open.
- Shows a status bar button (
difit) for quick open. - Reuses a running difit process per workspace.
- Chooses launch args automatically:
- with uncommitted changes:
difit . --no-open - without uncommitted changes:
difit HEAD --no-open
- with uncommitted changes:
- Opens the URL in a VS Code tab via
simpleBrowser.api.open. - Writes runtime logs to Output channel
difit.
Settings
difit.executablePath(default:difit)difit.installCommand(default:npm install -g difit)
Build VSIX Locally
From repository root:
pnpm install
pnpm run package:vscode
Generated file:
packages/vscode/difit-vscode-<version>.vsix
Install VSIX
- Open Extensions view.
- Click
...(More Actions). - Choose
Install from VSIX.... - Select
packages/vscode/difit-vscode-<version>.vsix. - Run
Developer: Reload Window.