mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
1701424b4e
* feat: integrate VS Code extension from community (7tg/plannotator-vscode) Opens Plannotator plan reviews, code reviews, and annotations inside VS Code tabs instead of an external browser. Intercepts PLANNOTATOR_BROWSER via env var injection in integrated terminals, with cookie persistence and auto-close. Original repository: https://github.com/7tg/plannotator-vscode Closes #91 Co-Authored-By: Barbaros Gören <tayyipgoren@gmail.com> * chore: adapt VS Code extension for monorepo - Update package.json: publisher → backnotprop, repo → plannotator, add private - Replace node -e URL encoding with curl --data-urlencode in router script - Simplify panel-manager tests to keep only behavioral tests - Add dev:vscode, build:vscode, package:vscode scripts to root - Add *.vsix to .gitignore - Update bun.lock with new workspace member Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: address code review and duplicate panel issue - Fix macOS browser: detect script paths in PLANNOTATOR_BROWSER and invoke directly instead of via 'open -a' (which only accepts app names/.app bundles) - Update CLAUDE.md: add vscode-extension to project structure, development, and build sections - Fix command title: 'Simple Browser' -> 'Open URL in Editor' - Add 1s debounce to panel opens: Claude Code fires ExitPlanMode hook twice, spawning two plannotator processes on different ports that both hit the IPC server simultaneously - Add .vscode/launch.json + tasks.json for F5 debugging --------- Co-authored-by: Barbaros Gören <tayyipgoren@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
474 B
Bash
Executable File
15 lines
474 B
Bash
Executable File
#!/bin/sh
|
|
# xdg-open wrapper — routes localhost URLs to the Plannotator VS Code extension.
|
|
# Non-URL or external-URL calls delegate to the real xdg-open.
|
|
|
|
case "$1" in
|
|
http://localhost:*|http://localhost/*|http://127.0.0.1:*|http://127.0.0.1/*)
|
|
exec "$(dirname "$0")/open-in-vscode" "$1"
|
|
;;
|
|
*)
|
|
SELF_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PATH=$(printf '%s' "$PATH" | tr ':' '\n' | grep -v "^${SELF_DIR}$" | paste -sd:)
|
|
exec xdg-open "$@"
|
|
;;
|
|
esac
|